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-17-2007, 12:56 AM   #1
nehcdet
Registered User
 
Join Date: Apr 2007
Posts: 15
Thumbs up highlighting text causes movie buttons not to work

I have a movie with some movieclips and some texts in it. The texts are selectable, so that user can highlight the texts and do a ctrl-c copy. The movieclips has some onRelease/onPress event listeners.

Everything works fine until user highlights the texts. After user has done that, the movieclips start to not catch every event. I mean not every onRelease/ event can be caught any more. In about 50% of the case, flash stops to dispatch these events.

Has anyone experience the same thing? Any clue?

Your help is appreciated.

Ted
nehcdet is offline   Reply With Quote
Old 05-20-2007, 03:10 AM   #2
nehcdet
Registered User
 
Join Date: Apr 2007
Posts: 15
Default

More investigation reveals it only happens when there's a "compiled clip", in my case a scrollpane, in the library.

Is this a flash bug?

Last edited by nehcdet; 05-20-2007 at 03:13 AM.
nehcdet is offline   Reply With Quote
Old 05-20-2007, 04:45 AM   #3
VikTehOne
Registered User
 
Join Date: Feb 2007
Posts: 43
Default

I usually use button.onRelease=function(){;} and never had any problems... You say you used listeners. Try setting a function directly to the button. I don't know if it will change anything...
VikTehOne is offline   Reply With Quote
Old 05-20-2007, 03:59 PM   #4
nehcdet
Registered User
 
Join Date: Apr 2007
Posts: 15
Default bug?

What you suggested is what I normally do too.

The bug is easy to produce. Just create a new fla, add a textfield, a movie clip onto the stage. In the movie clip code add the onRollOver, onRelease, onPress ... functions. Test it: Highlight the text in the text box, click the mc multiple times. Everything works fine.

Now, add a compiled clip, scrollpane, to your library (you don't even need to add an instance onto stage). Test it: Highlight the text in the text box, click the mc multiple times without moving your mouse. You will see some onPress/onRelease events are not dispatched every time. Instead, sometimes, onRollover/onRollout events were dispatched in place of onPress/onRelease.

I'm attaching the above test fla with trace statements in the event functions. You can see what I mean.
Attached Files
File Type: zip player1.zip (205.4 KB, 80 views)
nehcdet 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tooltips joebwan ActionScript 2.0 17 08-23-2008 01:26 AM
Passing Variable thebutterfly ActionScript 2.0 72 01-24-2006 03:12 PM
Buttons do not work in test movie Morris ActionScript 1.0 (and below) 0 06-30-2005 08:54 AM
If anyone's bored, a custom class . . . retrotron ActionScript 1.0 (and below) 22 05-24-2003 10:01 PM
How to make buttons work in movie clips? supernova0219 Other Flash General Questions 4 08-06-2002 10:26 AM


All times are GMT. The time now is 07:06 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.