Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2007, 02:32 PM
Junior Member
 
Join Date: May 2007
Posts: 22
Default Change mouse cursor when clicking a button - question

Hello,
I have buttons in my swf files to change from one swf to others, like
on (release) {
loadMovie ("Teenies.swf", _root.contenedor);
loadMovie ("CananIntro.swf", _root.mc_video);
}

When clicking one of this buttons it take some time to load the new swf. All swf are on CD-Rom.

Question:
I is there a possibility after relase, to change the standard system mouse pointer to "hourglass mouse pointer" until the next swf has been loaded?

Thank you for any hint.
Walter Zeller
Reply With Quote
  #2 (permalink)  
Old 07-18-2007, 10:18 AM
Junior Member
 
Join Date: Apr 2007
Posts: 22
Default Re:Change mouse cursor when clicking a button - question

The problem is the reading time of the CD.

Maybe you should consider (if the content is not too large) to embed the SWF files (movieclips) inside the main library and call them from the same movie.

I mainly use & prefer this solution...
Reply With Quote
  #3 (permalink)  
Old 07-19-2007, 03:41 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Change mouse cursor when clicking a button - question

By setting the "Application.cursor" property, you can change the cursor at runtime. The following sample shows how to do that.
Reply With Quote
  #4 (permalink)  
Old 07-19-2007, 07:54 AM
Junior Member
 
Join Date: May 2007
Posts: 22
Default Re:Change mouse cursor when clicking a button - question

Thank you for the reply.

I tried that on my computer, but after clicking "set lable" cursor is not changing to "hourglass". As a information, the file "hourglas.ani" is on my computer at c:\windows\cursors\hourglas.ani

I have attched my test at http://www.multimedia-support.eu/dru..._Hourglass.zip

Could you pls. see what the problem is?

Thank you in advance,
Walter Zeller
Reply With Quote
  #5 (permalink)  
Old 07-19-2007, 09:01 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Change mouse cursor when clicking a button - question

Yes, the cursor file is there, as the Windows system is typically installed on "C:\". However, the "windows" directory can be on other drives, for example, "d:\windows", "e:\windows". The location of the windows directory depends on where the windows system is installed. Therefore, we have to use the "Shell.getSpecialFolder" method to get the absolute path name of the windows directory.

It is weird that your sample project can work well without any change but with just the "setcursor.swf" file recreated, as shown in the attached zip file. Have you set the class path of swfkit wrapper classes properly?
Reply With Quote
  #6 (permalink)  
Old 07-19-2007, 09:29 AM
Junior Member
 
Join Date: May 2007
Posts: 22
Default Re:Change mouse cursor when clicking a button - question

Hello,

unfortunatly the setcursor.swf does not show the "hourglas" cursor on my system.

Perhaps I have to set the = "swfkit wrapper classes". Could you pls. tell me where I have to make that?

Thank you in advance.
Walter Zeller
Reply With Quote
  #7 (permalink)  
Old 07-19-2007, 12:29 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Change mouse cursor when clicking a button - question

It works only if you have converted it to an exe file by using swfkit. We have tested it and it should work well.

About the class path for swfkit:

in [flash cs3 or flash 8]->[main menu]->[edit]->[preference]->[actionscript]->[actionscript 2 settings]
add the class path for swfkit, the typical path name of which is
c:\program files\swfkit pro 3\classes

for actionscript 3, the path name should be
"c:\program files\swfkit pro 3\classes 3"

Current swfkit installer cannot set the classpath for flash cs3 automatically, as it is released before flash cs3. The installer of swfkit 3.2 will fix this problem.
Reply With Quote
  #8 (permalink)  
Old 07-19-2007, 04:33 PM
Junior Member
 
Join Date: May 2007
Posts: 22
Default Re:Change mouse cursor when clicking a button - question

Hello,
all works fine know.

Just one last small probelm.

I have set on the first frame of the swf which is loaded the code to change back to standard mouse cursor:

import SWFKit.*;

Application.cursor = null;

But it change only when moving the mouse.

Is there any solution changing the mouse cursor back without having moved the mouse?

Thank you in advance,
Walter
Reply With Quote
  #9 (permalink)  
Old 07-20-2007, 01:33 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Change mouse cursor when clicking a button - question

Sorry, it has been proved to be a bug. If you are using swfkit pro, we will write a ffish script function for you to call windows API to fix this problem.
Reply With Quote
  #10 (permalink)  
Old 07-21-2007, 09:25 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Change mouse cursor when clicking a button - question

Please apply the patch that can be found in the last post of the following thread
http://www.swfkit.com/forum/thread_1_1935.html
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 04:27 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.