Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Auto Load a .swf in a Flash .Loader

New Here ,
Oct 18, 2009 Oct 18, 2009

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!

TOPICS
ActionScript
3.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 24, 2009 Oct 24, 2009

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.

Translate
Community Expert ,
Oct 18, 2009 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 18, 2009 Oct 18, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 18, 2009 Oct 18, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 19, 2009 Oct 19, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 19, 2009 Oct 19, 2009

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 22, 2009 Oct 22, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2009 Oct 22, 2009

do you see an error message?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 22, 2009 Oct 22, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2009 Oct 22, 2009

here's a sample fla and test.swf that shows how to use the loader component.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 23, 2009 Oct 23, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 23, 2009 Oct 23, 2009

that fla is loading a swf.

do you know how to check the parameters panel?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 24, 2009 Oct 24, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 24, 2009 Oct 24, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 24, 2009 Oct 24, 2009

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 24, 2009 Oct 24, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 27, 2009 Oct 27, 2009

Thanks for the help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 27, 2009 Oct 27, 2009
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines