473,472 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

loading a flash into a page from a folder outside of the IIS

is it possible to load some how a flash into a webpage which has an embed
object
and that the flash will be outside of the IS folder?

thnaks in advance
peleg
Aug 30 '07 #1
3 1525
Yes, as long as the flash file's location is accessible to the user.
If it is not accessible to the user you may need a page or handler to grab
the file from the private location and output it as needed, perhaps using
Response.WriteFile.

Here's more info:
http://SteveOrr.net/articles/Flasher.aspx
http://msdn2.microsoft.com/en-us/lib...30(vs.71).aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

"pelegk1" <pe*****@discussions.microsoft.comwrote in message
news:14**********************************@microsof t.com...
is it possible to load some how a flash into a webpage which has an embed
object
and that the flash will be outside of the IS folder?

thnaks in advance
peleg
Aug 30 '07 #2
As Steve suggested, I have used this technique:

Output the Flash object container as HTML using a function such as
this:

public static string GetFlashContainer(string strFilePath)
{
StringBuilder sbOutput = new StringBuilder();

sbOutput.Append("<object type='application/x-shockwave-
flash' data='" + strFilePath + ">");
sbOutput.Append(" <param name='movie' value='" +
strFilePath + "' />");
sbOutput.Append(" <param name='wmode'
value='transparent' />");
sbOutput.Append(" <img src='../images/icons/noflash.gif'
alt='No flash player detected' />");
sbOutput.Append("</object>");

return sbOutput.ToString();

}

Rather than strFilePath being a path to the Flash file, it is an aspx
page that has in its PageLoad event:

string strImagePath = [Path to where the Flash File is
kept, you can use eg a querystring parameter on the page to identify
this]

Response.ContentType = "application/x-shockwave-flash";
byte[] _imgbytes =
File.ReadAllBytes(strImagePath);
Response.AppendHeader("Content-Length",
_imgbytes.Length.ToString());
Response.Cache.SetLastModified(DateTime.Now);
Response.Cache.SetCacheability(HttpCacheability.Pu blic);
Response.BinaryWrite(_imgbytes);

Aug 30 '07 #3
"Andy" <an***@iancooke.co.ukwrote in message
news:11**********************@22g2000hsm.googlegro ups.com...
As Steve suggested, I have used this technique:
I use this: http://www.wimpyplayer.com/
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 30 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MN | last post by:
Hello all - I was hoping I could appeal to the gurus out there as I've researched this issue and can't seem to get this Flash movie to load at all. Below is my javascript code that I use to...
2
by: Dave | last post by:
Hi, can someone tell me if it's possible and if yes what the script is and where to put it in order to: have the browser check upon loading page X to see if the user's computer has Flash player...
5
by: 1337.geek | last post by:
I have a webpage, lots of javascript that i pulled from various places, the menu script pre-loads about 50 small images, it only takes about 5 seconds for broadband but for lower band connections i...
6
by: Curious George | last post by:
I have a page that takes about 10 seconds to load the first time it is run. I would like to first display a little animated gif telling the user that the page is loading. How do I do this with...
1
by: Jesper Stocholm | last post by:
I would like to be able to load a Control (ASCX) that is placed in a folder outside webscope - but with read/write ability for IUSR/ASPNET-process. I usually use Page.LoadControl() to load my...
0
by: Sam | last post by:
Hi all, One of my web pages uses flash and for some unknown reasons, on some computers(not all), it takes a long time to load this page and virtually freeze my IE. The flash does show up, but it...
5
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
We have a page that is loading very slow. There is not a lot of data, not a lot of users are connected at the same time and the page does not produce an error, so I am not sure where to start to...
5
by: Jaime Palli | last post by:
I have developed a Visual Basic 6.0 ActiveX DLL to help to interact with some ASP pages. I have copied the compiled DLL in C:\INETPUB\WWWROOT in my XP Pro machine. After making some configuracion...
6
by: vunet | last post by:
This may be a strange question from a non-technical person who asked me to make his whole site and images load all at once. I.e. the completely loaded site would show up immediately even with a big...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.