Page 1 of 1

Can we have a new forum for Flex?

Posted: Sat Aug 23, 2008 4:41 am
by jaoudestudios
Are there any flex 3 experts out there?

I have a few simple questions that I can not seem to find the answer, but i know for someone who has be coding in flex for a few months or more will know the answer.

Basically...

Is there a similar onfocus attribute in flex 3 for a mx:textinput?

basically I would like a function to fire when someone has the cursor in the text input field and then to fire another function when the cursor leaves the text input field.

I know there is click, but it is not quite what I want.

Re: Can we have a new forum for Flex?

Posted: Sat Aug 23, 2008 5:00 am
by onion2k
Moved to Suggestions.

Questions about non-PHP stuff go in Miscellaneous. If there were loads of them about a particular subject then we'd consider setting up a specific folder for them. Yours seems to be the first. That's hardly enough evidence that we're in need of a new folder to contain them all, is it?

Re: Can we have a new forum for Flex?

Posted: Sat Aug 23, 2008 5:25 am
by jaoudestudios
Easy tiger!

Is a flex developer able to help me with my onfocus issue?

Re: Can we have a new forum for Flex?

Posted: Thu Aug 28, 2008 12:26 am
by richardchaven
jaoudestudios wrote:
Is there a similar onfocus attribute in flex 3 for a mx:textinput?

basically I would like a function to fire when someone has the cursor in the text input field and then to fire another function when the cursor leaves the text input field.
activate Event

Event Object Type: flash.events.Event
Event.type property = flash.events.Event.ACTIVATE


Dispatched when Flash Player or an AIR application gains operating system focus and becomes active.

The Event.ACTIVATE constant defines the value of the type property of an activate event object.
Note: This event does not go through a "capture phase" and is dispatched directly to the target, whether the target is on the display list or not.

This event has the following properties:

Property Value
bubbles false
cancelable false; there is no default behavior to cancel.
currentTarget The object that is actively processing the Event object with an event listener.
target Any DisplayObject instance with a listener registered for the ACTIVATE event.
=======================================================================
deactivate Event

Event Object Type: flash.events.Event
Event.type property = flash.events.Event.DEACTIVATE
...

Re: Can we have a new forum for Flex?

Posted: Thu Aug 28, 2008 1:32 am
by jaoudestudios
Thank you :D

Re: Can we have a new forum for Flex?

Posted: Thu Aug 28, 2008 3:36 am
by jaoudestudios
I have a SVG that I pan, using event.currentTarget.startDrag(), it works which is great. But if I use event.target.startDrag() I am able to grab layers in the SVG, I do not want to do this, but I would like to hover the layers and a function to fire. How would I change it to a hover event on the SVG, I have tried everything but none of it seems to work.

Thanks

Re: Can we have a new forum for Flex?

Posted: Thu Aug 28, 2008 3:50 am
by onion2k
Topic moved to the Misc folder.