Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-12-2006, 11:06 AM   #1
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default [Q] What's the relationship with the setFocus and the ComboBox component???

Howdy...

Maybe there is something I am missing here but I've been scratching my head off for a couple hour, so I thought that I'd ask here and keep scraching...

Okay... Open up a new Flash file in Flash MX 2004...
Create an input textField on the stage and give it an instance name of 'test_txt'...
Add this simple script in another layer...
ActionScript Code:
this.test_txt.onSetFocus = function () {     trace("onSetFocus : " + this.text); } this.test_txt.onKillFocus = function () {     trace("onKillFocus : " + this.text); }
Test movie and you should see that both events get fired when you click inside/outside of the textField...

Now, wicked part... Add a V2 ComboBox component to the stage from the Components panel... Delete it from the stage so that the library can have the component...

Do the test movie again... Click inside the textField and you will get onSetFocus... Click outside the textField and you will see the onKillFocus AND onSetFocus at the same time... So, the textField gets focused again...

Now, delete the ComboBox from the library and do the test movie again... It's back to normal...

What am I missing here??? Anybody???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:44 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.