View Full Version : Component seems to randomly respond
najamd
07-28-2006, 06:58 PM
Hey Guys,
I have finally gotten Window component working thanks to Xeef and Sleekdigitals help. Now i'm having some kind of odd problem where the Window component some how is NOT allowing all the messages to be sent to the MovieClip inside it.
I have uploaded the file to show..
i have made a text field at root level that a user uses to enter data and then he clicks send and it gets sent of to the Movieclip inside the Window component.. thing is... if you randomly press the send button.. not all the messages go through.. it sometimes goes through and sometimes does not... :confused:
To see the window just press "Log" button.
Thanks,
Najam D.
sleekdigital
07-28-2006, 07:58 PM
I've never encountered this before, but I can tell you what I observed. If you move your mouse a little between each click, it works. But if you keep your mouse at the exact spot as the previous click it doesn't.
Also, if you don't first press "log" to make the window component visible, the button always fires its onPress event, even if you don't move your mouse a little between clicks. But if you ever bring the log window up (and even if you close it later) you have to move your mouse a little between clicks to get the onPress to fire each time.
Strange...
najamd
07-28-2006, 09:57 PM
im telling you these windows things are WEIRD! :-|
najamd
07-28-2006, 10:32 PM
i noticed it was reacting to something... but i thought it was window component being clicked on.. or something... i didnt notice on mouse movement... i had to do a work around on a script just because this when i was trying to kill the window with that log button.. it was not responding to "_visible = false;" too.. any one know whats going on?..
najamd
07-28-2006, 10:34 PM
OR is this a BUG i have found.. :)
sleekdigital
07-29-2006, 09:15 PM
Components don't have a "_visible" property, the property you should use is "visible". Small difference, but it's there.
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00004215.html
najamd
07-31-2006, 10:11 AM
Components don't have a "_visible" property, the property you should use is "visible". Small difference, but it's there.
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00004215.html
I have done the change but did not fix the problem... :confused:
mooska
07-31-2006, 10:34 AM
Dont do it onPress
use
butt.onRelease= function() {
Selection.setFocus(this);
Selection.setFocus(field);//name your field, instance name field in properties panel !
trace("Data to be sent!:"+field.text);
lwin.content.logup(field.text);
};
instead. The problem is fields focus, not component. These two lines should help
najamd
07-31-2006, 11:15 AM
Dont do it onPress
use
butt.onRelease= function() {
Selection.setFocus(this);
Selection.setFocus(field);//name your field, instance name field in properties panel !
trace("Data to be sent!:"+field.text);
lwin.content.logup(field.text);
};
instead. The problem is fields focus, not component. These two lines should help
Thanks mooska!,.. :D that worked!!! Allot of weird problems but thank god its working now.. almost scrapped the whole window thing...
All the best guys and thanks once again!,
;)
ND
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.