How to get the image of the label number in a different scene.

I'm completely stumped on this.

I have my setup of a project like the gameplay in a scene and another scene for the result.

The scene of the result, say called, GameDone, has 2 images. The first image for victory, labeled, he WON, the second for LOST lost image, labeled.

I could do the thing very simple and just Stop ("GameDone", 1); but it is bad practice, I think.

Ive gone through google and found the closest thing in need of a MovieClip. I couldn't understand what to give? A random clip? a new? one of the next scene? one of the current scene?

import flash.display.Scene;  

for (var i:uint = 0; i < mc1.scenes.length; i++) {
     var scene:Scene = mc1.scenes[i];
     trace("scene " + scene.name + ": " + scene.numFrames + " frames");
}

It was a sample of adobe.

So how could I, in the scene of gameplay, the frame number for WON or LOST in the scene of 'GameDone '?

Thank you.

Try to do the simple thing that you think is a bad practice.  I don't know why you think it is.  The only problem is that you seem to have back for AS3, AS3, it is gotoAndStop (frame, scene);

Why don't you use the image instead of the image number labels?  Stop ("won", "GameDone");

Tags: Adobe Animate

Similar Questions

  • How to get the frame number current timeline using jsx?

    How to get the frame number current timeline using jsx?

    Thanks for the link!

    Clarification: I was looking for the current image on the timeline of the video. OP he mentions that he had found how to get that so I searched a bit more and found this thread: Re: can I inpoint in read/write and out-point of the clips in a group of video with scripts? They have the following functions, I have not tried yet, but it seems like it should work.

    function getCurrentFrame() {}

    try {}

    Var ref = new ActionReference();

    ref.putProperty (charIDToTypeID ('Rprp'), stringIDToTypeID ('currentFrame'));

    ref.putClass (stringIDToTypeID ('timeline'));

    var / / desc = new ActionDescriptor();

    desc.putReference (charIDToTypeID ('null'), ref);

    var TC = executeAction (charIDToTypeID ('getd'), desc, DialogModes.NO);

    Return TC.getInteger (stringIDToTypeID ('currentFrame'));

    } catch (e) {return null ;}

    };

  • I can't find my serial number for Photoshop Elements version 8. It came with a HP computer I bought in 2010. I recently had to do a recovery, it has been uninstalled. I moved since then and don't know how to get the serial number.

    I can't find my serial number for Photoshop Elements version 8. It came with a HP computer I bought in 2010. I recently had to do a recovery, it has been uninstalled. I moved since then and don't know how to get the serial number.

    Please explain how I can get the serial number?

    James, if it came with the machine and you are not registered, then you can't get it from the dealer where you purchased the machine. PSE 8 is now end of life and we have limited resources for the same thing, make sure you check the system requirements | Adobe Photoshop Elements if you try to install it on a new machine.

    If you want to upgrade to the latest version, you can check: photo editor, change the images. Adobe Photoshop Elements 13

    Atul_Saini

  • How to get the maximum number of days in a month?

    How to get the maximum number of days in a month?

    I use a dateField. where I can get the month. Now, I want to get the maximum number of days in a month.

    How can I get it?

    Please help me. and thanks in advance... []

    NET. RIM. Device.API.util
    Class DateTimeUtilities

    getNumberOfDaysInMonth (int month, int year)
    Returns the number of days in the specified month

    It took me like 10 seconds to find it in the API, I guess you spent more time writing the post...

  • How to get the label of the COM ports?

    If I go to System Manager, I got this information:

    But if I use the resource to find VISA, I get this:

    Is it possible to get the label?

    Try this:

    The list:

    (I have a special virtual TCPIP COM port on my machine, which gives error thats why the first element of the indicator table is empty for me)

  • How to get the total number of pages have been printed using the pl/sql

    Dear all,

    I want to store the total number of physical pages printed in a database table, how could retrieve the value of the total number of pages.


    I am using Oracle 6i report

    thnxxx in advance :)

    At the end of your report (i.e. After all the images from your data model), place a dummy field. You can get the page number with srw.get_page_num in the trigger of the format of this field. Since it is the last field of your report, it is also the last page number.

  • How to get the maximum number of iterations in the property of TS

    I was put the loopType from one step to the count of success/failure. For example "stop after 1 iterations pass or a maximum of 3 iterations. The maximum iteration is 3. What my qustion is how to get the maximum iteration of TS property by codes of trial during the race. Thank you very much!

    Corey Chen

    The OPPO test developer

    Hello

    It may be a hack, but RunState.Step.LoopWhileExpression has information.  It will return a string like: "RunState.LoopIndex."< 69="" &&="" runstate.loopnumpassed=""><>

  • How to get the Total number of nodes XML?

    Hi all

    I have a Flash program that I do in Actionscript 3, using CS6.

    I use the XMLSocket class to read XML data. I'll write some examples of XML that is sent to the Flash

    program below...

    I know with this line here (below) I can access the 4th 'element or node' of XML data.

    To access the XML nodes/elements:

    * I created a Variable XML, called xml, and "e.data" contains ALL the XML data
    var XML = XML (e.data);

    Access to the 4th item of the data:

    . xml MESSAGE[3].@VAR;          -> 'loggedOutUsers '.

    . xml MESSAGE[3].@TEXT;         --->     "15"

    EXAMPLE OF XML DATA:


    < FRAME >

    0 < VAR MESSAGE = "screen2Display" TEXT = "FRAME_1" / >

    1 < VAR MESSAGE = "numUsers" TEXT = "27" / >

    2 < VAR MESSAGE = "loggedInUsers" TEXT = "12" / >

    3 < VAR MESSAGE = "loggedOutUsers" TEXT = "15" / >

    4 < VAR MESSAGE = "admins" TEXT = "2" / >

    < / FRAMEWORK >

    I'm new to Flash and Actionscript but I am very familiar with other languages and how paintings and other work, and I know for

    example, in a Shell Script to get the total number of items in an array called 'myArray' I wanted to write something like

    This-> ${#myArray [@]}. And since the data processing XML looks a lot like a table I thought that there was perhaps

    a way to access the total number of "nodes or elements" in the XML data...?

    Any thoughts would be much appreciated!

    Thanks in advance,

    Matt

    even if you don't need to run to the loop to know the length

    var levelList: XMLList = xml.children ();

    levelList.length (); This will give you the length of all children in your case of length MESSAGE of nodes;

    Pls click useful if my answer is helpful.

    Thank you

    Bala

  • How to get the page number

    Sorry, but again I question. I want to select table by ID, where ID should be equal to the current page number. How can I get the page number?

    Davyd

    Try

    where ID = v('APP_PAGE_ID')
    

    Jeff

  • How to get the total number of frames

    Hai...

    I need this code...

    I have n number of files (swf) flash. Each file contains a number of images. I need to get the totalframes of this flash in Actionscript 3.0 files.

    Please help me through Actionscript.

    You can use a movieclip totalFrames property to get the total number of frames for a timeline.

  • How to get the total number of pages

    Is there anyone know how to get the total page after generate us the pdf file. I use the remainder method and create an external process. ?

    In the workbench, I use a SetValue

    Until you assemble the document that you need to build the DDX string and specify the xml information.

    Concat (/process_data/@ddxHeadStr, " ")

    AFTER mounting

    Use SetValue that set your xmlinfo variable (xml type)

    xmlInfo/process_data/game FOR

    / process_data/assemblerResult/Object/documents[@id]

    [ ='doc_info.xml']

    Then get your pages from the XMLinfo

    /process_data/@NUMPAGES

    =

    / process_data/xmlInfo/docinfo/NUMPAGES

    I hope this helps.  Send an e-mail if it is not explicit.  I had to fight over there recently and feel that the documentation really lacks.

  • To Powercli how to get the actual number of the paths to the data details store

    I'm looking for a command Powercli get the real number of the paths to the data store > Details of the data store

    See you soon,.

    Vincent

    You can do something like this

    $esxName = "MyEsx".

    $esx = get-VMHost-name $esxName

    $esxcli = get-EsxCli - VMHost $esx

    $esxcli.storage.vmfs.extent.list () |

    Select VolumeName,ExtentNumber,@{N='Device'; E={$_. DeviceName}},

    @{N = ' path # ';} E = {}

    $esxcli.storage.core.path.list ($_.) DeviceName) | Measure-object | Select Count - ExpandProperty

    }}

  • How to get the column number

    Hi all,

    I'm sorry to ask this question because I found 2 different answers, tried without result. So before you go crazy, I prefer to ask!

    Thus given mySelection = app.selection [0], how is possible to get the column's selection?

    I tried app.selection [0] .parentTextFrames [0].characters.itemByRange (0, x)

    with x being app.selection [0] .index.

    but then I'm stuck as if I add ".textColumns", I get an error

    I explored the second way using app.selection [0].textColumns.item (1).insertionPoints.item (1), but once I'm stuck again.

    As a beginner I don't understand why there is no simple built-in function to call in order to obtain such a result of base

    Any help would be appreciated

    Thank you

    Ed

    Okay here goes,

    For and only for the linked text frames.

    // For and only for linked text frames.
    // Warning
    // The Good: This will PROBABLY work for you
    // The Bad :THIS IS A REALLY PRIMITIVE METHOD
    // The Ugly: It could fail in COUNTLESS cases
    // Here goes......
    
    var mySelection, textFrame, parentPage, c;
    mySelection = app.selection[0];
    textFrame = mySelection.parentTextFrames[0];
    parentPage = textFrame.parentPage;
    c = 0;
    while(textFrame && textFrame.parentPage === parentPage){
        textFrame = textFrame.previousTextFrame;
        c++;
    }
    
    alert('Column number: ' + c);
    

    Now with regard to the issue of the image columns bound text compared to the blocks of text with multiple columns of text or span. Depends on what you're trying to achieve with your workflow.

    The scripts are around written by me and others who convert multicolumn text executives to related texts related and vice versa.

    If you want to know which is more appropriate you can use with your workflow, then I suggest the regular ID forum.

    HTH

    Trevor

  • How to get the Instance number as one of the fields in a form of the ADF?

    Hello

    We want the Instance # a request to be part of the shape as an output readonly text.

    (I mean the Forum # who appears in the details of the notice of monitoring process, not the activity number):

    Screen Shot 2015-07-16 at 8.42.46 AM.png

    )

    How can we get the instance # as part of the form?

    Thank you

    Hi Tali,

    The variable pre-defined information "instanceId".  If you use ADF, the human task data control, expand "Process Info" and drag it onto the form.

    I'm curious to know why you want to do it though.  If it's just so that you can report what you see in the list of "Tasks" of your workspace with instances in the list you see when you click on the tab "Monitoring of the process", I think that there is a better way.  The titles in the follow-up process tab do not have by default "No. of instance.  They may instead be given labels if you use 11.1.1.7 or 12 c.  There is a trick to this and it is shown in this blog post: display of labels for Instance in the follow-up process tab. AVIO Consulting.

    Dan

  • How to get the serial number.

    Hello

    I just settle payment with Adobe and had the program Ps CC yesterday.

    Now, he is asked for the serial number. Please tell us how to get it.

    Thank you

    Creating cloud app request serial number

Maybe you are looking for

  • Some programs are open

    I tried to update my Windows 7 SP1 up to 10 Windows he failed twice. When I failed the 2nd time I use my computer just as usual and I start to get a bunch of error messages on the programs of failing to start. After seeing this, I tried several reope

  • Looking for wifi on the device icons.

    Hello, I am trying to access the icons used for the wifi on the device. I am referring to those who get green lines depending on the power of the PA (with or without a sign of blocking). Any idea where we can get?

  • Wireless guard disconnection HP 450 G1 / 8 Windows

    Hello I just purhcased a HP Probook 450 G1 - nice piece of kit but boy, I'm ready to throw it out the window already! The past, I spent 2 days set up, familiarize myself with the user-friendly windows not so 8 and transfer all my data from my other t

  • Computer: HP Pavilion dv7 3165, D - Link DWA-652, D-Link card will not accommodate. Tried the other no work

    HP calls this slot expresscard 54/32, 54 will then rest the computer and operating system do not see. Both cards work in an Acer.

  • Final draft of 9 to PDF - file size problem

    I'm having a problem with file size create a PDF of the Final draft of 9. The file size is normally 300KB or more - but the file underway, more than any, I've done before, will only record to 29 MB - MUCH too large to email. Any ideas? I don't want t