Error in defining a property & property-alias for a correlation for a BPEL

hallo,
would anybdy be kind enough to tell me where i've done somthing wrong?
im using netbeans 6.1 for SOA application development. there are two receive activities in a BPEL, recieve1 and recieve2. on the latter i have defined a correlation whose initiator is recieve1. the related source code from correlationWSDL is :
<vprop:property name="wzrd_prop_ContactNo_ContactNo" type="xsd:int"/>
    <vprop:propertyAlias propertyName="tns:wzrd_prop_ContactNo_ContactNo" messageType="ns:checkLeadDuplicationStatusRequest" part="part1">
        <vprop:query>/ns0:LeadCoreInfo/ns0:ContactNo</vprop:query>
    </vprop:propertyAlias>
    <vprop:propertyAlias propertyName="tns:wzrd_prop_ContactNo_ContactNo" messageType="ns:leadWSOperationRequest" part="part1">
        <vprop:query>/ns0:LeadDetailedInfo/ns0:LeadCoreInfo/ns0:ContactNo</vprop:query>
    </vprop:propertyAlias>error that i'm getting is:
ERROR: The first step has to be "ns0:LeadCoreInfo", if an absolute path is used for query. Expression: "/ns0:LeadCoreInfo/ns0:ContactNo"
regards

hallo,
would anybdy be kind enough to tell me where i've done somthing wrong?
im using netbeans 6.1 for SOA application development. there are two receive activities in a BPEL, recieve1 and recieve2. on the latter i have defined a correlation whose initiator is recieve1. the related source code from correlationWSDL is :
<vprop:property name="wzrd_prop_ContactNo_ContactNo" type="xsd:int"/>
    <vprop:propertyAlias propertyName="tns:wzrd_prop_ContactNo_ContactNo" messageType="ns:checkLeadDuplicationStatusRequest" part="part1">
        <vprop:query>/ns0:LeadCoreInfo/ns0:ContactNo</vprop:query>
    </vprop:propertyAlias>
    <vprop:propertyAlias propertyName="tns:wzrd_prop_ContactNo_ContactNo" messageType="ns:leadWSOperationRequest" part="part1">
        <vprop:query>/ns0:LeadDetailedInfo/ns0:LeadCoreInfo/ns0:ContactNo</vprop:query>
    </vprop:propertyAlias>error that i'm getting is:
ERROR: The first step has to be "ns0:LeadCoreInfo", if an absolute path is used for query. Expression: "/ns0:LeadCoreInfo/ns0:ContactNo"
regards

Similar Messages

  • Is there any way to use a For Each Loop for each property of an User Defined Type?

    Is there any way to use a For Each Loop for each property of an User Defined Type? That would be very handy!
    Jorge Barbi Martins ([email protected])

    Alas, no, not in VBA.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • I am getting an error "Permission denied to access property '$j' " (firebug) for a customize search on a gaming website

    A gaming wikidot site i help with has a customized search on this page http://www.thetelonproject.com/search-the-site. It works in IE and other browsers I have, and other FF users dont have a issue, its just mine it seems.
    The line that firebug references is this
    >>> parent.parent.$j('iframe.html-block-iframe[src$="/' + id + '"]').height(height + 'px');<<<
    error; Permission denied to access property '$j'
    I dont know if this blocked from an addon or a java setting, the site admin doesn want to change the page cuz it works in his FF. I can paste more code if needed.

    That is an iframe with a src that links to PayPal (Donate):
    */nav:side/html/11507054cca0c8ca485ea28049465ac4f038d001-491762192042853969
    http://thetelonproject.wdfiles.com/local--html/nav%3Aside/11507054cca0c8ca485ea28049465ac4f038d001-491762192042853969/www.thetelonproject.com/
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Module Chart component Error #1009: Cannot access a property or method of a null object reference

    Is there a known bug when displaying a chart component that is defined in a module. When attempting to display a chart component defined in a module it crashes indicating Error #1009: Cannot access a property or method of a null object reference.
    It crashes at the following location in ChartBase.as. Somehow when loading the chart the  styleManager.getStyleDeclaration("mx.charts.chartClasses.ChartBase"); returns null so when using the setStyle methods the exception occurs.
    private function initStyles():Boolean
            HaloDefaults.init(styleManager);
      var chartBaseStyle:CSSStyleDeclaration = styleManager.getStyleDeclaration("mx.charts.chartClasses.ChartBase");
      chartBaseStyle.setStyle("chartSeriesStyles", HaloDefaults.chartBaseChartSeriesStyles);
      chartBaseStyle.setStyle("fill", new SolidColor(0xFFFFFF, 0));
      chartBaseStyle.setStyle("calloutStroke", new SolidColorStroke(0x888888,2));
            return true;
    Added note: There is a chart component in the application that works fine.  The only way I can get  the chart in the module to display is to add the following workaround preinitializer but it severly impacts the loading of the module. Is there a way around this.
    protected function preinitializeHandler(event:FlexEvent):void
       var styleObjects:Array = FlexGlobals.topLevelApplication.styleManager.selectors;
       for each(var styleObj:String in styleObjects)  {
        var style:CSSStyleDeclaration = FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration(styleObj);
        styleManager.setStyleDeclaration(styleObj, style, true);   
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.charts.chartClasses::ChartBase/initStyles()[E:\dev\4.y\frameworks\projects\charts\src\ mx\charts\chartClasses\ChartBase.as:1862]
    at mx.charts.chartClasses::ChartBase/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\ChartBas e.as:1894]
    at mx.charts.chartClasses::PolarChart/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\PolarCha rt.as:223]
    at mx.charts::PieChart/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\PieChart.as:203]
    at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1590]
    at spark.components::Group/addElementAt()[E:\dev\4.y\frameworks\projects\spark\src\spark\com ponents\Group.as:1387]
    at spark.components::SkinnableContainer/addElementAt()[E:\dev\4.y\frameworks\projects\spark\ src\spark\components\SkinnableContainer.as:775]
    at mx.states::AddItems/addItemsToContentHolder()[E:\dev\4.y\frameworks\projects\framework\sr c\mx\states\AddItems.as:782]
    at mx.states::AddItems/apply()[E:\dev\4.y\frameworks\projects\framework\src\mx\states\AddIte ms.as:563]
    at mx.core::UIComponent/applyState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UI Component.as:10741]
    at mx.core::UIComponent/commitCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx \core\UIComponent.as:10487]
    at mx.core::UIComponent/setCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\co re\UIComponent.as:10323]
    at mx.core::UIComponent/set currentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:6425]
    at BloodPressure/bloodpressureDg_selectionChangeHandler()[C:\Users\Mark\Adobe Flash Builder 4.7\BiometricsFlexProject\src\BloodPressure.mxml:311]
    at BloodPressure/__bloodpressureDg_selectionChange()[C:\Users\Mark\Adobe Flash Builder 4.7\BiometricsFlexProject\src\BloodPressure.mxml:41]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13152]
    at spark.components::DataGrid/commitInteractiveSelection()[E:\dev\4.y\frameworks\projects\sp ark\src\spark\components\DataGrid.as:3634]
    at spark.components::DataGrid/setSelectionAnchorCaret()[E:\dev\4.y\frameworks\projects\spark \src\spark\components\DataGrid.as:4210]
    at spark.components::DataGrid/grid_mouseDownHandler()[E:\dev\4.y\frameworks\projects\spark\s rc\spark\components\DataGrid.as:4679]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13152]
    at spark.components::Grid/dispatchGridEvent()[E:\dev\4.y\frameworks\projects\spark\src\spark \components\Grid.as:4038]
    at spark.components::Grid/grid_mouseDownDragUpHandler()[E:\dev\4.y\frameworks\projects\spark \src\spark\components\Grid.as:3883]
    at Function/<anonymous>()[E:\dev\4.y\frameworks\projects\spark\src\spark\utils\MouseEventUti l.as:84]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\4.y\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:2918]

    It appears as though this error has been going on for a while. See the following link http://forums.adobe.com/thread/941849

  • Bug Report - DB toolkit returns error when calling the DefaultDatabase property with SQLite

    There's an old bug in the DB toolkit where calling the DefaultDatabase property returns error -2147217887 if you're using certain DBs (such as SQLite or PostgreSQL and I believe MySQL as well).
    The problem is that this property is called by a VI which is used in some of the commonly used VIs (such as the insert VI),
    causing them to fail. Whoever wrote the code was aware of this issue,
    since they added a comment about it, as you can see below.
    The immediate fix for this is pretty easy -  add code to ignore the error or don't call the property at all. It's not used anywhere in the toolkit and unless you're using the VI yourself to get the property, this won't break any code. The problem with this is that you need to do this in every PC.
    NI already has a CAR for this (CAR 232063) and should hopefully fix it, so there's no need to take further action at the moment. This post is for people searching for this in the future.
    Try to take over the world!

    Interesting. I have seen this before but it returned a different error code. (Error -2147352567)
    =====================
    LabVIEW 2012

  • Error #1009: Cannot access a property or method

    Here's the context of the problem, in which I will try to include as much information as possible while keeping the explanation brief.
    I am trying to make a portfolio website (architectural design + concept art).  Flash / programing are not my focus and this is my first go at learning the software.  Due to the nature of the content and my (lack) of ability in AS3, I want the the coding to be really simple and still let the site look good.  The way the site is currently structured:
    1) Basic menu buttons that navigate to sections of the site (brings up a new page).
    2) Example, clicking on <Graphics> takes you to a new page and a sub-menu animates in (simple motion tween for the buttons to cascade down).  This animation is a movie clip placed on the main timeline.
    3) On the screen is also a slideshow for all the images within <Graphics>.  Instead of multiple small slideshows, I combined them all into one, so as to avoid complications with add / remove from stage.  There are prev / next buttons that keep images within their sub section (ie 1->2->3->1).  The sub-menu buttons are suppose to link to the start of each sub section, much like chapters on a DVD.  (The slideshow is a movieclip sub-nested in the menu movieclip).
    Main menu buttons work.
    Sub-menu animation works.
    Slideshow works.
    Can't get the sub-menu buttons to access the slideshow chapters.
    I have created and solved about half a dozen errors, and each time I fix something, it just causes another point to break.  I've gone around in circles for days, and not sure which was is up anymore.  So, while the slideshow works independently of the rest of the content, and I think I have the parent referencing correct, the problem I am currently facing is thus:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at 03graphics_fla::MainTimeline/frame1()
    I've browsed some other threads, and I think I know what the problem is.  Since the sub-menu is animated, the buttons do not appear on frame 1 of the nested timeline, while the actionscript is on frame 1 of the main timeline - thus the code doesn't exist yet when I click the button.
    Is this indeed the problem?  If so, how do I go about fixing it?
    Additionally, does the structure makes sense on how my site is organized?  Is there an easier / cleaner way to code it?
    (This thing is completely ghetto-rigged, I just need it to function - it's like my own little Millenium Falcon...)
    Cheers,
    Andy

    Try following this posting, which is just a posting or two away from your own in the forum...
    http://forums.adobe.com/thread/748542?tstart=0

  • 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.

  • New to action script and getting: TypeError: Error #1009: Cannot access a property or method of a nu

    I am getting this message in the output tab for buttons that I am trying to create.  Here's the code:
    import flash.events.MouseEvent;
    stop();
    function goHome(myEvent:MouseEvent):void {
    gotoAndStop("home");
    SoundMixer.stopAll();
    function goAbout(myEvent:MouseEvent):void {
    gotoAndStop("about");
    SoundMixer.stopAll();
    function goBusiness(myEvent:MouseEvent):void {
    gotoAndStop("business");
    SoundMixer.stopAll();
    function goContact(myEvent:MouseEvent):void {
    gotoAndStop("contact");
    SoundMixer.stopAll();
    function goArchives(myEvent:MouseEvent):void {
    gotoAndStop("archives");
    SoundMixer.stopAll();
    function goBioTech(myEvent:MouseEvent):void {
    gotoAndStop("bioTech");
    SoundMixer.stopAll();
    function goRealEstate(myEvent:MouseEvent):void {
    gotoAndStop("realEstate");
    SoundMixer.stopAll();
    function goTechnology(myEvent:MouseEvent):void {
    gotoAndStop("technology");
    SoundMixer.stopAll();
    function goEnergy(myEvent:MouseEvent):void {
    gotoAndStop("energy");
    SoundMixer.stopAll();
    home_btn.addEventListener(MouseEvent.CLICK, goHome);
    about_btn.addEventListener(MouseEvent.CLICK, goAbout);
    business_btn.addEventListener(MouseEvent.CLICK, goBusiness);
    contact_btn.addEventListener(MouseEvent.CLICK, goContact);
    archives_btn.addEventListener(MouseEvent.CLICK, goArchives);
    bioTech_btn.addEventListener(MouseEvent.CLICK, goBioTech);
    realEstate_btn.addEventListener(MouseEvent.CLICK, goRealEstate);
    technology_btn.addEventListener(MouseEvent.CLICK, goTechnology);
    energy_btn.addEventListener(MouseEvent.CLICK, goEnergy);
    I ran the debugger and got this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at peakInsights_fla::MainTimeline/frame1()[peakInsights_fla.MainTimeline::frame1:48]
    I guess it's telling me there's a problem with line 48 but what?
    The home, about, business, contact, and archives button works. On the business page there are the remaining buttons biotech, technology, real estate, and energy. when i test it; i get the finger but the buttons don't work. this is my first flash site so I'am new, new.

    I followed the steps and read some of your comments on the same top topic in another thread. When I put it on the first frame it was okay but the next button on that page had the same problem.  So what I am guessing is that I have to either create a document class or put the actions where the buttons are.  Am I understanding that correctly?  In the other thread in which you helped someone else; there was so comments about document class.  I found a tutorial on it and the way I understand it is that it you can put you actions in an external document.  But you have to include in the event listener the frame in which you want that action to happen.
    Thaks for your help.  And patience.

  • TypeError: Error #1009: Cannot access a property or method of a null object reference.

    Hi all,
    I am new to ActionScript and Flash, and I am getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at jessicaclucas_fla::MainTimeline/stopResumescroll()
    I have several different clips in one movie that have scrolling content. When I click a button to move to a different clip that doesn’t have a certain scroll, it gives me this error. I cannot figure out how to fix this. You can see the site I am working on: http://www.jessicaclucas.com. I would really appreciate some help! Thank you in advance. Here is the code:
    //Import TweenMax and the plugin for the blur filter
    import gs.TweenMax;
    import gs.plugins.BlurFilterPlugin;
    //Save the content’s and mask’s height.
    //Assign your own content height here!!
    var RESUMECONTENT_HEIGHT:Number = 1500;
    var RESUME_HEIGHT:Number = 450;
    //We want to know what was the previous y coordinate of the content (for the animation)
    var oldResumeY:Number = myResumecontent.y;
    //Position the content on the top left corner of the mask
    myResumecontent.x = myResume.x;
    myResumecontent.y = myResume.y;
    //Set the mask to our content
    myResumecontent.mask = myResume;
    //Create a rectangle that will act as the Resumebounds to the scrollMC.
    //This way the scrollMC can only be dragged along the line.
    var Resumebounds:Rectangle = new Rectangle(resumescrollMC.x,resumescrollMC.y,0,450);
    //We want to know when the user is Resumescrolling
    var Resumescrolling:Boolean = false;
    //Listen when the user is holding the mouse down on the scrollMC
    resumescrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startResumescroll);
    //Listen when the user releases the mouse button
    stage.addEventListener(MouseEvent.MOUSE_UP, stopResumescroll);
    //This function is called when the user is dragging the scrollMC
    function startResumescroll(e:Event):void {
    //Set Resumescrolling to true
    Resumescrolling = true;
    //Start dragging the scrollMC
    resumescrollMC.startDrag(false,Resumebounds);
    //This function is called when the user stops dragging the scrollMC
    function stopResumescroll(e:Event):void {
    //Set Resumescrolling to false
    Resumescrolling = false;
    //Stop the drag
    resumescrollMC.stopDrag();
    //Add ENTER_FRAME to animate the scroll
    addEventListener(Event.ENTER_FRAME, enterResumeHandler);
    //This function is called in each frame
    function enterResumeHandler(e:Event):void {
    //Check if we are Resumescrolling
    if (Resumescrolling == true) {
    //Calculate the distance how far the scrollMC is from the top
    var distance:Number = Math.round(resumescrollMC.y - Resumebounds.y);
    //Calculate the percentage of the distance from the line height.
    //So when the scrollMC is on top, percentage is 0 and when its
    //at the bottom the percentage is 1.
    var percentage:Number = distance / RESUME_HEIGHT;
    //Save the old y coordinate
    oldResumeY = myResumecontent.y;
    //Calculate a new y target coordinate for the content.
    //We subtract the mask’s height from the contentHeight.
    //Otherwise the content would move too far up when we scroll down.
    //Remove the subraction to see for yourself!
    var targetY:Number = -((RESUMECONTENT_HEIGHT - RESUME_HEIGHT) * percentage) + myResume.y;
    //We only want to animate the scroll if the old y is different from the new y.
    //In our movie we animate the scroll if the difference is bigger than 5 pixels.
    if (Math.abs(oldResumeY - targetY) > 5) {
    //Tween the content to the new location.
    //Call the function ResumetweenFinished() when the tween is complete.
    TweenMax.to(myResumecontent, 0.3, {y: targetY, blurFilter:{blurX:22, blurY:22}, onComplete: ResumetweenFinished});
    //This function is called when the tween is finished
    function ResumetweenFinished():void {
    //Tween the content back to “normal” (= remove blur)
    TweenMax.to(myResumecontent, 0.3, {blurFilter:{blurX:0, blurY:0}});

    Hi again,
    Thank you for helping. I really appreciate it! Would it be easier to say, if resumescrollMC exists, then execute these functions? I was not able to figure out the null statement from your post. Here is what I am trying (though I am not sure it is possible). I declared the var resumescrollMC, and then I tried to put pretty much the entire code into an if (resumescrollMC == true) since this code only needs to be completed when resumescrollMC is on the stage. It is not working the way I have tried, but I am assuming I am setting up the code incorrectly. Or, an if statement is not supposed to be issued to an object:
    //Import TweenMax and the plugin for the blur filter
    import gs.TweenMax2;
    import gs.plugins.BlurFilterPlugin2;
    //Save the content's and mask's height.
    //Assign your own content height here!!
    var RESUMECONTENT_HEIGHT:Number = 1500;
    var RESUME_HEIGHT:Number = 450;
    var resumescrollMC:MovieClip;
    if (resumescrollMC == true) {
    //We want to know what was the previous y coordinate of the content (for the animation)
    var oldResumeY:Number = myResumecontent.y;
    //Position the content on the top left corner of the mask
    myResumecontent.x = myResume.x;
    myResumecontent.y = myResume.y;
    //Set the mask to our content
    myResumecontent.mask = myResume;
    //Create a rectangle that will act as the Resumebounds to the scrollMC.
    //This way the scrollMC can only be dragged along the line.
    var Resumebounds:Rectangle = new Rectangle(resumescrollMC.x,resumescrollMC.y,0,450);
    //We want to know when the user is Resumescrolling
    var Resumescrolling:Boolean = false;
    //Listen when the user is holding the mouse down on the scrollMC
    resumescrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startResumescroll);
    //Listen when the user releases the mouse button
    stage.addEventListener(MouseEvent.MOUSE_UP, stopResumescroll);
    //This function is called when the user is dragging the scrollMC
    function startResumescroll(e:Event):void {
    //Set Resumescrolling to true
    Resumescrolling = true;
    //Start dragging the scrollMC
    resumescrollMC.startDrag(false,Resumebounds);
    //This function is called when the user stops dragging the scrollMC
    function stopResumescroll(e:Event):void {
    //Set Resumescrolling to false
    Resumescrolling = false;
    //Stop the drag
    resumescrollMC.stopDrag();
    //Add ENTER_FRAME to animate the scroll
    addEventListener(Event.ENTER_FRAME, enterResumeHandler);
    //This function is called in each frame
    function enterResumeHandler(e:Event):void {
    //Check if we are Resumescrolling
    if (Resumescrolling == true) {
    //Calculate the distance how far the scrollMC is from the top
    var distance:Number = Math.round(resumescrollMC.y - Resumebounds.y);
    //Calculate the percentage of the distance from the line height.
    //So when the scrollMC is on top, percentage is 0 and when its
    //at the bottom the percentage is 1.
    var percentage:Number = distance / RESUME_HEIGHT;
    //Save the old y coordinate
    oldResumeY = myResumecontent.y;
    //Calculate a new y target coordinate for the content.
    //We subtract the mask's height from the contentHeight.
    //Otherwise the content would move too far up when we scroll down.
    //Remove the subraction to see for yourself!
    var targetY:Number = -((RESUMECONTENT_HEIGHT - RESUME_HEIGHT) * percentage) + myResume.y;
    //We only want to animate the scroll if the old y is different from the new y.
    //In our movie we animate the scroll if the difference is bigger than 5 pixels.
    if (Math.abs(oldResumeY - targetY) > 5) {
    //Tween the content to the new location.
    //Call the function ResumetweenFinished() when the tween is complete.
    TweenMax.to(myResumecontent, 0.3, {y: targetY, blurFilter:{blurX:22, blurY:22}, onComplete: ResumetweenFinished});
    //This function is called when the tween is finished
    function ResumetweenFinished():void {
    //Tween the content back to "normal" (= remove blur)
    TweenMax.to(myResumecontent, 0.3, {blurFilter:{blurX:0, blurY:0}});

  • TypeError: Error #1009: Cannot access a property or method of a null object reference.      at FC_Home_A

    Dear Sir,
    I really need your valuable assistance i was about to finish a project but at very last moment i am stuck. Here is the explanation below...
    I have two files called "holder.swf" and "slide.swf" i want to improt the "slide.swf" using this action below
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("slide.swf");
    myLoader.load(url);
    addChild(myLoader);
    myLoader.x = 2;
    myLoader.y = 2;
    Also i have attached the flash file of "holder.swf". My concern is the moment i am calling the "slide.swf" inside the "holder.swf" it is showing the following error...
    " TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at FC_Home_Ads_Holder_v2_fla::MainTimeline() "
    Here are the files uploaded for your reference, please download this file http://www.touchpixl.com/ForumsAdobecom.zip
    This error is being occured from "MainTimeline.as" file here is the code been use inside of this file below....
    package FC_Home_Ads_Holder_v2_fla
        import __AS3__.vec.*;
        import adobe.utils.*;
        import com.danehansen.*;
        import com.greensock.*;
        import com.greensock.easing.*;
        import com.greensock.plugins.*;
        import flash.accessibility.*;
        import flash.desktop.*;
        import flash.display.*;
        import flash.errors.*;
        import flash.events.*;
        import flash.external.*;
        import flash.filters.*;
        import flash.geom.*;
        import flash.globalization.*;
        import flash.media.*;
        import flash.net.*;
        import flash.net.drm.*;
        import flash.printing.*;
        import flash.profiler.*;
        import flash.sampler.*;
        import flash.sensors.*;
        import flash.system.*;
        import flash.text.*;
        import flash.text.engine.*;
        import flash.text.ime.*;
        import flash.ui.*;
        import flash.utils.*;
        import flash.xml.*;
        public dynamic class MainTimeline extends flash.display.MovieClip
            public function MainTimeline()
                new Vector.<String>(6)[0] = "Productivity";
                new Vector.<String>(6)[1] = "Leadership";
                new Vector.<String>(6)[2] = "Execution";
                new Vector.<String>(6)[3] = "Education";
                new Vector.<String>(6)[4] = "Speed of Trust";
                new Vector.<String>(6)[5] = "Sales";
                super();
                addFrameScript(0, this.frame1);
                return;
            public function init():void
                var loc1:*=null;
                com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.Aut oAlphaPlugin]);
                loc1 = new flash.net.URLLoader(new flash.net.URLRequest(this.XML_LOC));
                var loc2:*;
                this.next_mc.buttonMode = loc2 = true;
                this.prev_mc.buttonMode = loc2;
                stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
                stage.align = flash.display.StageAlign.TOP_LEFT;
                loc1.addEventListener(flash.events.Event.COMPLETE, this.xmlLoaded, false, 0, true);
                this.prev_mc.addEventListener(flash.events.MouseEvent.CLICK, this.minusClick, false, 0, true);
                this.next_mc.addEventListener(flash.events.MouseEvent.CLICK, this.plusClick, false, 0, true);
                return;
            public function xmlLoaded(arg1:flash.events.Event):void
                var loc1:*=null;
                var loc2:*=0;
                this.xmlData = new XML(arg1.target.data);
                loc2 = 0;
                while (loc2 < this.LABELS.length)
                    loc1 = new Btn(this.LABELS[loc2], loc2);
                    this.btnHolder_mc.addChild(loc1);
                    this.BTNS.push(loc1);
                    trace(this.LABELS[loc2]);
                    ++loc2;
                this.current = uint(this.xmlData.@firstPick);
                trace("-----width-----");
                trace(this.contentMask.width);
                var loc3:*=this.contentMask.width / this.LABELS.length;
                trace(loc3);
                loc2 = 0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].width = loc3;
                    this.BTNS[loc2].x = loc3 * loc2;
                    ++loc2;
                this.btnHolder_mc.addEventListener(flash.events.MouseEvent.CLICK, this.numClick, false, 0, true);
                this.selectMovie();
                return;
            public function numClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                this.current = arg1.target.i;
                this.selectMovie();
                return;
            public function killTimer():void
                this.timerGoing = false;
                if (this.timer)
                    this.timer.reset();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                    this.timer = null;
                return;
            public function selectMovie():void
                if (this.timerGoing)
                    this.timer = new flash.utils.Timer(uint(this.xmlData.ad[com.danehansen.MyMath.modulo(t his.current, this.xmlData.ad.length())].@delay), 1);
                    this.timer.start();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                while (this.holder_mc.numChildren > 0)
                    this.holder_mc.removeChild(this.holder_mc.getChildAt(0));
                var loc1:*=new flash.display.Loader();
                loc1.load(new flash.net.URLRequest(this.xmlData.ad[com.danehansen.MyMath.modulo(thi s.current, this.xmlData.ad.length())].@loc));
                this.holder_mc.addChild(loc1);
                var loc2:*=0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].deselect();
                    ++loc2;
                this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].select();
                var loc3:*=this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].x + this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].width / 2 + this.btnHolder_mc.x;
                trace("addLength:" + this.xmlData.ad.length());
                trace(loc3, com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length()));
                com.greensock.TweenLite.to(this.indicator_mc, 0.3, {"x":loc3, "ease":com.greensock.easing.Cubic.easeOut});
                loc1.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, this.adLoaded, false, 0, true);
                return;
            public function adLoaded(arg1:flash.events.Event):void
                var evt:flash.events.Event;
                var loc1:*;
                evt = arg1;
                try
                    evt.target.content.xmlData = this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())];
                catch (er:Error)
                return;
            public function minusClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current - 1);
                loc1.current = loc2;
                this.selectMovie();
                return;
            public function plusClick(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function ENDED(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function STARTED(arg1:flash.events.Event):void
                this.killTimer();
                return;
            function frame1():*
                this.timerGoing = true;
                addEventListener("endNow", this.ENDED, false, 0, true);
                addEventListener("startNow", this.STARTED, false, 0, true);
                this.init();
                return;
            public const XML_LOC:String=stage.loaderInfo.parameters.xmlLoc ? stage.loaderInfo.parameters.xmlLoc : "home_ads.xml";
            public const LABELS:__AS3__.vec.Vector.<String>=new Vector.<String>(6);
            public const BTNS:__AS3__.vec.Vector.<Btn>=new Vector.<Btn>();
            public const TRANSITION_TIME:Number=0.2;
            public var contentMask:flash.display.MovieClip;
            public var btnHolder_mc:flash.display.MovieClip;
            public var holder_mc:flash.display.MovieClip;
            public var indicator_mc:flash.display.MovieClip;
            public var prev_mc:flash.display.MovieClip;
            public var next_mc:flash.display.MovieClip;
            public var current:int;
            public var xmlData:XML;
            public var timer:flash.utils.Timer;
            public var timerGoing:Boolean;
    Here is the folder uploaded on the server for you to get clear picture, please click on this link to download the entire folder. http://www.touchpixl.com/ForumsAdobecom.zip
    I am not being able to resolve the issue, it needs a master to get the proper solution. I would request you to help me.
    Thanks & Regards
    Sanjib Das

    Here is the entire code of MainTimeline.as below, please correct it.
    package FC_Home_Ads_Holder_v2_fla
        import __AS3__.vec.*;
        import adobe.utils.*;
        import com.danehansen.*;
        import com.greensock.*;
        import com.greensock.easing.*;
        import com.greensock.plugins.*;
        import flash.accessibility.*;
        import flash.desktop.*;
        import flash.display.*;
        import flash.errors.*;
        import flash.events.*;
        import flash.external.*;
        import flash.filters.*;
        import flash.geom.*;
        import flash.globalization.*;
        import flash.media.*;
        import flash.net.*;
        import flash.net.drm.*;
        import flash.printing.*;
        import flash.profiler.*;
        import flash.sampler.*;
        import flash.sensors.*;
        import flash.system.*;
        import flash.text.*;
        import flash.text.engine.*;
        import flash.text.ime.*;
        import flash.ui.*;
        import flash.utils.*;
        import flash.xml.*;
        public dynamic class MainTimeline extends flash.display.MovieClip
            public function MainTimeline()
                new Vector.<String>(6)[0] = "Productivity";
                new Vector.<String>(6)[1] = "Leadership";
                new Vector.<String>(6)[2] = "Execution";
                new Vector.<String>(6)[3] = "Education";
                new Vector.<String>(6)[4] = "Speed of Trust";
                new Vector.<String>(6)[5] = "Sales";
                super();
                addFrameScript(0, this.frame1);
                return;
            public function init():void
                var loc1:*=null;
                com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.AutoAlphaPlugin]);
                loc1 = new flash.net.URLLoader(new flash.net.URLRequest(this.XML_LOC));
                var loc2:*;
                this.next_mc.buttonMode = loc2 = true;
                this.prev_mc.buttonMode = loc2 = true;
                stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
                stage.align = flash.display.StageAlign.TOP_LEFT;
                loc1.addEventListener(flash.events.Event.COMPLETE, this.xmlLoaded, false, 0, true);
                this.prev_mc.addEventListener(flash.events.MouseEvent.CLICK, this.minusClick, false, 0, true);
                this.next_mc.addEventListener(flash.events.MouseEvent.CLICK, this.plusClick, false, 0, true);
                return;
            public function xmlLoaded(arg1:flash.events.Event):void
                var loc1:*=null;
                var loc2:*=0;
                this.xmlData = new XML(arg1.target.data);
                loc2 = 0;
                while (loc2 < this.LABELS.length)
                    loc1 = new Btn(this.LABELS[loc2], loc2);
                    this.btnHolder_mc.addChild(loc1);
                    this.BTNS.push(loc1);
                    trace(this.LABELS[loc2]);
                    ++loc2;
                this.current = uint(this.xmlData.@firstPick);
                trace("-----width-----");
                trace(this.contentMask.width);
                var loc3:*=this.contentMask.width / this.LABELS.length;
                trace(loc3);
                loc2 = 0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].width = loc3;
                    this.BTNS[loc2].x = loc3 * loc2;
                    ++loc2;
                this.btnHolder_mc.addEventListener(flash.events.MouseEvent.CLICK, this.numClick, false, 0, true);
                this.selectMovie();
                return;
            public function numClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                this.current = arg1.target.i;
                this.selectMovie();
                return;
            public function killTimer():void
                this.timerGoing = false;
                if (this.timer)
                    this.timer.reset();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                    this.timer = null;
                return;
            public function selectMovie():void
                if (this.timerGoing)
                    this.timer = new flash.utils.Timer(uint(this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].@delay), 1);
                    this.timer.start();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                while (this.holder_mc.numChildren > 0)
                    this.holder_mc.removeChild(this.holder_mc.getChildAt(0));
                var loc1:*=new flash.display.Loader();
                loc1.load(new flash.net.URLRequest(this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].@loc));
                this.holder_mc.addChild(loc1);
                var loc2:*=0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].deselect();
                    ++loc2;
                this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].select();
                var loc3:*=this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].x + this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].width / 2 + this.btnHolder_mc.x;
                trace("addLength:" + this.xmlData.ad.length());
                trace(loc3, com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length()));
                com.greensock.TweenLite.to(this.indicator_mc, 0.3, {"x":loc3, "ease":com.greensock.easing.Cubic.easeOut});
                loc1.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, this.adLoaded, false, 0, true);
                return;
            public function adLoaded(arg1:flash.events.Event):void
                var evt:flash.events.Event;
                var loc1:*;
                evt = arg1;
                try
                    evt.target.content.xmlData = this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())];
                catch (er:Error)
                return;
            public function minusClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current - 1);
                loc1.current = loc2;
                this.selectMovie();
                return;
            public function plusClick(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function ENDED(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function STARTED(arg1:flash.events.Event):void
                this.killTimer();
                return;
            function frame1():*
                this.timerGoing = true;
                addEventListener("endNow", this.ENDED, false, 0, true);
                addEventListener("startNow", this.STARTED, false, 0, true);
                this.init();
                return;
            public const XML_LOC:String=stage.loaderInfo.parameters.xmlLoc ? stage.loaderInfo.parameters.xmlLoc : "home_ads.xml";
            public const LABELS:__AS3__.vec.Vector.<String>=new Vector.<String>(6);
            public const BTNS:__AS3__.vec.Vector.<Btn>=new Vector.<Btn>();
            public const TRANSITION_TIME:Number=0.2;
            public var contentMask:flash.display.MovieClip;
            public var btnHolder_mc:flash.display.MovieClip;
            public var holder_mc:flash.display.MovieClip;
            public var indicator_mc:flash.display.MovieClip;
            public var prev_mc:flash.display.MovieClip;
            public var next_mc:flash.display.MovieClip;
            public var current:int;
            public var xmlData:XML;
            public var timer:flash.utils.Timer;
            public var timerGoing:Boolean;

  • Windows 8.1 and IE11 - Critical Error: Object doesn't support property or method 'addEventListener'

    Our SharePoint 2010 sites don't work very well in Windows 8.1/IE11!!
    When opening list items or forms etc we get Critical Error : Object doesn't support property or method 'addEventListener'. It looks like it's possibly linked to InfoPath forms. Given that a large chunk of our users will probably be upgrading
    to Windows 8.1 as we speak this is slightly worrying!
    Has anyone else noticed this, or is it something to do with our deployment?  We're running SP2010 SP2 with latest CU.

    In older versions of IE, attachEvent is
    used to attach an event handler for some event on some element. But as per the update , starting with IE11, attachEvent is
    deprecated and you should use addEventListener instead.
    IE has included support for addEventListener from
    IE9 and above only. So if you still need to support IE8, I suggest you use some cross-browser library like jQuery to bind event handlers instead of vanilla javascript.
    As you're already using jQuery, you can bind events like below
    $('#yourElement').on('click', function(){
    // do something when you click on yourElement

  • TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::AdvancedDataGrid/findHeaderRenderer()

    Can anyone throw any light on this obscure Flex error?...
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.controls::AdvancedDataGrid/findHeaderRenderer()[...path...\projects\datavisualisation\ src\mx\controls\AdvancedDataGrid.as:1350]
    at mx.controls::AdvancedDataGrid/mouseEventToItemRenderer()[...path...\projects\datavisualis ation\src\mx\controls\AdvancedDataGrid.as:1315]
    at mx.controls.listClasses::AdvancedListBase/mouseMoveHandler()[...path...\projects\datavisu alisation\src\mx\controls\listClasses\AdvancedListBase.as:8091]
    I found a related bug reported on Jira: https://bugs.adobe.com/jira/browse/FLEXDMV-1631
    But in our case, we have no zoom effect.  It may be timing related, as there is a lot of computation going on when this page, and the ADG is first initialised.
    Please?... Any suggestions or workarounds?  We don't want this falling over in the hands of our customers.
    <rant> And people wonder why I hate Flex!?  These obscure instabilities never happen when I develop Pure ActionScript.  The Flash platform is wonderfully stable.  But as soon as you bring Flex into play, things take longer to develop, it's a struggle to extend or change the behaviour of the bloated components, and everything falls apart as these bugs begin to surface.</rant>

    facing the same problem... sdk 4.1. no solution for about 2 years ????

  • Property u201Czero allowedu201D must be identical for all Key Figures.

    I am having the following error message when trying to run a Statistical Forecast in the Background.  The job cancels out and I receive the error message:  Property u201Czero allowedu201D must be identical for all Key Figures. 
    When I look in RSA1 under Key Figures Details "zero allowed" appears to be checked for all Key Figures.  Can anyone point me in the correct direction I've already tried searching and did not find the answer.
    Thanks.

    HI,
    The setting is not in RSA1 but is in /SAPAPO/MSDP_ADMIN - Administration of Demand Planning and Supply Network Planning
    choose the relevant Planning area right button click on the Planning area choose change key figure settings. From here you can check the flag Zero allowed for the key figure that Stat. FCST is generated.
    Best Regards,
    Ivo Stoyanov

  • Error when trying to edit property pallet of a text item

    HI All,
    I try editing property pallet of a text item for the property 'Formula'
    Extact value in that column is :
    case when :B_tran_item.item_status = 'V' then 0 else round((nvl(:B_tran_item.unit_retail,0) * nvl(:B_tran_item.uom_quantity,0)) - nvl(:B_tran_item.TI_total_item_disc_amt,0), INTERNAL_VARIABLES.GV_curr_rtl_dec_loc) end
    Tried chaning to :
    round((nvl(:B_tran_item.unit_retail,0) * nvl(:B_tran_item.uom_quantity,0)) - nvl(:B_tran_item.TI_total_item_disc_amt,0), INTERNAL_VARIABLES.GV_curr_rtl_dec_loc)
    I got the pl/sql error.
    PL/SQL ERROR 0 at line 2, column 1 statement ignored.
    Please provide your inputs at the earliest.
    Regards,
    Amrutha.C
    Edited by: user604995 on Apr 9, 2012 6:03 AM

    Hi,
    Now its giving, bad bind variable error.
    it doesn't work for me.
    It works fine if i give
    case when :B_tran_item.item_status = 'V' then 0 else round((nvl(:B_tran_item.unit_retail,0) * nvl(:B_tran_item.uom_quantity,0)) - nvl(:B_tran_item.TI_total_item_disc_amt,0), INTERNAL_VARIABLES.GV_curr_rtl_dec_loc) end
    It error out only if remove case
    round((nvl(:B_tran_item.unit_retail,0) * nvl(:B_tran_item.uom_quantity,0)) - nvl(:B_tran_item.TI_total_item_disc_amt,0), INTERNAL_VARIABLES.GV_curr_rtl_dec_loc)
    Regards,
    Amrutha.C
    Edited by: user604995 on Apr 9, 2012 6:43 AM

  • Mindstorm NXT 2.0 on Windows 7, Fatal Error!! Required NIPathsDir property NIMDFMANIF​ESTDIR is undefined.

    I'm getting this error when trying to install LEGOS Minstorm NXT 2.0 on Windows 7 on my home computer: Fatal Error!! Required NIPathsDir property NIMDFMANIFESTDIR is undefined.
    It requires admin privileges, so I log on as admin.  I've tried changing the Compatibility to Window XP Service Pack 2 or 3 and also chaning the Compatibility to use admini privileges.
    I've found from solutions to similar errors posted on this website that it might be a problem with it not being able to find the My Documents folder.
    There is a My Documents folder under the Admin user, but the target location is Documents, not My Documents.  It won't let me change the target location to My Documents.  I try copying the directory and changing the name by it won't let me.
    I've tried part of a solution posted here:
    http://forums.ni.com/ni/board/message?board.id=460​&message.id=1000&query.id=7360616#M1000
    I did everything except for the part about "You will need to make another package to add a My Documents folder to the local service user so that would be located in "C:\Documents and Settings\Local Service\My Documents"." because I didn't know how to do that.  Plus, I think I would still run into the problem that the target location is not "My Documents", but I suppose I could just enter the target location as "Documents" if I knew how to specify it when I "make another package".

    You really need to go to Legos for support. The only support here is with using LabVIEW with NXT.

Maybe you are looking for

  • Using Multiple-level folders in lightroom import

    Let's say I want to import images into the following directory structure  "USA\New York"  where "USA" and therefore "New York" does not exist.   I cannot use "Into Subfolder" as multilevel directories can not be entered here. So I need to create the

  • Problem with Integration Directory

    Hi, I have problem with Integration Directory while connecting it showing the fallowing Error.any body help me with some solution thanks in advance. Application cannot be started! Details: com.sap.engine.services.ejb.exceptions.deployment.EJBConfigur

  • Firefox is wiping out my Magnifier at the top of the sccreen.

    When I double click the Firefox Icon on my Desktop it opens but covers up my Magnifier at the top of the screen and all of the Task Bar at the bottom. So I can not do anything. The Magnifier is still running, but is covered up with the Firefox screen

  • KPI Reports in BI - Help required

    Hi, I am having a requirement - KPI Report needs to show KPI target values. These data are neither stored in any transactional documents (such as Notification or Work Order) nor in any additional fields that can be used via customizing. This data is

  • How to eject dvd from the macbookpro

    How can I eject the dvd?  The dvd is not shown in the finder as a device, the eject button is not working.  You don't see the dvd on the desktop.