Text on ActionScript 3.0

I don't seem to have much success with this method of
exchange, (so far zero success rate). I would be grateful for any
information on books available on ActionScript CS3. All the books I
have found are on previous versions.
Books can be ordered in local stores. Online purchase is a
problem at the moment.
hopeful

Hi Dave
Thanks for your help so far. I have done a six month course
in Flash (CS2) and the same for ActionScript (CS3). Apart from that
I have created projects for other purposes using Flash, because it
seemed the best approach, so I'd say I'm a relative beginner. I am
trying to complete a number of projects, currently, but have a few
problems which have stopped progress for the moment. I've tried
internet with varying success and this forum, unfortunately with
none. Finding the balance between context and minimising inserted
code is the main problem. For example, yesterday I asked how one
could modify an existing (void) function, to exchange information
with an outer function. The person that replied, told me I didn't
need to nest functions and from what I saw of the reply, showed me
how to remove the nesting, which I had done deliberately. I really
don't know what I did, to give the impression that I needed that
information. I just ended up a bit confused as to how the situation
occurred. I haven't been able to find information on how to set up
an program generated indexed multidimensional array, (though I can
create one from code, i.e. keyed data). The problem is loading
program generated data. Another problem is reseting a ActionScript
created Combo box. I thought the last attempt was close, but got an
"undefined function" error, which suggested that I might need to
import addition code e.g. fl.controls.???, but I don't really
understand what controls apply to what code. So information on that
would be useful. Sending input data to a sharedObject is easy, but
output data not so. Finally, exchanging data between different
frames (Actionscript CS3) is needed in my current menu project, but
I don't know how to do that and wonder if it is really necessary to
send the data outside Flash, to achieve that aim. I would have
hoped Flash would be more self contained.
I don't have a lot of programming experience, though I have
developed basic HTML /CSS webpages, a flash webpage and have a
Maths degree, so I understand basic mathematical concepts. At the
moment I'm finding the hold-ups somewhat frustrating. I just
haven't been able to break through, what I might have considered
moderately basic problems for an experienced programmer. I guess
the problems are more difficult to resolve than I anticipated.
There are more issues, but that should suffice.
I was able to pass on the reference information you provided
to another new user on this site. As well as a title on Flash which
I found useful. So hopefully they may be able to advance a little
themselves.
If you have any suggestions on how I might advance, all
information will be gratefully received.

Similar Messages

  • How can I change Label's text using ActionScript?

    Hi~ everyone~
    I want change Label's text using ActionScript.
    Test.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="init()">
    <fx:Script>
      <![CDATA[
       private function init():void{
        var btn:BtnScript = new BtnScript();
        this.addElement(btn);
      ]]>
    </fx:Script>
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Label x="182" y="149" text="Label" id="lbl"/>
    </s:Application>
    BtnScript.as
    package
    import flash.events.MouseEvent;
    import mx.controls.Alert;
    import spark.components.Button;
    public class BtnScript extends Button
      public function BtnScript()
       super();
       this.addEventListener(MouseEvent.CLICK, eventHandler);
      private function eventHandler(event:MouseEvent):void{
              // lbl.text = "changed text";
           // HOW CAN I ACCESS LABEL IN MXML FILE?
    I'm about to learn flex. Please help me.
    Thanks in advanced.

    You could achive this very easily(but this shouldn't be used in production code as it'll be difficult to manage as the project grows) by defining a static data member varibale of DataType Label something like below, (modified/added code in BOLD)
    Test.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="init()"
          creationComplete="creationCompleteHandler(event)">
    <fx:Script>
      <![CDATA[
       private function init():void{
         var btn:BtnScript = new BtnScript();
         this.addElement(btn);
       private function creationCompleteHandler(event:FlexEvent):void{
         Model.someLabel = lbl;
      ]]>
    </fx:Script>
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Label x="182" y="149" text="Label" id="lbl"/>
    </s:Application>
    BtnScript.as
    package
      import flash.events.MouseEvent;
      import mx.controls.Alert;
      import spark.components.Button;
      public class BtnScript extends Button
        public function BtnScript()
          super();
          this.addEventListener(MouseEvent.CLICK, eventHandler);
        private function eventHandler(event:MouseEvent):void{
              // lbl.text = "changed text";
          // Now use Model.someLabel which is basically 'lbl'.
          Model.someLabel.text = "changed text";  //Mission Accomplished....
    Model.as
    package
      public class Model
        public static someLabel:Label;
    Note: This approach is just to give you an idea but instead should use the MVC pattern.

  • Flash 8 - text in actionScript window is not anti-aliased

    I just moved over to Flash 8 and the text in the actionscript
    window is not anti-aliased like it is in 7. Is there a preference
    setting somewhere that I haven't discovered yet?
    thanks

    I don't think so.

  • Why I can't search text in actionscript in a sprite

    I use Adobe Flash CS3.
    I want search a string in the as of a sprite. 
    I use "edit"-->"find and replace", the editbox are:  "current document", type--"text",  text---"trace". and I click "search all.
    I can't fine anything, but the string is in one of the sprites.
    Haw can I find the string in the sprites, help me!

    I believe that search only works on objects that are on a timeline. So if the sprite you are looking for is in the Library and created only through code you won't be able to find it.
    What I usually do is drag everything onto some new empty keyframe and then do the search. Once I figure out where the code I need is then I delete that frame and work on the item from the library.

  • Kerning Dynamic Text through actionscript

    Hey,
    i know there is a way to assign a numeric leading property to
    dynamic text through the AS TextFormat class, and there is a
    boolean value to determine if text is kerned or not through
    TextFormat.
    What I want ot do is assign a kerning number to the text like
    you can using the property inspector when you drop a dynamic text
    instance on the Stage. Is this possible?
    I am creating a text field using AS and then manipulation it
    as such:

    I think the property you are looking for is called
    "letterSpacing". Using your example:
    txtFmt.letterSpacing = 10; // put 10 pixels before each
    character
    Tim

  • Read text with actionscript

    I have been looking all around for this answer but I never
    really found the exact answer I'm looking for.... I need something
    that would read a .txt file and compare it to a variable containing
    a .txt file (already loaded), and if it is the same then it will do
    an action.
    My case is that I have 1 file for each language (3 languages)
    containing the same information but in a different language. And I
    would like to check what language is already loaded, so that it
    knows what language file it should load in the variable when
    someone presses a button in the nav bar.
    I hope I'm clear enough. Please let me know if you know or if
    you need me to find a better way to say this.
    Thanks you.

    Sorry. Tried writing the code for you very late last night.
    Now that I am a bit more awake, here are step by step instructions
    to create a small version of what I am talking about. You will have
    to modify it to fit your exact situation.
    1) create a new flash file and save it on the hard-drive.
    2) Create a new text file inside notepad or equivalent
    program.
    3) In this file, write content=Welcome to our home. Save it
    as en_welcome.txt, making sure to save it in the same folder as
    your flash file.
    4) Create another new text file inside notepad.
    5) In this file, write content=Bienvenidos a nosotros casa.
    Save it as sp_welcome.txt making sure to save it in the same folder
    as your flash file.
    6) In your new flash file, create a dynamic text field on the
    stage. Set the variable field in the options bar to content.
    7) Select the text field and create a symbol out of it. Name
    it something you'll remember. Give it an instance name of target_mc
    on the Stage.
    8) Create a new layer in the main movie for your language
    menu. Create two buttons on the stage...one for English and one for
    Spanish. Give each a proper instance name, in my code, I'll be
    using "english_btn" and "spanish_btn".
    9) Add a new layer to the main movie again for your standard
    menu. Create a static text field with the word "Welcome" in it.
    Select the word welcome and create a symbol out of it named menu
    and give it an instance name of menu. Double click the new symbol
    on the stage. Select the word welcome and create another symbol out
    of it named Welcome and give it an instance name of welcome.
    10) Now we start coding

  • I have attempted to have a hyperlink text using actionscript:

    var t:TextField = new TextField();
    t.htmlText = "hello world"
    + "<a href='weeTestPage.html'target='_self'><u>click here</u></a>";
    t.autoSize = TextFieldAutoSize.LEFT;
    addChild(t);
    when I run the code it always creates a new window to open up the file
    in. I have even attempted to switch out _self with _top, _parent, and _blank, always with the same result.
    I simply want the file to open up in the same window. Any suggestions?

    I understand that the code below should work but it doesn't, I have to take the underline before self out, for the hyperlink to work at all, and then it creates another window for the file. There may some sort of glitch that I am not aware of. But the code below does not work as is in my app. Any further suggestions?
    var t:TextField = new TextField();
    t.htmlText = "hello world"+ "<a href='weeTestPage.html' target='_self'><u>click here</u></a>";
    t.autoSize=TextFieldAutoSize.LEFT;
    addChild(t);

  • OpenScript ActionScript Error from Adobe Flash Player 9

    I get a popup ActionScript Error from Adobe Flash Player 9 when trying to record a Flex Tree object using OpenScript 9.2.1.0 Production. Specifically, I click on the Triangle that opens/closes the view of the child nodes underneath the parent node of a Tree. Initially, the triangle arrow already pointing down and the child node is already showing. When I click on the triangle, the node underneath goes up and disappears under its parent node and the traingle is then pointing to the parent node.
    When I click this triangle in Firefox without OpenScript recording, I don't get any errors, popups, or issues. It seems to work correctly. During OpenScript recording, the recording seems to crash with a popup that is titled "Adobe Flash Player 9" and has the text "An ActionScript error has occurred" with the following error message:
    Error: Unable to find automation method 'mx.events.TreeEvent' for class '[object OSAutomationClass]'.
         at mx.automation::AutomationManager/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1680]
         at mx.automation.delegates.core::UIComponentAutomationImpl/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\delegates\core\UIComponentAutomationImpl.as:281]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
         at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::dispatchTreeEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:3334]
         at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::onTweenEnd()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:2193]
         at mx.effects::Tween/endTween()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:524]
         at mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:565]
         at mx.effects::Tween$/timerHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:179]
         at flash.utils::Timer/_timerDispatch()
         at flash.utils::Timer/tick()
    I can click "Dismiss All" from the Adobe popup and Firefox isn't affected. Openscript doesn't appear to have any issues and the recording can be continued or stopped. It records the click on the tree and the "Dismiss All" from the popup both as "Click object("@id='main'") as type "web" instead of "flexFT".
    I am using OATS 9.2.1.0 with Firefox 3.6.17. I am testing a Flex 3.3 SDK built application. I installed the Adobe Flash Player 9 that came with the Flex SDK 3.3 before installing OATS.
    Any help on this issue is greatly appreciated.
    Some other information that may prove to be useful: I cannot seem to get OpenScript to consistently play back the actions on the same tree described above. Sometimes it works and sometimes it does not. I've tried using "Select Tree", "Select List", and "Click Tree" and each one is inconsistent on playback. It will report "Target Not Found".
    I have the console output for a "Target Not Found" failure below, where line 100 is ".select("GRID1>server1", TriggerEvent.Mouse," from the following Java generated on recording with OpenScript:
    flexFT
    .list(
    15,
         "/web:window[@index='0' or @title='My Title']/web:document[@index='0']/flex:application[@automationIndex='index:-1' and @label='' and @className='main' and @automationName='main' and @automationClassName='FlexApplication' and @id='main']/flex:canvas[@automationIndex='index:1' and @label='' and @className='mx.containers.Canvas' and @automationName='mainCanvas' and @automationClassName='FlexCanvas' and @id='mainCanvas']/flex:dividedBox[@automationIndex='index:16' and @label='' and @className='view.MainMediator' and @automationName='mediator' and @automationClassName='FlexDividedBox' and @id='mediator']/flex:accordion[@label='' and @automationName='index:0' and @id='null' and @automationIndex='index:0' and @className='mx.containers.Accordion' and @automationClassName='FlexAccordion']/flex:canvas[@automationIndex='index:1' and @label='My%20View2' and @className='view.my.MyNavigator' and @automationName='My%20View2' and @automationClassName='FlexCanvas' and @id='null']/flex:canvas[@label='' and @automationName='index:1' and @id='null' and @automationIndex='index:1' and @className='mx.containers.Canvas' and @automationClassName='FlexCanvas']/flex:list[@automationIndex='index:2' and @className='view.MyGridTree' and @automationName='index:2' and @automationClassName='FlexList' and @id='null']")
    .select("GRID1>server1", TriggerEvent.Mouse,
         KeyModifier.None);
    think(1.0);
    Console Output:
    11:29:09,093 INFO [EntryPoint] Started with arguments: -port 7777 -jwg C:\OracleATS\OFT\test06_ff\test06_ff.jwg
    11:29:09,250 INFO [EntryPoint] Received StartScriptEvent
    11:29:09,250 INFO [EntryPoint] Running "test06_ff" ...
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
    11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
    11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.flexFT.api.FlexFTService"
    11:29:09,484 INFO [1] Initializing VU 1 for script test06_ff
    11:29:21,546 INFO [1] Step: [1] Redirect (/Page1/)
    11:29:21,718 INFO [1] Step: [2] Login Page (/main.html)
    11:29:32,218 INFO [1] Step: [3] My Title (/main.html)
    11:30:11,453 ERROR [1] Error in section Run at line (script.java:100). Target not found
    oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
         at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
         at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
         at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
         at script.run(script.java:100)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
         at java.lang.Thread.run(Thread.java:619)
    11:30:11,453 ERROR [1] Iteration 1 failed at line (script.java:100). Target not found
    oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
         at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
         at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
         at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
         at script.run(script.java:100)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
         at java.lang.Thread.run(Thread.java:619)
    11:30:12,468 INFO [1] Finished VU 1 for script test06_ff
    Thanks,
    John

    I get a popup ActionScript Error from Adobe Flash Player 9 when trying to record a Flex Tree object using OpenScript 9.2.1.0 Production. Specifically, I click on the Triangle that opens/closes the view of the child nodes underneath the parent node of a Tree. Initially, the triangle arrow already pointing down and the child node is already showing. When I click on the triangle, the node underneath goes up and disappears under its parent node and the traingle is then pointing to the parent node.
    When I click this triangle in Firefox without OpenScript recording, I don't get any errors, popups, or issues. It seems to work correctly. During OpenScript recording, the recording seems to crash with a popup that is titled "Adobe Flash Player 9" and has the text "An ActionScript error has occurred" with the following error message:
    Error: Unable to find automation method 'mx.events.TreeEvent' for class '[object OSAutomationClass]'.
         at mx.automation::AutomationManager/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1680]
         at mx.automation.delegates.core::UIComponentAutomationImpl/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\delegates\core\UIComponentAutomationImpl.as:281]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
         at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::dispatchTreeEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:3334]
         at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::onTweenEnd()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:2193]
         at mx.effects::Tween/endTween()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:524]
         at mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:565]
         at mx.effects::Tween$/timerHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:179]
         at flash.utils::Timer/_timerDispatch()
         at flash.utils::Timer/tick()
    I can click "Dismiss All" from the Adobe popup and Firefox isn't affected. Openscript doesn't appear to have any issues and the recording can be continued or stopped. It records the click on the tree and the "Dismiss All" from the popup both as "Click object("@id='main'") as type "web" instead of "flexFT".
    I am using OATS 9.2.1.0 with Firefox 3.6.17. I am testing a Flex 3.3 SDK built application. I installed the Adobe Flash Player 9 that came with the Flex SDK 3.3 before installing OATS.
    Any help on this issue is greatly appreciated.
    Some other information that may prove to be useful: I cannot seem to get OpenScript to consistently play back the actions on the same tree described above. Sometimes it works and sometimes it does not. I've tried using "Select Tree", "Select List", and "Click Tree" and each one is inconsistent on playback. It will report "Target Not Found".
    I have the console output for a "Target Not Found" failure below, where line 100 is ".select("GRID1>server1", TriggerEvent.Mouse," from the following Java generated on recording with OpenScript:
    flexFT
    .list(
    15,
         "/web:window[@index='0' or @title='My Title']/web:document[@index='0']/flex:application[@automationIndex='index:-1' and @label='' and @className='main' and @automationName='main' and @automationClassName='FlexApplication' and @id='main']/flex:canvas[@automationIndex='index:1' and @label='' and @className='mx.containers.Canvas' and @automationName='mainCanvas' and @automationClassName='FlexCanvas' and @id='mainCanvas']/flex:dividedBox[@automationIndex='index:16' and @label='' and @className='view.MainMediator' and @automationName='mediator' and @automationClassName='FlexDividedBox' and @id='mediator']/flex:accordion[@label='' and @automationName='index:0' and @id='null' and @automationIndex='index:0' and @className='mx.containers.Accordion' and @automationClassName='FlexAccordion']/flex:canvas[@automationIndex='index:1' and @label='My%20View2' and @className='view.my.MyNavigator' and @automationName='My%20View2' and @automationClassName='FlexCanvas' and @id='null']/flex:canvas[@label='' and @automationName='index:1' and @id='null' and @automationIndex='index:1' and @className='mx.containers.Canvas' and @automationClassName='FlexCanvas']/flex:list[@automationIndex='index:2' and @className='view.MyGridTree' and @automationName='index:2' and @automationClassName='FlexList' and @id='null']")
    .select("GRID1>server1", TriggerEvent.Mouse,
         KeyModifier.None);
    think(1.0);
    Console Output:
    11:29:09,093 INFO [EntryPoint] Started with arguments: -port 7777 -jwg C:\OracleATS\OFT\test06_ff\test06_ff.jwg
    11:29:09,250 INFO [EntryPoint] Received StartScriptEvent
    11:29:09,250 INFO [EntryPoint] Running "test06_ff" ...
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
    11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
    11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.flexFT.api.FlexFTService"
    11:29:09,484 INFO [1] Initializing VU 1 for script test06_ff
    11:29:21,546 INFO [1] Step: [1] Redirect (/Page1/)
    11:29:21,718 INFO [1] Step: [2] Login Page (/main.html)
    11:29:32,218 INFO [1] Step: [3] My Title (/main.html)
    11:30:11,453 ERROR [1] Error in section Run at line (script.java:100). Target not found
    oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
         at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
         at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
         at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
         at script.run(script.java:100)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
         at java.lang.Thread.run(Thread.java:619)
    11:30:11,453 ERROR [1] Iteration 1 failed at line (script.java:100). Target not found
    oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
         at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
         at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
         at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
         at script.run(script.java:100)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
         at java.lang.Thread.run(Thread.java:619)
    11:30:12,468 INFO [1] Finished VU 1 for script test06_ff
    Thanks,
    John

  • Best practice? Loading text with XML or AS?

    I am developing some instructional material that will include
    some practice questions. I know of 2 ways to handle the dynamic
    text, but am not sure what is considered best practice in the Flash
    community. Is XML the best, fastest or more efficient than
    embedding the text into actionscript?
    Thanks!
    Brad

    If the questions will ever need to be changed, updated, or
    edited, then XML would be the best.
    If you just need the quickest way to build your Flash and not
    have to worry about loading external files and what to do if the
    file isn't available, then put them into the body of the
    FLA.

  • UEEEE displayed instead of text

    Hi, I'm learning how to program from a book I purchased and i'm making a simple guessing game. The programming is as follows...
    package
              import flash.display.MovieClip;
              import flash.events.MouseEvent;
              public class Main extends MovieClip
                        var startMessage:String;
                        var mysteryNumber:uint;
                        public function Main()
                                  init();
                        function init():void
                                  //initialize variables
                                  startMessage = "I'm thinking of a number between 1 and 100";
                                  mysteryNumber = 50;
                                  //initialize text fields
                                  output.text = startMessage;
                                  input.text = "";
                                  input.backgroundColor = 0xFFCCCCCC;
                                  input.restrict = "0-9";
                                  stage.focus = input;
    the problem is whenever I test it. I get no errors. In the text box (instance named "output") instead of saying, "I'm thinking of a number between 1 and 100" it is saying "UEEEE". I ran it with debuging permited and it told me I should embed the text or use device central however, the book says not to though.

    embed your text and add no text to output in the ide.  only assign text with actionscript unless you use a static textfield.
    (and, get a new book if it really adises against embedding fonts.)

  • HTML in Actionscript

    When I paste HTML text from Dreamweaver into Actionscript, to
    appear in a dynamic text field, Actionscript chokes on any line
    spaces between tags (which Dreamweaver automatically puts in). I
    tried manually deleting all the line breaks, but the text is so
    long, I end up with a single, incredibly unwieldy line of code.
    There must be another way of getting Actionscript to accept
    HTML text with invisible line breaks between the tags. Does anyone
    know? Or do I have to load the HTML text from an external file? I'm
    already loading a CSS stylesheet from an external file, maybe the
    text needs to be too. Especially as I have several paragraphs of
    text. Thanks!

    you can use something like the following to make your code
    more eyeball friendly:

  • Newborn Newbie Needs To Edit Flash Template Text

    First, I AM learning Flash 8 at Lynda.com. However I have the immediate need to know how to edit the text in a .fla file in F8. I am fairly proficient in Dreamweaver 8 and Photoshop CS, although that may not matter in the case of Flash.
    I do not know how to get at nor edit the text in an .fla file. I've opened an .fla in Flash but it looks like everything's on one layer and I assumed Flash was like PS in that there are many layers of content. I tried but I mangled it badly. I don't really know how the text tools work in Flash.
    I purchased the following template from Flashden:
    http://flashden.net/item/md-portfoliosite-v2/full_screen_preview/3109
    Xml files are included but unfortunately they only drive the galleries and not the rest of the site. Can someone please school me in very very (to the 100th power) basic steps on how I get at this text, edit it, and how I convert the .fla to a .swf and export it to Dreamweaver?
    I have attached the .swf file.
    THANK YOU!!!!!!

    The text may be in an external .txt or .xml file. If you think that the text is written directly in the Flash movie, you can use the Find and Replace tool to find the text. Open the movie, select the stage window, go to the Edit menu and select find. When this window opens type in some of the text that you're trying to find, select Text and Actionscript in the options and and hit the find button. This should give you a list of the places where that text exists in your movie.

  • How to Set the Text of an Onstage TextField?

    I'm trying to set an onstage TextField instance's "text" property, while maintaining embedded fonts and its onstage appearance.
    Problem Encountered: Text doesn't show up when setting text via ActionScript on an on-stage TextField w/ embedded text.
    Workaround: Create and assign a TextFormat object:
    defaultTextFormat = new TextFormat('Arial', 100, 0x000000, true, true);
    Annoyance: This defeats the purpose of styling text with the IDE.
    Possible Solution: Import the embedded font to the library and export for ActionScript?

    My problem was actually that merely setting the *text* property caused my dynamic TextField w/ embedded font to not display any text. BUT, I just re-tested this with a new file, and the problem doesn't occur. Only thing I can think of is -- my FLA was created with an older version of Flash... possibly MX 200(4?). Could this be the issue?

  • Bold and italic fonts in dynamic text fields.

    I have a dynamic text field with the text "IMAGES". The font
    is Arial, it has BOLD and ITALIC checked, and has basic Latin fonts
    embedded. Now, I use Actionscript to change the text:
    textField.text = "IMAGES";
    Suddenly the text disappears! Now, it seems to me that since
    BOLD and ITALIC are checked on the text field, changing the .text
    value should simply change the text itself, which should then be
    rendered in bold and italic, and since I have bold+italic Latin
    glyphs embedded, it should display properly. But what's clearly
    happening is that when I set the text using Actionscript, it is
    attempting to display the NORMAL font instead, and since it's not
    embedded, it won't display. I know this because if I create another
    proxy text field off the screen and embed the NORMAL Arial glyphs,
    the original text field's text will display just fine - as
    normal-weight text.
    But why is this? Do I have to use a TextFormat object to set
    the text to Bold and Italic EVERY time I want to dynamicaly change
    the text? This seems silly. I simply want my text field to be bold
    and italic every time the text changes, and NO normal text!
    Any ideas?

    I met the same problem using ActionScript3 and Flash Professional CS5. There are two problems with dynamic TextFields:
    - When you set style "Bold" for a text field in CS5, the "bold" property is not available in the TextField object in ActionScript, its defaultTextFormat.bold is alway false; I don't know if we can get this property anywhere else.
    - When you change the text of the dynamic TextField object, its style changes to normal no matter whether it was bold previously.
    This is really a bug in TextField, Adobe should fix this to implement TextField in an expected way.

  • Text as outlines in flash 8

    okay, so i've got a situation where i actually want to treat
    text as the shapes the letter forms create and not the outter
    bounding box of the movieclip.
    I'm dynamically making text in actionscript, then wanting to
    assign rollover actions to it. The problem is im making a bunch of
    text layers all overlapping, and i'd really like the user
    experience to be if they roll over the actual text it trips the
    events but if they roll over white space aroudn the text it does
    not.
    flash used to behave this way and we'd have to put
    transparent movies behind the text to make it treat the whole area
    as a bounding box so buttons would work well. It looks like in v8
    that was changed to automatically use the bounding area.. i'd
    really like it to only trip when the user rolls over the letter
    form.. any chance there's a parameter i can set on that movieclip,
    or did the 'fix' remove the functionality entirely?
    -frz

    1.  make sure the text is static.
    2.  make sure the color is not the same as the background color the text overlays.
    3.  make sure nothing's covering the text.
    4.  make sure your text is on-stage.
    if you can't see your text, at least, one of the above 4 is not true.

Maybe you are looking for

  • I need to download Firefox 1.5 or 2.0 in order to run a program that is not supported in the newer versions of firefox. How can I get the older versions?

    I need an older version of Firefox to run a program that is only supported on Firefox 2.0 or 1.5. Where can I download this older version of Firefox? == This happened == Not sure how often == User Agent == Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10

  • How to transfer data to a new MacBook Pro?

    My wife has a 12" Power PC G4. Running OS 10.5.8. She is receiving a brand new MacBook Pro today from Apple. How do we transfer all her "everything" from the G4  to the new computer? Thx, Steve

  • Adjustment Layer + Ellipse Mask = Crash

    Adobe Premiere Pro CC 8.0 Discovered an interesting easily repeatable bug on my end. I'm not sure how innovative of an approach this is - but it made perfect sense to me to use an adjustment layer as a power mask - set my mask size and placement up o

  • I E 8  Pop up Problem

    Whenever I open IE or go to a new webpage, I get a pop-up telling me "A website wants to open web content using this progra on your computer. The program will open outside of protected mode. Internet Explorer's protected mode helps protect your compu

  • Unable to Upgrade to Aperture 2.1.2

    I am currently running Aperture version 2.0 (fully licensed and registered with Apple), and I have just downloaded Aperture version 2.1.2 from the apple site The site takes you though an automated download and upgrade process. The download was comple