Can we have a new forum for Flex?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Can we have a new forum for Flex?

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Can we have a new forum for Flex?

Post 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?
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Can we have a new forum for Flex?

Post by jaoudestudios »

Easy tiger!

Is a flex developer able to help me with my onfocus issue?
richardchaven
Forum Newbie
Posts: 2
Joined: Thu Aug 28, 2008 12:18 am

Re: Can we have a new forum for Flex?

Post 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
...
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Can we have a new forum for Flex?

Post by jaoudestudios »

Thank you :D
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Can we have a new forum for Flex?

Post 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
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Can we have a new forum for Flex?

Post by onion2k »

Topic moved to the Misc folder.
Post Reply