PDA

View Full Version : Loading content of scrollpane


SyntaxError
03-24-2003, 04:12 PM
Hi all,

In flash MX I have a movie with a Scrollpane component on the 15th frame. I want to load a JPG pic into it, but I want to load it on the first frame of the movie. So on that first frame I put the loadscrollcontent code. Guess what? It doesn't work :(

However, if I put the code on the 15th frame (the frame where the scrollpane actually is), it does work...

Should this be? Isn't there a way around this.... I need the pic to be loaded earlier...

-- Syntax Error

tg
03-24-2003, 04:21 PM
you can't load content into something that doesn't exist... since you scrollpane is not on the first frame, flash doesn't recognize the object your trying to load your jpeg into.

have your scroll pane span all 15 frames.
in frame 1 set your scroll pane to invisible or the alpha to 0.
load your scrollpane.
on frame 15 set your scrollpane to visible or the alpha to 100.

SyntaxError
03-24-2003, 04:24 PM
Wow! Thanks for the incredible fast response!

And thank you for the answer... that should fix it.

-- Syntax Error