Please help with the variable corresponding full framework

HI :-), could someone please hepl a beginner?

I'm writing a small script AS3 in CS4 that allows me to take a step back and forward through an animation.

I have a stop button a play button rewind button and a button to the front.

the buttons work ok apart from when I hit the button to rewind sometimes it jumps to the beginning of the timeline rather than just take a step back a frame at a time.

When I use the button stops the timeline where he is, the rewind button steps back as needed. But if you click on the button rewind everything first, he jumps at the beginning of the timeline, I know the theory as to why I can't get this to work.  I need to know how to increment a variable of integer type (meter) to increment as the playes of animation. that is the counter variable to match the chassis number.  Here is the code I have, someone could please tell me how to match a variable of integer type to the current image and tell me where to insert the line of code on the list. I added a fictitious line or pseudo-device code to show what I'm trying to do, but the syntax is wrong.

------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ ----------------------

var counter = 1;

gotoAndStop (counter);

function setupevents()
{
buttonplay.addEventListener (MouseEvent.CLICK, playbutton);
buttonstop.addEventListener (MouseEvent.CLICK, stopbutton);
buttonrewind.addEventListener (MouseEvent.CLICK, Retouret);
buttonforward.addEventListener (MouseEvent.CLICK, forwardbutton);
}

SetupEvents();


It's the dummy line or pseudo-device code that I mentioned in the question above...
counter = frame;

function to play the movie
function playbutton(event:MouseEvent)
{
Play();
}

function to stop the movie using the stop button
function stopbutton(event:MouseEvent)
{
Stop();
}


function to take a step back through film using the rewind button
function rewindbutton(event:MouseEvent)
{
If (Counter > 1)
{
Counter = counter - 1
}

gotoAndStop (counter);
}


function forward through film using the following button. I used a value of 60 because it comes to the amount of images in the scenario

I don't know if this is a way of doing things or not
function forwardbutton(event:MouseEvent)
{
If (Counter < 60)
{
Counter = counter + 1
}
gotoAndStop (counter);
}

------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ -----------------------------

I know that the code is rough and base but any help would be greatly appreciated, I tried to attach the .fla for anyone who needs more information about this.  But this Web page returned an error ""the content of this attachment type is not allowed.".

Auldy66

var counter = 1;

gotoAndStop (counter);

function setupevents()
{
buttonplay.addEventListener (MouseEvent.CLICK, playbutton);
buttonstop.addEventListener (MouseEvent.CLICK, stopbutton);
buttonrewind.addEventListener (MouseEvent.CLICK, Retouret);
buttonforward.addEventListener (MouseEvent.CLICK, forwardbutton);
}

SetupEvents();

It's the dummy line or pseudo-device code that I mentioned in the question above...
counter = frame;

function to play the movie
function playbutton(event:MouseEvent)
{
Play();
}

function to stop the movie using the stop button
function stopbutton(event:MouseEvent)
{
Stop();
}

function to take a step back through film using the rewind button
function rewindbutton(event:MouseEvent)
{
prevFrame();
}

function forwardbutton(event:MouseEvent)
{
nextFrame();
}

Tags: Adobe Animate

Similar Questions

  • Please help with the problems of Vista SP2

    So I spent all day on the forums here and I'm head over heels.  I had problems with Windows update and some other problems on my Dell Studio XPS.  It is a tower with double HDs in RAID mirror running Vista 64-bit with SP2.

    I got it for 3 years and I thought that I clean and correct certain defects to go back to the original Dell factory condition.  That did not fix the update install problem I did cleaning.  Now it's worse.

    I'm trying to install SP2 and get a catastrophic failure 0x8000ffff error-UNEXPECTED

    The onlychange is that several months ago, one of my WD 640 GB drives factory failed and I replaced it with a Seagate Barracuda 1 TB since I couldn't find a 640 GB drive.

    I tried to stop and restart all services BITS, etc. no luck.

    I tried to run among the MS FixIt for the problem of update, but it fails because it says that it cannot initialize the powershell.

    Help, please... I'm hopelessly lost and can not spend more money on this thing.

    Thank you!

    If you need additional help with the clean install, please start your own, new topic in this forum: http://answers.microsoft.com/en-us/windows/forum/windows_vista-system

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and independent (i.e., not a BigBoxStore or a Geek Squad) computer repair shop & ask them to do the job.

  • Please help with these variables

    Thanks LucD and RvdNieuwendijk for helping me with the first part of my script, now I'm stuck again.  In most cases, the script works fine, the commented sections (1-3) are what I want to do in the script.  Even if I had two beautiful solutions for my first problem, which was to record the name of the virtual machine and a custom attribute named "assignee" to a variable, I went with the response as provided LucD.  Now, here's my problem.

    I want to save the new variables and then turn around and create a virtual machine with the same name as the variable $_. Name and then complete the custom attribute "assignee" with the variable recorded for the assignee.  What I've done so far was to save the $_.name in a text file, which will then create a virtual machine with the same name as that deleted line 10

    Line 11, I chose to use Stop-VM because the virtual machine will get deleted, so no need to a gradual stop.

    For line 9, I did that just to make me see the name on the screen, which will be removed

    Given that the new variables will have to name the virtual computer, the 10 online list will help me to keep track of all those and then deploy.

    I'll change the script to get data warehouses that have a certain amount of disk space, and I will choose random data warehouses and hosts ESXi Get-random, I'm just trying to get the core of the script works now.

    Sorry, I'm getting long-winded, all I want now is to save the new variables of lines 4-6 in a big variable, or arrray or something and then I want to create a virtual machine with the same name VM and the custom attribute filled with what "assignee".  Thanks for any help.

    # 1. Get the name of the virtual machine and the assignee of the virtual machines to deploy and save those as a variable
    # 2. Remove the existing VM with the same name
    # 3. Use saved data to deploy a new virtual machine with the same name and the assignee who has been registered
    1. $AllVMs = @)
    2 get-file TestDeploy | Get - VM | {foreach}
    3. $assignee = Get-Annotation-entity $_ - CustomAttribute "Assignee" - ErrorAction SilentlyContinue
    4 new-Variable - force - ErrorAction SilentlyContinue-name $_. Name - value (New-Object PSObject-property @ {}
    5 VM = $_.name
    6. the assignee = $assignee. Value
    7. })
    8. $AllVMs += $_. Name
    9 write $_. Name
    10. $AllVMs | Out-file c:\psresults\NewDeploy.txt
    11 if ($_.powerstate - eq "receptor") {stop-VM - VM $_}
    12 if ($_.powerstate - eq "Receptor") {Start-Sleep-3 seconds}
    13 remove-VM - VM $_ - DeletePermanently
    14.}
    15. (type c:\psresults\NewDeploy.txt). Foreach {new-VM-model (Get-"TemplateName") - name $_-location (Get-folder 'TestDeploy')'}
    16 - data store (data center, Get Data Center |) Get - Datastore 'Datastore') Spec - OSCustomizationSpec - VMHost (Get-VMHost 'MyHost')
    17.}

    I found the problem, the script was pouring out the complete variable instead of just the value.

    The line should be like this

      $AllVMs += (Get-Variable -Name $_.Name | Select -ExpandProperty Value)
    

    I've updated the two script above.

  • Help with the variables!

    First of all, allow me to apologize for my screen name, I tried to 31 different names and none of them would work, pretty bad if you ask me.

    I tried a project for more than a year, who failed miserably after that I have had no help anywhere I asked, but the circumstances are bring me to take over this project.

    To expose my project, this is a great Simulator, created in Excel, and he got several very large databases in this regard. However the most simplest thing; variable, kept me from using flash to complete the project. I don't know how to explain it more simple, that I was just on the sites of more than a dozen on the first page of google that attempt to explain the use of variables and text boxes and none of them worked.

    Let me to you, my problem is that no matter what I try, I have dynamic text boxes that always return a value of NaN. I'll give my method to have an entry box return values for dynamic areas.

    My first step is to have a box of text, with the defined variable such as; rlevel and a dynamic as; text box points. I have a button that applies to text input in the dynamic area.

    It's the actionscript on the button;

    on (release) {}

    =(rlevel-1) points * 4;

    }

    It's pretty basic to start, but no matter the method I tried he always returns NaN. Another alternative, I've tried is defining the dynamic and input areas and other variables and do the math an individual variable;

    Level = x;

    points =(x-1) * 4

    on (release) {}

    bpoints = points;

    }

    Once more, this returns Nan in my box of text dynamic and undefined in my Inbox.

    I'm very fluent with the mathematical formula and I have a lot of additions to make, however as said I can't get beyond the most basic part of my project once more despite the continuation of many tutorials on the subject, that note saying to do exactly what I have made. An example of method as reference is the following;

    founded_date = 2000;

    closing_date = 2003;

    on {(press)

    founded_date closing_date = years_running;

    }

    This is no different that mine, and she always returns NaN. I did successfully a dynamic > entry text box function, just by;

    on (release) {}

    points = level

    }

    and the string level is returned correctly, he simply refuses to do so with a calculation. I'm very lost and confused and do not want to give up my plans once more. Kudo to ANYONE who can explain what is happening. I hope this time someone mind helping me.

    Chances are your first attempt to get a screen name would have stolen, but for some reason, their registration system rejects anything you enter... After some trial and error, I found that you just ignoring the message gets the name you want (unless it's really had).

    For all your troubles go with the textfield, I recommend to avoid the use of the var of the textfields and just manipulate their text property.  Name the instance textfields in the properties panel instead of specifying a var for them.  Let's say you a myPoints name and the other MonNiveau.  Your button code would look like...

    on (release) {}

    myPoints.text = String ((Number (myLevel.text)-1) * 4);

    }

    If AS2 is often very indulgent if you do not throw things like a string or a number, it just helps to ensure that things are designed to work correctly if you use them.  A textfield contains string values, so treat them as numbers, you throw as the Number(), and if the result is assigned to a textfield, casting while he is a String [] is appropriate.

    If you always go to AS3, it's not at all forgiving and textfields var element no longer exists.

  • Please help with the problem of deployment OTA

    Hello

    I'm trying to deploy my application (for the first time) using a live approach.

    First of all, let me mention that I developed this application using the BB for Eclipse plugin.  It generated files jad and cod.

    I have 5 files of cod and jad for the application, all in a directory on a web server. Apache has been set with the necessary MIME types for jad and cod files.  When I use the browser on the BB to access the jad file, your browser correctly displays the name, Version, vendor, etc. of my application.  But then he said:

    This application requires the following modules, which are not installed:
    {followed by a list of my other 4 modules}

    This is obviously a true statement, but I thought that the jad would cause the BB get these other modules and install them automatically.  It would really suck if my customers had to manually install each of the 5 modules.

    It is therefore possible for the other 4 modules loading is automatic, and how I have to happen?

    Moreover, my OS is 4.2 and my application is written for this OS.

    Thank you
    Paul

    See if this helps:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=25327&query.ID=11...

  • Please help with the problem of Validation

    Recent changes: Yes, had to replace the hard drive of my laptop (I had three years and more)

    When error: when I copy the code returned by the validation tool

    What tool: GenuineCheck.exe (downloaded from http://www.microsoft.com/en-us/download/exe-validation.aspx)

    Windows Update stopped working, too.

    You will appreciate the help.

    RP3456

    Separated by the moderator of this thread:
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-system/validation-tool-gave-me-this-answer/e51e7172-5bc8-42AE-AAB5-7f3c2fc0a166#LastReply

    Have you tried to restart by phone?

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • Please help with the DNS problem in VMware Workstation 6.0.2

    I have 3 servers Configuration of VMware Workstation. There are a the Ethernet parameters ' host only: a private netwrok shared with the host country. The problem is I have a server configured as a main domain controller, I can join my other two servers to the domain very well, I can ping by name, but none NSLOOKUP. Basically I have a DNS issue that I MUST correct.

    Anyone know what could be the problem? Or where to look? I attach a doc with my settings.

    Thanks in advance.

    Have you checked that the clients are configured to register in DNS?

    Have you checked the the event log for entries regarding a DNS record failed?

    Did you check that there is a records for each host in the appropriate DNS zone?

    The clients have the right DNS server configured?

    If you found this information useful, please consider awarding points to 'Correct' or 'Useful' responses Thank you!!

    AWo

    VCP / vEXPERT 2009

    Published by AWo

  • Please help with the installation of flash... :)

    Hey there im im sorry to add the number of people who are trying to get their flash player works, ive read a fair few discussions now and nothing seems to work as well now ive wat some of you more advanced posters have noticed and opened my own discussion, any input would be great.

    he tries to update, you

    up to now im getting no videos, games or anything that uses flash.

    on youtube (I use flash more for really) sound telling me that I need to update adobe flash, so I followed suit and used the Manager of d/l adobe trying to install flash 10, 1 couple of times it says has failed the verification of integrity, but then installed (or told me he had), although nothing had changed. I looked at the adobe help, got the uninstall application, follow the restrted instructions and tried again... nothing, tried to remove the flag thing in the registry... nothing, has also deleted all my software antivirus and anti-spam apps and installed avg d/led only retried the d/l Manager adobe said once again, she had and nothing... any ideas guy? Here are my specs also

    THAT IS TO SAY 8

    win xp HE

    antivirus - AVG FREE

    anything else you need to know?

    Again any help would be greatly appreciated

    Thank you

    function() {return A.apply (null, [this] .concat ($A (arguments)))}

    00zigzag wrote:

    FlashUtil10h_ActiveX.dll version 10.1.53.21

    That explains it - you must have installed version 10.1 beta at some point and not properly uninstalled.

    Download the program uninstaller 10.1 from http://labs.adobe.com/downloads/flashplayer10.html, then follow the instructions in http://labs.adobe.com/technologies/flashplayer10/releasenotes.pdf on how to run the uninstall program with the -force option.

  • Please help with the extended search and replace

    Thanks in advance to dedicate time to help.

    Why does this work?

    Find: jpg ">"

    "Replace: jpg" alt = "" >

    Parameters:

    Current document

    Text (Advanced)

    Inside of the tag (img selected) and I tried to not inside tag

    All the option boxes unchecked

    Click on replace all

    And nothing is found or replaced but there are many of them.

    I live and die by that in Homesite then please help me understand this so I must not have market Homesite too. I like it very much because such simple things makes me batty.

    You do this in the following parameters:

    Parameters:

    Current document

    Source code (and not text)

    Inside of the tag (img selected) and I tried to not inside tag

    All the option boxes unchecked

    Kind regards

    Vinay

  • Please help with the correct color settings

    I use ID CC depending on which we, my printers want my final PDF either as PDF/x-1a (I know it does with regard to Flattening) or PDF/x-4.

    I need all color images for close to CMYK, no matter what they were when placed. I need all 100 %K black to stay like this and not to convert an intense black.

    Currently, my document color settings are:

    Parameters: general use of 2 North America

    Workspaces:

    RGB: sRGB IE61966 - 2.1

    CMYK U.S. Web Coated (SWOP) v2

    Color management policies:

    RGB: Preserve embedded profiles

    CMYK: Preserve numbers (ignore linked profiles)

    Conversion options:

    Engine: Adobe (ACE)

    Intent: Relative Colorimetry

    I use the default settings for PDF/x-1's or PDF/x-4 (most have the ink Manager to convert all tasks to deal with) and and always receive a yellow warning with the following in general warning triangle:

    The preset specifies source profiles that do not match the current color settings file. Profiles specified by the color settings file will be used.

    What should I check in my document color settings to avoid this error message (the resulting files do appear to be OK for what I need, I want to just make sure that I put it just in case this error). Of course, other thoughts are always appreciated also.

    What should my document color settings also if the final document will be black and white (in grayscale) and contains only data on the black plate?

    Sorry to contradict the Peter a bit here, but X - 4 allows to RGB, rather than to specify it, so you can have your PDF by setting 'Convert to Destination (preserve numbers)' with an appropriate destination CMYK profile and still conform to the standard X-4.

    That's what I'm doing here, because I prefer the Adobe CMM performs the conversion.

  • Please help with the problem of driver SAS S10 6483

    I'm going crazy and I hope someone here can help.

    I am trying to load Windows 7 on a 6483 S10 which has a SAS hard drive.

    During installation, the system does not see the drive and ask for a driver.

    I can't find a SAS driver for windos 7 anywhere.

    Can someone help me understand this?

    Thank you!

    Bill

    Thanks, Erik

    It turns out that when I opened the box, it doesn't have a SAS drive, as I said.

    She and its a SATA drive or the computer is defective. IF its of not coming back.

    I was also told that Windows 7 will not work with it that seems hard to believe.

    I was led on a chase of wild goose by the seller.

    Thanks for your help.

  • Impossible to uninstall or disable the drivers wanminport and unexpected with the network adapter. Please help with the best solutions.

    Dear friends,

    Have you encountered a problem like this is Nati sp1 or sp2, currently when I get problem like that I solve (we run system restore or Startup Repair last option: reinstall the operating system)

    symptoms: System very slow and unable to boot or just freezes on the Welcome screen, or sometimes not even vista starts in safe mode or safe mode command prompt.
    I tried the next option, this has worked for me in some cases. but not many times.

    I open a command prompt terminal high, do you it by logging in as an administrator as launching the cmd.exe as an administrator (right click, run as administrator). Then type the following command that uninstalls the device said:

    netcfg EI u ms_sstpminiport

    want to know is there permanent fix or patches for this problem and why this is happening only in vista. I also had windows 7 and xp sp3. I had no problems in that.

    Kind regards

    King of the computer

    See if the following Help article: http://www.vistax64.com/tutorials/171469-uninstall-device-device-driver.html.

    If this does not work, download Autoruns http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx and go to the tab all. See if you can find the place where the device (or at least the driver) is loading and uncheck to stop to happen.  Click OK and exit, and reboot and see if the problem persists.  It cannot remove the device or the driver, but if he let them go then the problem is solved until we can find a way to remove actually - hopefully without needing a repair system/upgrade or a clean installation.

    I hope this helps.  I would like to know how it works.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • can anyone help? a friend has forgoton the password on windows 7 ultimate can you please help with the password

    Have a computer laptop windows 7, but the password does not work and I cannot start the computer before opening the window

    Forgotten password:

    You can try a number of things, please see the following articles:

    http://www.howtogeek.com/HOWTO/Windows-Vista/enable-the-hidden-administrator-account-on-Windows-Vista/

    Or:

    http://www.SevenForums.com/tutorials/507-built-administrator-account-enable-disable.html

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-to-do-if-you-forget-your-Windows-password

    Credit: Ronnie Vernon MVP

    If you have an installation of Windows 7 disk, see the following article.

    How to use system restore to log on Windows 7 or Windows Vista when you lose access to an account

    Unfortunately, beyond that we can not help you. Please review the following policies for these forums and Microsoft.

    Answers Support Forums password policy

    Keep secure passwords - Microsoft strategy on move the passwords

    Microsoft's official policy

    Microsoft's strategy concerning lost or forgotten passwords

  • How can I read a PDF form with c# code. Can someone please help with the snippet of code or documentation.

    My requirement is to read the full user of PDF form fields using c# code.

    Any code snippet or a document will help.

    Thank you

    OK, Acrobat and the Acrobat SDK kit are not for the server. But Alice has produced s called LiveCycle business that had a Java API. This can help. It's enterprise software and not the same as LiveCycle Designer. There is also the Adobe PDF Library, which is C++.

  • I'm new to Muse - please help with the following

    A tutorial on Muse I saw recent a wensite called http://www.millicareglg.com and I love their front page and I'm wanting to create the movement you see on the left side. I'm not a technical web designer so I have no idea of the correct jargon to use sorry. I assume these are scroll bars?  How can I create them on my site home page please? Their menu is positioned at the bottom two and appears on scroll on someone can help to know how you achieve this action please?

    I'm not copying their website just inspired by it thank you.

    Hi Robyn,

    This motion/animation created in Adobe Edge on the left side. You can create this animation in adobe Edge and insert it on your site of muse.

    See you soon!

    Aish

Maybe you are looking for

  • Need update BIOS for Satellite Pro M30

    I use a Satellite Pro PSM35E, who owns a Phoenix BIOS v1.70. I want to upgrade but on Toshiba any site cannot find a Help, please

  • HP photosmart printer will print off browser IE, but not firefox. Is there a solution?

    Just installed new printer wireless HP photosmart C410a. Can get the impressions on the web or off e-mail program in the IE browser, but not in firefox. After clicking the print command in firefox, I get rather the page "send a Fax". Y at - it soluti

  • Use black instead of black Photo?

    I ordered the black 564.  The icon is a circle, and it is for black printing only.  I should have ordered the black of the Photo.  Can I use this black into the black slot Photo? {I did not open the box yet, as I might have to return.}

  • hotmail 550 HC-002 error code

    Hi... someone help me. When I send a mail to my own mail a/c a/c.I Hotmail get bounce back messages. I have attached the error message. Please solve this problem. Someone answer me. The original message was received at Monday, February 7, 2011, 11:29

  • Crash of the computer that was used for the software Adobe Acrobat XI.

    Hello. We had a crash of our computer which includes the software Adobe Acrobat XI.When you try to install this software on the new computer we get this error: "serial number 1 *... * 1 is already in use by the maximum number of computers." You need