From: Craig_MITRE on 2 Aug 2007 13:27 (new to cs3 - java expert...) I'm trying to write some action script to set the default focus of a text component when the applications run... It seems there is a fl.managers.FocusManager that could/should do it... but for some reason, I cannot import that package into my AS. I can import an arbitrary flash.<something>.somthing. Question - In the AS editor, there is a menu (plus sign (+) icon) with all(?) the available packages/classes, languange constructs, etc. Should I be able to use them all? Is there a difference between "fl" and "flash" - assuming "fl" is for Flash just like the product logo "fl"? thanks a bunch.
From: David Stiller on 2 Aug 2007 13:38 Craig, > Is there a difference between "fl" and "flash" - assuming "fl" > is for Flash just like the product logo "fl"? The fl packages are top level classes based on ECMAScript, while the flash packages are specifically Flash Player APIs. > for some reason, I cannot import [fl.managers.FocusManager] > into my AS Are you writing timeline-based code, or a class file? Have you tried the sample code shown in the FocusManager entry of the ActionScript 3.0 Language Reference? David Stiller Adobe Community Expert Dev blog, http://www.quip.net/blog/ "Luck is the residue of good design."
From: Craig_MITRE on 2 Aug 2007 14:22 David, I'm working through some of the examples in the AS3 Documentation. I'm doing the "Greeter.as" tutorial, and am using the Greeter class in an "HelloWorld.fla". the Greeter.as class file seems to be ok.. I'm writing AS in frame 1 of the HelloWorld.fla. The HelloWorld.fla is simple 3 text fields. One static "Type your Name: ", the corresponding text entry field, and a third field to display various messages to the user. I just want the cursor to show up in the text entry filed when the user launches the app. Regarding "top-level" v. "Flash Player Api's" - When working in the Actions editor in the CS3 studio, do I automatically have access to both? Thanks, Craig
|
Pages: 1 Prev: Text Tweening Next: difference between fl and flash libraries? |