Archive for the ‘Actionscript 3’ Category

Flash Session Cookie SharedObject

Wednesday, July 7th, 2010

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/net/SharedObject.html

http://en.wikipedia.org/wiki/Local_Shared_Object

http://www.adobe.com/support/flash/action_scripts/actionscript_tutorial/actionscript_tutorial05.html

to change settings:

right click on any flash swf

or

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.html

stored here:

  • Windows XP:
    • For Web sites: %APPDATA%\Macromedia\Flash Player\#SharedObjects\<random code>\<domain>\<path – maybe°>\<object name>.sol
    • And Also: %APPDATA%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys
  • Windows Vista and later:
    • For Web sites: %APPDATA%\Macromedia\Flash Player\#SharedObjects\<random code>\<domain>\<path – maybe°>\<object name>.sol
    • And also: %APPDATA%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys
    • For AIR Applications: unknown, likely similar to the above

Actionscript 3 Make Cursor a Hand

Tuesday, March 2nd, 2010

The goal:

SIMPLY turn the cursor into a hand
(over something that really isn’t a button, in this case it’s just a dynamic URLREQUEST function/link).

Nice and simple solution:

top of your AS3 package:
import flash.ui.Mouse;

in function reacting to mouse movement or loader success:
this.buttonMode = true;

Actionscript 3 Link

Tuesday, March 2nd, 2010

import flash.net.navigateToURL;
this.addEventListener(MouseEvent.CLICK, fOnClick);

private function fOnClick( e : MouseEvent ):void {
var request:URLRequest = new URLRequest(“http://www.google.com”);
navigateToURL(request);
}