all groups > flash (macromedia) > june 2004 >
You're in the

flash (macromedia)

group:

[flash mx 2004] Scrollpane -- target clip load in ???



[flash mx 2004] Scrollpane -- target clip load in ??? zoollii
6/30/2004 3:34:01 PM
flash (macromedia): Hello !

how can i target a clip loaded in scrollpane ???

scrollpane.myclip._visible; // don't work !!!
scrollpane.myclip.go(); // test do a function ,, don't work !!!!

Can we do this ???

Thank you

Zoollii

Re: [flash mx 2004] Scrollpane -- target clip load in ??? hemendras NO[at]SPAM mindfiresolutions.com
6/30/2004 9:54:43 PM
Hi,

I am not sure how and what are you doing but as far as ScrollPane is concern
for the MX 2004 here is the briefing.

you have to set a movieclip as a content to the scrollpane like

_root.myScrollPane.contentPath = "myMovieClip_A"

"myMovieClip_A" should be there in your library.
Now when you want to access the myMovieClip set as content to your scrollpane
you have to access it as

var myMovieClip_B = eval(_root.myScrollPane.spContentHolder);
OR
var myMovieClip_B = eval(_root.myScrollPane.content);

now myMovieClip_B has a reference to the movie clip in the scrollpane.

now you can do your stuff here as
myMovieClip_B._visible;
myMovieClip_B.go();

You just cann't do like
_root.myScrollPane.myMovieClip_B.............

Good Luck

Hemendra Singh

Mindfire Solutions
Re: [flash mx 2004] Scrollpane -- target clip load in ??? rlc5611
7/1/2004 7:25:07 AM
For MX 2004 scrollpane you should use:

scrollpane.spContentHolder.........

to target the clip inside the scrollpane. Regardless of the name of th
clip you are loading into the scrollpane, its name is "spContentHolder
(for MX 2004). Think of it as the scrollpane using "attachMovie" t
load your clip
-
rlc561
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message91968.htm
Re: [flash mx 2004] Scrollpane -- target clip load in ??? zoollii
7/1/2004 7:22:36 PM
Thank a lot for your answers ! i will try them !

bye !!!

AddThis Social Bookmark Button