PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon May 21, 2018 9:23 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Aug 23, 2008 4:41 am 
Offline
DevNet Resident
User avatar

Joined: Wed Jun 18, 2008 8:32 am
Posts: 1483
Location: Surrey
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.


Top
 Profile  
 
PostPosted: Sat Aug 23, 2008 5:00 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
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?


Top
 Profile  
 
PostPosted: Sat Aug 23, 2008 5:25 am 
Offline
DevNet Resident
User avatar

Joined: Wed Jun 18, 2008 8:32 am
Posts: 1483
Location: Surrey
Easy tiger!

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


Top
 Profile  
 
PostPosted: Thu Aug 28, 2008 12:26 am 
Offline
Forum Newbie

Joined: Thu Aug 28, 2008 12:18 am
Posts: 2
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
...


Top
 Profile  
 
PostPosted: Thu Aug 28, 2008 1:32 am 
Offline
DevNet Resident
User avatar

Joined: Wed Jun 18, 2008 8:32 am
Posts: 1483
Location: Surrey
Thank you :D


Top
 Profile  
 
PostPosted: Thu Aug 28, 2008 3:36 am 
Offline
DevNet Resident
User avatar

Joined: Wed Jun 18, 2008 8:32 am
Posts: 1483
Location: Surrey
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


Top
 Profile  
 
PostPosted: Thu Aug 28, 2008 3:50 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
Topic moved to the Misc folder.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group