PDA

View Full Version : web flash button



rafnews
February 9th, 2008, 05:25 AM
Hi,

i see in all website made with flash that people have a menu bar with something which looks like button.

those buttons include text and a picture usually and an animation when mouse pointer is over those buttons.

i would like to do the same so i was thinking that inserting a new symbol as button could be the main layout for a button.
inside this button i could insert a layer including dynamic text and another layer for the picture.

i try to setup the dynamic text value on fly directly from my main stage but without success.

if my button instance is called ibut_aboutus and the dynamic text instance is call txt_aboutus.
so i try to do this.ibut_aboutus.txt_aboutus.text = "my new text button";

but this generate me an error as such property does not exist.

how is it possible ?
is there another possibility to do such button without have to convert all my dynamic text to button symbol ?

thx.

A

Felixz
February 9th, 2008, 03:30 PM
is that textField in accessed frame?
I mean u can have a textField in 2nd frame and access it from 1... This will always fail.

rafnews
February 10th, 2008, 05:03 AM
yes it is in accessed frame.
and it has a class as also an object.