Hi guys, I've got a problem. I wanna make an swf file for my coppermine gallery - for files from YouTube etc. Coppermin gallery doesn't permit to have an external link (to external host) to files from gallery so i have to make flash file with youtube video loaded. For wmv I can create file like this: <Asx Version = "3.0" > <Title > toyota-rav4</Title> <Param Name = "AllowShuffle" Value = "yes" /> <Entry> <Duration value = "00:01:1.999" /> <Author > www.superzooi.com</Author> <Param Name = "Bitrate" Value = "346000" /> <Param Name = "FileSize" Value = "2572074" /> <Param Name = "FileType" Value = "wmv" /> <Param Name = "Is_Protected" Value = "False" /> <Param Name = "Is_Trusted" Value = "false" /> <Param Name = "IsVBR" Value = "False" /> <Param Name = "MediaType" Value = "video" /> <Param Name = "SourceURL" Value = "http://webotron.online.fr/cpg-ng/albums/auto-rave4/06100307_rav4.wmv" /> <Title > Who will drive today?</Title> <Param Name = "type" Value = "local" /> <Param Name = "UserPlayCount" Value = "1" /> <Param Name = "WMFSDKNeeded" Value = "0.0.0.0000" /> <Param Name = "WMFSDKVersion" Value = "9.00.00.2980" /> <Ref href = "http://webotron.online.fr/cpg-ng/albums/auto-rave4/06100307_rav4.wmv"/> </Entry> </Asx> and it works. But i need file with extension .swf to open flash player. Can somebody write how the same code has to look like in .swf ? I've tried this <object><param name="movie" value="http://www.youtube.com/v/0XxI-hvPRRA"></param><embed src="http://www.youtube.com/v/0XxI-hvPRRA" type="application/x-shockwave-flash" width="425" height="350"></embed></object> but it doesn't work Please, help me
If you're using the load movie function, you can set it to load the movie as a variable name. Something like: loadMovie(target, _root.MyMovieURL); MyMovieURL is the variable, then in your html code do something like this... <param name="movie" value="http://urltoMySWFfile.swf?MyMovieURL=http://www.youtube.com/v/0XxI-hvPRRA"></param> Not sure if that's what you're asking for, but hope it helps.
This might be because, last time I checked, Flash doesn't allow the loading of anything from a domain other than where it's hosted.
Flash 9 introduced: AllowNetworking option When it's set to never, like MySpace has done for all flash files, geturl and loading remotely no longer works. Bad for widgets.