Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2009, 12:37 PM
Junior Member
 
Join Date: Mar 2009
Posts: 19
Default Drag Window AS3 - Flash Player 10

Hi

I can't get this to work. I've enabled

APPLICATION DEFINITION > INTERACTION > Left Mouse Button Click > Drag Window

I'm using a borderless window.

Please help!

Regards
Reply With Quote
  #2 (permalink)  
Old 04-03-2009, 08:32 AM
Junior Member
 
Join Date: Mar 2009
Posts: 19
Default

I guess this is a bug? Is there an estimated fix date please?

To confirm I'm using:

CS3 Pro
AS3
Flash Player 10
Vista

Kind regards
Reply With Quote
  #3 (permalink)  
Old 04-05-2009, 12:12 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

Yes, it's a problem, but it's hard to say if it's a bug. The situation is that in as3, the movie clips cannot be dragged.

The "drag" feature of swfkit works in the following way. SWFKit first determines whether the mouse cursor is in an input field. If not, it will drag the main window; otherwise it will do nothing. In as2, everything works well: the text feilds cannot be dragged, and any other movie clips have no problem. However, in as3, the situation has been changed - swfkit can no longer distinguish an input field from movie clips. Therefore, in as3, only the background and the "graphic" symbols can be dragged.

To deal with this problem, we built a patch, which can be found at
http://www.swfkit.com/download/swfkit/patch090405.zip

To apply this patch, please unzip it into the folder "c:\program files\swfkit pro\data", and overwrite the old files.

This patch introduces a new method:

Application.setDragMode(true);

The default drag mode is false, the same as without this patch. When the drag mode is set to true, anything can be dragged, even if an input field. So with this patch, the problem of undraggable in as3 can be solved. Of source if you're still working with as2, you don't need to call this method.

For the case you work with as3, and you don't want to drag input fields, you can create a graphic symbol, without any movie clips under or above it, as the title bar, which can be dragged without calling the above method.
Reply With Quote
  #4 (permalink)  
Old 04-06-2009, 09:50 AM
Junior Member
 
Join Date: Mar 2009
Posts: 19
Default

Working great now thank you 8)
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:41 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.