Groups | Blog | Home
all groups > flash actionscript > january 2006 >

flash actionscript : this.my_mc.myMov_mc.test_btn.onRollOver


Poul_Erik
1/1/2006 9:59:49 PM
I don't understand - I have following function on my main timeline
this.my_mc.myMov_mc.test_btn.onRollOver = function(){
trace(this);};

When test_btn start at frame 1 it wotks but when it starts at ex. frame 10 it
don't works.
Can you explain that?
Poul Erik
digital_monkey
1/1/2006 10:53:03 PM
Hi,

If you put your button on frame 10, then to Flash it doesn't exist when you
run your code on frame 1. To fix this, you could either put the code on frame
10 or later, of hide the button (button._visible = false) until you need it.

Hope this helps
simonkuong
1/1/2006 10:54:14 PM
AddThis Social Bookmark Button