2 buttons on the scene with 2 different code = > button run all all code

Hello

It is really strange

I have 2div with 2 actions, one by div:

-1 to load a url (touchstart and click)

Window.Open ("myurl", "_blank");

-1 to reload animation (touchstart and click)

SYM. Play (0);

sym.getSymbol (oscar) .play (0);

sym.getSymbol (click) .play (0);

sym.getSymbol (bontonjouer) .play (0);

http://com3elles.NET/animation/com3elles.html

If we click 1 to load everything is ok

If we click on the reply button, it replicates but it loads url in new widows...

Why?

concerning

I found that I have removes a link and now it works

concerning

Tags: Edge Animate

Similar Questions

  • adding video clips at random to the scene with ACE

    Hello

    I need help with my code.

    I have 3 different film clips.

    They are called butterfly00, butterfly01, butterfly02. They are exported for ACE

    I need to add to the scene by ACE. Randomly. With the help of a timer.

    I put them in a table and the idea was to get out of here, but it is not working properly.

    At the moment it works fine for the first 2 butterflies. After that, it adds the butterflies to stage 2 on the same time and then 3 and 4 and etc. Accumulates.

    Maybe someone can comment on the code.

    Thanks in advance!

    var timerLeft: timer = new Timer (5000, 10);

    var liblikas00: butterfly00;

    var liblikas01: butterfly01;

    var liblikas02: butterfly02;

    var liblikas: MovieClip;

    var symbolArray: Array;

    var symbolButterfly: int;

    symbolArray = new Array();

    1. symbolArray.push (liblikas00);

    trace(symbolArray[0]);

    1. symbolArray.push (liblikas01);

    trace(symbolArray[1]);

    1. symbolArray.push (liblikas02);

    trace(symbolArray[2]);

    1. timerLeft.addEventListener (TimerEvent.TIMER, butterflyToStage);
    2. timerLeft.start ();

    function butterflyToStage(event: TimerEvent): void

    {

    symbolButterfly = Math.floor (Math.random () * symbolArray.length);

    trace ("symbol is" + symbolButterfly);

    Switch (symbolButterfly)

    {

    case symbolButterfly = 0:

    var liblikas00: butterfly00 = new butterfly00();

    liblikas00.x = stage.stageWidth / 2;

    liblikas00.y = Math.floor (Math.random () * (1 + 150 - 350)) + 150;

    stage.addChild (liblikas00);

    break;

    case symbolButterfly = 1:

    var liblikas01: butterfly01 = new butterfly01();

    liblikas01.x = stage.stageWidth / 2;

    liblikas01.y = Math.floor (Math.random () * (1 + 150 - 350)) + 150;

    stage.addChild (liblikas01);

    break;

    case symbolButterfly = 2:

    var liblikas02: butterfly02 = new butterfly02();

    liblikas02.x = stage.stageWidth / 2;

    liblikas02.y = Math.floor (Math.random () * (1 + 150 - 350)) + 150;

    stage.addChild (liblikas02);

    break;

    by default:

    trace ("Nothing");

    break;

    }

    }

    This is a reduced version of the code:

    var timerLeft: timer = new Timer (5000, 10);
    var symbolArray:Array = new Array("butterfly00","butterfly01","butterfly02");

    timerLeft.addEventListener (TimerEvent.TIMER, butterflyToStage);
    timerLeft.start ();

    function butterflyToStage(event: TimerEvent): void
    {
    var butterflyClass = symbolArray [Math.floor (Math.random () * symbolArray.length)];
    trace ("symbol is" + butterflyClass);

    var ClassRef: Class = Class (getDefinitionByName (butterflyClass));
    var classInstance: * = new ClassRef();
    classInstance.x = stage.stageWidth / 2;
    classInstance.y = Math.floor (Math.random () * (1 + 150 - 350)) + 150;
    addChild (classInstance);
    }

    If you want to be able to target objects then you can place them in a table as you add them and target them to that.

  • Error #1009 when sound inside game, a movie clip that is called to the scene with child add method

    What is supposed to happen

    I have a clip that is called when the user clicks a button. When moving clip appears music is expected to play. When the user clicks the close button the music stops and the clip is removed from the scene.

    But then I get an error

    When I test the movie I get the following error:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    to mc_playSong / frame2 () [mc_playSong::frame2:6]

    This is the code that calls the clip on the stage (no problem here):

    Call the video clip with the song played on stage

    stage.addEventListener (MouseEvent.MOUSE_DOWN, goButtons);

    function goButtons(event:MouseEvent):void

    {

    If (event.target is song_bnt)

    {

    SoundMixer.stopAll ();

    addChild (myPlaySong);

    myPlaySong.x = 558;

    myPlaySong.y = 384;

    Event.stopImmediatePropagation;

    }

    The following code inside the clip is called to the scene. The music is meant to play:

    Stop();

    Variables for listening to music

    var RJPlaySong:RJSong = new RJSong();

    var RJPlaySongChannel:SoundChannel;

    Music for plays

    stage.addEventListener (Event.ENTER_FRAME, startRJSong); (I think that the error in the code is in this function. When I comment on him I don't get error.)

    function startRJSong(event:Event):void

    {

    RJPlaySongChannel = RJPlaySong.play ();

    }

    Stop all sounds, sets variables to null and calls a send event that removes the clip of the scene.

    bnt_closeSong.addEventListener (MouseEvent.MOUSE_DOWN, closeCreditSongScreen);

    function closeCreditSongScreen(event:MouseEvent):void

    {

    SoundMixer.stopAll ();

    RJPlaySong = null;

    RJPlaySongChannel = null;

    dispatchEvent (new Event ("RemoveMCsong"));

    }

    Someone at - it ideas? This seems to be a pretty simple question, but I can't understand it.

    I meant that you have quoted just to be taken literally.  If it's still not clear what I say or what did your code, try the following in order to demonstrate the IT change... This code to be...

    stage.addEventListener (Event.ENTER_FRAME, startRJSong);

    function startRJSong(event:Event):void {}

    trace ("I can do this all day");

    }

    After doing this, you can see why you want to only call the function once, and you could eliminate most of it and just put...

    RJPlaySongChannel = RJPlaySong.play ();

    Instead, or as I said originally, you can change it to be...

    function startRJSong (): void

    {

    RJPlaySongChannel = RJPlaySong.play ();

    }

    startRJSong();

  • Get the library MovieClip is on the scene with AS3

    Hey guys, a simple I think, right

    Could I please have the answer to get an element of MovieClip on the stage within say the class Document.

    The trick is

    I want to do when the MovieClip is link refers to a class name, but doesn't actually have a document class that is created.

    I know you can give a complete class with the document and which would not be easy.  But if you have 10 enemy objects literally doing the same thing, but just look different, why create 10 separate classes!

    or I am barking the wrong tree and that I should just set up 10 different enemy styles in the MovieClip 1 and just 1 class join her?

    Although always, I would like to know how to get dynamically a MovieClip on the stage of the library, when he isn't a class file associated with the class name in the link

    I saw that somewhere there are many moons but do not remember how it was done: s

    Thanks in advance

    Pocketninja

    I'll spare you any attempt by me to answer the questions of the Document class, but here are the basics to dynamically load a symbol in the library...

    First of all you must designate the object in the library as an element that can be dynamically loaded.

    Right-click on it in the library and select the link in the menu that appears. In the interface that appears, select export for Actionscript. A class name will be automatically assigned, you can change as you wish (let's just say you name MyObject). Is the name you will use to call in the library item.

    When you click OK to close this interface, it can come up with an indication saying that he finds not only the class so it will create a moment complie... click OK here.  You are made to prepare the object in the library.

    To add the item to the scene, treat it like any other new object instance:

    var newObject:MyObject = new MyObject();
    newObject.x =... etc...
    this.addChild (newObject);

  • XML to fill some movieclips added to the scene with AS3

    OK, I am new to AS3 and it's the biggest thing that I tried to do.

    I'm just at a loss for the right path to take to achieve what I want to do.

    In short, here is what the final result will look like:

    The scene contains a large (about X size) movieclip with a scroll bar (not important for this discussion). This movieclip is created using AS3.

    The large movieclip is filled with many small movieclips created from a template in the library. This model contains certain dynamic text fields (let's call them text1_MC and text2_MC). Dynamic text for each small movieclip is provided of an XML file that contains the text and text1 2 data.

    I was watching tutorials to dynamically add a text as well as the instructions of plotting xml data analysis and others. What I can't find is how add dynamically the text to a text field in a movieclip and then add the movieclip on the stage and then start everything for the next bit of data.

    What we call this process? I know that I am using a loop statement, but someone could give me an overview of all the different things I do to get my data on xml, fill a single movieclip, and then adding this movieclip to the greatest MC, then doing that everywhere for all xml entries I've got, then adding that great MC on the stage?  I would be happy to get it all myself.

    Thank you!

    Hello

    You have created a single object. Only, I changed your code. pls watch it.

    var Timeline_mc:MovieClip = new Timeline_MC();

    var flag: Flag_MC.

    function ParseFlags(flagInput:XML):void
    {
    var locationList:XMLList = flagInput.Flag.Location;
    var titleList:XMLList = flagInput.Flag.Title;
    var actionList:XMLList = flagInput.Flag.Action;
    for (var i: int = 0; i< locationlist.length();="">
    {

    flag = new Flag_MC();

    var locationElement: Number = locationList [i];
    var titleElement:XML = titleList [i];
    var actionElement: XML = actionList [i];
    Flag.txt_title. Text = (titleElement);
    Flag.txt_intro. Text = (actionElement;)
    Flag.x = (location element);

    Timeline_mc. AddChild (flag); / /[i] ;

    }
    }

    addChild (Timeline_mc);

    Thank you

    Concerning

    Bala.S

  • How to map the same tag of the element with a different value in BI Publisher rtf model.

    Hello

    I have an xml file with the same name in the < tag > element and I do not know how to associate the same < tag > element to different string in the document rtf template attribute.

    For example: "' Eswitch <number > is repeated in this xml file, when I am mapping this element to the document rtf with a different string, I have same value 'D00002 ' . I should get values D00002 and DMR00002.

    < document >

    < TitleBlock >

    < number > D00002 < / number >

    < itemType > Document < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    < description > gtedgg < / description >

    < shippableItem > n < / shippableItem > < / cartridge > < / Document >

    < DMR >

    < TitleBlock >

    < number > DMR00002 < / number >

    < itemType > DMR < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    test nomenclature model bom1 < description > < / description >

    < POS > < value > Test < / value > < / POS >

    < shippableItem > n < / shippableItem > < / cartridge > < / DMR >

    < / AgileData >

    I followed steps below for map document model rtf with the same tag xml with a different value.

    1. install Office word 2013.

    2 BI Publisher for desktop software installed. It will add a BI Publisher plugin to the word document.

    3. with the help of desktop publisher BI, created a model of document rtf file.

    4 imported the document rtf template example xml file.

    The data is loaded successfully.

    5 tires model rtf field symbol to map the tags to xml to rtf document attributes element.

    7 saved the document in PDF format.


    Thank you

    Please mark it correct so that it is useful for others to find the solution to a similar request.

  • Integration of the TPM with 2 different areas AD

    Hi people,

    We have an obligation to incorporate 2 different areas with OVD AD and provide a single view of the data from the announcement of foreign principals of the follow-up to the announcement that the Member in the Group AD1 attribute value is set to the AD2 user objectSid.


    I created the maps below and custom plugin as part of the implementation:

    • Created an AD adpater to AD1 Directory(AD1 Group adpater) Active traction groups - main card
    • Created an AD adapter to users to get AD1 Active Directory (adapter user AD1)
    • Created an AD adapter to users to get AD2 Active Directory (adapter AD2 user) - link adapter
    • Created join adpater so that data on top 3 adapters can be provided in a single view (join adaptor)
    • Custom plugin was created to replace the Member of the group attribute in AD1 containing the value objectSID with the corresponding user DN AD2
    • Custom plugin extends the BasePlugin interface and the inti() and postSearchEntry() method overides

    The custom plugin triggers when I connect to OVD through any LDAP browser and navigate the view and the custom plugin does its job to replace the member attribute in AD1 with the DN of the user of AD2, but when I run the ldapsearch to OVD to return the Member for any particular user (Member = cn = < UtilisateurDN >) I do not see my custom plugin to trigger and the ldapsearch is passed to the AD1 where it has no Details on the user DN but only the objectSid of the user.

    After investigation, implemented the get() method in my custom code to transform the search filter incoming (Member = cn = < UtilisateurDN >) with the objectSid (Member = cn = < objectSid >) and past the filter changed to the chain.nextGet () method.

    In the journals of backend, I can see the custom plugin is triggering and turning the filter and passing to AD1 and custom plugin print groups that belongs to the user, but I don't see any results for the ldapsearch command.

    Counsel on this will be highly appreciated.

    Thank you

    Simo

    You will still need to run super.get () when there is any result to add.

  • Change the background color of the scene with ACE

    We I have a preloader who plays behind my clip of transparent film and I want to change the scene in the dark
    When I go to full screen. What I found most use a black box, but which are resized to FS.
    So does anyone have an alternative to change the background color with AS it would help a lot.

    Bell W.

    To resize a box mc-background to the size of the stage, you can use the following script:

    lsnr var = new Object();

    lsnr.onResize = function () {}

    _root.boxMc._width = Stage.width;

    _root.boxMc._height = Stage.height;

    }

    Stage.addListener (lsnr);

    This assumes that your background-box is named boxMc and is located in the root timeline, and the film is in mode to noscale.

    EDIT: Another option is just to make the huge background mc, so it will always cover the entire screen.

  • Access to the functions of the scene from external javascript code in Web

    Hello

    Is it possible to use the functions created wihtin the IDE Flash from javascript code running on the html page?

    More generally, where can I find resources on how to interact with the flash-made canvas javascript in the case of web integration?

    Thank you

    I have not worked with this feature, but you can try something like this:

    Describe your functions in Flash pro in image scripts and do not forget to declare them under a global object such as document or createjs etc.

    document.myFunction = function() {}

    Console.log ('Hello!');

    your code

    }

    Now publish, goto console and access your function-

    document.myFunction ();

    Hope this helps; not sure if this is the best way, though!

    -Mabrouk

  • How to create a button in the State with two different images?

    What I mean is... I have a picture that is conveyed as a button that has not been pressed, and I also have an image that expresses the same key but this time it is pressed. Is there a way to ensure that when the button is normal I seized the image of the button upward and then make sure that when I roll on or press the Enter key, the image of the button down?

    Thank you, Ben Charter

    Hi Ben,

    Just create a Menu and with the Normal State is selected, use the fill options to fill an image in the Menu item. Select the rollover / the mouse to the bottom of the State in the States Panel, then assign an image by using the options to fill again. This is a swap of base image using normals and States of Muse down mice.

    Kind regards

    Akshay

  • How can I remove a child from the scene with a click of a button?

    I have a movieclip which requires playback buttons, Pause, forward and backward. The movieclip has actionscript to different images to load the library movieclips and repeat.

    I tried to use a progress bar, but it does not raise the actionscript during purification, only when the film plays normally.

    My solution is to create your and button back which can go up to specific frames where the key animation will start.

    I need to develop the actionscript code that will remove the children when the user clicks Back.

    That's how I'm loading movieclips several along the timeline of my library:

    var shpA1:arSHPp1;

    function attachAR1 () {}

    shpA1 = new arSHPp1 ();

    shpA1.x = - 30;

    shpA1.y = 18;

    addChild (shpA1);

    }

    the interval is used to repeat the animation to represent the stream on a diagram

    var myInterval1:uint = setInterval (attachAR1, 500);



    What I've tried so far (does not at all - no error or trace):

    function remChild1(event:MouseEvent): void {}

    If (shpA1.stage)

    {

    trace ("arSHPp1 is in the display list");

    shpA1.parent.removeChild (shpA1);

    shpA1 = null

    }

    on the other

    {

    trace ("arSHPp1 is not in the display list");

    }

    var removeTimer;

    clearInterval (myInterval1);

    shpA1.parent.removeChild (shpA1);

  • change the voltage with a different deadline for both channels

    I have DC power which is having two output channels, each channel is capable of giving two different tension at a time. I want to change the voltage for channels with two differnet time. ex: voltage channel 1 will change each time 2mins and canal2 tension will change to each period of 5 minutes of time. so please give me the suggestion for this problem thanks in advance.

    Maybe like this...

  • I just got the phone with 3 different departments. where to go to complain?

    Well, where should I start... they lost the paperwork. They called once to acknowledge the camera, but said nothing about the loss of the all important reception that would start the workflow. I called the following week to get an update, date at which I was told that they did not receive the reception which was stapled to the paper edition. They got the camera and the document in question but not the receipt stapled to work question doc. rush has begun... I guess they couldn't have called a second time.

    I bought an extended warranty from Sony... As of today, I have received no documentation for the purchase of only a charge on my credit card. I discovered today that they had the wrong address, and their emails bounced back to them... Maybe they are allowed only one phone call.

    My frustration is... it's first anniversary year of my grandson tomorrow and I don't have another device. We will have so many lost moments to remember Sony by.

    I was put on hold five times with background music blasting. Someone should tell a background music is not for entertainment.

    Sorry next time I'll try an another Sony Canon.

    Hey Rand. I'm a little confused by your message. You mentioned not having a camera for your grandson's birthday... You're having problems with your Sony camera or have info. on a recent purchase?

  • I have a dual monitor in the display with a different total 3 registered. How can I get rid of one of the duplicates.

    I accidentally added the same monitor in the display area where you can change the appearance.  I think this causes a problem when I click for a drop-down list, as the drop-down list will be grayed out until I put the mouse pointer in the drop-down list box list, so I'm able to use the right items listed lower down.  However, after I have click on the option I want to use, copy, paste, cut, etc, that particular item will remain on the screen until I have change the resolution and then go back to the original resolution.  I'm afraid to remove the monitor that I would delete that I'm not with my main monitor.

    Thank you for your time,
    Frank

    Hi Frank,.

    I suggest you to change the main view and check if that does the trick. To do this, follow these steps:

    a. click Start and select Control Panel.

    b. click view , and then select change display settings

    c. click the type of view you want as primary (or display 1) and select the option 'Allow this my main screen'

    You can also see the following articles for more information:

    Move windows between multiple monitors

    http://Windows.Microsoft.com/is-is/Windows7/move-Windows-between-multiple-monitors

     

    Work and play better with multiple monitors

    http://Windows.Microsoft.com/is-is/Windows7/work-and-play-better-with-multiple-monitors

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • Need to query the result with two different of a same attribute values

    Hi all

    I have a search query where I need the query result when an attribute have two different values (e.g.: want the query result when the attribute 'status' is equal to 1 and 2)

    And also, the user will be able to search by any State result.

    What is the best way to implement this.

    Thank you
    DK

    The solution to this use case is to put the part by default ((statut == 1 ou statut == 2) and: bindUserInput is null) as part of the query and the Pratt of the query to run when a value is entered by the user in a view criteria. East view criteria (Status ==: bindUserInput) and the value of the checkbox to ignore the values null. If the binding variable: bindUserInput is null, only the portion of the query is running, if the binding variable is not null, the display criteria is added at the request of three and three default components will not return any line.

    Timo

Maybe you are looking for

  • Do not disturb - allow notifications

    I never paid much attention to "do not disturb", as he always did what I needed.   However, now I need my security camera alerts allow.  Looks like I can only allow calls, email, texts of contacts, but no notification apps. Now my camera sends e-mail

  • When I try to attach a pdf file to an e-mail it is printed in El Capitan why

    Why, a PDF file is saved under the ribs (top Capitalan) not come up as an attachment but rather returning to full printed form?

  • Limited to the version of the operating system

    Is there a restriction on the version of the operating system that I can update my iPad to old mothers of?  In iTunes, it says that there is no update.  It's on iOS 5.1.1 but when I try to install a game to her, it says that I need at least version 7

  • Firefox crashes on opening

    When trying to open Firefox, it just hangs and I have to force to leave. I trashed the earlier application and downloaded and installed a new application. Same result in opening.

  • Windows 7 update error 66 has

    I tried several times to install an update from Windows 7, but it's still fails with an error 66A. Can anyone provide a solution?