Wangsuxor
08-11-2004, 11:15 AM
This is my first time posting help to a forum, so please bear with me.
I am working on a project and I am having the most insane time trying to solve what I think should be stupidly simple. Here it is:
I have made a button (a few actually) and have the "Up" frame and "Over" frames play movie clips, to give the buttons a nice "growing" effect. When testing it on the stage, the mouseover and mouseout work like they are suposed to. Excellent. Things are coming along.
Now, the stupid problem. Some times in my flash presentation, I want to be able to trigger a button's "over" frame using actionscript and not using the mouse or any other events for that matter. Is there some god forsaken way to "simulate" an event?????
For the life of me I can't find it. I have searched far and wide and come up with things that are I thought were close by adding eventListeners to made up objects, and using eventDispatch to try to simulate an event on my made up object to have the button think there is a rollOver on the made up object and do it's thing, but it is not so! I even tried creating a broadcast object to no avail.
Incase anyone asks, yes ,I have also tried to play the button frames with clip controls and that doesn't work either. Nither does tellTarget.
Does someone, please, know how to do this?
Wang
I am working on a project and I am having the most insane time trying to solve what I think should be stupidly simple. Here it is:
I have made a button (a few actually) and have the "Up" frame and "Over" frames play movie clips, to give the buttons a nice "growing" effect. When testing it on the stage, the mouseover and mouseout work like they are suposed to. Excellent. Things are coming along.
Now, the stupid problem. Some times in my flash presentation, I want to be able to trigger a button's "over" frame using actionscript and not using the mouse or any other events for that matter. Is there some god forsaken way to "simulate" an event?????
For the life of me I can't find it. I have searched far and wide and come up with things that are I thought were close by adding eventListeners to made up objects, and using eventDispatch to try to simulate an event on my made up object to have the button think there is a rollOver on the made up object and do it's thing, but it is not so! I even tried creating a broadcast object to no avail.
Incase anyone asks, yes ,I have also tried to play the button frames with clip controls and that doesn't work either. Nither does tellTarget.
Does someone, please, know how to do this?
Wang