Two functions "play to" on click

Hey!

I was looking everywhere and can't find it.

I tried to do the 'menu' button which supposed to open the submenu and hide when click New.

Could not put just "play" function, because the submenus have their submenus (menu level 3)

There. toggle() option, but JS are secret for me - I'm able to put it inside my anim, but cannot add a 'fantasy' animation (I want to look like).

Well well, better would be to add the function "play of the" 2nd which will replace the 1st (in 2nd label).

All solutions?

Hahaha. Good solution... long hours and found myself 20 minutes after this post

It is similar as in Adobe Flash - symbols!

As in the flash symbols have their own scripts and a calendar...

So I made a few examples (tested - works)

(main timeline)

(With set of click) menu button

submenu1 (symbol)

submenu2 (symbol)

submenu3 (symbol)

(timeline submenu1) (dubleclick on the symbol in the window elements icon)

submenu1 (reading on "click here" or "mouse over")

subsubmenu1

subsubmenu2

subsubmenu3

If we have other animations on our Web site, we can convert entire menu in symbol.

All in all that was easy. Especially when I've done a few projects in flash... but still little confused on the edge, some things are the same when other totally different (scripts!).

Tags: Edge Animate

Similar Questions

  • How to two playe animate by clicking on?

    Hello

    How to player two animate to label by clicking on

    I want to, is when I press on the first click, then it will run next to the label Animate_1

    the second click on run the Animate_2

    and so on

    Thanks for your help

    vq5znpha1anqeo367ddc.jpg

    Name the first image of Animate_1 and set a stop to the last image of him.  (IE, add a new layer and the keyframe to these two frames of animation), and do the same for Animate_2.

    You can use:

    var btn_clicks:int = 0;

    your_btn.addEventListener (MouseEvent.Click, f);

    function f(e:MouseEvent):void {}

    {if(btn_clicks==0)}

    gotoAndPlay ("label name chose you for Animate_1'");

    } else {if(btn_clicks==1)

    gotoAndPlay ("label name chose you for Animate_2'");

    }

    btn_clicks ++;

    }

  • Addition of two functions in a single button (gotoAndStop, sound judgment)


    Hi all! First of all, I would like to say that I am a beginner total with respect to as3. Okay, let's look at my problem... I have 2 scenes (first of all is a main menu with the button New Game; second scene is the intro for the game). I'm having difficulties to do two functions within a single button. Why do I need that? The first function is to go to the next scene (in my case, IntroScene). Second is to disable the sounds, so I can not hear them in the next scene.

    Here is the code:

    var bobobg:bobomusic;
    var sndChannel:SoundChannel;

    bobobg = new bobomusic;
    sndChannel = bobobg.play ();

    MAIN - NEW GAME MENU BUTTONS
    newgame_btn.addEventListener (MouseEvent.CLICK, buttonClick3);
    newgame_btn.addEventListener (MouseEvent.CLICK, buttonClick4);
    function buttonClick3(event:MouseEvent):void {}
    gotoAndPlay (1, "IntroScene");
    }
    function buttonClick4(event:MouseEvent):void {}
    bobobg. Stop();
    }


    Error message: "TypeError: Error #1006: stop is not a function."
    to MainMenu_fla::MainTimeline/buttonClick4().

    I would appreciate if someone could help me with this. Thank you!

    Ok.  Just do this:

    var bobobg:bobobgmusic = new bobobgmusic();
    var sndChannel:SoundChannel = new SoundChannel();

    sndChannel = bobobg.play ();

    MAIN - NEW GAME MENU BUTTONS
    newgame_btn.addEventListener (MouseEvent.CLICK, buttonClick3);

    function buttonClick3(event:MouseEvent):void
    {
    gotoAndPlay (1, "IntroScene");
    sndChannel.stop ();
    }

  • HP 50 g: connecting two functions in hp 50g

    Hi, is it possible to create a library by linking the two functions. I mean, the output of one function matches the entry of another function?

    Thank you!

    REYNEL.

    REYNEL wrote:

    Hi, do, I thank very you much for your interest to help with this problem.

    I want to create a library that connects or call s one or more functions or expressions seated in different libraries. For example.

    There is in the library has a function y = f(x) * g(x) + h (x)

    In the library there is another function, called m (x) = 2 x + bx ^ 2 + y for example.

    I want the new library will be able to call A library and use the result of this library in this case (y) and put it as an entry in the function of m (x) of the library.

    Is it clear now?

    Thank you very much for your support.

    REYNEL.

    Still not clear enough, pls give more specific example, as in "m (x) = 2 x + bx ^ 2 + y".

    How many libraries you want, two (has and B), or three (has, B and a new library - "I want the new library of power...") »).

    If you give an example detailed perhaps someone will be able to give you the answer, if you ask a general question, you will get references to books or comments of a general nature only.

  • Windows Vista IE9 is is it inserted a way I can set up the so function keys when I click my e-mail address?

    Windows Vista IE9 is is it inserted a way I can set up the so function keys when I click my e-mail address?  THANKS in advance

    See my response here

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-desktop/macro-recording-in-Vista/ef061942-8665-4d27-9222-dcd761936386

  • A button with two functions CLICK

    I'm sure that I must write an if else for it to almost 100% statement.  However, I'm not exactly sure how do.  Here is the code I have for a button (movieclip) that I created.  He is supposed to play an animation when you click on it.  Then when you click it again it was suppose to play a second animation that he will bring back the State of origin.  What's happening is, it goes directly to the State clicked without playing the animation.  However when you click the second time he plays the animation that takes back you to the original state.  Am I right to believe the only way to get the animation to play on two clicks is to use an if else statement and can someone help with the fi, the else statement.  I never wrote the script for one.

    function clickPlus(event:MouseEvent):void {}
    Btn1.gotoAndPlay ("clickOpen");
    }
    Btn1.addEventListener (MouseEvent.CLICK, clickPlus);

    function clickX(event:MouseEvent):void {}
    Btn1.gotoAndPlay ("clickClose");
    }
    Btn1.addEventListener (MouseEvent.CLICK, clickX);
    Btn1. RemoveEventListener (MouseEvent.CLICK, clickPlus);

    Have you tried moving the first btn1.addEventListener on top? All orders are executed in sequence given/written. I do not have to appoint executives, but they are probably right, I use the number of the frame. You could do/take a picture of the first image, convert to the key and make the movieclip on the next run frame. Then stop it on the frame and do the same thing with the button to operate the other movieclip, here's an example I did http://manamoppet.deviantart.com/art/Something-in-the-wall-127359486 . It is an alternative, but worked for my purpose...

    An if else statement works like this, but I'm certainly NOT some cases what I write here will work with your movieclips, tracks used to find out if it has worked, so you can delete:

    var variable1:Boolean = true;
    var variable2:Boolean = false;

    Btn1.addEventListener (MouseEvent.CLICK, clickPlus) ;//

    function clickPlus(event:MouseEvent):void {}
    var variable2 = false;

    If (variable1 == true) {//goes to and playes animation btn1 if the variable is equal to the value 'true' (or the number of given number)}
    Btn1.gotoAndPlay ("clickOpen");
    trace ("Start nummer 1");
    variable2 = true;
    Variable1 = false;
    }

    else {//executes on all values which is not seized written if statement
    trace ("start 454654 nummer");
    Btn1.gotoAndPLay (click Close "")
    Variable1 = true;

    }

    }

  • How to make a motion tween play when you click it?

    I am brand new to the FLASh and I have a motion tween of a wheel that rotates 360 degrees and I need to play when it is clicked on.  This is probably something that is really easy to do, but I just can't understand it.  Someone at - it good indications?

    Hello

    you need to do an instance name for your movieclip, for example "myMC". Select the first frame in the new layer, and then click window-> Actions.

    To write:

    myMC.stop (); stop your mc when movie starts

    myMC.addEventListener (MouseEvent.CLICK, regarderMovie); Add a listener for the click of the mouse the mc that will trigger the function playMovie

    playMovie(event:MouseEvent) //function MC function start

    {

    myMC.play ();

    }

    I hope this has been helpful.

  • How can I get the search function when I right click?

    I recently ran an update. Now, I don't have the function "search" when I right-click. I've used it widely and would really like the option to return. I had to uninstall certain things when I ran the update, because I didn't want the search engine or the toolbar that automatically installed with the update. How to bring back my right click search function?

    You are not yet on the most current version of Firefox and all ads "You have won" do not come from Firefox, they are malware or Web site ads. Follow these steps:

    Update to the latest version of Firefox

    Fix Firefox problems caused by malicious software

    Firefox - modules to reset and refresh settings

  • When I put in place many home pages, I get two NEW pages when I click on 'Home'

    Firefox on XP 19.0.2
    I've always had firefox put in place to open two pages, so that my homepage is
    https://www.google.com. https://www.Google.com

    When I open Firefox, I have two tabs, two on Google. If I opened a 3rd tab, I get a blank page. Just what I wanted.
    Now, all of a sudden - when I open Firefox, I have my two pages, but if I'm on Page 0 and click on HOME, I get TWO tabs open to my home page (for a total of 4 pages).

    I read online to replace the hose with 7% C but that causes a Service of-27 error.

    Something has changed within FF in the updates... How can I get the expected return behavior?

    We try to understand what you want to achieve and perhaps provide an alternative because it does not work with Firefox the way you currently use.

    If you set multiple home pages then all of these pages will open if you click the home button.

    That has always been the case in Firefox.

    In some cases the active tab may be protected and these pages open in a new tab, so you can end up with two additional tabs if you have two pages defined as many home pages.

  • What is READ the array returned by the DAQmx meter? How can I know the two functions DAQmx READ data stream in the same WHILE loop?

    I have a question about the order of execution.  In the WHILE loop, I have two things to measure, period and tension using the DAQmx READ functions for voltage and the meter.  In the end, I want to collect these data as points almost simultaneously as possible, as a pair and then send them together to another piece of code (not shown here) which them will result in some sort of command for an engine.  It would be run, and then I want to perceive the tension and the period at a time later and do the same thing.

    (1.) I'm a little confused on what the meter of the READ function is back because it's a table.  What is a picture of?  I thought that it was up to the value of the individual periods between rising edges.  The output of the counter 1 DBL d's a table. How many elements in this table, and what determines the size of this table?  Are the elements of the array the individual delays between the edges?  How many values are stored in the array by executing?   We take the AVERAGE of the last 15 items, but do not know if we are throwing some of the data or what.  How to understand the composition of this painting?  How can I change the composition of this painting?  Is it possible to measure only one period at a time, for example the time between TWO edges?

    2.) Will this WHILE loop execute as it gathers tension and a "period table ' (remains to be understood by me) by TIME running in a loop?  In particular, we want that the value of the tension associated with the value of the AVERAGE of the period "array", so we can use two data items to create orders of next control every time that the two values are reported.  The structure for the delivery of vi will be attached data in pairs like this?  I understand that one of the READING functions run not before the other function of READING in the WHILE loop.  I want that the period "means" and "strain (Volt) collected at the same pace. This vi will he?

    Thank you

    Dave

    Hi David,

    I suggest including the DAQmx Start Task function. If it does not start before the loop, it starts the loop and work very well, but it is not as fast and efficient. In the model of task status, task wiill go to run the checked each iteration of the loop and then back the time checked running when it restarts.

    The status of the task model: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/taskstatemodel/

    Kind regards

    Jason D

    Technical sales engineer

    National Instruments

  • Cascade of two functions of table build - what happens?

    I found the code indicated in the attachment in a very complex VI that I'm rehabilitated.  Could someone explain what is happening with the functions of table build "cascade".

    I see that the first function to build array built a table 1 d of integers that passes to the second function to build table that shows a table 2D of integers, but since there is no element or second input array, I don't see how it works.

    This is part of a Subvi, which is not incorporated into a loop.

    All the examples have at least two entries.  There is no option to concatenate entries with a single entry. There is an implicit operation here that I don't understand.

    If someone explain how it works?

    You're taking a scalar value and creating a table 1 d with exactly 1 element.

    So you're taking 1 d table and build in a 2D, with exactly 1 Item table.

    Since you can't concatenate something with nothing, only logical mode for the table build would be to build in a table of the next larger size.

    You could add a third, then you'd have a table 3D with exactly 1 element.  And so on.

  • I can't get my games installed on windows to play. I click on them, get the whirlwind as his work to open but does not work. Help!

    I can't my windows games to play. You know the ones that come already installed on Windows 7.

    Hi abarbato,

    Thanks for posting on Microsoft Answers!

    1 what is the error message when you run the default games in Windows?

    2 it is limited to a particular game or all games?

    3
    use (SFC.exe) System File Checker tool to determine which file is causing the problem and replace the file. To do this, follow these steps:
    1. open an elevated command prompt. To do this, click Start, click programs, accessories principally made, right-click Guest, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.
    2. type the following command and press ENTER:
    sfc/scannow
    The sfc/scannow command. analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.

    More information on SFC scan found in this document:
    http://support.Microsoft.com/kb/929833

    4. Uninstall and reinstall the games:
    1. click on start and in the search bar type "Turn Windows feature on or off.
    2. navigate to the games, and clear the check box next to it.
    3. restart the computer and same way go to the games and put a check mark (this will be re - install games)

    I hope that helps!

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The two speakers play left audio channel only.

    OK, so I plugged speakers to my new computer configured with windows 7 and have had problems listening to a simple song. When I use the speakers (I tried several different sets) the two speakers appear to play only the audio in the left channel, and nothing don't play the channel right, which means missing out on a lot of songs or watch: (.) The speakers are plugged into the making of lime on the back of the computer, and this problem occurs with each pair of speakers I'm looking for. When I use my usb headset, the sound is perfect. When I go into the sound Manager, I can "set up" speakers, and when the small figure lights up to let you know that all law is supposed to be carillon, carillon of two speakers. Even with the left. When I go to the Realtek HD audio Manager and test it, each speaker lights up and plays on his own, just as it is supposed to. If I connect to my other computer via desktop remotely, the sound works perfectly, each speaker playing its own channel. It's just when I am playing a song on my desk that I have problems. Also the problem with good windows media player and vlc player. Any assistance in obtaining of drew it up would be appreciated. Thank you!

    Use a splitter to connect your speakers to the back of the tower.

    Pregnant how many channels is it?

    The drivers are up to date?

    Motherboard?

    Update the audio drivers of blogs of the manufacturer of the motherboard.

  • How the two function return values

    Dear all,

    Please explain, how the two values of function return?

    give a simple example.

    OK, a few examples...

    First example, using a type of structured on the database object:

    SQL > create or replace type tMyValues as an object (yr number, number, number of dy mn)
    2.

    Type of creation.

    SQL > create or replace function getMyValues return tMyValues is
    2 number of y: = extraction (year sysdate);
    number of 3 m: = extraction (sysdate months);
    number of 4 d: = extract (day of sysdate);
    5. start
    6 return new tMyValues(y,m,d);
    7 end;
    8.

    The function is created.

    SQL > set serverout on

    SQL > declare
    2 myValues tMyValues;
    3. start
    4 myValues: = getMyValues();
    5 dbms_output.put_line (' year: ' | myValues.yr);
    6 dbms_output.put_line (' month: ' | myValues.mn);
    7 dbms_output.put_line (' date: ' | myValues.dy);
    8 end;
    9.
    Year: 2015
    Month: 4
    Day: 1

    PL/SQL procedure successfully completed.

    Second example, using an associative array within PL/SQL:

    SQL > set serverout on
    SQL > declare
    2 type tMyValues is table of the index number to varchar2 (10);
    3 myValues tMyValues;
    4
    5 function getMyValues return tMyValues is
    6 retValues tMyValues;
    7. start
    8 retValues ('Year'): = extraction (year sysdate);
    9 retValues ('Month'): = extraction (sysdate months);
    10 retValues ('Day'): = extract (day of sysdate);
    11 return retValues;
    12 end;
    13. begin
    14 myValues: = getMyValues();
    15 dbms_output.put_line (' year: ' | myValues ('Year'));
    16 dbms_output.put_line (' month: ' | myValues ('Month'));
    17 dbms_output.put_line (' date: ' | myValues ('Day'));
    18 end;
    19.
    Year: 2015
    Month: 4
    Day: 1

    PL/SQL procedure successfully completed.

    For the pipeline functions, see the example I wrote on the link provided by ReemaPuri (answer No. 3) that I don't need to re - write what I did before.

  • video play when you click on anywhere

    Hello

    I'm having a problem with the video full screen when I click (tap) anywhere on the screen, the video plays. I have the video attributed to a key. In principle, when I click on the button, this is when the video should play, and he does. However, if I type else where on the screen, the video is still playing.

    In the gif below, I select the video play button and the video plays very well, however when I click outside on the light gray background other video playback. It just seems to be the video.

    indesign_video_problem.gif

    Here's how I have my put layers in place. Each video is on its own layer. And the buttons that call videos are on the top most layer (they are recantgles without outline, or background color). The blue boxes are a State of the multiple object that is a slide show. I included that because I'm not sure if the text boxes (as buttons) have an effect on the video.

    perfect_planning_indd___100_-9.png

    Any contributions to this issue would be most appreciated. Thanks in advance.

    Solved.

    I double clicked on the video on the artboard, and then resize the video down to the size of the buttons. I thought I did it before, the video has been resized in its outer limits if that makes sense. When I double clicked on the video, however, I saw another set of guidelines, which was in the area where I clicked.

    If someone wants to fix my termonology which is appreciated.

Maybe you are looking for

  • Administrator account? Windows 7

    my game (The Witcher) says that I must be administrator to run itI tried to change my username to it but it says there is aready an accountwith this name, but I'm the only user on my laptop BRAND NEWI NEED HELP

  • How to rebuild Windows startup files?

    I installed Windows Xp NTLDR in my removable disk and set up the boot.ini file and started my 1 Windows Xp partion. I had downloaded the EasyBCD and tried to fix it and it gives the folling error "the boot configuration data store could not be opened

  • WSB600N problems (string disconects)

    Hello After becoming irritated beyond comprehension, I hope someone here can help me lol. After installing the drivers for this device on WinVista64 little from the CD, it connects to my older D-link Wireless Rangebooster G network but continualy dis

  • HP Officejet Pro 8500 A909n - Windows 7 Driver needed!

    Hello I just bought HP Officejet Pro 8500 A909, and he does it not install on my Windows 7 RC1 installation. An updated driver is needed. I wonder if there is no known workaround solution? I tried compatibility mode and run as admin, comes to about 9

  • Gps & blackBerry Smartphone camera not working not

    I have 2 problems, 1, is that my camera will not open... need to close other applications... How can I fix this so the camera works? 2 my gps worked has now stopped... when I click on browser att icon it says "Error starting Module telenav55 'release