PDA

View Full Version : loading properly??


utswim
01-13-2003, 02:38 PM
I'm having a problem with loadMovie() swf's loading properly. Specifically, I'm filling an empty MC with a swf with thumbnail pictures on a photo site. The swf to be loaded has several small boxes at the bottom of the stage with a section title text beneath them. Upon rollover of the boxes, a small cropped version of the picture appears above it. Upon release, the large version appears.

The problem only appears on the web, not when I test the movie in flash or even when I open it with a browser from my hard disk. When I open the page and select a topic, the text beneath the boxes is absent and so are the small images that are supposed to be present on rollover. If I reload the page, it works right. I have a preloader bar with each swf (similar to the opener) but that NEVER loads first, even on my computer, it just hesitates while it loads instead.

I'm really stumped about these discrepencies. Can anybody help!?

Thanks.

yorkeylady
01-13-2003, 06:16 PM
we can help

xxlm
01-13-2003, 08:21 PM
I think you don't check if your var (text) is totaly loaded BEFORE showing the textfield which might recept this var.
So if you use loadvariables look for 'swonk' in the forum, else if you use LoadVars() object use the onLoad event...
Hope it helps.
;)

utswim
01-13-2003, 08:47 PM
Here is the code for the menu button on the main timeline:

on (release){
loadMovie("akpol.swf", "_root.emptyVert01");
unloadMovie("akland.swf");
}

This is for the small box (one of 8) within akpol.swf which displays a thumbnail upon rollover or a large image upon release:

on (rollOver){
//establishes the state of a given thumbnail image
_root.smallPol01Over=true;
_root.smallPol01Out=false;
}
on (rollOut){
_root.smallPol01Over=false;
_root.smallPol01Out=true;
}
on (release){
//directs movie to be loaded and where
loadMovie("ak01.swf", "window01");
unloadMovie("ak02.swf");
unloadMovie("ak03.swf");
unloadMovie("ak04.swf");
unloadMovie("ak05.swf");
unloadMovie("ak06.swf");
unloadMovie("ak07.swf");
unloadMovie("ak08.swf");
}


This is for the actual small thumbnail image:
onClipEvent (load){
_alpha = 0;
}
onClipEvent (enterFrame){
//reacts to different criteria established by that thumbnails button
if (_root.smallPol01Over==true){
x = 15;
if (_alpha>=100){
x = 0;
}
_alpha=_alpha+x;
}
if (_root.smallPol01Out==true){
x = -15;
if (_alpha<=0){
x = 0;
}
_alpha=_alpha+x;
}
}

The large image appears as a separate swf itself loaded into window01 (see above code).

I'm pretty sure that the paths are correct because the only problem occurs via the web. I'm doing it by loading into windows separately so the user doesn't have to download the entire site at once.

To see what it looks like, check out:
http://www.sugrue.com/index11.html -The entire site loads all together.
http://www.sugrue.com/index12.html -Each section (at least the first two, while I sort out the kinks) loads independently. The first section's images are swf's while the second's are jpegs.

Thanks.

xxlm
01-13-2003, 08:56 PM
Ok i rewrite my question...
How did you get the text in your textfield???
Dynamic?!
;)

utswim
01-13-2003, 09:09 PM
The text is actually just a graphic.

xxlm
01-13-2003, 09:37 PM
If you send the fla it will be more easy for us to help you.
;)

utswim
01-13-2003, 09:59 PM
".fla is not a valid file extension"

yorkeylady
01-14-2003, 02:28 AM
I'm new to flash so forgive me if I'm wrong,

from the tutorials I've read the paths should look something like this:

Don't use quotes around a path
loadMovie("akpol.swf", "_root.emptyVert01");

_level0 is same as _root
loadMovie("akpol.swf", _level0.emptyVert01);
loadMovie("akpol.swf",_root.emptyVert01);