Helps the good implementation of my actionscript code.

http://goodielcreative.com/test.html

Above is a link to the project I'm working on.

I have some problems with it, but the one that concerns me now is correctly implemented in actionscript.  To be more specific the text Dynamics field functionailty on this page.

It works great when you click on a graph in the lower right part of the screen, he spits on the correct information and this is like file/code that gets to work:

package {}

import flash.display.MovieClip;

import flash.events.MouseEvent;



/public class WoodBaluster extends MovieClip { }

var balusterNumber:String;

var balusterName:String;

; var

var stringManip1:String;


public void WoodBaluster() { }

this.buttonMode = true;

this.addEventListener (MouseEvent.MOUSE_DOWN, onDown);


}

private void onDown(event:MouseEvent):String { }


MovieClip (root).stairStage_mc.wood2Balusters1_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters2_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters3_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters4_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters5_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters6_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters7_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters8_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters9_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters10_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters11_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters12_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters13_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters14_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters15_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters16_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters17_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters18_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters19_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters20_mc.gotoAndStop (event.target.name);

MovieClip (root).stairStage_mc.wood2Balusters21_mc.gotoAndStop (event.target.name);

eventName = event.target.name;

stringManip1 = eventName.substring (0, eventName.indexOf ("_")); //get the front part of the _

balusterName = stringManip1.substr (0.2) + "-" + stringManip1.substr (2); //insert has - between the first two characters and the rest

If (MovieClip (root).stairStage_mc.currentFrame == 1)

{

balusterNumber = 'Two baluster';

}

ElseIf (MovieClip (root).stairStage_mc.currentFrame == 2)

{

balusterNumber = 'Three baluster';

}

. Selection_txt.text MovieClip (root) = 'Wood, station to station',

. Selection_txt.AppendText MovieClip (root) (balusterNumber + ",");

. Selection_txt.AppendText MovieClip (root) ("using the" + balusterName + "Baulsters");

return balusterName;

}


}

}

You start with two baluster and then click a column and fills the text field. Works like it's supposed to. same thing if you click three baluster and then click on a chart to a column he fills the text field correctly.  How ever my question is by clicking on two or three buttons baluster must also fill out the text field where "Baluster two" or 'Three baluster' is not just once the chart of the column is selected.

I tried a number of different things but encountered a brick wall. Can be so I'm back to her that I'm more thinking that he or I don't have the skills to think of a solution.

you have only defined this method of onDown() for instances of WoodBaluster.  If 'two or three buttons baluster' are not cases of WoodBaluster, not expected your code to do anything.

Tags: Adobe Animate

Similar Questions

  • Helps the good version of BIOS - Satellite 5200

    I have a Satellite 5200 system unit that I bought in Hong Kong, when I search on the Toshiba site for the upgrade, I wonder for a model number, for example; 701-5200 and 5200-801 etc... Research on the base of the unit, it does NOT display a model number in the way he asks on the Web site.

    Help!

    Hello

    The model number should be placed ant the bottom of the unit.
    There you should find a label with the serial number and the name of your unit.
    Please check.

  • Need help with the launching track pack for forza code 4

    Bought new Forza 4 and the lancer Track Pack code does not work, how do I get a code that is generated in the form I've already paid for it. Rank of loads of numbers and sent 10 s of emails but cant seem to get help.

    This is the help I get when the cat to an Ambassador xbox on xbox.com

    Terry wrote:
    Need help with the launching track pack for forza code 4
    The Xbox Ambassador says:
    Location of Ambassador of the community...
    The Xbox Ambassador says:
    Location of Ambassador of the community...
    The Xbox Ambassador says:
    Your question will be answered by an Ambassador of the Xbox. You have been connected to the Ambassador as a user Xbox [3]
    The Xbox Ambassador says:
    Hello
    Terry wrote:
    Hello
    The Xbox Ambassador says:
    Hey
    Terry wrote:
    just to be on the phone to xbox live support and was told to come here
    The Xbox Ambassador says:
    ok\
    The Xbox Ambassador says:
    What is your problem?
    Terry wrote:
    I bought the 4 for forza ansd 360 new sealed Christmas...
    Terry wrote:
    has got 2 codes that accompanies the game but the pack track code does not work
    The Xbox Ambassador says:
    Wow good
    Terry wrote:
    whenever I put in the code it says code redeemed
    The Xbox Ambassador says:
    I think the code is used. You must return to the retailer
    Terry wrote:
    I tried to, but since I already opened the case they will not accept
    The Xbox Ambassador says:
    Oh. No,
    Terry wrote:
    the code had been used or defective as I am the only person who has touched the game once opened, tried to enter the code when it is open
    The Xbox Ambassador says:
    Maybe it was auto bought?
    Terry wrote:
    so, how do I get another code generated track Pack if defective?
    The Xbox Ambassador says:
    I do not know.
    Terry wrote:
    bought the game new, so I get the track pack
    The Xbox Ambassador says:
    Oh. It's bad.
    The Xbox Ambassador says:
    I think that if you Exchange 1 code it will buy it
    Terry wrote:
    car pack code worked, starter pack did not work
    The Xbox Ambassador says:
    Oh.
    The Xbox Ambassador says:
    It's a bad
    The Xbox Ambassador says:
    BTW you have an evolution of the tests?
    Terry wrote:
    Yes, I want to? but more anxious to get a code object generated for this pack
    The Xbox Ambassador says:
    Hey if I help can u give me this game too?
    Terry wrote:
    ?????????????????
    Terry wrote:
    So is it possible to get a code for that time?
    The Xbox Ambassador says:
    Hey
    The Xbox Ambassador says:
    Yes.
    The Xbox Ambassador says:
    you need to contact them
    The Xbox Ambassador says:
    and tell them that the code is used.
    Terry wrote:
    I was told to come here? where can I go to get the code?

    Hi Terryg76,

    ·         What version of the operating system is installed on the computer?

    I suggest you to contact the game manufacturer for more help and information.

  • I can't change the Actionscript code

    I use Flash 5.0 and the difficulty to modify the Actionscript code.

    I can use the Actions of Frame dialog box to enter the simple Actionscripts, but I can't seem to find my way to a fully editable Actionscript. I go about it the wrong way?

    It was a while that I used Flash 5, but I think that in the top right corner of the Actionscript window is an icon with an arrow above. This allows you to select the "expert" mode I think that you can also type the shortcut: 'ctrl' + 'e '.

    I hope this helps!

  • I received an error code 800b0100 update. I just installed windows 7 student disc and my computer guard stop. I me trying to get the updates that might help the closing of the bottom.

    I received an error code 800b0100 update. I just installed windows 7 student disc and my computer guard stop. I me trying to get the updates that might help the closing of the bottom.

    Hi Happyrockgeek,

    Welcome to Microsoft Windows 7 answers Forum!

    This problem occurs if the Windows security .dll files are incorrectly registered.

    To resolve this problem, you can perform the two methods of troubleshooting, check if the problem is resolved.
    Method 1:
    Run (Checksur.exe) system update readiness tool.
    To do this, follow these steps:
    1. download and run the system update readiness tool. This tool runs an ad hoc analysis of inconsistencies that might prevent future maintenance operations. For more information about how to download and run the Checksur.exe tool, click on the number below to view the article in the Microsoft Knowledge Base:
    http://support.Microsoft.com/default.aspx/KB/947821
    2. try to install the updates again.
     
    Methods 2.
    Reset the Windows Update components.
    1. to reset the Windows Update components automatically, click the fix button in the link below.
    http://support.Microsoft.com/kb/971058 
    2. click run in the file download dialog box and follow the steps described in the fix it Wizard.

    I also suggest you to install the latest version of Windows Installer 4.5.
    Follow the link below to download:
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en
    and you can also try to install after you turn off the firewall.
     
     
    It will be useful.
     
    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum.

  • Unable to get the windows updates. Get error code 80072EFE. Help!

    Unable to get the windows updates. Get error code 80072EFE.  Help!

    Gary,

    ERROR_INTERNET_CONNECTION_ABORTED 80072EFE

    You may experience temporary errors related to connection when you use windows update or microsoft update to install updates http://support.microsoft.com/kb/836941

    by running the Fixit on this page, you can reset to windows update components.  but, if there is malware present, she will continue to reset the connection to the update servers: how toreset windows update components

    suggest you download and save the Fixit.  then conf is the boot vlean system before you run it:http://support.microsoft.com/kb/971058

    How to troubleshoot a problem by performing a clean boot in Windows Vista/Windows 7http://support.microsoft.com/kb/929135

    Once the Fixit has been downloaded and the system is started in the pure State, check that the native vista firewall is now on if a 3rd party firewall has been used previously.  now run the Fixit and choose the default mode.  restart once it's done and see if the system can be connected to the update servers. If he can't, then rerun the Fixit and choose aggressive mode.  turn it back on when he finished the race and updates.

  • Help the ActionScript functions

    Hey, can someone please help me find a solution in this code that I have. I use this code to make a rhythm game gameplay mechanics, but there seems to be a problem with the code that I colored 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);

    }

    }

    Since you declare the variable activeRed inside a function, its scope is limited inside this function. Try declare it outside the function.

  • Need help to learn the ESX implementation from scratch

    Hello guys,.

    I work as a software engg. in India. I am new to this field, but I found the concept of Virtualization is very interesting and I want to learn the technology of ESX Server and how it can be executed in time real scenario.

    Please help me in this regard. I want to start learning from scratch. If there is someone who can help me for the same thing.

    Any book / ebook / discussion / forum / link is extremely well received.

    Hello

    Please see this link:

    http://myLearn.VMware.com/portals/certification/

    On the right side of the page, you can see the CRS review plan:

    http://myLearn.VMware.com/LCMS/mL_faq/1714/VCP3.5Blueprint.PDF

    This explains what exam will cover.

    Training is usually 4 to 5 days,

    Last but not least here is the link to the "training and Certification forum", here you should be able to find answers about training and certification:

    http://communities.VMware.com/community/VMTN/certedu

    I hope this helps and good LUCK!

    Alex

  • Access to the library in ActionScript code


    I'm totally confused. I'm modifying the code written by someone else and need to access a class that is never directly created. The author did write a class and assign it to a library object by using the properties of binding | AS 2.0 class. It creates a form to aid as the name of the library clip contentpath (see attachment code.)

    When the window is created, the frmPublishVideoStream object creates an instance of the class, I need access to, "PublishVideoStreamForm". But I can't do it in my code. It is not kept anywhere, in fact, that it is not referenced anywhere. The class must be a property of the clip to which it is attached. But how do it?

    If I can't access this class, I have to go through a process painful and ugly of all my open windows of closing and reopening of their. This will make for a poor user experience.

    Can someone tell me how to access it? I know that I can use getProperty to get the other properties such as allowMaximize. I tried the 'PublishVideoStreamForm' property, just in case where the class is going as property under his own name, but that didn't work. I get a compile error, "GetProperty expected property name."

    In any case, it is accessible?

    PROBLEM SOLVED!

    I did it in a unique way, however. Because I could not get what was suggested here for work, I created an array of objects in my main session class. In the constructor for my inaccessible class, I add a reference to itself. I can then browse the list of windows and have access to individual instances whenever I want.

    It's an average point round, but anything that works!

    Thanks for your help.

  • In the drop-down list and cfif len CFIF not can you help me to break this block of code

    can you help me to break this block of code. sense

    < table >
    < b >
    Type of device < td > < table >
    < td >
    < SELECT name = "Hardware" size = "1" >

    < OPTION Value = 'EL' > please select < / OPTION >
    < OPTION Value = 'Ca' < cfif material is 'Ca' > selected < / cfif > > Cell < / OPTION >
    < OPTION Value = 'EL' < cfif material is 'EL' > selected < / cfif > > Email only < / OPTION >
    < OPTION Value = "pE" < cfif material is "PE" > selected < / cfif > > Pager < / OPTION >

    < / select > <!-->
    < table >
    < /tr >

    What is the cfif for. for example
    < cfif material is 'Ca' > selected < / cfif >?


    -----------
    What does this block of code?


    < b >
    Cell < td > < table >
    < td > < cfoutput >
    < cfif NOT len (trim (Dev_email)) > < cfset Dev_email = "@verizon.com ' > < / cfif >
    < input type = "Text" name = "Dev_email" value = "" #Dev_email # "size ="40"maxlength ="40"> < table >"
    < td >
    < b > < police = "Verdana, Arial, Helvetica, sans-serif" size = "2" > WorkEmail < / police > < / b > < br >
    < cfif not len (trim (D_email)) > < cfset D_email = "@meekeedees.com" > < / cfif >
    < input type = "text" name = "D_email" Value = "" #D_email # "size ="40"> < br > < br >"
    < / cfoutput >
    < table >
    < /tr >

    What is the cfif for. for example
    selected?

    If the variable material has the value 'Ca', this option is selected when you load the page.

    What does this block of code?


    Cell

    If the dev_email variable is an empty string, it gets the value "@verizon.com.

  • Cannot start this hardware device because its information for configuration (in the registry) is incomplete or damaged (code 19) HELP Please!

    Hello, I did all THE steps mentioned above, and I still can't get it to work. I tried to uninstall the driver and then reinstalled, tried the Mr. Fix it - will work with windows 7, it says. I tried to restart my computer. The message I get is;
    Problem with your CD/DVD-Rom drive
    Cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged (code 19)
    I don't know what else to do, can anyone please give me instructions step by step what I need to do please and thank YOU!

    Hello

    1. Have you recently installed the CD/DVD drive?
    2. Are you aware of any changes made to your computer before this problem?

    A Code 19 error is caused by one or several problems with parts of the Windows registry that contains the driver and other information on the specific hardware device.

    Check the status of the device should be the first line of conduct, if you suspect that a particular device that is causing a problem, or if the device in Device Manager is marked with a yellow exclamation point.  It is also possible that the device is not compatible with this version of Windows.

    Below the thread responds to the question. I suggest you follow the instructions in the thread to solve the problem:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/code-19-configuration-information-in-the-registy/80fa904a-7ceb-4533-A8A7-6a91040e283a

    Note:

    Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756 (http://support.Microsoft.com/kb/322756/fr/ )

    How to back up and restore the registry in Windows

    It will be useful.

  • Helps the assignment buttons that control video clips

    I'm pretty new to flash and my teacher gave us an assignment with little help or tutorials.

    He wants us to create a SWF file that has a House and it is the front yard and two buttons.

    A button that says who says the sunset and Sunrise.

    When I push the button of the Sunrise, the Sun must rise above the House and stay there.  When I push the button to sleep the Sun, it must set - and then a UFO must land on the lawn.


    So I think I have a pretty good understanding about the assignment, but the actionscript code is shake me up.  How do I make buttons that will control the video for sun to stay mounted above the House and then set?  The UFO is a whole new question.   The button of the Sun should make Sun down and then a UFO land on the lawn.

    Please help explain/link me to the good tutorials.   One thing that worries me is that the Sun will be mounted - and then stay on top of the House, even if I click on the button of the sunset.

    Your help is greatly appreciated.

    You should talk to your professor or classmates about of what you already know of your lessons which would allow you to do these tasks.  The risk you run in seeking help as it becomes a solution that your teacher would never expect to have knowledge of, one that you could never explain how it works... which can be detrimental to your teacher you coast.

  • Helps the function of class of SMTP with authentication

    My server no longer supports the php mail() feature.  I need to use the SMTP class with the authentication function in my php code, and they suggested this to replace it: on-with-authentication-in-php-code http://www.yrhostsupport.com/index.php?/Knowledgebase/Article/View/101/2/smtp-class-functi

    So, I tried, but cannot make it work. This is my test form:

    < are method = "post" action = "forms/sendmail - test2.php" onsubmit = "return checkEmail (this);" >

    < script type = "text/javascript" language = "JavaScript" >

    < /script >

    < fieldset > < legend > news < / legend >

    < Label > name < / label >

    < input type = "text".

    name = "name" size = "30" maxlength = "40" / > < br / >

    < label > < span class = 'redText' > * </span > Email < / label >

    < input name = "email" type = "text" size = "30" maxlength = "40" / >

    < br / >

    < label > < span class = 'redText' > * </span > Message < / label >

    < textarea cols = "40" rows = "5" name = "message" type = "text" / > < / textarea > < br / >

    < / fieldset >

    < input type = "reset" value = "Reset" / >

    < input type = value = "submit" / >

    < / fieldset >

    < / make >

    It's sendmail - test2.php where going to the form. It will not be sent unless I have comment on the first 10 lines.

    <? PHP

    include ('Mail.php');

    //$to = " [email protected] "; "

    $name = $_REQUEST ['name'];

    $email = $_REQUEST ['email'];

    $message = $_REQUEST ['name'];

    $headers = "from: $email";

    $subject = "price quote";

    $fields = array();

    $fields {'name'} = 'Name ';

    $fields {'email'} = 'Email ';

    $fields {'message'} = 'Message ';

    $recipients = ' [email protected] '; //CHANGE

    $headers ['from'] = ' [email protected] '; //CHANGE

    ["to"] = $headers ' [email protected] '; //CHANGE

    $headers ['subject'] = 'Test Message';

    $body = "test message";

    Set the SMTP settings

    $params ['host'] = "levy.dnsbox25.com";

    $params ['port'] = '25';

    $params ["auth"] = "PLAIN";

    $params ["username"] = ' [email protected] '; //CHANGE

    $params ["password"] = "xxxxxx"; CHANGE

    / Next option allows the SMTP debug and will print the SMTP Protocol

    conversation on the page, it will help only with authentication problems. */

    $params ['debug'] = 'true ';

    Create the mail object using the Mail::factory method

    $mail_object = & Mail::factory ('smtp', $params);

    Print the parameters you use for the page

    {foreach ($params as $p)

    echo "$p < br / > ';

    }

    Send the message

    $mail_object-> send ($recipients, $headers, $body);

    ? >

    It used to work well when I used

    $send = mail ($ $subject, $body, $headers);

    $send2 = mail ($from, $subject2, $autoreply, $headers2);

    But they said I can't use it anymore. I'm good with HTML and CSS, but I don't know much about php. Thanks for any help integrating one of in this new code!

    It is to be expected. When you assign a value to a variable that was already assigned, you replace the previous value. You must add. Try this

    $body = "name:". "." $name. "\r\n". "e-mail:". "."  $email. "\r\n". $message

  • Adobe Customer Support Portal link does not work (for the good performance of Student Edition order): Site area temporarily unavailable

    As mentioned above does not work the Adobe Customer Support Portal link (to the good Student Edition order fulfillment).


    After goingt to: www.adobe.com/go/eduverify and by clicking on the Adobe Customer Support Portal link a page saying: "" Adobe Customer Support Portal is an update of the system to implement major system improvements and will be temporarily unavailable starting at 15:00 DST of the Pacific on Friday, October 9".

    Today is August 10! Site is down for more than a year now!

    Please help me, I want to just sign my Student Edition Lightroom 5 and get the serial number.

    MattJimbo we had a maintenance period of this weekend.  This impact on the availability of certain services.  My apologies for the inconvenience.

  • Problem with the task of control of model code - execution instance remains open

    Hi Experts

    We have some model mappings, for which we use some similar code with the model code BUILT_IN_CT model. Mappings to run successfully, but the task of control of model code seems to remain open. It's the same thing, even if I use the code model of control by default BUILT_IN_CT/CCT_ORACLE.

    To see if the control task remains open, I run the script...\dbhome\owb\rtp\sql\list_requests.sql, and I get the following output:

    ====================
    EXECUTIONS
    ====================
    ID of the audit. State of... Name... Date of... Owner...
    16_FLOW_CONTROL LOAN 260573 19 APRIL 11 10:15:16 OWBSYS

    As a solution to the problem, we managed to implement a custom task jdbc, in which we are to pick up instances of this task and then close them using the owbsys.wb_rt_script_util.deactivate_execution procedure.

    Anyone know the reason for this problem and if there is a solution for it, other then to implement a custom task to close the open instances?

    We use OWB 11 GR 2 on Windows.

    THX
    Your help will be much appreciated

    Yes, I see now the verification element hanging out in OWB, this looks like a bug in the OWB audit management, it should not be suspended. I don't think impact on behavior, he is a piece of dangling audit data that should not exist. You can raise a bug/SR?

    See you soon
    David

Maybe you are looking for