PDA

View Full Version : Getting params from external SWF


jason211
04-21-2005, 01:09 AM
Hi--first I should warn you, I'm very new to flash. I have a bit of previous coding experience with c++ (got a c- in the class) pascal, and basic(ahh to be a kid again) so I know how coding is structured, but It's been 8 years since I've used any of that info--So I really need detailed suggestions. Oh yeah and I'm really more of an art guy so the right side works better than the left-----

Anyway here's what I am faced with:

I have 500+ quicktime moves that I have coverted to swf's. The company I am working for has asked me to build a pre-loader that can dynamically access the swf's using the same pre-loader over and over--in otherworks they want a componant swf that is a preloader to be used before every swf animation on the website(loading external swf). The animations are in at least 3 diferent formats: 300x400, 400x400, and 300x300. So my preloader esentially needs to read the html from the webpage, load the size params for the swf, load the swf from the site, and display a progress bar while doing that, and then play the swf.
I have gone through several tutorials, but they never seem to be for external files, and there's no information on getting the params. I need all the help I can get--so any suggestion is welcome PLEASE HELP!!!

Thanks,

Jason

tris
04-21-2005, 05:31 AM
It sounds more like the videos should be FLV files than swf files... see http://www.macromedia.com/devnet/mx/flash/articles/getstart_flv.html for more info on flash video. If you're going to have to convert 500+ I'd suggest a program that can batch encode... you could use a batch file and ffmpeg http://www.ffmpeg.org to do this.

In regards to getting parameters in to flash http://www.macromedia.com/go/tn_16417 is one way - you can also pass them in in the query string of the swf file e.g. <param name="file" value="my.swf?my_var=yay&another=yay%20again">

hope that helps a bit.