keoktay
asked on
How to place a runtime created movie into a scrollpane
Hi,
I have created a new movie clip using
mc=createEmptyMovieClip("m c1", 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 ?
I have created a new movie clip using
mc=createEmptyMovieClip("m
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 ?
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 ?
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi krishnaprathab,
Thanks !
KT
Thanks !
KT
scrollPane.contentPath = "_level10.mc1" ;
Z