Link to home
Start Free TrialLog in
Avatar of keoktay
keoktay

asked on

How to place a runtime created movie into a scrollpane

Hi,

I have created a new movie clip using             
     mc=createEmptyMovieClip("mc1", 10);      
     mc.loadmovie("xxxxx");

then i want this movie to be loaded in a scrollpane

    scrollPane.contentPath = "mc1" ;

but i get an error that mc1 is not found in the c: drive directory.

Any 1 can help ?

Avatar of Zeffer
Zeffer
Flag of New Zealand image

try..
scrollPane.contentPath = "_level10.mc1" ;

Z
Avatar of keoktay
keoktay

ASKER

Hi ,

Have tried this
    scrollPane.contentPath = "_level10.mc1" ;


However, the picture is loaded not inside the scrollPane , but side by side with the scrollPane.

I read the documentation that scrollPane.contentPath="" set to a file or url or the indentifier of the movieclip . How can i dynamically set the linkage indentifier for the created movieclip ?


If there is a special reason behind your decision to load external image into empty dynamically created movieclip?

you can load image directly into ScrollPane component:

scrollPane.contentPath = "myImage.jpg";

You have also events 'ScrollPane.complete'  and 'ScrollPane.progress' to control the progress of loading external media.

 
 
ASKER CERTIFIED SOLUTION
Avatar of krishnaprathab
krishnaprathab

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of keoktay

ASKER

Hi krishnaprathab,

Thanks !

KT