Error 1009 compiling in automation_air or automation_airspark library

Hello,
While attempting to use the Flex automation framework, I am running into problems starting the application.
Out of the all of the libraries found under ./libs/automation, the these two libraries give the same error pasted below.  This occurs of I utilize one or both of the suspect libraries in any combination of the other libraries.
The libraries in question are:
<library>libs/automation/automation_air.swc</library>
<library>libs/automation/automation_airspark.swc</library>
Here is the error copied from the error dialog:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\hero_private_beta\frameworks\ projects\framework\src\mx\managers\SystemManager.as:2702]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\hero_privat e_beta\frameworks\projects\framework\src\mx\managers\SystemManager.as:2610]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[E:\dev\hero_private_beta\frameworks\projects\fram ework\src\mx\preloaders\Preloader.as:539]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
The application is an AIR application based on Flex 4.5.
For troubleshooting, I took the swc from previous released 4.x versions and compiled it into the application.  The error above is still given.  I do not see any errors during compilation.  The 1009 error given above only appears when I attempt to start the application.

Change the creation policy on the parent container to 'all'.  The default creation policy is to not create an item until it is needed on the stage, so when you try to reference the custom component that is on the canvas that has not yet been displayed, it hasn't been created yet.

Similar Messages

  • Error 1009 when compile to Air 2.6

    I have three movieclips, imported as part of a FLA file  from inDesign.
    There are 3 frames in the movie labeled, page_one, page_two, and page_three
    There is one movieclip on each frame labeled as follows:
    page_one had movieclip spread_one
    page_two had movieclip spread_two
    page_three had movieclip spread_three
    there is actionscript on each frame:
    on frame 1, (label page_one):
    stop();
    spread_one.addEventListener(MouseEvent.CLICK, moveme1);
    function moveme1(e:MouseEvent):void{
             gotoAndStop("page_two");
    on frame 2 (label page_two):
    stop();
    spread_two.addEventListener(MouseEvent.CLICK, moveme2);
    function moveme2(e:MouseEvent):void{
              gotoAndStop("page_three");
    on frame 3 (label page_three):
    stop();
    spread_three.addEventListener(MouseEvent.CLICK, moveme3);
    function moveme3(e:MouseEvent):void{
              gotoAndStop("page_one");
    when I compile in flash, it works.
    when I compile in air 2.6 I get this error after I click on frame 3 (page_three), in spread_three:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at objecthood_fla::MainTimeline/frame1()[objecthood_fla.MainTimeline::frame1:5]
        at flash.display::MovieClip/gotoAndStop()
        at objecthood_fla::MainTimeline/moveme3()[objecthood_fla.MainTimeline::frame3:8]
    frame1:5 is the line, which works the first time it is clicked on frame 1:
    spread_one.addEventListener(MouseEvent.CLICK, moveme1);
    frame3:8 is the line:
    spread_three.addEventListener(MouseEvent.CLICK, moveme3);
    I created another 3 page test spread in inDesign, with only a rectangle on each page and exported as FLA.
    I used the same code as above and it compiled fine in both air and flash.
    Does anyone have any clues?
    thanks
    e

    I fixed it. it was not the code. it was the use of text. This time when exporting, I  turned the TLF text to pixels, and now it compiles fine. I isolated the problem by dismantling each item in the indesign spread, and seeing when the problem occured. once I removed the type, it had no issues. I was using hanging indents. Maybe that was the issue. All I know is once I turned off the TLF text option, there are no problems.It is sad to lose that feature. but at least it works, and I would rather have my type look well formatted with hanging intents, and correct kearning, even if i have to rasterize it first.
    geez. that was fun.

  • Error in compiling RW libs with g++

    Hi All,
    I am trying to port one project from Solaris (CC) to gcc, which uses RWlibs (of Tools.h++ which comes along with the sunstudio package).
    I am working on RHEL 5.4.
    As a first step i am trying my hand with the following simple program:
    #include <iostream>
    #include <rw/cstring.h>
    int main(){
      RWCString a("TEST Program compiled successfully with gcc");
      std::cout << a << std::endl;
      return 0;
    }when i tried to compile the above sample program i got the following:
    $ g++ -Wall -g rwstring.cc -I/app/sunstudio12/prod/include/CC/rw7
    /app/sunstudio12/prod/include/CC/rw7/rw/generic.h:80: error: ISO C++ forbids declaration of ‘genericerror’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/rstream.h:46: error: expected initializer before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:378: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:378: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:379: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:379: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:381: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:381: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:382: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:382: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:383: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:383: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:480: error: expected constructor, destructor, or type conversion before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:481: error: expected constructor, destructor, or type conversion before ‘&’ tokenAny help/suggestions is appreciated.
    Thanks in advance,
    14341

    RW Tools.h++ is a very old product, which has not had significant updates in many years. Most of the functionality in RW Tools.h++ is available in other libraries, although the programming interface is different. (That is, if you have code written for RW Tools.h++, it will need to be re-written.) You can buy the library from Rogue Wave (roguewave.com) if you want to use it with g++ or other compilers.
    Much of the functionality of RW Tools.h++ is in the C++ Standard library. The Boost libraries are a good addition for anything else that you need.
    The SGI STL and the Apache stdcxx libraries are replacements for the C++ standard library that comes with your C++ compiler. If you download one of these libraries, you will have quite an adventure getting it to build and work correctly with the Studio C++ compiler. But we have already done that work for you. The -library=stlport4 option picks up the STLport version of the SGI STL, and it comes with the compiler. The Apache stdcxx library is available with Solaris 11 for use with Studio C++. Install it in the default locations (in /usr/include and /usr/lib), and use the -library=stdcxx4 option for compiling and linking. Refer to the C++ Users Guide for details about using these alternative libraries.
    For g++, using the SGI STL is not a good idea. You can use Apache stdcxx if you want, but the standard library that comes with g++ is a good one, so I would not recommend replacing it unless you have a specific reason.
    Boost works very well with g++, since it is developed with and tested with g++. Be sure to check your g++ version with any notes about compilers in the version of Boost that you get.

  • First flexunit test is always failing with Error Error #1009: Cannot access a property or method of

    Hi,
    I have flexunit project which I am trying to run on linux server.
    1. I have Tests project.
    2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
    3. Tests project contains 4 tests and first tests always fail with following error,
        test:
         [flexunit] Validating task attributes ...
         [flexunit] Generating default values ...
         [flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
         [flexunit] Using the following settings for the test run:
         [flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
         [flexunit] haltonfailure: [true]
         [flexunit] headless: [false]
         [flexunit] display: [99]
         [flexunit] localTrusted: [true]
         [flexunit] player: [flash]
         [flexunit] port: [1024]
         [flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
         [flexunit] timeout: [60000ms]
         [flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
         [flexunit] Setting up server process ...
         [flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
         [flexunit] Executing 'gflashplayer' with arguments:
         [flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
         [flexunit]
         [flexunit] The ' characters around the executable and arguments are
         [flexunit] not part of the command.
         [flexunit]
         [flexunit] Starting server ...
         [flexunit] Opening server socket on port [1024].
         [flexunit] Waiting for client connection ...
         [flexunit] Client connected.
         [flexunit] Setting inbound buffer size to [262144] bytes.
         [flexunit] Receiving data ...
         [flexunit] Sending acknowledgement to player to start sending test data ...
         [flexunit]
         [flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
         [flexunit]
         [flexunit] Stopping server ...
         [flexunit] End of test data reached, sending acknowledgement to player ...
         [flexunit] Closing client connection ...
         [flexunit] Closing server on port [1024] ...
         [flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
         [flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
         [flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
         [flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
         [flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
         [flexunit] at org.flexunit.listeners::CIListener/dataHandler()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
         [flexunit] <endOfTestRun/>
         [flexunit] Analyzing reports ...
         [flexunit]
         [flexunit] Suite: Tests.Classes.DummyASyncTest
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
         [flexunit] Results :
         [flexunit]
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
        BUILD FAILED
        /mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
        at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
        Total time: 1 second
    Exited with status 1
    [deploy]$
    4. Everytime I run this, any test which is run first will fail and all other tests will pass.
    My Tests.as file is as below:
    * Tests.as
    package
    import Tests.XTestSuite;
    import flash.display.Sprite;
    import mx.core.FlexSprite;
    import org.flexunit.listeners.CIListener;
    import org.flexunit.listeners.UIListener;
    import org.flexunit.runner.FlexUnitCore;
    public class Tests extends Sprite
    public var flexSprite:FlexSprite;
    public function Tests()
    onCreationComplete();
    public function onCreationComplete() : void {
    var core : FlexUnitCore = new FlexUnitCore();
    core.addListener(new CIListener());
    core.runClasses(Tests.XTestSuite);
    public function currentRunTestSuite():Array
    var testsToRun:Array = new Array();
    testsToRun.push(Tests.XTestSuite);
    return testsToRun;
    XTestSuite try to run 4 flexunit test classes.
    one of that flexunit test script class is as below:
    package Tests.Classes
    import flexunit.framework.Assert;
    import org.flexunit.Assert;
    import org.flexunit.asserts.assertEquals;
    public class DummyASyncTest
    [Test]
    public function pause() : void
    assertEquals(true, true);
    trace("I M in dummy");
    All other tests are dummy tests which just asserts(true, true).
    I am not sure if I doing something wrong or forgot to take care of something.

    Hi,
    I have flexunit project which I am trying to run on linux server.
    1. I have Tests project.
    2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
    3. Tests project contains 4 tests and first tests always fail with following error,
        test:
         [flexunit] Validating task attributes ...
         [flexunit] Generating default values ...
         [flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
         [flexunit] Using the following settings for the test run:
         [flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
         [flexunit] haltonfailure: [true]
         [flexunit] headless: [false]
         [flexunit] display: [99]
         [flexunit] localTrusted: [true]
         [flexunit] player: [flash]
         [flexunit] port: [1024]
         [flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
         [flexunit] timeout: [60000ms]
         [flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
         [flexunit] Setting up server process ...
         [flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
         [flexunit] Executing 'gflashplayer' with arguments:
         [flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
         [flexunit]
         [flexunit] The ' characters around the executable and arguments are
         [flexunit] not part of the command.
         [flexunit]
         [flexunit] Starting server ...
         [flexunit] Opening server socket on port [1024].
         [flexunit] Waiting for client connection ...
         [flexunit] Client connected.
         [flexunit] Setting inbound buffer size to [262144] bytes.
         [flexunit] Receiving data ...
         [flexunit] Sending acknowledgement to player to start sending test data ...
         [flexunit]
         [flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
         [flexunit]
         [flexunit] Stopping server ...
         [flexunit] End of test data reached, sending acknowledgement to player ...
         [flexunit] Closing client connection ...
         [flexunit] Closing server on port [1024] ...
         [flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
         [flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
         [flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
         [flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
         [flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
         [flexunit] at org.flexunit.listeners::CIListener/dataHandler()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
         [flexunit] <endOfTestRun/>
         [flexunit] Analyzing reports ...
         [flexunit]
         [flexunit] Suite: Tests.Classes.DummyASyncTest
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
         [flexunit] Results :
         [flexunit]
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
        BUILD FAILED
        /mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
        at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
        Total time: 1 second
    Exited with status 1
    [deploy]$
    4. Everytime I run this, any test which is run first will fail and all other tests will pass.
    My Tests.as file is as below:
    * Tests.as
    package
    import Tests.XTestSuite;
    import flash.display.Sprite;
    import mx.core.FlexSprite;
    import org.flexunit.listeners.CIListener;
    import org.flexunit.listeners.UIListener;
    import org.flexunit.runner.FlexUnitCore;
    public class Tests extends Sprite
    public var flexSprite:FlexSprite;
    public function Tests()
    onCreationComplete();
    public function onCreationComplete() : void {
    var core : FlexUnitCore = new FlexUnitCore();
    core.addListener(new CIListener());
    core.runClasses(Tests.XTestSuite);
    public function currentRunTestSuite():Array
    var testsToRun:Array = new Array();
    testsToRun.push(Tests.XTestSuite);
    return testsToRun;
    XTestSuite try to run 4 flexunit test classes.
    one of that flexunit test script class is as below:
    package Tests.Classes
    import flexunit.framework.Assert;
    import org.flexunit.Assert;
    import org.flexunit.asserts.assertEquals;
    public class DummyASyncTest
    [Test]
    public function pause() : void
    assertEquals(true, true);
    trace("I M in dummy");
    All other tests are dummy tests which just asserts(true, true).
    I am not sure if I doing something wrong or forgot to take care of something.

  • Runtime Error 1009 After Converting from Flex 3.6 to 4.5.1

    I am in the process of converting my application from SDK 3.6 to 4.5.1.  The process is going smoothly thanks to the many resources out there including Greg Lafrance's series http://www.adobe.com/devnet/flex/articles/migrating-flex-apps-part1.html
    I am now getting an error while the application is loading in the browser.  The error text is:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at main/initApp()...
    The error occurs in the AS code where I am attempting to get the URL from the player using the mx.utils.URLUtil library.  In particular, I am setting a global variable in my app to the URL of the visitor.  The specific code for this is:
    this.stServerName=URLUtil.getServerName(mainApp.url);
    Is URLUtil still in use in Flex 4.5.1?  If not, is there another way to get the server name from the host?
    Thanks!
    Lee

    URLUtil still exists.  I would verify what is null.

  • NWDI - Runtime error while compiling JSPs (PAR DC)

    Hello
    I am creating a PAR DC that needs to use some in house developed
    ValueObjects (accessed through a J2EE server library).
    Though my developed JSPDynPage is able to access the ValueObjects, when I try to use it in a JSP, I get a runtime compilation error.
    According to my understanding, setting the PrivateSharingReference helps the controller (jspdynpage) find the classes it needs at runtime,
    But the JSP Compiler does not have access to those classes.
    Can anyone suggest a solution that does not include copying jar files
    manually?
    I have an open CSN about this, but no answer there yet...
    <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smp_custmsg/main.do?event=LOAD&smpsrv=h">CSN 0120025231 0001708061 2005</a>

    <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smp_custmsg/main.do?event=LOAD&smpsrv=h">updated link to CSN 0120025231 0001708061 2005</a>
    full stack trace:
    Exception ID:10:40_27/12/05_0011_2189050
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : pcd:portal_content/zachrefs/com.checkpoint.ReferencingIview
    Component class : com.cp.test.references.ReferencingIview
    User : Administrator
                at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: PortalComponentException
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:127)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                ... 38 more
    Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                ... 43 more
    >>> JSPCompiler >>> error  [email protected]a27
    [EXCEPTION]
    com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    >>> JSPCompiler >>> ERROR in Compiling :JSPFileInfo :29823520
    JSP File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparpageletReferencingIview.jsp
    Class Name: sapportalsjspReferencingIview
    Java File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparworkpagelet\_sapportalsjsp_ReferencingIview.java
    Package Name : pagelet
    Class File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparworkpagelet\_sapportalsjsp_ReferencingIview.class
    Is out dated : false [email protected]a27
    [EXCEPTION]
    com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

  • Could somebody explain why I am getting this Error #1009 message?

    Hi. I am following a tutorial on lynda.com in hopes of learning how to use actionscript 3.0 and my copy of flash CS4 to create games. I wrote my code exactly like it showed in the tutorial, but for some reason I will occasionally receive an error that says
    "TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Monster/die()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.motion::AnimatorBase/end()
    at fl.motion::AnimatorBase/handleLastFrame()
    at fl.motion::AnimatorBase/nextFrame()
    at fl.motion::AnimatorBase/handleEnterFrame()"
    It doesn't happen all the time but it will every once in a while. There doesn't really seem to be anything specifically that triggers it either. I also happened to notice that not all of the enemies respond to being clicked on. I don't know if these two things are related or not. I don't know if the error is caused by the code for the monster library item or the code for the main timeline. Thank you in advance for looking at my code.
    This is my code for the monster library item:
    import fl.motion.Animator;
    import fl.motion.MotionEvent;
    var this_xml:XML = <Motion duration="30" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
    <source>
      <Source frameRate="10" x="275" y="200" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="monster">
       <dimensions>
        <geom:Rectangle left="-32.5" top="-32.95" width="65.05" height="65.95"/>
       </dimensions>
       <transformationPoint>
        <geom:Point x="0.49961568024596464" y="0.49962092494313876"/>
       </transformationPoint>
      </Source>
    </source>
    <Keyframe index="0" tweenSnap="true" tweenSync="true">
      <tweens>
       <SimpleEase ease="0"/>
      </tweens>
    </Keyframe>
    <Keyframe index="29" tweenSnap="true" tweenSync="true" scaleX="2.782" scaleY="2.697">
      <tweens>
       <SimpleEase ease="0"/>
      </tweens>
    </Keyframe>
    </Motion>;
    var this_animator:Animator = new Animator(this_xml, this);
    this_animator.play();
    this_animator.addEventListener(MotionEvent.MOTION_END, hurtPlayer);
    function hurtPlayer(MotionEvent):void
    var main:MovieClip = MovieClip(this.parent.parent);
    main.decreaseEnergy();
    this.parent.removeChild(this);
    this.addEventListener(MouseEvent.CLICK, killMonster);
    function killMonster(event:MouseEvent):void
    this_xml = <Motion duration="5" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
    <source>
      <Source frameRate="10" x="275" y="200" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="monster" class="Monster">
       <dimensions>
        <geom:Rectangle left="-32.5" top="-32.95" width="65.05" height="65.95"/>
       </dimensions>
       <transformationPoint>
        <geom:Point x="0.49961568024596464" y="0.49962092494313876"/>
       </transformationPoint>
      </Source>
    </source>
    <Keyframe index="0" rotateDirection="cw" rotateTimes="1" tweenSnap="true" tweenSync="true">
      <tweens>
       <SimpleEase ease="0"/>
      </tweens>
    </Keyframe>
    <Keyframe index="4" rotateDirection="cw" rotateTimes="1" tweenSnap="true" tweenSync="true" scaleX="0.416" scaleY="0.378">
      <color>
       <Color alphaMultiplier="0"/>
      </color>
      <tweens>
       <SimpleEase ease="0"/>
      </tweens>
    </Keyframe>
    </Motion>;
    this_animator = new Animator(this_xml, this);
    this_animator.play();
    this_animator.addEventListener(MotionEvent.MOTION_END, die);
    function die(event:MotionEvent):void
    var main:MovieClip = MovieClip(this.parent.parent);
    main.increaseScore();
    this_animator.removeEventListener(MotionEvent.MOTION_END, hurtPlayer);
    this.parent.removeChild(this);
    This is my code for the main timeline:
    var monstersInGame:uint;
    var monsterMaker:Timer;
    var container_mc:MovieClip;
    var cursor:MovieClip;
    var score:int;
    var energy:int;
    function initializeGame():void
    monstersInGame = 10;
    monsterMaker = new Timer(1000, monstersInGame);
    container_mc = new MovieClip;
    addChild(container_mc);
    monsterMaker.addEventListener(TimerEvent.TIMER, createMonsters);
    monsterMaker.start();
    cursor = new Cursor();
    addChild(cursor);
    cursor.enabled = false;
    Mouse.hide();
    stage.addEventListener(MouseEvent.MOUSE_MOVE, dragCursor);
    score = 0;
    energy = energy_mc.totalFrames;
    energy_mc.gotoAndStop(energy);
    function dragCursor(event:MouseEvent):void
    cursor.x = this.mouseX;
    cursor.y = this.mouseY;
    function createMonsters(event:TimerEvent):void
    var monster:MovieClip;
    monster = new Monster();
    monster.x = Math.random() * stage.stageWidth;
    monster.y = Math.random() * stage.stageHeight;
    container_mc.addChild(monster);
    function increaseScore():void
    score ++;
    if(score >= monstersInGame)
      monsterMaker.stop();
    function decreaseEnergy():void
    energy --;
    if(energy <= 0)
      monsterMaker.stop();
    else
      energy_mc.gotoAndStop(energy);
    initializeGame();

    Ok. Apparently, I didn't test it enought times to get the error. I went back and tested it again to get the error. When I did this, the
    trace(this); revealed [object Monster]
    and
    trace(this.parent); revealed [object MovieClip].
    The only one that was different was the one that gave the error. For that one the
    trace(this); revealed [object Monster]
    and
    trace(this.parent); revealed null.
    Then it gave all of the error information.

  • Error #1009 at mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler()

    Hello.
    At first sorry for my english.
    I have encountered problem with DataGrid control.
    There is DataGrid control, which have custom ItemRenderer
    (MulticolorDataGridItemRenderer).
    This DataGrid control has several properties:
    1) click on a row changes it background color
    2) click on "Filter ON" button, filter DataGrid by "status"
    field
    "TypeError: Error #1009: Cannot access a property or method
    of a null object reference.
    at
    mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler()"
    This error occure when filter is ON, by click on a row. It
    occures occasionally. I note that it
    occur when DataGrid's vertical scrollbar is not in top
    position.
    If I remove recovering of scroll position, this bug
    disappear.
    Sample code:
    ~~~~~~~~~~~~
    1. Application mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.List;
    private var objPrevSelectedItem:Object = null;
    private var arrList:Array = [{name: "Matt", lastname:
    "Chotin", status: "0", selected: "0"},
    {name: "Ely", lastname: "Greenfield", status: "1", selected:
    "0"},
    {name: "Christophe", lastname: "Coenraets", status: "2",
    selected: "0"},
    {name: "Sho", lastname: "Kuwamoto", status: "1", selected:
    "0"},
    {name: "Steven", lastname: "Webster", status: "4", selected:
    "0"},
    {name: "Alistair", lastname: "McLeod", status: "3",
    selected: "0"},
    {name: "Chafic", lastname: "Kazoun", status: "1", selected:
    "0"},
    {name: "Manish", lastname: "Jethani", status: "2", selected:
    "0"},
    {name: "Mike", lastname: "Chambers", status: "4", selected:
    "0"},
    {name: "Ted", lastname: "Patrick", status: "0", selected:
    "0"},
    {name: "Roger", lastname: "Gonzales", status: "1", selected:
    "0"},
    {name: "David", lastname: "Zuckerman", status: "3",
    selected: "0"},
    {name: "Alex", lastname: "Uhlmann", status: "3", selected:
    "0"},
    {name: "Peter", lastname: "Ent", status: "3", selected:
    "0"},
    {name: "Adobe", lastname: "Consulting", status: "2",
    selected: "0"},
    {name: "Marcel", lastname: "Boucher", status: "4", selected:
    "0"},
    {name: "Andrew", lastname: "Trice", status: "1", selected:
    "0"},
    {name: "Mike", lastname: "Morearty", status: "1", selected:
    "0"},
    {name: "Everything", lastname: "Flex", status: "0",
    selected: "0"},
    {name: "Jesse", lastname: "Warden", status: "3", selected:
    "0"},
    {name: "Richinternet", lastname: "Blog", status: "2",
    selected: "0"},
    {name: "Flex", lastname: "Daddy", status: "2", selected:
    "0"},
    {name: "Keun", lastname: "Lee", status: "0", selected: "0"},
    {name: "David", lastname: "Koletta", status: "4", selected:
    "0"},
    {name: "Brian", lastname: "Deitte", status: "1", selected:
    "0"},
    {name: "Darron", lastname: "Schal", status: "2", selected:
    "0"},
    {name: "Narciso", lastname: "Jaramillo", status: "3",
    selected: "0"},
    {name: "Kiwi", lastname: "Teamblog", status: "4", selected:
    "0"},
    {name: "Anthony", lastname: "Rumsey", status: "0", selected:
    "0"}];
    [Bindable]
    private var arrcollDP:ArrayCollection = new
    ArrayCollection(arrList);
    private function fnSelectRow(event:Event):void
    if (objPrevSelectedItem != null)
    objPrevSelectedItem["selected"] = new String("0");
    ArrayCollection(DataGrid(event.target).dataProvider).itemUpdated(objPrevSelectedItem);
    var numScrolPos:Number =
    DataGrid(event.target).verticalScrollPosition;
    Object(DataGrid(event.target).selectedItem)["selected"] =
    new String("1");
    ArrayCollection(DataGrid(event.target).dataProvider).itemUpdated(DataGrid(event.target).s electedItem);
    objPrevSelectedItem =
    Object(DataGrid(event.target).selectedItem);
    if (arrcollDP.filterFunction != null)
    arrcollDP.filterFunction = fnFilter;
    arrcollDP.refresh();
    DataGrid(event.target).verticalScrollPosition = numScrolPos;
    private function fnFilter(item:Object):Boolean
    var bResult:Boolean = new Boolean(false);
    if (String(item["status"]) == "0")
    bResult = true;
    return bResult;
    ]]>
    </mx:Script>
    <mx:DataGrid
    width="100%"
    height="100"
    dataProvider="{arrcollDP}"
    itemRenderer="MulticolorDataGridItemRenderer"
    draggableColumns="false"
    rowHeight="17"
    paddingTop="1"
    paddingBottom="1"
    horizontalGridLineColor="#a0a0a0"
    horizontalGridLines="true"
    change="fnSelectRow(event)">
    <mx:columns>
    <mx:DataGridColumn headerText="Name" dataField="name"
    width="250" textAlign="left" sortable="false"/>
    <mx:DataGridColumn headerText="Last Name"
    dataField="lastname" width="250" textAlign="left"
    sortable="false"/>
    <mx:DataGridColumn headerText="Status" dataField="status"
    width="80" textAlign="center" sortable="false"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Button label="Filter ON" y="110" x="5"
    click="arrcollDP.filterFunction = fnFilter;
    arrcollDP.refresh();"/>
    <mx:Button label="Filter OFF" y="110" x="105"
    click="arrcollDP.filterFunction = null; arrcollDP.refresh();"/>
    </mx:Application>
    2. MulticolorDataGridItemRenderer component mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:DataGridItemRenderer xmlns:mx="
    http://www.adobe.com/2006/mxml"
    background="true" dataChange="fnChangeColor(event);">
    <mx:Script>
    <![CDATA[
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.events.FlexEvent;
    import mx.controls.Alert;
    private function fnChangeColor(event:FlexEvent):void
    if (Object(this.data) != null)
    if (!(this.data is DataGridColumn))
    var strTmp:String = String(Object(this.data)["status"]);
    if (strTmp == "0")
    this.backgroundColor = 0xccffcc;
    else if (strTmp == "1")
    this.backgroundColor = 0xffff99;
    else if (strTmp == "2")
    this.backgroundColor = 0x99ccff;
    else if (strTmp == "3")
    this.backgroundColor = 0xffcc99;
    else if (strTmp == "4")
    this.backgroundColor = 0xcc66ff;
    if (String(Object(this.data)["selected"]) == "1")
    this.backgroundColor = 0xff9933;
    ]]>
    </mx:Script>
    </mx:DataGridItemRenderer>
    And one another question: why did disappear standard DataGrid
    control selection mechanism, when I used custom
    DataGridItemRenderer? Try to use the sample code above withou
    fnSelectRow function.
    TIA

    Hi, I will try to explain what i have undestood about this issue.
    I have an application that loads at runtime some modules, and in my project configuration (Flex Modules), i specified some modules to compile optimizing to main application. Besides that, my project uses RSL to the framework linkage, and i perceived that the compiler output reports some warning messages just like "The CSS type selector 'DataGrid' was not processed, because the type was not used in the application." or others similars "The CSS type selector 'TextArea' was not processed, because the type was not used in the application.".
    When i run the application, and click the first time in some grid column, the error "Type Coercion failed: cannot convert ......@abcda2 to ........." happens.
    It happens because, these controls or components has not been linked in the main application compilation, and so, when you use the first module that uses one of these components, only the module loads an instance of these components and maintain on its part of memory.
    Dispite of being loaded in the main application, each module and main application has its SystemManager instance to register and load components, and because of it, when the application try to cast instances of the same component, but at differents SystemManager's singleton implementations, the above error occurs.
    So my solution was to add some reference of the controls or components that appears at the warning messages that was not compiled, to force the main application compilation to add these components at its SystemManager singletons first than any module.
    Only add the name of the component and import its package. Do not have to add to the stage. See below.
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" ....>
    <mx:Script>
            <![CDATA[
                        DataGrid;
                        TextArea;
            ]]>
        </mx:Script>
    </mx:Application>

  • Stupid TypeError: Error #1009:

    Ok, guys I have posted this same question to a few forums but no luck. So heres my problem that im getting when I complile my swf. I get this stupid, compiling error message, I know what its reffering to but I tried tackleing the line which its referring to but no luck.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at net.schemagroup.ui::Interface/revealDropDown()[/Users/abel/Desktop/mySite/fla/net/schemag roup/ui/Interface.as:174]
    at net.schemagroup::LatestWorks/initRevealDropDown()[/Users/abel/Desktop/mySite/fla/net/sche magroup/LatestWorks.as:407]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at SetIntervalTimer/onTimer()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    So basically i'm just calling a instance method from my LatestWorks.as class. Which this instance method is defined in Interface.as class also, my Interface.as class is initialized through my Shell.as class.
    Heres my hiarchy of my class structure.
    here are my classes in order Shell.as,Interface.as, and LatestWorks.as
    Here is Shell.as class
    Code: Select all
    package net.schemagroup
       import gs.*;
       import gs.easing.*;
       import flash.display.*;
       import flash.media.Sound;
       import flash.media.SoundChannel;
       import flash.media.SoundLoaderContext;
       import flash.media.SoundTransform;
       import flash.events.*;
       import flash.net.*;
       import net.schemagroup.ui.Interface;
       import net.schemagroup.LatestWorks;
       public class Shell extends MovieClip
          public var duration:Number;
          public var swfWidth:uint;
          public var swfHeight:uint;
          private var mySound:Sound;
          private var urlSound:String;
          private var urlRequest:URLRequest;
          private var soundBuffTime:Number;
          private var sndChannel:SoundChannel;
          private var testingSound:Boolean;
          private var transform0:SoundTransform;
          private var directoryPath:String;
          private var latestPage:MovieClip;
          var myWork:LatestWorks;
          public function Shell()
             soundBuffTime = 1000;
             var myInterface:Interface = new Interface();
             myInterface.revealInterface(interface_mc);
             latestPage = pages_mc.page0_mc;
             testingSound = true;
             duration = 0.75;
             if (testingSound)
                directoryPath = "../ambient/";
                urlSound = directoryPath + "06_Dabz_Beat.mp3";
             else
                directoryPath = "ambient/";
                urlSound = directoryPath + "06_Dabz_Beat.mp3";
             mySound = new Sound();
             urlRequest = new URLRequest(urlSound);
             var context:SoundLoaderContext = new SoundLoaderContext(soundBuffTime, true);
             mySound.load(urlRequest, context);
             sndChannel = mySound.play();
             transform0 =  sndChannel.soundTransform;
             addEventListener(Event.ENTER_FRAME, onPosition);
             myWork = new LatestWorks();
             swfWidth = stage.stageWidth;
             swfHeight = stage.stageHeight;
             setDefaultStageSettings();
             stage.scaleMode = StageScaleMode.NO_SCALE;
             stage.align = StageAlign.TOP_LEFT;
             stage.frameRate = 30;
             stage.addEventListener(Event.RESIZE, resizeDisplay);
             var myFullScreenSprite:Sprite = MovieClip(usability_controls_mc.fullscreen_mc);
             myFullScreenSprite.buttonMode = true;
             myFullScreenSprite.addEventListener(MouseEvent.CLICK, _handleClick);
             pages_mc.page0_mc.title0_mc.mask = pages_mc.page0_mc.mask_mc;
             pages_mc.page0_mc.scrollBox_mc.sb.mask = pages_mc.page0_mc.scrollBox_mc.maskscrollbar_mc;
          private function goFullScreen():void
             if (stage.displayState == StageDisplayState.NORMAL)
                stage.displayState = StageDisplayState.FULL_SCREEN;
             else
                stage.displayState=StageDisplayState.NORMAL;
          private function _handleClick(event:MouseEvent):void
             trace("here!");
             goFullScreen();
          private function onPosition(e:Event):void
             var soundPosition:uint = Math.ceil(Math.ceil(Math.abs(sndChannel.position))/Math.ceil(Math.abs(mySound.length)) * 100);
             if (soundPosition == 90)
                removeEventListener(Event.ENTER_FRAME, onPosition);
                transform0.volume = 1;
                TweenMax.to(sndChannel, 12, {volume:0});
                var mySound2:Sound = new Sound();
                var context2:SoundLoaderContext = new SoundLoaderContext(1000, true);
                mySound2.load(new URLRequest(directoryPath + "14_Broken_Language.mp3"), context2);
                var sndChannel2:SoundChannel = mySound2.play();
                var transform:SoundTransform =  sndChannel2.soundTransform;
                transform.volume = 1;
                TweenMax.from(sndChannel2, 12, {volume:0});
          public function setDefaultStageSettings():void
             pages_mc.page0_mc.scrollBox_mc.mask_content_mc.width = swfWidth;
             pages_mc.page0_mc.bar6_mc.expandbar2_mc.width = swfWidth;
             pages_mc.page0_mc.bar5_mc.expandbar_mc.width = swfWidth;
             usability_controls_mc.x = swfWidth - usability_controls_mc.width;
             usability_controls_mc.y = swfHeight - usability_controls_mc.height;
             myWork.setStageHeight = swfHeight;
             myWork.setStageWidth = swfWidth;
             myWork.setupParameters(latestPage);
             myWork.runInitAnimation();
             trace("My stageWidth is: "+ myWork.setStageWidth);
             trace("My stageHeight is: "+ myWork.setStageHeight);
             pages_mc.y = swfHeight - 478;
             trace("Pages y is: " + pages_mc.y);
          public function resizeDisplay(e:Event):void
             swfWidth = stage.stageWidth;
             swfHeight = stage.stageHeight;
             myWork.setStageHeight = swfHeight;
             myWork.setStageWidth = swfWidth;
             pages_mc.page0_mc.scrollBox_mc.mask_content_mc.width = swfWidth;
             pages_mc.page0_mc.bar6_mc.expandbar2_mc.width = swfWidth;
             pages_mc.page0_mc.bar5_mc.expandbar_mc.width = swfWidth;
             usability_controls_mc.x = swfWidth - usability_controls_mc.width;
             usability_controls_mc.y = swfHeight - usability_controls_mc.height;
             pages_mc.y = uint(swfHeight - pages_mc.height);
    Here is Interface.as class
    Code: Select all
    package net.schemagroup.ui
       import gs.*;
       import gs.easing.*;
       import flash.events.*;
       import flash.display.*;
       import flash.utils.setTimeout;
       import flash.net.URLLoader;
       import flash.net.URLRequest;
       import flash.net.Socket;
       import flash.text.AntiAliasType;
       import flash.text.TextFieldAutoSize;
    a
       public class Interface extends MovieClip
          private var duration:Number;
          private var xml:XML;
          private var movContainer:MovieClip;
          private var movDropDownContainer:MovieClip;
          private var myMenuArray:Array;
          private var myMenuDropArray:Array;
          private var newY:uint;
          private var oldY:uint;
          private var spacer:int;
          private var timedProcess:int;
          private var myMainDrop:DropItem;
          public function Interface():void
             duration = 0.75;
             spacer = 12;
             myMenuDropArray = [];
             myMenuArray = [];
          public function revealInterface(myContainer:MovieClip):void
             trace("Revealing Interface!");
             movContainer = myContainer;
             movDropDownContainer = myContainer.container_mc;
             var yArray:Array = [-10.0,6,105];
             var delayArray:Array = [2,2.15,2.45];
             TweenMax.to(movContainer.logo_mc, duration, {y:yArray[0], delay:delayArray[0], alpha:1,timeScale:1, ease:Strong.easeOut});
             TweenMax.to(movContainer.bar0_mc, duration, {y:yArray[1], delay:delayArray[1], alpha:1,timeScale:1, ease:Strong.easeOut});
             TweenMax.to(movContainer.bar1_mc, duration, {y:yArray[2], delay:delayArray[2], alpha:1,timeScale:1, ease:Strong.easeOut, onComplete:loadXML});
          private function loadXML():void
             var testingSound = true;
             var xmlPath:String;
             if (testingSound)
                xmlPath = "../xml/interface.xml";
             else
                xmlPath = "xml/interface.xml";
             var xmlURLRequest:URLRequest = new URLRequest(xmlPath);
             var xmlURLLoader:URLLoader = new URLLoader(xmlURLRequest);
             xmlURLLoader.addEventListener(Event.COMPLETE, onComplete);
          private function onComplete(e:Event):void
             xml = new XML(e.target.data);
             //trace(xml);
             if (xml != null)
                buildInterface(xml);
             else
                trace("XML did not load successfully!");
          private function buildInterface(e:XML):void
             var xmlLength:uint = e.menu.section.page.length();
             var xmlLength2:uint = e.dropdown.section.item.length();
             //trace("XMLength is: "+ xmlLength);
             var xmlList:XMLList = new XMLList(e.menu.section.page);
             var xmlList2:XMLList = new XMLList(e.dropdown.section.item);
             myMainDrop = new DropItem();
             myMainDrop.mainDrop_mc.txt.text = e.dropdown.section.attribute("title");
             myMainDrop.mainDrop_mc.txt.autoSize = TextFieldAutoSize.LEFT;
             myMainDrop.mainDrop_mc.txt.antiAliasType = AntiAliasType.ADVANCED;
             myMainDrop.alpha = 0;
             myMainDrop.y = int(Math.round(myMainDrop.height / 2));
             myMainDrop.buttonMode = true;
             myMainDrop.mouseChildren = false;
             myMainDrop.addEventListener(MouseEvent.CLICK, dropDown);
             var yArray:Array = [0,spacer * 2];
             TweenMax.to(myMainDrop, duration, {y:int(spacer), alpha:1, ease:Strong.easeOut});
             movContainer.dropcontainer_mc.addChild(myMainDrop);
             oldY = uint(movContainer.dropcontainer_mc.y +  -  spacer);
             for (var i:uint = 0; i < xmlLength; i++)
                //trace(xmlList[i].title);
                var myItem:MenuItem = new MenuItem();
                myItem.myText_mc.txt.htmlText = xmlList[i].title.toString();
                myItem.myText_mc.txt.autoSize = TextFieldAutoSize.LEFT;
                myItem.myText_mc.txt.antiAliasType = AntiAliasType.ADVANCED;
                myItem.y = int(myItem.height + spacer) * i;
                myItem.alpha = 0;
                myMenuArray.push(myItem);
                var setDynamicDelay = Number("0." + 1) * i;
                trace(setDynamicDelay);
                myItem.mouseChildren = false;
                myItem.buttonMode = true;
                myItem.addEventListener(MouseEvent.CLICK, selectedPage);
                TweenMax.to(myItem, duration, {y:yArray[i], alpha:1, delay:setDynamicDelay, ease:Strong.easeOut});
                movContainer.container_mc.addChild(myItem);
             for (var j:uint = 0; j < xmlLength2; j++)
                //trace(xmlList[i].title);
                var dropItem:MenuItem = new MenuItem();
                dropItem.myText_mc.txt.text = xmlList2[j].title.toString();
                dropItem.myText_mc.txt.autoSize = TextFieldAutoSize.LEFT;
                dropItem.myText_mc.txt.antiAliasType = AntiAliasType.ADVANCED;
                dropItem.y = int(spacer) * j;
                dropItem.x = int(spacer);
                myMainDrop.container_mc.y =  -  int(myMainDrop.container_mc.height);
                newY = myMainDrop.container_mc.y;
                myMenuDropArray.push(dropItem);
                dropItem.buttonMode = true;
                dropItem.mouseChildren = false;
                dropItem.addEventListener(MouseEvent.CLICK, selectedPage);
                myMainDrop.mask_mc.height = myMainDrop.container_mc.height;
                movDropDownContainer.addChild(dropItem);
                if(j >= xmlLength2-1)
                   //timedProcess = setTimeout(revealDropDown, 400);
          private function dropDown(e:MouseEvent):void
             revealDropDown();
          private function selectedPage(e:MouseEvent):void
          public function revealDropDown():void
             TweenMax.to(movDropDownContainer, 1, {y:200, ease:Strong.easeOut});
             TweenMax.to(myMenuArray[1], 1, {y:movDropDownContainer.height + spacer + spacer/2, ease:Strong.easeOut});
    Here is LatestWorks.as class
    Code: Select all
    package net.schemagroup
       import gs.*;
       import gs.easing.*;
       import flash.events.*;
       import flash.net.URLLoader;
       import flash.net.URLRequest;
       import flash.geom.Rectangle;
       import flash.net.Socket;
       import flash.display.*;
       import flash.utils.*;
       import flash.filters.BlurFilter;
       import flash.text.AntiAliasType;
       import flash.text.TextFieldAutoSize;
       import net.schemagroup.ui.Interface;
       public class LatestWorks extends Interface {
          private var currentCount:uint;
          private var setDelays:Array;
          private var imageTarget:Array;
          private var myXCordBoxArray:Array;
          private var myYCordBoxArray:Array;
          private var setBlurX:Array;
          private var setBlurY:Array;
          private var setTimeScale:Number;
          private var setDuration:Number;
          private var passXMLength:Number;
          private var imageRatio:Number;
          private var xmlPath:String;
          private var timedProcess:Number;
          private var xmlLength:int;
          private var xmlLength2:int;
          private var xmlURLRequest:URLRequest;
          private var xmlURLLoader:URLLoader;
          private var xml:XML;
          private var categorySelector:uint;
          private static var spacer:int=10;
          private var passMask:Sprite;
          private var passScrollBar:MovieClip;
          private var projectItemURL:Array;
          public var catButtonsArray:Array;
          public var passContainer:MovieClip;
          public var whatState:Boolean;
          private var imageDirectory:String;
          private var counter:Number;
          private var projectImageWidth:Number;
          private var testingXML:Boolean;
          public var btnClicked:Boolean;
          private var passedArray:Array;
          public var scrollBarWidth:Number;
          public var whatCategory:int;
          public var increment:int;
          public var increment2:int;
          private var swfWidth:int;
          private var swfHeight:int;
          private var projectsLoaded:Boolean;
          private static const tintColor:int=0x0180AA;
          public var mainObject:MovieClip;
          private var myInterface:MovieClip;
          private var myThumbContainer:DisplayObjectContainer;
          private var someInterface:Interface;
          public function LatestWorks():void
             this.projectsLoaded=false;
             this.increment=0;
             this.increment2=0;
             this.catButtonsArray=[];
             testingXML=true;
             if (testingXML) {
                imageDirectory="../images/";
                xmlPath="../xml/portfolio.xml";
             } else {
                imageDirectory="images/";
                xmlPath="xml/portfolio.xml";
          public function setupParameters(latestPage:MovieClip):void {
             this.mainObject = latestPage;
             this.passScrollBar= mainObject.scrollBox_mc.sb.scrollbar_mc;
             this.passMask= mainObject.mask_mc;
             this.passContainer= mainObject.scrollBox_mc.content_mc;
             counter=30;
             setBlurX = [5,
             5,
             5,
             0,
             150,
             150,
             10];
             setBlurY = [10,
             10,
             10,
             10,
             150,
             150,
             0];
             myXCordBoxArray = [-260,
                -55,
                -147,
                271,
                289,
                this.swfWidth+577,
                this.swfWidth+368];
             myYCordBoxArray = [this.swfHeight + -50,
                this.swfHeight + -167,
                this.swfHeight + -309,
                this.swfHeight + 72,
                this.swfHeight + 72,
                this.swfHeight + 142,
                72];
             setDelays=[0,0.35,0.55,0.75,0.95,1.15,1.35,1.45];
             setTimeScale=2;
             this.mainObject.categoryHolder_mc.mask = this.mainObject.mask_category_mc;
             setDuration=0.75;
          public function runInitAnimation():void {
             var objectLength:uint = 7;
             for (var i:int = 0; i < objectLength; i++) {
                var myMC:DisplayObject = this.mainObject["bar"+i+"_mc"];
                //trace("Counter is: " + i + " " + myMC.name + " Ycord is: "+  myYCordBoxArray[i]);
                TweenMax.from(myMC, setDuration, {blurFilter:{blurX:setBlurX[i],
                  blurY:setBlurX[i]},
                  x:myXCordBoxArray[i],
                  y:myYCordBoxArray[i],
                  delay:setDelays[i],
                  timescale:Math.random() * setTimeScale,
                  ease:Back.easeInOut});
                if (i>=4) {
                   TweenMax.from(mainObject.bar5_mc, setDuration, {blurFilter:{blurX:setBlurX[5],
                    blurY:setBlurY[5]},
                    x:myXCordBoxArray[5],
                    delay:setDelays[5],
                    ease:Strong.easeOut});
                   TweenMax.from(mainObject.bar6_mc, setDuration, {blurFilter:{blurX:setBlurX[6],
                    blurY:setBlurX[6]},
                    x:myXCordBoxArray[6],
                    delay:setDelays[6],
                    ease:Strong.easeOut});
                   TweenMax.to(this.passMask, setDuration, {scaleX:1, delay:2, ease:Strong.easeOut, onStart:AssignXMLSettings});
                   break;
          public function AssignXMLSettings():void {
             xmlURLRequest=new URLRequest(xmlPath);
             xmlURLLoader=new URLLoader(xmlURLRequest);
             xmlURLLoader.addEventListener(Event.COMPLETE, onLoaded);
          public function onLoaded(e:Event):void {
             xml=new XML(e.target.data);
             if (xml.data!=null) {
                trace(xmlPath + " successfully loaded!");
                buildPortfolio(xml);
                buildCatMenu(xml);
                TweenMax.to(mainObject.categoryHolder_mc, 0.75, {y:221, ease:Strong.easeOut});
                TweenMax.to(mainObject.scrollBox_mc.maskscrollbar_mc, setDuration, {scaleX:1,  ease:Strong.easeOut});
             } else {
                trace(xmlPath + " did not load successfully!");
          public function buildCatMenu(e:XML):void {
             var xmlList:XMLList=e.category.items.catitem;
             xmlLength2=xmlList.length();
             var XPos:int=0;
             var myCatMain:CatItem = new CatItem();
             myCatMain.category_txt.htmlText=e.category.@main;
             myCatMain.category_txt.autoSize=TextFieldAutoSize.LEFT;
             myCatMain.category_txt.antiAliasType=AntiAliasType.ADVANCED;
             mainObject.categoryHolder_mc.addChild(myCatMain);
             var TextValue:int=myCatMain.width;
             for (var i:uint = 0; i < xmlLength2; i++) {
                var myCatItem:CatItem = new CatItem();
                myCatItem.category_txt.htmlText=xmlList[i].title;
                myCatItem.category_txt.autoSize=TextFieldAutoSize.LEFT;
                myCatItem.category_txt.antiAliasType=AntiAliasType.ADVANCED;
                myCatItem.btnClicked=xmlList[i].@setDefault;
                myCatItem.whatCategory=i;
                //trace(xmlList[i].@setState);
                myCatItem.x=TextValue;
                XPos=myCatItem.width;
                catButtonsArray.push(myCatItem);
                TextValue+=Number(spacer+XPos);
                mainObject.categoryHolder_mc.addChild(myCatItem);
                myCatItem.buttonMode=true;
                myCatItem.mouseChildren=false;
                myCatItem.addEventListener(MouseEvent.CLICK, catClick);
                myCatItem.addEventListener(MouseEvent.MOUSE_OVER, catOver);
                myCatItem.addEventListener(MouseEvent.MOUSE_OUT, catOut);
                if (catButtonsArray[i].btnClicked==true) {
                   catButtonsArray[i].buttonMode=false;
                   catButtonsArray[i].mouseEnabled=false;           
                   TweenMax.to(catButtonsArray[i], 1, {tint:tintColor, delay:0.45, ease:Strong.easeOut});
          private function catClick(e:MouseEvent):void {
             var myButton:MovieClip=MovieClip(e.currentTarget);
             if(projectsLoaded)
             projectsLoaded = false;
             myButton.buttonMode=false;
             myButton.mouseEnabled=false;
             TweenMax.to(myButton, 1, {tint:tintColor, ease:Strong.easeOut});
             categorySelector = myButton.whatCategory;
             removeItems();
             validateCategories();
             myButton.btnClicked=true;
             changeTitle(myButton.category_txt.text);
          public function removeItems():void {
             //trace("Remove items fired!");
             var setDynamicDelay:Number;
             for (var i:int = 0; i < xmlLength; i++)
             setDynamicDelay = Number("0."+ 1) * i;
             var myItem:MovieClip = imageTarget[i];
             //trace(myItem.name);
             //trace("RemoveItem count is: "+ i + " out of " + Number(xmlLength-1));
             TweenMax.to(myItem, 1, {blurFilter:{blurY:50},
             y:this.swfHeight - myItem.height,
             ease:Strong.easeOut,
             delay:setDynamicDelay,
             onComplete:removeTarget,
             ease:Strong.easeOut});
          public function removeTarget():void {
             increment++;
             //trace("Increment is: "+ increment);
             this.passContainer.removeChildAt(0);
             if (increment >= Number(xmlLength))
                increment = 0;
                //trace("Increment is: "+ increment);
                //trace("Increment is equal to: "+ Number(xmlLength-1));
                buildPortfolio(xml);
          private function validateCategories():void {
             for (var i:int = 0; i < xmlLength2; i++)
                if (catButtonsArray[i].btnClicked==true)
                   TweenMax.to(catButtonsArray[i], 1, {removeTint:true, ease:Strong.easeOut});
                   catButtonsArray[i].buttonMode=true;
                   catButtonsArray[i].mouseEnabled=true;
                   catButtonsArray[i].btnClicked=false;
          private function changeTitle(e:String):void {
             TweenMax.to(mainObject.mask_mc, 0.75, {scaleX:0, ease:Strong.easeOut, onComplete:loadTitle, onCompleteParams:[e]});
          private function loadTitle(e:String) {
             mainObject.title0_mc.title_txt.htmlText=e;
             if(e == "WEBSITES")
             TweenMax.to(mainObject.title0_mc, 0.75, {x:120, delay:0.45, ease:Strong.easeOut});
             TweenMax.to(mainObject.bar6_mc, 0.75, {x:550, delay:0.45, ease:Strong.easeOut});
             TweenMax.to(mainObject.mask_mc, 0.75, {scaleX:1, delay:0.45, ease:Strong.easeOut});
             }else{
             TweenMax.to(mainObject.title0_mc, 0.75, {x:226, delay:0.45, ease:Strong.easeOut});
             TweenMax.to(mainObject.bar6_mc, 0.75, {x:656, delay:0.45, ease:Strong.easeOut});
             TweenMax.to(mainObject.mask_mc, 0.75, {scaleX:1, delay:0.45, ease:Strong.easeOut});
          public function buildPortfolio(e:XML):void
             trace("Building Portfolio!");
             //trace("XML category is: " + categorySelector);
             var xmlList:XMLList=e.projectitem[categorySelector].item;
             xmlLength=xmlList.length();
             //trace("Length of section is: " + xmlLength);
             var itemGap:Number=20;
             var setDynamicDelay:Number;
             currentCount=0;
             passXMLength=Number(xmlLength);
             var imageRatio:uint=passXMLength/passXMLength;
             //trace("Image ratio is: " + imageRatio);
             imageTarget=[];
             projectItemURL=[];
             for (var i:uint = 0; i < xmlLength; i++)
                /*trace("-----------------------------------");
                trace("Client is: " + xmlList[i].client);
                trace("Description is: " + xmlList[i].description);
                trace("Platform is: " + xmlList[i].platform);
                trace("Launch is: " + xmlList[i].launch);
                trace("-----------------------------------");
                var myItem:ProjectItem = new ProjectItem();
                myItem.name="item"+i+"_mc";
                myItem.x=Number(myItem.width+itemGap)*i;
                myItem.y=Number(this.swfHeight/2 - myItem.height);
                projectImageWidth=Number(myItem.width+itemGap)*i;
                //trace("Project image width is: " + projectImageWidth);
                this.passContainer.addChild(myItem);
                imageTarget.push(myItem);
                //trace(imageTarget[i].name);
                myItem.text_mc.description_txt.htmlText = xmlList[i].description.toString();
                myItem.text_mc.description_txt.wordWrap = true;
                myItem.text_mc.description_txt.autoSize = TextFieldAutoSize.LEFT;
                myItem.text_mc.description_txt.antiAliasType = AntiAliasType.ADVANCED;
                projectItemURL.push(imageDirectory + xmlList[i].attributes());
                setDynamicDelay = Number("0."+1)*i;
                TweenMax.to(myItem, 0.75, {blurFilter:{blurY:50}});
                TweenMax.to(myItem, 0.75, {blurFilter:{blurY:0}, y:0, delay:setDynamicDelay, ease:Strong.easeOut});
                if (i == xmlLength-1) {
                   trace("Preloading images!");
                   //preloadImages(projectItemURL,imageTarget);
                   preloadImages();
                   timedProcess = setTimeout(initRevealDropDown, 10000);
                   this.passScrollBar.width=Number(myItem.width+itemGap/imageRatio);
          public function initRevealDropDown():void
             clearTimeout(timedProcess);
             someInterface = new Interface();
             someInterface.revealDropDown();
          private function preloadImages() {
             var loaderURLRequest:URLRequest=new URLRequest(projectItemURL[currentCount]);
             var loader:Loader = new Loader();
             loader.contentLoaderInfo.addEventListener(Event.OPEN, _onOpen);
             loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, _onProgress);
             loader.contentLoaderInfo.addEventListener(Event.COMPLETE, _handleImageLoaded);
             loader.load(loaderURLRequest);
          private function _onOpen(e:Event):void {
             //trace("loading started!");
             imageTarget[currentCount].preloader_mc.gotoAndPlay("play");
          private function _onProgress(e:ProgressEvent):void {
             var loadBytes:Number=e.target.bytesLoaded;
             var totalBytes:Number=e.target.bytesTotal;
             var percent:Number=Math.ceil(loadBytes/totalBytes*100);
             //trace("BytesLoaded: " + loadBytes + " out of " + totalBytes + " Percentage: " + percent);
             imageTarget[currentCount].preloader_mc.percent_mc.pct_txt.text=Math.ceil(loadBytes/totalBytes*10).toString();
          private function _handleImageLoaded(e:Event):void {
             //trace("Finished loading: " + e.target.url);
             imageTarget[currentCount].preloader_mc.percent_mc.pct_txt.text="";
             imageTarget[currentCount].container_mc.alpha=0;
             imageTarget[currentCount].container_mc.addChild(Bitmap(e.target.content));
             imageTarget[currentCount].preloader_mc.stop();
             TweenMax.to(imageTarget[currentCount].preloader_mc, 0.75, {alpha:0, ease:Strong.easeOut});
             TweenMax.to(imageTarget[currentCount].container_mc, 0.75, {alpha:1, ease:Strong.easeOut});
          if (currentCount<passXMLength-1)
                currentCount++;
                preloadImages();
             }else if(currentCount >= passXMLength-1)
                //trace("Current count is equal to xmlLength!");
                projectsLoaded = true;
                //trace("ProjectsLoaded is: "+ projectsLoaded);
          private function catOver(e:MouseEvent):void {
             var myButton:MovieClip=MovieClip(e.currentTarget);
             TweenMax.to(myButton, 1, {tint:tintColor, ease:Strong.easeOut});
          private function catOut(e:MouseEvent):void {
             var myButton:MovieClip=MovieClip(e.currentTarget);
             if (myButton.btnClicked!=true) {
                TweenMax.to(myButton, 1, {removeTint:true, ease:Strong.easeOut});
          public function get selectCategory():uint {
             return this.categorySelector;
          public function set selectCategory(e:uint):void {
             this.categorySelector=e;
          public function get getState():Boolean {
             return this.whatState;
          public function set getState(setState:Boolean):void {
             this.whatState=setState;
          public function get setStageHeight():int
             return swfHeight;
          public function set setStageHeight(whatHeight:int):void
             swfHeight = whatHeight;
          public function get setStageWidth():int
             return swfWidth;
          public function set setStageWidth(whatWidth:int):void
             swfWidth = whatWidth;
    Please anybody, it would be very helpful since i'm still trying to tackle as3 classes.
    thanks
    abe

    so, movDropDownContainer (which i know is myContainer.container_mc) doesn't exist WHEN revealDropDown() is called (and that error message is displayed).
    we already know it does exist and movDropDownContainer is defined correctly when your constructor is called so some time after that the timeline that contains myContainer.container_mc must move and it no longer exists or actionscript is used to remove the movieclip.
    the most subtle way that can happen is with a timeline created instance (ie, created in the ide).  there are lots of ways this can happen.  obviously, if you see that your timeline moves to or through a frame where myContainer.container_mc doesn't exist, it should be clear why you're seeing that error message.  but this error can be caused by more difficult to understand situations.
    for example, if it appears that movieclip is in every frame but it's in a layer with more than 1 keyframe, then you can have identically named instances (and that all look the same) that are not the same instance.  in fact, the only sure way to know that movieclip exists in keyframes where it appears to exist is to clear all the keyframes in its layer (after the first keyframe where it appears) and then create all the additional keyframes.  at that point, if you do not remove the movieclip from the stage, in any keyframes, all the instances will be the same.  if you do anything else or you've done anything else, you're going to run into this problem.

  • TypeError: Error #1009 (loaded SWF)

    I'm pulling out my hair on this one!
    I'm just starting a site (full-Flash site) using CS3 and AS3.
    I'm pretty much accustom to the new AS3 changes. I built a rough
    structure to make sure the way I wanted to set the site up would
    work (loading in external SWFs, etc.). The tests worked.
    Now, I'm going in to make some things real, and I'm getting
    this error as soon as an external SWF loads in:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at test_fla::MainTimeline/test_fla::frame2()
    I've tried narrowing it down, couldn't find the exact culprit
    (had to remove every ounce of ActionScript before it started to
    function again). So I started to rebuild that movie entirely --
    cleared out the Library and deleted every layer. Didn't work.
    Couldn't even add a stop(); action in Frame 1.
    Then I started completely fresh File > New, rebuilt again.
    I tested after every single change. I finally built it up to the
    point where I first tested the original, and it worked. So, then I
    added a couple more things tested again, and got the error again.
    Ahh, so I removed EXACTLY what I had just added. Tested again. SAME
    ERROR -- now it won't go away no matter what I remove!
    Crazier yet is that I can still load in my other test SWF
    files and they have actions in them, and they're set up the exact
    same way -- but they work...
    The whole site is new, so every SWF is CS3/AS3. I'm not even
    doing anything crazy, so I'm getting pretty frustrated trying to
    build an all AS3 site and I can't even do basic stuff....
    I can upload/email the FLA files in question if anyone has
    time to look...
    Thanks,
    Brandon

    Well, when I test the loaded SWF within the Flash environment
    (by itself), it plays just fine.
    Then, I try to play the root containing movie (both within
    Flash and on the web server) and as soon as that section loads, is
    when the error occurs.
    I've tried tracing everything. even down to putting trace()
    actions between every layer. Can't determine what causes it...
    One thing I noticed (but I assume is a naming convention that
    Flash uses), is in the error above you see "test_fla", well, lets
    say I have these files:
    test-container.fla
    test-home.fla
    I don't have a test_fla, but the error code refers to it
    anyway...

  • Unexplained Error #1009 when calling a function in a component.

    I created a component that allows you to display a song
    listing.
    I need to create various instances using it's constructor,
    then add them to a main scrollbar control.
    Before putting it in a loop, I wanted to make sure I could
    add a single instance, with this code:
    var NewListing:mediaUnit = new mediaUnit();
    NewListing.setArtist("In Flames");
    NewListing.setAlbum("Come Clarity");
    NewListing.addSong(1,"Take This Life");
    mediaLib.addObject(NewListing);
    Compiled, ran, got this:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at mediaUnit/addSong()
    at MC3_PORT_fla::MainTimeline/MC3_PORT_fla::frame36()
    Okay, maybe it's the code of addSong, right? So I commented
    it out so it's basically:
    public function addSong(id:int,song:*):int {
    return 0;
    Still gives the error.
    Why do setArtist and setAlbum, being in the SAME exact scope,
    not give this error? It just doesn't make sense to me.

    Alright, I got it pinpointed. addSong calls
    var movie:MovieClip = new units.mediaUnit.songItem();
    Which Flash seems to consiter null.
    Not like anyones going to bother reading this, everyone on
    this forum tends to be lazy as hell, but anyone willing to help,
    I'd appreciate it.

  • Error #1009 Using SpellUIForTLF

    The error occurs when you activate the spelling
    APPLICATION
    <?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="application1_initializeHandler(event)">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import com.adobe.linguistics.spelling.SpellUIForTLF;
    import flashx.textLayout.elements.TextFlow;
    import mx.events.FlexEvent;
    import spark.utils.TextFlowUtil;
    [Bindable]
    public var flow:TextFlow = TextFlowUtil.importFromString("<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'><p><span>Spell cheecking in s:RichEditableText does not woork</span></p></TextFlow>");
    protected function application1_initializeHandler(event:FlexEvent):void
    //SpellUIForTLF.spellingConfigUrl = "config/AdobeSpellingConfig.xml";
    private function enableFeature():void {
    SpellUIForTLF.enableSpelling(richTextArea.textFlow, "en_US");
    private function disableFeature() :void {
    SpellUIForTLF.disableSpelling(richTextArea.textFlow);
    ]]>
    </fx:Script>
    <s:layout>
    <s:VerticalLayout />
    </s:layout>
    <s:HGroup>
    <s:Button id="tt2" label="enable Feature" click="enableFeature()" />
    <s:Button id="tt1" label="disable Feature" click="disableFeature()" />
    </s:HGroup>
    <s:RichEditableText id="richTextArea" width="100%" height="100%" fontSize="30" textFlow="{flow}"/>
    </s:Application>
    ERROR
    TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.
    at flashx.textLayout.container::TextContainerManager/getContentBounds()[C:\Vellum\branches\v 1\1.1\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManage r.as:644]
    at spark.components::RichEditableText/textContainerManager_compositionCompleteHandler()[E:\d ev\4.x\frameworks\projects\spark\src\spark\components\RichEditableText.as:3990]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flashx.textLayout.container::TextContainerManager/dispatchEvent()[C:\Vellum\branches\v1\1 .1\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.a s:1472]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flashx.textLayout.elements::TextFlow/dispatchEvent()[C:\Vellum\branches\v1\1.1\dev\output \openSource\textLayout\src\flashx\textLayout\elements\TextFlow.as:773]
    at flashx.textLayout.compose::StandardFlowComposer/http://ns.adobe.com/textLayout/internal/2008::callTheComposer()[C:\Vellum\branches\v1\1.1\ dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:690 ]
    at flashx.textLayout.compose::StandardFlowComposer/internalCompose()[C:\Vellum\branches\v1\1 .1\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as: 758]
    at flashx.textLayout.compose::StandardFlowComposer/updateToController()[C:\Vellum\branches\v 1\1.1\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer. as:557]
    at flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()[C:\Vellum\branches \v1\1.1\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowCompose r.as:519]
    at com.adobe.linguistics.spelling::SpellingContextMenuForTLF()[E:\glo_lib\esg\users\ravi\squ iggly\main\AdobeSpellingUITLF\src\com\adobe\linguistics\spelling\SpellingContextMenuForTLF .as:95]
    at com.adobe.linguistics.spelling::SpellUIForTLF/addContextMenu()[E:\glo_lib\esg\users\ravi\ squiggly\main\AdobeSpellingUITLF\src\com\adobe\linguistics\spelling\SpellUIForTLF.as:481]
    at com.adobe.linguistics.spelling::SpellUIForTLF/loadDictComplete()[E:\glo_lib\esg\users\rav i\squiggly\main\AdobeSpellingUITLF\src\com\adobe\linguistics\spelling\SpellUIForTLF.as:464 ]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.adobe.linguistics.spelling.framework::SpellingService/loadDictComplete()[E:\glo_lib\e sg\users\ravi\squiggly\main\AdobeSpellingFramework\src\com\adobe\linguistics\spelling\fram ework\SpellingService.as:110]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.adobe.linguistics.spelling::HunspellDictionary/loadDictionaryComplete()[E:\glo_lib\es g\users\ravi\squiggly\main\AdobeSpellingEngine\src\com\adobe\linguistics\spelling\Hunspell Dictionary.as:150]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.adobe.linguistics.spelling.core.utils::SquigglyDictionaryLoader/loadDictionaryComplet e()[E:\glo_lib\esg\users\ravi\squiggly\main\AdobeSpellingEngine\src\com\adobe\linguistics\ spelling\core\utils\SquigglyDictionaryLoader.as:205]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.adobe.linguistics.spelling.core.utils::DictionaryLoader/handleComplete()[E:\glo_lib\e sg\users\ravi\squiggly\main\AdobeSpellingEngine\src\com\adobe\linguistics\spelling\core\ut ils\DictionaryLoader.as:83]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

    In his code he is sending a TextFlow as the parameter to SpellUIForTLF.enableSpelling.  So does it matter whether it is a  text flow from RichEditableText, as long as it is a TextFlow ?
    SpellUIForTLF.enableSpelling(richTextArea.textFlow, "en_US");
    Could you please explain what you mean by
    "So in this particular case using SpellUIforTLF for TextFlow inside RichEditableText is the problem.
    For now you may try to use SpellUIforTLF on TextFlow and make your own custom containers instead of using RichEditableText."
    Asking this to get it clarified, as I am also going to use Squiggly in my TLF editor. Me too using RichEditableText. So I am going to use it like this.
                             var currentEditor:RichEditableText = editors.getChildByName(itemName) as RichEditableText;
                             var currTextFlow:TextFlow = currentEditor.textFlow.deepCopy() as TextFlow;                      
                             SpellUIForTLF.enableSpelling(currTextFlow, "en_US");
    Anything wrong with this?
    Thanks

  • TextLayout error 1009

    I have a web chat room application used textflow to render the user message embed swf emotions. After I updated to flex 4.5 sdk, I get these errors oftenly and I just can't debug with it so I don't where went wrong exactly. Please Help me out , or just point out in what situtation will cause this error
    Thanks a lot
    TypeError: Error #1009:
           at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateGraphics()[C:\Vellum\branches\v2\2.0\d ev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:318 2]
           at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateCompositionShapes()[C:\Vellum\branches \v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerControll er.as:3080]
           at flashx.textLayout.compose::StandardFlowComposer/updateCompositionShapes()[C:\Vellum\branc hes\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComp oser.as:616]
           at flashx.textLayout.compose::StandardFlowComposer/updateToController()[C:\Vellum\branches\v 2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer. as:559]
           at flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()[C:\Vellum\branches \v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowCompose r.as:517]
           at flashx.textLayout.container::TextContainerManager/updateContainer()[C:\Vellum\branches\v2 \2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager .as:1343]
           at spark.components::RichEditableText/updateDisplayList()[E:\dev\hero_private\frameworks\pro jects\spark\src\spark\components\RichEditableText.as:2944]
           at mx.core::UIComponent/validateDisplayList()[E:\dev\hero_private\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8989]
           at mx.managers::LayoutManager/validateDisplayList()[E:\dev\hero_private\frameworks\projects\ framework\src\mx\managers\LayoutManager.as:736]
           at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\project s\framework\src\mx\managers\LayoutManager.as:819]
           at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private\frameworks \projects\framework\src\mx\managers\LayoutManager.as:1180]

    Ok,I reproduce it with the code below, replace the 04.swf with any small swf animation is ok
    click the button will raise the exception
    Is there any workaround ?
    <?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"  creationComplete="application1_creationCompleteHandler(event)"
                                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="400" minHeight="300" xmlns:local="*"
                                    >
             <fx:Script>
                       <![CDATA[
                                import flashx.textLayout.elements.InlineGraphicElement;
                                import flashx.textLayout.elements.ParagraphElement;
                                import flashx.textLayout.elements.TextFlow;
                                import flashx.textLayout.formats.WhiteSpaceCollapse;
                                import mx.events.FlexEvent;
                                import spark.utils.TextFlowUtil;
                                [Bindable]
                                private var chatTLF:TextFlow;
                                protected function application1_creationCompleteHandler(event:FlexEvent):void
                                        var str:String = "";
                                         var i:int = 30;
                                         while(i>0){
                                                   str += i+"\n"
                                                   i--;
                                        chatTLF = TextFlowUtil.importFromString(str,WhiteSpaceCollapse.PRESERVE);
                                         var p:ParagraphElement = new ParagraphElement();
                                         var graphicElement:InlineGraphicElement = new InlineGraphicElement();
                                         graphicElement.source = "04.swf";
                                         graphicElement.width  = 28;
                                         graphicElement.height = 30;
                                         p.addChild(graphicElement);
                                         chatTLF.addChildAt(0,p);
                                protected function chatContentBox_updateCompleteHandler(event:FlexEvent):void
                                         callLater(function():void{
                                                   scroller.verticalScrollBar.viewport.verticalScrollPosition = scroller.verticalScrollBar.maximum;
                                protected function button1_clickHandler(event:MouseEvent):void
                                         var tf:TextFlow = TextFlowUtil.importFromString("aaa",WhiteSpaceCollapse.PRESERVE);
                                         for each(var p:ParagraphElement in tf.mxmlChildren){
                                                   chatTLF.addChild(p);
                       ]]>
             </fx:Script>
             <fx:Declarations>
                       <!-- Place non-visual elements (e.g., services, value objects) here -->
             </fx:Declarations>
             <s:Scroller id="scroller" x="10" y="10" width="138" height="226" verticalScrollPolicy="on">
                       <s:RichEditableText id="chatContentBox" editable="false" focusEnabled="false"  updateComplete="chatContentBox_updateCompleteHandler(event)"
                                                                     textAlign="left" textFlow="{chatTLF}"/>
             </s:Scroller >
             <s:Button x="62" y="288" click="button1_clickHandler(event)" label="click me"/>
    </s:Application>

  • Error when compiling whith gcc in order to create a dynamic librairy.

    Hy all,
    I facing the following error at compilation time :
    ld: fatal: relocations remain against allocatable but non-writable sections
    collect2: ld returned 1 exit status
    The list of commands I have issued are here :
    # env
    PATH=/usr/sbin:/usr/bin:/usr/local/bin
    CC=/usr/local/bin/gccLD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib
    Tools used under solaris 8 ( all is under /usr/local/bin)
    ANDIrand-0.7-5.8-sparc-1.pkgbc-1.06-sol8-sparc-local
    binutils-2.20.1-sol8-sparc-local => GNU for sparc
    gcc-3.4.6-sol8-sparc-local => GNU for sparclibiconv-1.13.1-sol8-sparc-local
    libintl-3.4.0-sol8-sparc-localm4-1.4.15-sol8-sparc-local
    libsigsegv-2.9-sol8-sparc-localmake-3.82-sol8-sparc-local
    nss_ldap-265openssl-1.0.0a
    rsaref20.tar => library openssl
    # pwd/usr/local/doc/openssl-1.0.0a/demos/engines/rsaref/install
    # ls -ltotal 490
    -rw-r--r-- 1 root other 7056 Nov 17 14:12 desc.o-rwxr-xr-x 1 root other 27520 Nov 17 14:25 dhdemo
    -rw-r--r-- 1 root other 10216 Nov 17 14:25 dhdemo.o-rw-r--r-- 1 root other 1520 Nov 17 14:12 digit.o
    drwx------ 2 3191 40 512 Mar 25 1994 dos-rw-r--r-- 1 root other 47960 Nov 17 14:12 librsaref.a
    -rwxr-xr-x 1 root other 6056 Nov 17 14:32 librsaref.sodrwx------ 2 3191 40 512 Mar 25 1994 mac
    -rw------- 1 3191 40 1217 Nov 17 14:12 makefile-rw-r--r-- 1 root other 2384 Nov 17 14:12 md2c.o
    -rw-r--r-- 1 root other 4740 Nov 17 14:12 md5c.o-rw-r--r-- 1 root other 5420 Nov 17 14:12 nn.o
    -rw-r--r-- 1 root other 2144 Nov 17 14:12 prime.o-rw-r--r-- 1 root other 2400 Nov 17 14:12 r_dh.o
    -rw-r--r-- 1 root other 3436 Nov 17 14:12 r_encode.o-rw-r--r-- 1 root other 7696 Nov 17 14:12 r_enhanc.o
    -rw-r--r-- 1 root other 3160 Nov 17 14:12 r_keygen.o-rw-r--r-- 1 root other 1372 Nov 17 14:12 r_random.o
    -rw-r--r-- 1 root other 804 Nov 17 14:12 r_stdlib.o-rwxr-xr-x 1 root other 51932 Nov 17 14:25 rdemo
    -rw-r--r-- 1 root other 3660 Nov 17 14:12 rsa.o-rw-r--r-- 1 root other 47960 Nov 17 14:25 rsaref.a
    drwx------ 2 3191 40 512 Mar 25 1994 unix
    COMPILATION COMMAND : "the error is at the end" :
    # gcc -o librsaref.so.2 -shared -Wl,-soname,librsaref.so *.o
    ld: warning: option -o appears more than once, first setting taken
    Text relocation remains
    referenced
    against symbol offset in file
    <unknown> 0xb84 dhdemo.o
    <unknown> 0xb88 dhdemo.o
    <unknown> 0xb8c dhdemo.o
    <unknown> 0xb90 dhdemo.o
    <unknown> 0xb94 dhdemo.o
    <unknown> 0xb98 dhdemo.o
    <unknown> 0xb9c dhdemo.o
    <unknown> 0xba0 dhdemo.o
    <unknown> 0xba4 dhdemo.o
    <unknown> 0xba8 dhdemo.o
    <unknown> 0xbac dhdemo.o
    <unknown> 0xbb0 dhdemo.o
    <unknown> 0xbb4 dhdemo.o
    R_GetRandomBytesNeeded 0x22c dhdemo.o
    NN_Zero 0x978 nn.o
    NN_Zero 0xab4 nn.o
    NN_Zero 0x274 prime.o
    PARAMS2 0x540 dhdemo.o
    PARAMS2 0x544 dhdemo.o
    PARAMS2 0x548 dhdemo.o
    PARAMS2 0x550 dhdemo.o
    PARAMS2 0x55c dhdemo.o
    PARAMS2 0x560 dhdemo.o
    PARAMS2 0x580 dhdemo.o
    PARAMS2 0x6a4 dhdemo.o
    PARAMS2 0x6a8 dhdemo.o
    PARAMS2 0x6b0 dhdemo.o
    PARAMS2 0x844 dhdemo.o
    PARAMS2 0x848 dhdemo.o
    <unknown> 0x608 desc.o
    <unknown> 0x60c desc.o
    <unknown> 0x614 desc.o
    <unknown> 0x618 desc.o
    <unknown> 0x65c desc.o
    <unknown> 0x660 desc.o
    <unknown> 0x66c desc.o
    <unknown> 0x670 desc.o
    <unknown> 0x678 desc.o
    <unknown> 0x67c desc.o
    <unknown> 0x9cc desc.o
    <unknown> 0x9d0 desc.o
    <unknown> 0x9d4 desc.o
    <unknown> 0x9d8 desc.o
    <unknown> 0x9dc desc.o
    <unknown> 0x9e0 desc.o
    <unknown> 0x9e4 desc.o
    <unknown> 0x9e8 desc.o
    <unknown> 0x9ec desc.o
    <unknown> 0x9f0 desc.o
    <unknown> 0x9f4 desc.o
    <unknown> 0x9f8 desc.o
    <unknown> 0x9fc desc.o
    <unknown> 0xa00 desc.o
    <unknown> 0xa04 desc.o
    <unknown> 0xa08 desc.o
    DESX_CBCUpdate 0xed4 r_enhanc.o
    DES3_CBCRestart 0xf28 r_enhanc.o
    R_memset 0x134 desc.o
    R_memset 0x144 desc.o
    R_memset 0x304 desc.o
    R_memset 0x314 desc.o
    R_memset 0x4c8 desc.o
    R_memset 0x4d8 desc.o
    R_memset 0x7e8 desc.o
    R_memset 0x7f8 desc.o
    R_memset 0x808 desc.o
    R_memset 0x384 nn.o
    R_memset 0x638 nn.o
    R_memset 0x648 nn.o
    R_memset 0x688 nn.o
    R_memset 0x6d8 nn.o
    R_memset 0x860 nn.o
    R_memset 0x870 nn.o
    R_memset 0x9c4 nn.o
    R_memset 0x9d4 nn.o
    R_memset 0x9e4 nn.o
    R_memset 0x9f4 nn.o
    R_memset 0xa04 nn.o
    R_memset 0xa14 nn.o
    R_memset 0xa24 nn.o
    R_memset 0xa34 nn.o
    R_memset 0xae4 nn.o
    R_memset 0xaf4 nn.o
    R_memset 0xb04 nn.o
    R_memset 0x2a4 prime.o
    R_memset 0x310 prime.o
    R_memset 0x2b0 r_dh.o
    R_memset 0x390 r_dh.o
    R_memset 0x3a0 r_dh.o
    R_memset 0x160 r_enhanc.o
    R_memset 0x170 r_enhanc.o
    R_memset 0x264 r_enhanc.o
    R_memset 0x274 r_enhanc.o
    R_memset 0x284 r_enhanc.o
    R_memset 0x394 r_enhanc.o
    R_memset 0x488 r_enhanc.o
    R_memset 0x550 r_enhanc.o
    R_memset 0x6e8 r_enhanc.o
    R_memset 0x7cc r_enhanc.o
    R_memset 0x8d4 r_enhanc.o
    R_memset 0x9b8 r_enhanc.o
    R_memset 0x9c8 r_enhanc.o
    R_memset 0xb10 r_enhanc.o
    R_memset 0xb20 r_enhanc.o
    R_memset 0xb90 r_enhanc.o
    R_memset 0xce0 r_enhanc.o
    R_memset 0xe04 r_enhanc.o
    R_memset 0xe14 r_enhanc.o
    R_memset 0x458 r_keygen.o
    R_memset 0x468 r_keygen.o
    R_memset 0x478 r_keygen.o
    R_memset 0x488 r_keygen.o
    R_memset 0x498 r_keygen.o
    R_memset 0x4a8 r_keygen.o
    R_memset 0x4b8 r_keygen.o
    R_memset 0x4c8 r_keygen.o
    R_memset 0x4d8 r_keygen.o
    R_memset 0x4e8 r_keygen.o
    R_memset 0x550 r_keygen.o
    R_memset 0x5d0 r_keygen.o
    R_memset 0x14 r_random.o
    R_memset 0xb8 r_random.o
    R_memset 0x1b4 r_random.o
    R_memset 0xc8 rsa.o
    R_memset 0x1d4 rsa.o
    R_memset 0x290 rsa.o
    R_memset 0x390 rsa.o
    R_memset 0x47c rsa.o
    R_memset 0x48c rsa.o
    R_memset 0x6f8 rsa.o
    R_memset 0x708 rsa.o
    R_memset 0x718 rsa.o
    R_memset 0x728 rsa.o
    R_memset 0x738 rsa.o
    R_memset 0x748 rsa.o
    R_memset 0x758 rsa.o
    R_memset 0x768 rsa.o
    R_memset 0x778 rsa.o
    R_memset 0x788 rsa.o
    R_memset 0x798 rsa.o
    DES_CBCRestart 0xf08 r_enhanc.o
    DESX_CBCRestart 0xf1c r_enhanc.o
    DES3_CBCInit 0xe8c r_enhanc.o
    DES_CBCUpdate 0xebc r_enhanc.o
    DES3_CBCUpdate 0xee0 r_enhanc.o
    DESX_CBCInit 0xe7c r_enhanc.o
    DES_CBCInit 0xe6c r_enhanc.o
    <unknown> 0x7dc dhdemo.o
    <unknown> 0x814 dhdemo.o
    seedByte.0 0x224 dhdemo.o
    seedByte.0 0x244 dhdemo.o
    <unknown> 0xab8 dhdemo.o
    <unknown> 0xabc dhdemo.o
    <unknown> 0x28 dhdemo.o
    <unknown> 0x30 dhdemo.o
    <unknown> 0x3c dhdemo.o
    <unknown> 0x44 dhdemo.o
    <unknown> 0x48 dhdemo.o
    <unknown> 0x50 dhdemo.o
    <unknown> 0x54 dhdemo.o
    <unknown> 0x5c dhdemo.o
    <unknown> 0x60 dhdemo.o
    <unknown> 0x68 dhdemo.o
    <unknown> 0x6c dhdemo.o
    <unknown> 0x74 dhdemo.o
    <unknown> 0x80 dhdemo.o
    <unknown> 0x88 dhdemo.o
    <unknown> 0xc8 dhdemo.o
    <unknown> 0xe8 dhdemo.o
    <unknown> 0xf0 dhdemo.o
    <unknown> 0xf8 dhdemo.o
    <unknown> 0x118 dhdemo.o
    <unknown> 0x120 dhdemo.o
    <unknown> 0x130 dhdemo.o
    <unknown> 0x16c dhdemo.o
    <unknown> 0x180 dhdemo.o
    <unknown> 0x204 dhdemo.o
    <unknown> 0x20c dhdemo.o
    <unknown> 0x268 dhdemo.o
    <unknown> 0x270 dhdemo.o
    <unknown> 0x288 dhdemo.o
    <unknown> 0x290 dhdemo.o
    <unknown> 0x2a4 dhdemo.o
    <unknown> 0x2a8 dhdemo.o
    <unknown> 0x2f0 dhdemo.o
    <unknown> 0x2f8 dhdemo.o
    <unknown> 0x310 dhdemo.o
    <unknown> 0x318 dhdemo.o
    <unknown> 0x32c dhdemo.o
    <unknown> 0x334 dhdemo.o
    <unknown> 0x36c dhdemo.o
    <unknown> 0x374 dhdemo.o
    <unknown> 0x3c0 dhdemo.o
    <unknown> 0x3c8 dhdemo.o
    <unknown> 0x3ec dhdemo.o
    <unknown> 0x3f0 dhdemo.o
    <unknown> 0x414 dhdemo.o
    <unknown> 0x41c dhdemo.o
    <unknown> 0x450 dhdemo.o
    <unknown> 0x458 dhdemo.o
    <unknown> 0x470 dhdemo.o
    <unknown> 0x478 dhdemo.o
    <unknown> 0x4d4 dhdemo.o
    <unknown> 0x4dc dhdemo.o
    <unknown> 0x4f0 dhdemo.o
    <unknown> 0x4f4 dhdemo.o
    <unknown> 0x508 dhdemo.o
    <unknown> 0x510 dhdemo.o
    <unknown> 0x524 dhdemo.o
    <unknown> 0x5c4 dhdemo.o
    <unknown> 0x5cc dhdemo.o
    <unknown> 0x5d4 dhdemo.o
    <unknown> 0x5dc dhdemo.o
    <unknown> 0x600 dhdemo.o
    <unknown> 0x604 dhdemo.o
    <unknown> 0x608 dhdemo.o
    <unknown> 0x618 dhdemo.o
    <unknown> 0x650 dhdemo.o
    <unknown> 0x660 dhdemo.o
    <unknown> 0x674 dhdemo.o
    <unknown> 0x678 dhdemo.o
    <unknown> 0x68c dhdemo.o
    <unknown> 0x690 dhdemo.o
    <unknown> 0x6bc dhdemo.o
    <unknown> 0x6c0 dhdemo.o
    <unknown> 0x760 dhdemo.o
    <unknown> 0x764 dhdemo.o
    <unknown> 0x768 dhdemo.o
    <unknown> 0x790 dhdemo.o
    <unknown> 0x82c dhdemo.o
    <unknown> 0x830 dhdemo.o
    <unknown> 0x85c dhdemo.o
    <unknown> 0x860 dhdemo.o
    <unknown> 0x864 dhdemo.o
    <unknown> 0x878 dhdemo.o
    <unknown> 0x898 dhdemo.o
    <unknown> 0x89c dhdemo.o
    <unknown> 0x8c4 dhdemo.o
    <unknown> 0x8d4 dhdemo.o
    <unknown> 0x92c dhdemo.o
    <unknown> 0x930 dhdemo.o
    <unknown> 0x964 dhdemo.o
    <unknown> 0x968 dhdemo.o
    <unknown> 0x9a8 dhdemo.o
    <unknown> 0x9b8 dhdemo.o
    <unknown> 0x9f0 dhdemo.o
    <unknown> 0x9f4 dhdemo.o
    <unknown> 0xacc dhdemo.o
    <unknown> 0xad4 dhdemo.o
    <unknown> 0xad8 dhdemo.o
    <unknown> 0xae0 dhdemo.o
    <unknown> 0xae4 dhdemo.o
    <unknown> 0xaec dhdemo.o
    <unknown> 0xaf0 dhdemo.o
    <unknown> 0xaf8 dhdemo.o
    <unknown> 0xafc dhdemo.o
    <unknown> 0xb04 dhdemo.o
    <unknown> 0xb08 dhdemo.o
    <unknown> 0xb10 dhdemo.o
    <unknown> 0xb14 dhdemo.o
    <unknown> 0xb1c dhdemo.o
    <unknown> 0xb20 dhdemo.o
    <unknown> 0xb28 dhdemo.o
    <unknown> 0xb2c dhdemo.o
    <unknown> 0xb34 dhdemo.o
    <unknown> 0xb38 dhdemo.o
    <unknown> 0xb40 dhdemo.o
    <unknown> 0xb4c dhdemo.o
    <unknown> 0xb54 dhdemo.o
    <unknown> 0xb5c dhdemo.o
    <unknown> 0xb60 dhdemo.o
    SILENT_PROMPT 0x1ac dhdemo.o
    SILENT_PROMPT 0x1f8 dhdemo.o
    SILENT_PROMPT 0xa58 dhdemo.o
    SILENT_PROMPT 0xa5c dhdemo.o
    SILENT_PROMPT 0xbbc dhdemo.o
    SILENT_PROMPT 0xbc0 dhdemo.o
    __iob 0x640 dhdemo.o
    __iob 0x648 dhdemo.o
    __iob 0x6e4 dhdemo.o
    __iob 0x6e8 dhdemo.o
    __iob 0x9a0 dhdemo.o
    __iob 0x9ec dhdemo.o
    __iob 0xa0c dhdemo.o
    __iob 0xa18 dhdemo.o
    __iob 0xa30 dhdemo.o
    __iob 0xa34 dhdemo.o
    __iob 0xa74 dhdemo.o
    __iob 0xa7c dhdemo.o
    __iob 0xb6c dhdemo.o
    __iob 0xb74 dhdemo.o
    __iob 0xbd8 dhdemo.o
    __iob 0xbe0 dhdemo.o
    __iob 0xbec dhdemo.o
    __iob 0xbf4 dhdemo.o
    fprintf 0x78c dhdemo.o
    fread 0x8f4 dhdemo.o
    fread 0x914 dhdemo.o
    putchar 0xa28 dhdemo.o
    puts 0x208 dhdemo.o
    puts 0xa6c dhdemo.o
    puts 0xa9c dhdemo.o
    puts 0xbd0 dhdemo.o
    sscanf 0x2ac dhdemo.o
    sscanf 0x4f8 dhdemo.o
    sscanf 0x528 dhdemo.o
    fgets 0xbf0 dhdemo.o
    memset 0x340 dhdemo.o
    memset 0x484 dhdemo.o
    memset 0x498 dhdemo.o
    memset 0x18 r_stdlib.o
    fopen 0x64c dhdemo.o
    fopen 0x8c0 dhdemo.o
    fopen 0x9a4 dhdemo.o
    R_SetupDHAgreement 0x2dc dhdemo.o
    fflush 0xa78 dhdemo.o
    fflush 0xb70 dhdemo.o
    fflush 0xbdc dhdemo.o
    fputc 0x7a4 dhdemo.o
    printf 0xb64 dhdemo.o
    R_RandomInit 0x21c dhdemo.o
    R_RandomFinal 0x184 dhdemo.o
    fwrite 0x684 dhdemo.o
    fwrite 0x69c dhdemo.o
    fwrite 0x6cc dhdemo.o
    fwrite 0x774 dhdemo.o
    fwrite 0x9dc dhdemo.o
    malloc 0x2b4 dhdemo.o
    malloc 0x2c4 dhdemo.o
    malloc 0x384 dhdemo.o
    malloc 0x394 dhdemo.o
    malloc 0x3a4 dhdemo.o
    malloc 0x578 dhdemo.o
    malloc 0x598 dhdemo.o
    PARAMS2_READY 0x530 dhdemo.o
    PARAMS2_READY 0x534 dhdemo.o
    PARAMS2_READY 0x5e4 dhdemo.o
    PARAMS2_READY 0x5ec dhdemo.o
    PARAMS2_READY 0x7bc dhdemo.o
    PARAMS2_READY 0x7f0 dhdemo.o
    PARAMS2_READY 0x800 dhdemo.o
    fclose 0x6f8 dhdemo.o
    fclose 0x94c dhdemo.o
    fclose 0xa44 dhdemo.o
    sprintf 0xb50 dhdemo.o
    free 0x348 dhdemo.o
    free 0x350 dhdemo.o
    free 0x4a0 dhdemo.o
    free 0x4a8 dhdemo.o
    free 0x4b0 dhdemo.o
    free 0x54c dhdemo.o
    free 0x554 dhdemo.o
    R_ComputeDHAgreedKey 0x43c dhdemo.o
    R_GenerateDHParams 0x5b0 dhdemo.o
    R_RandomUpdate 0x248 dhdemo.o
    NN_DigitDiv 0x550 nn.o
    .udiv 0xf4 digit.o
    .udiv 0x224 digit.o
    .udiv 0x20 r_encode.o
    .udiv 0xc0c r_enhanc.o
    NN_DigitMult 0xc60 nn.o
    NN_DigitMult 0xcdc nn.o
    .umul 0x20 digit.o
    .umul 0x30 digit.o
    .umul 0x44 digit.o
    .umul 0x54 digit.o
    .umul 0x10c digit.o
    .umul 0x120 digit.o
    .umul 0x23c digit.o
    .umul 0x250 digit.o
    <unknown> 0xf0 md2c.o
    <unknown> 0xf4 md2c.o
    <unknown> 0x194 md2c.o
    <unknown> 0x198 md2c.o
    <unknown> 0x1f0 md2c.o
    <unknown> 0x1f4 md2c.o
    MD2Update 0xf8 md2c.o
    MD2Update 0x108 md2c.o
    MD2Update 0x60 r_enhanc.o
    MD2Init 0x24 r_enhanc.o
    MD2Final 0x98 r_enhanc.o
    R_SealUpdate 0xc38 r_enhanc.o
    R_SealUpdate 0xc88 r_enhanc.o
    <unknown> 0x140 md5c.o
    <unknown> 0x148 md5c.o
    MD5Final 0xa4 r_enhanc.o
    MD5Final 0x4c r_random.o
    MD5Final 0x138 r_random.o
    MD5Update 0x144 md5c.o
    MD5Update 0x154 md5c.o
    MD5Update 0x6c r_enhanc.o
    MD5Update 0x40 r_random.o
    MD5Update 0x12c r_random.o
    MD5Init 0x34 r_enhanc.o
    MD5Init 0x30 r_random.o
    MD5Init 0x11c r_random.o
    NN_Sub 0x5c0 nn.o
    NN_Sub 0x9a0 nn.o
    NN_Sub 0x54 prime.o
    NN_Sub 0xd8 prime.o
    NN_Sub 0x144 prime.o
    NN_Sub 0x16c prime.o
    NN_Sub 0x5c r_dh.o
    NN_Sub 0x100 r_dh.o
    NN_Sub 0xcc r_keygen.o
    NN_Sub 0x1a0 r_keygen.o
    NN_Sub 0x2c8 r_keygen.o
    NN_Sub 0x2dc r_keygen.o
    NN_Sub 0x528 r_keygen.o
    NN_Sub 0x640 rsa.o
    NN_Sub 0x660 rsa.o
    NN_Sub 0x674 rsa.o
    NN_Decode 0x3c prime.o
    NN_Decode 0x208 r_dh.o
    NN_Decode 0x22c r_dh.o
    NN_Decode 0x260 r_dh.o
    NN_Decode 0x2dc r_dh.o
    NN_Decode 0x304 r_dh.o
    NN_Decode 0x32c r_dh.o
    NN_Decode 0x3bc rsa.o
    NN_Decode 0x3d4 rsa.o
    NN_Decode 0x3ec rsa.o
    NN_Decode 0x4b8 rsa.o
    NN_Decode 0x4d0 rsa.o
    NN_Decode 0x4e8 rsa.o
    NN_Decode 0x4fc rsa.o
    NN_Decode 0x510 rsa.o
    NN_Decode 0x524 rsa.o
    NN_Decode 0x538 rsa.o
    NN_Add 0x928 nn.o
    NN_Add 0x80 prime.o
    NN_Add 0xac prime.o
    NN_Add 0xec prime.o
    NN_Add 0x118 prime.o
    NN_Add 0x19c prime.o
    NN_Add 0x70 r_dh.o
    NN_Add 0x114 r_dh.o
    NN_Add 0xa0 r_keygen.o
    NN_Add 0xe0 r_keygen.o
    NN_Add 0x174 r_keygen.o
    NN_Add 0x1b4 r_keygen.o
    NN_Add 0x6c8 rsa.o
    NN_Digits 0x2f8 nn.o
    NN_Digits 0x308 nn.o
    NN_Digits 0x478 nn.o
    NN_Digits 0x750 nn.o
    NN_Digits 0xbc4 nn.o
    NN_Digits 0x214 r_dh.o
    NN_Digits 0x26c r_dh.o
    NN_Digits 0x2e8 r_dh.o
    NN_Digits 0x310 r_dh.o
    NN_Digits 0x3f8 rsa.o
    NN_Digits 0x408 rsa.o
    NN_Digits 0x544 rsa.o
    NN_Digits 0x554 rsa.o
    NN_Digits 0x564 rsa.o
    NN_Cmp 0x5e8 nn.o
    NN_Cmp 0xfc prime.o
    NN_Cmp 0x128 prime.o
    NN_Cmp 0x180 prime.o
    NN_Cmp 0x244 prime.o
    NN_Cmp 0x2f8 prime.o
    NN_Cmp 0x33c r_dh.o
    NN_Cmp 0x224 r_keygen.o
    NN_Cmp 0x5b8 r_keygen.o
    NN_Cmp 0x41c rsa.o
    NN_Cmp 0x578 rsa.o
    NN_Cmp 0x624 rsa.o
    NN_Div 0x678 nn.o
    NN_Div 0x900 nn.o
    NN_Div 0x18c r_dh.o
    NN_ModInv 0x29c r_keygen.o
    NN_ModInv 0x310 r_keygen.o
    NN_ModMult 0x718 nn.o
    NN_ModMult 0x730 nn.o
    NN_ModMult 0x7d0 nn.o
    NN_ModMult 0x7e8 nn.o
    NN_ModMult 0x820 nn.o
    NN_ModMult 0x698 rsa.o
    NN_RShift 0x628 nn.o
    NN_Gcd 0x590 r_keygen.o
    NN_ModExp 0x2e8 prime.o
    NN_ModExp 0x1a8 r_dh.o
    NN_ModExp 0x28c r_dh.o
    NN_ModExp 0x36c r_dh.o
    NN_ModExp 0x44c rsa.o
    NN_ModExp 0x5e8 rsa.o
    NN_ModExp 0x614 rsa.o
    NN_Mult 0x6b0 nn.o
    NN_Mult 0x914 nn.o
    NN_Mult 0x284 r_keygen.o
    NN_Mult 0x2f4 r_keygen.o
    NN_Mult 0x6b0 rsa.o
    NN_Mod 0x6c8 nn.o
    NN_Mod 0xa88 nn.o
    NN_Mod 0x98 prime.o
    NN_Mod 0xc4 prime.o
    NN_Mod 0x268 prime.o
    NN_Mod 0x32c r_keygen.o
    NN_Mod 0x348 r_keygen.o
    NN_Mod 0x5a8 rsa.o
    NN_Mod 0x5c8 rsa.o
    NN_LShift 0x4cc nn.o
    NN_LShift 0x4e4 nn.o
    NN_LShift 0x128 r_dh.o
    NN_Encode 0x1c8 r_dh.o
    NN_Encode 0x1dc r_dh.o
    NN_Encode 0x2a0 r_dh.o
    NN_Encode 0x380 r_dh.o
    NN_Encode 0x374 r_keygen.o
    NN_Encode 0x390 r_keygen.o
    NN_Encode 0x3d0 r_keygen.o
    NN_Encode 0x3e8 r_keygen.o
    NN_Encode 0x400 r_keygen.o
    NN_Encode 0x418 r_keygen.o
    NN_Encode 0x430 r_keygen.o
    NN_Encode 0x448 r_keygen.o
    NN_Encode 0x46c rsa.o
    NN_Encode 0x6e8 rsa.o
    NN_AssignZero 0x1c4 nn.o
    NN_AssignZero 0x2ec nn.o
    NN_AssignZero 0x4ac nn.o
    NN_AssignZero 0x4f8 nn.o
    NN_AssignZero 0x610 nn.o
    NN_AssignZero 0x73c nn.o
    NN_AssignZero 0x88c nn.o
    NN_AssignZero 0x8a0 nn.o
    NN_AssignZero 0x64 prime.o
    NN_AssignZero 0x220 prime.o
    NN_AssignZero 0x2c0 prime.o
    NN_AssignZero 0x40 r_dh.o
    NN_AssignZero 0x7c r_dh.o
    NN_AssignZero 0xe4 r_dh.o
    NN_AssignZero 0x160 r_dh.o
    NN_AssignZero 0x48 r_keygen.o
    NN_AssignZero 0xb0 r_keygen.o
    NN_AssignZero 0xec r_keygen.o
    NN_AssignZero 0x184 r_keygen.o
    NN_AssignZero 0x1c0 r_keygen.o
    NN_AssignZero 0x2ac r_keygen.o
    NN_AssignZero 0x508 r_keygen.o
    NN_AssignZero 0x56c r_keygen.o
    NN_AssignZero 0x5a0 r_keygen.o
    NN_AssignZero 0x5f8 rsa.o
    NN_Assign2Exp 0x1c r_dh.o
    NN_Assign2Exp 0xc0 r_dh.o
    NN_Assign2Exp 0x78 r_keygen.o
    NN_Assign2Exp 0x8c r_keygen.o
    NN_Assign2Exp 0x14c r_keygen.o
    NN_Assign2Exp 0x160 r_keygen.o
    NN_Assign 0x374 nn.o
    NN_Assign 0x6fc nn.o
    NN_Assign 0x850 nn.o
    NN_Assign 0x8b0 nn.o
    NN_Assign 0x8c0 nn.o
    NN_Assign 0x938 nn.o
    NN_Assign 0x948 nn.o
    NN_Assign 0x958 nn.o
    NN_Assign 0x968 nn.o
    NN_Assign 0x9b4 nn.o
    NN_Assign 0xa54 nn.o
    NN_Assign 0xa64 nn.o
    NN_Assign 0xa98 nn.o
    NN_Assign 0xaa8 nn.o
    NN_Assign 0xad4 nn.o
    NN_Assign 0x158 prime.o
    NN_Assign 0x30 r_dh.o
    NN_Assign 0xd4 r_dh.o
    NN_Assign 0x244 r_keygen.o
    NN_Assign 0x254 r_keygen.o
    NN_Assign 0x264 r_keygen.o
    NN_Assign 0x57c r_keygen.o
    <unknown> 0x214 prime.o
    <unknown> 0x218 prime.o
    R_GenerateBytes 0x10 prime.o
    R_GenerateBytes 0x23c r_dh.o
    R_GenerateBytes 0x2c8 r_enhanc.o
    R_GenerateBytes 0x2e4 r_enhanc.o
    R_GenerateBytes 0x50 rsa.o
    GeneratePrime 0xa0 r_dh.o
    GeneratePrime 0x144 r_dh.o
    GeneratePrime 0x110 r_keygen.o
    GeneratePrime 0x1e4 r_keygen.o
    R_SealFinal 0xc9c r_enhanc.o
    R_DecodePEMBlock 0x80c r_enhanc.o
    R_DecodePEMBlock 0x838 r_enhanc.o
    R_DecodePEMBlock 0xa08 r_enhanc.o
    R_DecodePEMBlock 0xd28 r_enhanc.o
    R_DecodePEMBlock 0xd94 r_enhanc.o
    R_EncodePEMBlock 0x734 r_enhanc.o
    R_EncodePEMBlock 0x758 r_enhanc.o
    R_EncodePEMBlock 0x978 r_enhanc.o
    R_EncodePEMBlock 0xc50 r_enhanc.o
    R_EncodePEMBlock 0xcc4 r_enhanc.o
    <unknown> 0x698 r_enhanc.o
    <unknown> 0x69c r_enhanc.o
    <unknown> 0xba8 r_enhanc.o
    <unknown> 0xbac r_enhanc.o
    <unknown> 0xbd4 r_enhanc.o
    <unknown> 0xbd8 r_enhanc.o
    RSAPublicDecrypt 0x208 r_enhanc.o
    R_VerifyUpdate 0x8a0 r_enhanc.o
    R_OpenFinal 0xdd8 r_enhanc.o
    R_OpenInit 0xa34 r_enhanc.o
    R_VerifyFinal 0x8c0 r_enhanc.o
    R_DigestInit 0xbc r_enhanc.o
    R_DigestInit 0x150 r_enhanc.o
    R_DigestInit 0x188 r_enhanc.o
    R_DigestInit 0x254 r_enhanc.o
    R_DigestInit 0xb44 r_enhanc.o
    RSAPublicEncrypt 0x35c r_enhanc.o
    R_SignBlock 0x714 r_enhanc.o
    R_SignBlock 0x90c r_enhanc.o
    RSAPrivateDecrypt 0x4e0 r_enhanc.o
    R_memcmp 0x238 r_enhanc.o
    R_memcmp 0x6a4 r_enhanc.o
    R_DigestUpdate 0xd8 r_enhanc.o
    R_DigestUpdate 0x1a4 r_enhanc.o
    R_DigestUpdate 0xb60 r_enhanc.o
    R_SealInit 0x958 r_enhanc.o
    R_OpenUpdate 0xd4c r_enhanc.o
    R_OpenUpdate 0xdb8 r_enhanc.o
    R_DigestFinal 0xfc r_enhanc.o
    R_DigestFinal 0x1d4 r_enhanc.o
    R_DigestFinal 0xb7c r_enhanc.o
    R_memcpy 0x30c r_enhanc.o
    R_memcpy 0x3cc r_enhanc.o
    R_memcpy 0x3f8 r_enhanc.o
    R_memcpy 0x45c r_enhanc.o
    R_memcpy 0x58c r_enhanc.o
    R_memcpy 0x5b8 r_enhanc.o
    R_memcpy 0x620 r_enhanc.o
    R_memcpy 0x6cc r_enhanc.o
    R_memcpy 0xbb0 r_enhanc.o
    R_memcpy 0xbdc r_enhanc.o
    R_memcpy 0xbec r_enhanc.o
    R_memcpy 0x3a4 r_keygen.o
    R_memcpy 0x3b8 r_keygen.o
    R_memcpy 0x10c r_random.o
    R_memcpy 0x18c r_random.o
    R_memcpy 0x98 rsa.o
    R_memcpy 0x1c4 rsa.o
    R_memcpy 0x264 rsa.o
    R_memcpy 0x380 rsa.o
    R_VerifyBlockSignature 0x860 r_enhanc.o
    R_VerifyBlockSignature 0xafc r_enhanc.o
    RSAPrivateEncrypt 0x134 r_enhanc.o
    R_VerifyInit 0x884 r_enhanc.o
    R_SignInit 0x77c r_enhanc.o
    R_SignUpdate 0x798 r_enhanc.o
    R_SignFinal 0x7b8 r_enhanc.o
    memcmp 0x70 r_stdlib.o
    memcpy 0x44 r_stdlib.o
    ld: fatal: relocations remain against allocatable but non-writable sections
    collect2: ld returned 1 exit status
    Best regards.

    did you compile the *.o's with -fPIC ?

  • Error 1009 when accessing webservice elements

    I'm learning flex and Flash Builder 4.6 and doing a small example project.
    I've created a mobile app test using a web service. I got the web service to work, creating xml dataset. I can get the flex code to access the web service and read the file. That works so far. The code reads the whole xml file from the web service and presents it. What I don't quite see is how to read only the elements. When I specify the .LastResult.element.element I get Error #1009: Cannot access a property or method of a null object reference. during runtime.
    I can post the  webservice xml result if that helps. Thanks for any insights.
    Here's the code
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
            creationComplete="view1_creationCompleteHandler(event)"
            xmlns:service1="services.service1.*"
            xmlns:uws_lookups="services.uws_lookups.*"
            title="HomeView">
        <fx:Script>
            <![CDATA[
                import mx.rpc.soap.WebService;
                import mx.collections.ArrayCollection;
                import mx.rpc.AsyncResponder;
                import mx.collections.XMLListCollection;
                import mx.events.FlexEvent;
                import mx.rpc.events.ResultEvent;       
                import spark.events.IndexChangeEvent;
                import spark.events.TextOperationEvent;
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:WebService
                id="SampleDBwebserviceCS"
                wsdl="http://localhost:57074/Service1.asmx?WSDL"
                showBusyCursor="true" 
                useProxy= "false"
                makeObjectsBindable="true">
                <s:operation  name="Getmember" resultFormat="xml">
                </s:operation>
            </s:WebService>
            <s:CallResponder id="GetmemberResult"/>
            <service1:Service1 id="service1"/>
        </fx:Declarations>
        <s:VGroup width="60%" height="60%" color="#10851E" fontFamily="Arial" fontSize="10"
                  fontWeight="normal" horizontalAlign="center" verticalAlign="middle">    
            <s:TextArea id="lblResult" x="2" y="0" width="188" height="234"
                        creationComplete="view1_creationCompleteHandler(event)"
                        text="{GetmemberResult.lastResult}"> 
            </s:TextArea>
            <!-- Returns the whole xml result - all fields  all xml definitions -->
            <!-- Want to return GetmemberResult.lastResult.Sales.FirstName -->
            <!-- however this causes a 1009 error on Sales-->
            <s:Button
                label="Get Data"
                click="SampleDBwebserviceCS.Getmember.send(); lblResult.text = SampleDBwebserviceCS.Getmember.lastResult"
                x="10"
                y="568">
            </s:Button>   
        </s:VGroup>
    </s:View>
    1009 error when I insert this property in the <s:Button   tag: 
    click="SampleDBwebserviceCS.Getmember.send(); lblResult.text = SampleDBwebserviceCS.Getmember.lastResult.Sales.FirstName"
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at views::SampleSQLHomeView/___SampleSQLHomeView_Button1_click()[C:\Users\phillip\Adobe Flash Builder 4.6\SampleSQL\src\views\SampleSQLHomeView.mxml:121]

    I'd have to see the xml to say what, but 1009 is what it says - a null reference has no properties, it is null.
    Try tracing out SampleWebServiceCS.GetMember and you'll quickly see where along your .element.element path you have an error.
    (BTW, I've not used s:Operation before, but is your syntax correct?)
    G

Maybe you are looking for