PDA

View Full Version : Push Button Component


octoboy
10-21-2004, 06:27 AM
Hi,
Can someone please tell me how to make the hand cursor display
when you roll over the push button component?

I have tried typing button.useHandCursor on the same frame of the component and still get the arrow

I have tried looking into creating my own components but I am finding it quite difficult. I wish Marcromedia would make it easier for us designers wanting to create our own custom applications.
Thanks

tg
10-22-2004, 03:42 PM
look at the code inside the component.
find this funciton:

FPushButtonClass.prototype.onRollOver = function ()
{
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
}

add this line:
this.useHandCursor=true;

so it looks like:

FPushButtonClass.prototype.onRollOver = function ()
{
this.useHandCursor=true;
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
}

octoboy
10-23-2004, 12:45 PM
Thanks for your help I will try it this way too if I have any other problems with setting up flash forms in the future.

I have also tried just recently putting that code into frame 5 of the frameActions layer in the FormExample.fla found in the macromedia folder and that worked too. Thanks

Cheers :D