PDA

View Full Version : information stored in a movieclip


dragoblade
03-27-2008, 12:43 AM
basicly i have a while loop that is creating holders and tabs
they are both mc's in my library
when a tab is clicked the corrisponding holder should become visible

my plan:
so in my while loop i have an event listerner that calles a function
this function finds its caller useing event.target
i need to somehow store information in the tab maybe through a varyable or something to tell me which holder to make visible

is this the best way to get the right solution
how should i store the info, and can u give me the code to acess this

thanks for reading,
but still plz answer

Wino
03-27-2008, 01:00 AM
I would put a textfield into the mc (holderMC.addChild(myTextField)), and put it in the tab's position. When the textfield is clicked (the name of the tab/holder is the textfield's text), you can show it all.

The graphics for the tabs are really just the same thing, repeatedly, with "closed tabs" and one "open tab" that moves under the appropriate textfield. You can do all of this by just swapping out the shape of the tab-header (moving the "open tab" graphic) and changing out the content of the MovieClip.

dragoblade
03-27-2008, 01:25 AM
thanks,
hopefully it will work,
but i rly have no clue what u are trying to say in the 2nd part , it doesn't even seem so relivent
if u are talking about the grafics of when i click on the tab i have that covered already, but thank u anyway,

enless i have a better way as of now i plan on making an invisible text box with a number corisponding to theholder inside the tab

thanks for the response

dragoblade
03-27-2008, 11:10 PM
i have looked it over and all i really need is 2 numbers
should i just use something like x and y of a object