Skip to main content
Participating Frequently
October 18, 2009
Answered

Auto Load a .swf in a Flash .Loader

  • October 18, 2009
  • 1 reply
  • 3866 views

Hey,

I'm have googled untill my fingers bled, but I can't find out how to load automatically an external flash file inside a mx.controls.Loader in Flash.

Links for the files are;

http://www.jasminracheldesigns.com/files.rar

Thanks in Advance, Jasmin

This means without a button, it loads when the origianal .swf file loads with the mx.controls.Loader in it!

This topic has been closed for replies.
Correct answer kglad

I can't change the yellowcake_v.swf because the code can only be used in actionscript 3.0, and my whole website is in actionscript 2.0. I was going to loader the loader I'm loading the movie into my original flash website file which i actionscript 2.0 as well.

This is the thread i've been looking at. http://www.vimeo.com/forums/topic:1880 it shows how to put a vimeo video into a flash website. Do you think there is a chance I might be able to change the code so it works in AS2?


again, there's no way an as2 swf can load an as3 swf and have any as3 actionscript work.

you can use getURL() in your as2 swf to open the as3 swf in its own browser window (and therefore its own flashplayer plugin) and, that will work.

1 reply

kglad
Community Expert
Community Expert
October 18, 2009

do you have an loader instance on-stage?  if so, what's its instance name and what timeline is it one?

if not, do you have a loader component in your library?  if so, show the code you used to create a loader instance and assign its contentPath.

Participating Frequently
October 19, 2009

Yes i have a mx.conrols.Loader on stage set to 400x300 which is what the .swf I am trying to play in it's dimensons. The files are also in he zip folder i've linked above, so yo can see open it up and see what the codes are.

kglad
Community Expert
Community Expert
October 19, 2009

what's the instance name of your loader and what code are you using?