PDA

View Full Version : loading external movies from a scrollpane



thea
07-21-2005, 04:52 PM
really trying to work this out for a while now.. theres probably a really simple solution.

right. i've created a scrollpane with thumbnail images inside. each thumbnail image is a button. all thumbnail images are placed within a movieClip 'thumbnails', as scrollpane component displays the contant that way.

now i want to load external movie containing bigger picture of the thumbnail when i click on each of the thumbnails.

i've created the emty movieClip on the main stage and called it 'empty'.

then i've attached
loadMovie ("movieNam.swf", _root.empty)
code to the button in the scrollpane.

what happens is that the movie loads but it seems within the scrollpane movie, as once its loaded all contents disappear from the scrollpane and i can scroll the bigger picture (movie that just loaded) using the scroll bar of the scrollpane.

help anyone? please, its quite ugrent!!!! x

NTD
07-22-2005, 12:42 AM
Hi,

Is the scrollpane inside the movieclip named "empty"? The only way it should be replaced is if your loading to the same depth on the same timeline. One other thing, for loading a movie the preferred code format is....

_root.holderMC.loadMovie("someMovie.swf");

thea
07-22-2005, 09:53 AM
hi, thanks for the reply...

my scrollpane is on the main stage, 'empty' movieClip also on the main stage but empty.

im trying to load movie into 'empty' from the scrollpane, actually thumbnails in the scrollpane which are within the movie 'thumbnails'.

maybe the problem is that movie 'thumbnails' has its own timeline separate to the mainstage, but is there a way to tell movie to load on the main timeline from within another movie that is also on the main timeline??