Actionscript Functions Help

Hey, can someone please help me find a solution in this code that i've got. I'm using this code to make gameplay mechanics of a rhythm game but there seems to be a problem with the code that i've coloured in red.
var timer1:Timer = new Timer (1000,1);
timer1.addEventListener(TimerEvent.TIMER, addRed);
var score:int;
stage.addEventListener(KeyboardEvent.KEY_DOWN, hitRed);
function addRed(e:TimerEvent){
          var activeRed:red = new red();
          activeRed.x = 75;
          activeRed.y = -100;
          activeRed.vy = 7.5;
          addChild(activeRed);
          activeRed.addEventListener(Event.ENTER_FRAME, animRed);
function hitRed(activeRed:KeyboardEvent){
          if (activeRed.keyCode == Keyboard.S){
                    activeRed.target.removeEventListener(Event.ENTER_FRAME, animRed);
                    activeRed.target.parent.removeChild(activeRed);
                    score += 1
function animRed(e:Event){
          var borderBottom = 800 + (e.target.height / 2);
          e.target.y += e.target.vy;
          if(e.target.y > borderBottom){
                    e.target.removeEventListener(Event.ENTER_FRAME, animRed);
          e.target.parent.removeChild(e.target);

If you are getting that error, things are not likely to work in any case. 
The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
- is declared but not instantiated
- doesn't have an instance name (or the instance name is mispelled)
- does not exist in the frame where that code is trying to talk to it
- is animated into place but is not assigned instance names in every keyframe for it
- is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

Similar Messages

  • Actionscript function when hovering

    Has anyone ever tried to run an actionscript function when
    hovering over the <a>Anchor tag of HTMLtext?
    Here is the situation. I have an HTML text field and I want
    to be able to embed definitions of key words. In turn, when the
    user hovers over the world, I’d like to open a window
    containing the definition.
    While one can add a "Hover" effect with CSS, i wish to run a
    function when an EVENT LINK is hovered over. Can anyone suggest a
    way to do this or maybe a workaround?
    var htmlText1:String = "<a
    href='event:hoverOverMe'>Hover Here Please</a>";
    this.textArea1.htmlText = htmlText1;
    this.textArea1.addEventListener("MOUSE_OVER", overHandler)
    public function overHandler(event:MouseEvent)
    //Get mouseover information
    //Possible get information from the anchor tag under the
    mouse?
    Any help to point me in the right direction is appreciated.
    Art

    Hi! This interests me as well, so I'll be following this
    thread with keen interest. Although the following doesn't answer
    the question, it does seem to eliminate the possibility of using an
    anchor tag in the way that you have suggested, the Alert Box in the
    anonymous function reveals the text and its formatting but the
    anchor tag has been stripped out.
    But I'm hoping as I guess would you, that the document object
    model caters for the immediate objects (such as your illustrative
    tag had it not been stripped out) in the event bubbling phase ...
    as the Alert box reveals a rich set of tags I should think that
    there is at least a little hope here.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="init()"
    >
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    public function init():void
    testHTML.htmlText="<a id='anchorID' href='#'>This is
    some text</a>"
    testHTML.addEventListener(MouseEvent.MOUSE_MOVE,function(e:MouseEvent){Alert.show(e.targe t.htmlText.toString());});
    ]]>
    </mx:Script>
    <mx:TextArea id="testHTML" width="300" height="300">
    </mx:TextArea>
    </mx:Application>

  • Call Actionscript function from Javascript

    Can anyone show me a simple example of calling an
    actionscript function from within javascript? Everything I have
    found searching online refers to using the ExternalInterface but I
    was sure I also read that Adobe Air does not support it. I am
    currently using htmlloader to load a html page containing
    javascript into an <mx:HTML>. But I cant seem to touch the
    actionscript functions from within javascript. I am specifically
    trying to work with the FCKeditor that I have integrated so if
    anyone has any examples other methods of integrating the editor I
    would love to see them as well.
    Thanks!

    Let's assume u have embeded swf object named "flashObj"
    <embed src="MYSWF.swf" quality="high"
    width="100%" height="100%" name="flashObj"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.adobe.com/go/getflashplayer">
    </embed>
    On each time onblur is called it invoke AS function
    myActionScriptFn
    window.onblur = function() {
    if(flashObj != null){
    flashObj.myActionScriptFn(navigator.appName);
    You need to add a listener in Action Script code
    ExternalInterface.addCallback("myActionScriptFn",
    myActionScriptFn);
    public function myActionScriptFn(appName:String):void
    // Any code here
    Regards

  • Replace function help

    Hi all, sry for post sql problens in APEX forum, but i realy need help for this...
    I´m trying to replace : for , to make a select where in () with more then one value... but the replace function its not work with more then 1 value...
    like this
    select name from vw_requerente where id_cliente in REPLACE(:P5000_CLIENTE,':',',')in that item has this value: 71:72:73 , but all i get is a ORA: INVALID NUMBER, how can i make a replace function to work with this?
    tnks alot and sry my english.

    He also posted this in the pl/sql forum and received some good advice there:
    replace function help
    Especially the tom kyte blog portion:
    [http://tkyte.blogspot.com/2006/06/varying-in-lists.html]
    Thank you,
    Tony Miller
    Webster, TX

  • How Queues functionality helps in Service Module

    Hi,
    How Queues functionality helps in Service Module.
    how to get the queue details assign to the service call(Technician)
    Please Suggest
    Regards
    Vikram

    Sridharan,
    How to add technician to a queue.
    Employee should be user of SAP?
    Please Suggest.
    Vikram

  • TS1702 I just updated numbers to newest version and found that numbers quits to home screen when I tap the information icon on "function  help", it starts to load the "help" then quits  this happens on both my ipad3 & iphone5

    2/3/14: I just updated numbers to newest version and found that numbers quits to home screen when I tap the information icon on "function  help", it starts to load the "help" then quits. It happens on both my ipad3 &amp; iphone5. I tried restarting the devices but it didn't help.

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
    iOS 7: Help with how to fix a crashing app on iPhone, iPad (Mini), and iPod Touch
    http://teachmeios.com/help-with-how-to-fix-a-crashing-app-on-iphone-ipad-mini-an d-ipod-touch/
    Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/TS1702
    Delete the app and redownload.
    Downloading Past Purchases from the iTunes Store, App Store and iBooks Store
    http://support.apple.com/kb/ht2519
     Cheers, Tom 

  • Need PP Functional help for some legacy fields

    Hi all,
    I am a BW consultant. I need to replicate in SAP-BW some reports that are currently in a legacy system (non SAP). I have identified the functional area for those reports as PP. I need a little functional help from you guys to find out what some fields in the legacy system mean in SAP. Once I know the R/3 fields (and source tables if someone can tell me), I can move forward with mapping those fields into BW objects and the rest of the process.
    The reason why I am seeking help from here is, unfortunately our functional team is not available right now and their availability is indefinite. So I just want to keep myself busy till they are back.
    Well, here are the fields that I need help for (for now)
    The report is for Daily summary of activities at a plant
    Work order process
    Work order type
    Daily Created Bags
    Daily Capacity Bags (Bags per Hour Rate* Available Hours)
    Daily Count of Work Order Number
    Goods issued for work order completion
    Goods finished
    Please help me identify what R/3 fields (and their tables) correspond to the above legacy fields
    Points WILL be assigned for helpful answers
    Thank you

    Hi,
    Work order process - I assume this is the set of operations for the order - AFVC (table)
    Work order type      - AUFK - (Field) AUART data needs to be fetched for AUFNR(Work order number)
    Daily Created Bags - MSEG - data needs to be fetched for BWART = 101 or 102 and AUFNR(Work order number)
    Goods issued for work order completion - MSEG- data needs to be fetched for  BWART = 261 and AUFNR(Work order number)
    Goods finished - MSEG - data needs to be fetched for BWART = 101 or 102 and AUFNR(Work order number)
    Regards,
    Prasobh

  • Object not embedded error whenever i tried to access actionscript function from js

    hi,
    i badly need help in embedding my swf in html , because it keeps saying that my object is undefined.
    object undefined error.
    i am trying to pass values from js to actionscript and then i embedded it.
    i tried to embed it using embed and object tags only, but the javascript functions are not working.
    It keeps saying that object is expected.
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
      codebase="http://download.macromedia.com/" WIDTH="500" HEIGHT="500" id="flaMovie1">
      <PARAM NAME=movie VALUE="dwpPlayer.swf">
      <PARAM NAME="allowScriptAccess" value="always" />
      <PARAM NAME=quality VALUE=high>
      <EMBED src="dwpPlayer.swf"
        quality=high bgcolor="#aaaaaa" WIDTH="400" HEIGHT="200"
        TYPE="application/x-shockwave-flash"
        PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
      </EMBED>
    </OBJECT>
    i am trying to embed it that way, the swf is showing but the javascripts and functions are not working..
    please help. i already tried using the AC FL RunContent, yes it is showing but i can't postion my items using this
    <table>
                            <td>
                            hoy!
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div visibility:visible>
                                <script language="JavaScript" type="text/javascript">
                                AC_FL_RunContent(
                                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
                                'width', '400',
                                'height', '400',
                                'src', 'dwpPlayer',
                                'quality', 'high',
                                'pluginspage', 'http://www.adobe.com/go/getflashplayer',
                                'align', 'middle',
                                'play', 'true',
                                'loop', 'true',
                                'scale', 'showall',
                                'wmode', 'window',
                                'devicefont', 'false',
                                'id', 'dwpPlayer',
                                'bgcolor', '#ffffff',
                                'name', 'dwpPlayer',
                                'menu', 'true',
                                'allowFullScreen', 'false',
                                'allowScriptAccess','always',
                                'movie', 'dwpPlayer',
                                'salign', ''
                                ); //end AC code
                                </script>
                                </div>
                            </td>

    here's a sample of correct embedding html.  you'll need AC_RunActiveContent.js, too:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Bday-flowers_Preview_NoMusic</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    </head>
    <body bgcolor="#cdb4a7">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!--
    <p align="center"><font face="Arial" size="40" color="#2d3271" letterSpacing="0.000000" kerning="1">Preview Only</font></p><p align="center"></p><p align="center"><font face="Arial" size="40" color="#2d3271" letterSpacing="0.000000" kerning="1">(Your message will </font></p><p align="center"><font face="Arial" size="40" color="#2d3271" letterSpacing="0.000000" kerning="1">appear here.)</font></p><p align="center"></p><p align="center"></p><p align="center"></p><p align="center"></p><p align="center"></p><p align="center"></p>
    -->
    <!-- saved from url=(0013)about:internet -->
    <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent(
                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                'width', '990',
                'height', '680',
                'src', 'Bday-flowers_Preview_NoMusic',
                'quality', 'high',
                'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'showall',
                'wmode', 'window',
                'devicefont', 'false',
                'id', 'Bday-flowers_Preview_NoMusic',
                'bgcolor', '#cdb4a7',
                'name', 'Bday-flowers_Preview_NoMusic',
                'menu', 'true',
                'allowFullScreen', 'true',
                'allowScriptAccess','sameDomain',
                'movie', 'Bday-flowers_Preview_NoMusic',
                'salign', ''
                ); //end AC code
    </script>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="990" height="680" id="Bday-flowers_Preview_NoMusic" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
        <param name="movie" value="Bday-flowers_Preview_NoMusic.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#cdb4a7" />    <embed src="Bday-flowers_Preview_NoMusic.swf" quality="high" bgcolor="#cdb4a7" width="990" height="680" name="Bday-flowers_Preview_NoMusic" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    </noscript>
    </body>
    </html>

  • AS3 Timer Function Help

    Hi,
    I am trying to create a desktop countdown timer (personal project) however I am getting some issues with the script.  The countdown timer works fine until I try and get user inputs.  I have created some variables  to store the end date and have a series of input fields for the user to provide their desired date.
    I have provided the complete actionscript below in the hope this will help idenitfy the issue.  Basically when the user inputs their desired date and click OK the application takes these values converts them to a number and assigns them to the date variables.  Then it is supposed to update the countdowntimer start counting down from this new date value.
    I have used trace to ensure the initial values are correct (which they are) and the ensure the user inputs are getting through and they are, I just can't seem to get the timer to refresh with the updated end date.
    CODE
    // import flash common system classes
    import flash.desktop.*;
    import flash.net.*;
    import flash.display.*;
    import flash.events.*;
    import flash.system.Capabilities;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.text.*;
    import flash.display.Sprite;
    // Create Variables and data type them to store application end Date
    var myYear:Number;
    var myMonth:Number;
    var myDay:Number;
    //Create user variables to store user inputs
    var userYear:String;
    var userMonth:String;
    var userDay:String;
    // Give application varibales initial values
    myYear = 2009;
    myMonth = 6;
    myDay = 2;
    // As Jan is referenced in AS as 0 -1 from the actual month number;
    myMonth = myMonth -1;
    //Assign a new Date variable with the target date initially set.
    var endDate:Date = new Date(myYear,myMonth,myDay);
    trace (endDate);
    //create time with a delay of 1 second
    var countdownTimer:Timer = new Timer(1000);
    countdownTimer.addEventListener(TimerEvent.TIMER, updateTime);
    countdownTimer.start();
    //Update timer function fired every second
    function updateTime(e:TimerEvent):void
         var now:Date = new Date();
         var timeLeft:Number = endDate.getTime() - now.getTime();
         var seconds:Number = Math.floor(timeLeft / 1000);
         var minutes:Number = Math.floor(seconds / 60);
         var hours:Number = Math.floor(minutes / 60);
         var days:Number = Math.floor(hours / 24);
         seconds %= 60;
         minutes %= 60;
         hours %= 24;
         var sec:String = seconds.toString();
         var min:String = minutes.toString();
         var hrs:String = hours.toString();
         var d:String = days.toString();
         if(sec.length < 2) {
              sec = "0" + sec;
         if(min.length < 2) {
              min = "0" + min;
         if(hrs.length < 2) {
              hrs = "0" + hrs;
         if(d.length == 2) {
              d = "0" + d;
         if(d.length == 1) {
              d = "00" + d;
         var time:String = d + ":" + hrs + ":" + min + ":" + sec;
         countDown_mc.time_txt.text = time;
    //create event listener
    background_mc.addEventListener(MouseEvent.MOUSE_DOWN, back_CLICK);
    close_btn.addEventListener(MouseEvent.CLICK, closeButton_CLICK);
    settings_btn.addEventListener(MouseEvent.CLICK, settingsbtn_CLICK);
    settings_mc.ok_btn.addEventListener(MouseEvent.CLICK, okbtn_CLICK);
    settings_mc.cancel_btn.addEventListener(MouseEvent.CLICK, cancelbtn_CLICK);
    //***** ASSIGN FUNCTIONS ******
    //function to action when back MC listener is activated
    function back_CLICK(e:MouseEvent):void
         stage.nativeWindow.startMove();
    //function to action when the close button listener is activated
    function closeButton_CLICK(e:MouseEvent):void
         NativeApplication.nativeApplication.exit();
    //Set function for click event on settings button
    function settingsbtn_CLICK(e:MouseEvent):void
         //Setup an alpha tween on the timer display
         var clockAlphaTween1:Tween = new Tween(countDown_mc, "alpha", Strong.easeOut, 1,0,2,true);
         //Listen for when the tween has finished and then run function
         clockAlphaTween1.addEventListener(TweenEvent.MOTION_FINISH, clockAlphaTween1_FINISH);
    //Function for when alpha tween above is finished
    function clockAlphaTween1_FINISH(e:TweenEvent):void
         //Setup an alpha tween for the settings mc
         var settingsAlphaTween1:Tween = new Tween(settings_mc, "alpha",Strong.easeOut, 0,1,2,true);
         //Setup a motion tween on the x axis for settings mc
         var settingsXTween1:Tween = new Tween(settings_mc, "x",Strong.easeOut, 416, 96, 2,true);
    //Set function for click event for the cancel button
    function cancelbtn_CLICK(e:MouseEvent):void
         //Setup an alpha tween on the settings mc
         var settingsAlphaTween2:Tween = new Tween(settings_mc, "alpha",Strong.easeOut, 1,0,2,true);
         //Setup a motion tween on the x axis for setting mc
         var settingsXTween2:Tween = new Tween(settings_mc, "x",Strong.easeOut, 96, 416, 2,true);
         //Listen for when the tween above has finished then run function
         settingsXTween2.addEventListener(TweenEvent.MOTION_FINISH, settingsXTween2_FINISH);
    //Function for when motion tween has finished
    function settingsXTween2_FINISH(e:TweenEvent):void
         //Setup alpha tween for timer display
         var clockAlphaTween2:Tween = new Tween(countDown_mc, "alpha", Strong.easeOut, 0,1,2,true);
    //Set function for click event on ok button
    function okbtn_CLICK(e:MouseEvent):void
         //Assign user inputed values to variables
         userYear = settings_mc.yearInput_txt.text;
         userMonth = settings_mc.monthInput_txt.text;
         userDay = settings_mc.dayInput_txt.text;
         //Convert string values to number data type and replace app variables with these values
         myYear = Number(userYear);
         myMonth = Number(userMonth)-1;
         myDay = Number(userDay);
         //Close the settings mc with alpha and motion tweens
         var settingsAlphaTween3:Tween = new Tween(settings_mc, "alpha",Strong.easeOut, 1,0,2,true);
         var settingsXTween3:Tween = new Tween(settings_mc, "x",Strong.easeOut, 96, 416, 2,true);
         //Listen for when motion tween has finished and run function
         settingsXTween3.addEventListener(TweenEvent.MOTION_FINISH, settingsXTween3_FINISH);
    //Function for when motion tween has finished
    function settingsXTween3_FINISH(e:TweenEvent):void
         //Run functions
         clearSettings();
         applyNewTimer();     
         //Setup motion tween on x axis for timer display
         var clockAlphaTween3:Tween = new Tween(countDown_mc, "alpha", Strong.easeOut, 0,1,2,true);
    //Function to clear the setting input fields
    function clearSettings()
         settings_mc.yearInput_txt.text = "";
         settings_mc.monthInput_txt.text = "";
         settings_mc.dayInput_txt.text = "";
    //Function to assign new endDate with new user values.
    function applyNewTimer()
         var endDate:Date = new Date(myYear,myMonth,myDay);
         trace (endDate);

    if its a timer issue; I think your missing the repeat count, which is why it stops after its first run, modify to match with the follwing:
    var countdownTimer:Timer = new Timer(1000, 999);// infinite amount of repeats??
    Timer(delay:Number, repeatCount:int = 0)
    Constructs a new Timer object with the specified delay and repeatCount states.
    If that doesn't solve your problem, try posting the errors you get, or better yet post your fla online so I have a better idea of whats going on

  • Actionscript 2 help needed on rotating movieclip

    I need help with the "stopping" of a movieclip rotation.  I think this would be easy for you Flash gurus but impossible for me.
    Here is the description.  The code below shows a movieclip rotating after mouse click but i want it to stop in place after 60 degrees.  Basically I need it to rotate 60 degrees after every mouse click and stop.  The "trace" function is there so i know something will happen when it rotates a certain degree.  Right now it rotates continually after the mouse click.
    mc.onRelease=function(){
         mc.onEnterFrame=function(){
              mc._rotation=mc._rotation+=10;
              if(mc._rotation==60){
              trace("HIT");
    As a bonus i would like the rotation of every 60 degrees to ease in and out.  Thank you in advance for any help you can give me.

    When the _rotation value reaches the 60 degree mark, you need to delete the onEnterFrame delete mc.onEnterFrame;.
    There is only one position where the _rotation value will == 60, so if the intention is to stop it at every 60 degrees, then you'll need to change the conditional to be...
    if(mc._rotation%60==0){
    So....
    mc.onRelease = function(){
         mc.onEnterFrame = function(){
              mc._rotation = mc._rotation+=10;
              if(mc._rotation%60==0){
                 trace(mc._rotation);
                 delete mc.onEnterFrame;
    If you want to have easing, I suggest looking into using Actionscript tweening.  With steps of 10 there's little room to ease.

  • Actionscript 3 Help

    Hello !
    I am trying to build a dynamic menu with php , mysql and
    actionscript 3 !
    As far as this point all works fine as i can display my menu
    to flash using actionscript 3 and loading vars from php
    the problem is that i cant pass the variable correct to some
    functions i have, so my menu is useless.
    Please someone to help me or guide me to a possible solution.

    This is the Flash Player forum; why don't you post this in the ActionScript 3 forum...?

  • Actionscript 3 help. Please respond!

    Hello, I'm new to Actionscript 3 and still getting the hang of all the changes and such. However, one problem is sorely annoying me, and I need some outside opinions on what could be wrong. The code is basically a rewritten version of some code I found someplace else, and my main goal is to find out the error with the code. The code looks like:
    package
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    public class Main extends MovieClip
    var sceneOne:SceneOne;
    var sceneTwo:SceneTwo;
    var sceneThree:SceneThree;
    public function Main()
    sceneOne = new SceneOne(); trace("Working");
    sceneTwo = new SceneTwo(); trace("Working");
    sceneThree = new SceneThree(); trace("Working");
    addChild(sceneOne); trace("Working");
    //Add event listeners
    this.sceneTwo.OutsideButton.addEventListener(MouseEvent.CLICK, onHillButtonClick); trace("Working");
    this.sceneTwo.bathroomButton.addEventListener(MouseEvent.CLICK, onPondButtonClick); trace("Working");
    this.sceneOne.livingRoomButton.addEventListener(MouseEvent.CLICK, onBackButtonClick_Hill); trace("Working");
    this.sceneThree.livingRoomButton.addEventListener(MouseEvent.CLICK, onBackButtonClick_Pond); trace("Working");
    //Event handlers
    function onHillButtonClick(event:MouseEvent):void
    addChild(sceneOne);
    removeChild(sceneTwo);
    function onPondButtonClick(event:MouseEvent):void
    addChild(sceneThree);
    removeChild(sceneTwo);
    function onBackButtonClick_Hill(event:MouseEvent):void
    addChild(sceneTwo);
    removeChild(sceneOne);
    function onBackButtonClick_Pond(event:MouseEvent):void
    addChild(sceneTwo);
    removeChild(sceneThree);
    The error is occuring @ line 22, saying:
    TypeError: Error #1010: A term is undefined and has no properties.
    at Main()[/Users/Mike/Documents/Main.as:22]
    I'm unsure as to what the problem is, as I give it properties. Please help, thank you.

    This is the Flash Player forum; why don't you post this in the ActionScript 3 forum...?

  • Actionscript Function to Reload CFGrid

    I'm looking for some guidance on how to use actionscript to
    reload a cfgrid on an onclick event. I am currently using getURL()
    to call a cfc to asynchonously update the query driving the grid,
    but I cannot figure out how to actually refresh the grid itself
    without reloading the page.
    Any help would be tremendously appreciated.
    Thanks
    Joel

    BKBK --
    Thanks, as always, for your response.
    I forgot to mention in my previous post that I am using a
    flash format form, and so the AJAX goodness of CF8 (which I don't
    yet have, unfortunately) will not work. Do you have any idea how to
    accomplish what I need with actionscripting? Basically, I need to
    do exactly what the grid.Coldfusion.refresh function does for AJAX,
    but in AS.
    Thanks!
    Joel

  • Actionscript & PHP HELP!

    I need someone to help me with this.The form information does
    not come into my email. Server accepts PHP files so it has to be
    something in the scripting, either Actionscript or PHP.
    Might be best if you email me so I can send you samples. It
    would be easier to understand. My email is [email protected]
    (adelphia merged with comcast). I really need to solve this. An
    experienced actionscript/php developer should be able to solve the
    problem. Hope I hear from you soon. Put in subject line: HELP PHP
    Actionscript or something like that so I can recognize the message.
    Mary Alice
    [email protected]

    I attached the code to the submit button and on publish it
    returned the following error:
    **Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 1:
    Statement must appear within on handler
    submitBtn.onPress=function(){
    So it says it must appear within an "on handler" so I put all
    your code within an on(Release) handler and republished. It
    returned no errors. However, when tested, I entered the data and
    pressed submit and nothing happened.
    Thank you for your help so far, hopefully we can get this
    figured out.
    I'm using Flash 8, not CS3 if that makes a difference.

  • IP-Planning Function Help!! Is this possible?

    Dear Experts,
    I am relatively new to IP and I want to check if this is possible. I would like to copy a Keyfigure value from one Aggregation level to another Aggregation level.
    Here is my scenario.
    I have an Aggregation level 1 where it has characteristics Product Group, Year, Version and Percentage. So the planner would plan as
    Product Grp-Year-Version---Percentage
    GROUP1-2010-100---10%
    GROUP2-2010-100---20%
    GROUP3-2010-100---15%
    Now I have another Aggregation level 2 where it has characteristics Product Group, Product, Year, Version and Cost. I  would want the Percentage value which was planned in Agg. level 1 to be copied to all the products in that group. My Planning book would look like
    Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
    GROUP1-PRD1-2010-100-10%-$100-$110
    GROUP1-PRD2-2010-100-10%-$200-$220
    GROUP1-PRD3-2010-100-10%-$300-$330
    GROUP2-PRD4-2010-100-20%-$1000-$1200
    GROUP2-PRD5-2010-100-20%-$2000-$2400
    GROUP2-PRD6-2010-100-20%-$3000-$3600
    GROUP3-PRD7-2010-100-15%-$1000-$1150
    GROUP3-PRD8-2010-100-15%-$2000-$2300
    GROUP3-PRD9-2010-100-15%-$3000-$3450
    Currently The above products already exist in the cube but the Percentage value for them is blank. When the user saves the first planning book I would want the Planning function to be executed and change the percentage value of each product based on the Prodcut group it belongs to. Also I want the Plan cost to be calculated with the percentage value and the standard cost.
    Now when the Planned opens the second planning book he can see the Plan cost already calculated based on the percentage value. However, I will provide an option to the user to change the Plan cost if needed.
    Important thing for me to know how I can  take the percentage value from first few records and change the value of percentage in the second set of records for each product based on its product group.
    Hope my explanation is clear and it is possible to do it.
    Thanks for your inputs.
    KK

    Hey Andrey, I have tried in several different way but was not able to achieve this. My Stupidity!! I am new to IP and this is the first time I am using  Fox formulae  and this is driving me crazy. I think its just a basic understanding issue.
    I just want  to reiterate whay I exactly wanted. Could you please help me with the code.
    Here is the current data in the planning  cube. The first 3 rows are planned from a planning book. The rest of the rows are loaded from a flat file. When the planning function is executed we would want to take the percentage from the Product group and assign it to each product in the rest of the rows there by calculating the Plan cost.
    Current/Before executing Planning Function.
    Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
    GROUP1-#-2010-100-10%-00-00
    GROUP2-#-2010-100-20%-00-00
    GROUP3-#-2010-100-15%-00-00
    GROUP1-PRD1-2010-100-00-$100-00
    GROUP1-PRD2-2010-100-00-$200-00
    GROUP1-PRD3-2010-100-00-$300-00
    GROUP2-PRD4-2010-100-00-$1000-00
    GROUP2-PRD5-2010-100-00-$2000-00
    GROUP2-PRD6-2010-100-00-$3000-00
    GROUP3-PRD7-2010-100-00-$1000-00
    GROUP3-PRD8-2010-100-00-$2000-00
    GROUP3-PRD9-2010-100-00-$3000-00
    After executing Planning Function
    Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
    GROUP1-#-2010-100-10%-00-00
    GROUP2-#-2010-100-20%-00-00
    GROUP3-#-2010-100-15%-00-00
    GROUP1-PRD1-2010-100-10%-$100-$110
    GROUP1-PRD2-2010-100-10%-$200-$220
    GROUP1-PRD3-2010-100-10%-$300-$330
    GROUP2-PRD4-2010-100-20%-$1000-$1200
    GROUP2-PRD5-2010-100-20%-$2000-$2400
    GROUP2-PRD6-2010-100-20%-$3000-$3600
    GROUP3-PRD7-2010-100-15%-$1000-$1150
    GROUP3-PRD8-2010-100-15%-$2000-$2300
    GROUP3-PRD9-2010-100-15%-$3000-$3450
    This is what I would expect after executing the planning function. Could you please help me with the code. What needs to be selected as the Characteristics to be changed and the Key figure and if I have to select any characteristics for conditions.
    Thanks in advance for your help!!
    KK

Maybe you are looking for

  • Sales Order: Item Field Layout

    I would like to change the order in which fields of Sales Order Item display in. Basically move some fields forward so client does not need to scroll so far to right to maintain for example Order number. Is there a place in config where you can contr

  • Direct Execution of query having Unicode Characters

    Direct Execution of query having Unicode Characters Hi All, In my application I am firing a Select Query having Unicode characters in Where Clause under condition like '%%' to Oracle 10g DB from a Interface written in VC6.0... Application funcational

  • Bad date format in generated client API (weblogic server Workshop)

    Hello, i'm making web service client from oracle weblogic workshop. I have used "clientgen" Ant task to generate the client library. The WSDL indicates that certain fields are of type xsd:date.      <xs:complexType name="declarationType">           <

  • Help needed using adobe exportpdf

    The first time I used adobe export pdf it worked well. However the next time and every other time I try to convert a pdf doc to word docx I get the error message at the end of the uploading session. "pdf doc failed to export to m,icrosoft word.  Ther

  • Why wont my iPhone load private message images on facebook?

    i have tried everything . HEEEEEEEEEEEEEEEEEELP