Copy link to clipboard
Copied
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!
1 Correct answer
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
what's the instance name of your loader and what code are you using?
Copy link to clipboard
Copied
Doesn't matter the instance name of my loader because I can change it to what I want, that's why people post sample codes that you can fill out yourself. But the loader is called p_loader and I am using Actionscript 1 or 2, I think actionscipt 2.
Copy link to clipboard
Copied
if the instance name of your loader doesn't matter than you must be using the parameters panel to assign contentPath, correct? and you've the autoLoad property to true in that panel?
Copy link to clipboard
Copied
Yes, i've set both of those up correctly (the contentPath and put the autoLoad as true) and the video that's meant to load still doesn't come up.
Copy link to clipboard
Copied
do you see an error message?
Copy link to clipboard
Copied
There's no errors coming up, i can upload the files so you can download them and have a better look if you like. I tried doing it with another .swf file but it didn't load as well.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I am loading a .swf file though, not a FLV and I am loading it in a loader.
http://www.jasminracheldesigns.com/yellowcake_v.swf
that's what I am trying to get to load in the loader.
Copy link to clipboard
Copied
that fla is loading a swf.
do you know how to check the parameters panel?
Copy link to clipboard
Copied
Yes, I do.
That file linked above, is a .swf. I need to get THAT file into a loader that's on another file. I can link the two files if you like but the example you have given me before doesn't really help with the problem I am having now.
Copy link to clipboard
Copied
the file i gave doesn't help you with your problem because your explaination of your problem is incorrect.
you have no failure to load a swf using the loader component.
your problem is you're loading an as3 file into an as2 file and expecting the actionscript in the as3 file to work. that's not possible.
use an as3 loader to load your as3 swf or, change your as3 swf to and as2 swf and load the as2 swf into your as2 loader. those are your only options if you want to use a loader file.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thanks for the help.
Copy link to clipboard
Copied
you're welcome.

