Groups | Blog | Home
all groups > macromedia flash sitedesign > march 2007 >

macromedia flash sitedesign : External swfs problem.


bB_
3/1/2007 12:00:00 AM
Hi...
I have the situation on a website where i am loading external swfs into a
movie clip on another swf (navigation page) for the content.
When the site first loads, it automatically calls for the home page content
and it loads.. however when i go to press on another button ("performance")
which displays other content...it doesn't load--my swfs are set up so that the
preloader is on scene 1 and the content is on scene 2... does this affect if my
external swf loads into my movie clip?? do i have to unload content from an MC
before loading new content into it?.. here's an idea of the code i have in my
navigation button:

On (release) {
content.loadMovie("http://blahblahblah.com/performance.swf")
}

a reply would be great... bB_
The Feldkircher
3/1/2007 12:00:00 AM
Hi

When loading content into empty movie clips the previous content is
removed/overwritten.
Does it work locally and not on the Server?
Check your path's to the swf's are correct, have you uploaded your swf's to
the network?
if all else fails enter trace statements everywhere indictating where the
program is executing at any given time.

Usually its a reference to an object that's slightly wrong.

Hope it helps
Clubspinner
3/2/2007 12:20:02 AM
bB_ raises a point that I would like to ask about, what is the best way to
preload external SWFs?

Is it to put the preload code in the SWF or use the MovieClipLoader object and
use loadClip()?

Thanks
The Feldkircher
3/2/2007 3:56:21 PM
Hi

When developing swf's I know I will load into another timeline then I always
put the preloader in the first 3 or 4 frames of the swf
and load the movie into an empty container, using the loadMovie(source,target)
method.

Hope it helps
Clubspinner
3/3/2007 1:15:00 AM
Yes, thanks - this is working well, I just wondered about the other route as I
read about it in the Russell Chun book "Flash Advanced - A Visual Quickpro
Guide" on p. 266. It is not too clear from the book however, hwo to implement
this method. Thanks!!!
bB_
3/3/2007 8:09:24 PM
thanks for your help... i had a lot of conflicting code between the
communication of the external .swf loaded into the MC and the _root clip
itself. after a few days of rock solid amending i have it all working locally.
i will atempt to upload it to my server and check it out from there.. i may not
have compatibility online..however i can solve this. cheers.
AddThis Social Bookmark Button