How can I make a generator of team?

Hello. I want to create a team simple generator app. I would like to get 4 names, click a button and give it me a random match 2 vs 2. No idea on how to achieve this using the edge animate?

First, create a symbol on the stage called "Teams" and inside this symbol, create a text layer and call it "format.

Back on the scene duplicate symbol "teams' four times and rename them on your timelines as Team1, Team2, Team3, Team4

Now create a button on the stage and put the following code on a button click:

Var all =]

While (numberOrder.length<>

var randomnumber = Math.ceil (Math.random () * 4)

var found = false;

for (var i = 0; i)<>

if(numberOrder[i]==randomNumber) {found = true; break}

}

All if(!found) [numberOrder.length] = NombrAl;

}

Team1 = sym.getVariable("Team"+numberOrder[0]);

Team2 = sym.getVariable("Team"+numberOrder[1]);

Team3 = sym.getVariable("Team"+numberOrder[2]);

Team4 = sym.getVariable("Team"+numberOrder[3]);

sym.getSymbol("Team1").$("TeamName").html (Team1);

sym.getSymbol("Team2").$("TeamName").html (Team2);

sym.getSymbol("Team3").$("TeamName").html (Team3);

sym.getSymbol("Team4").$("TeamName").html (Team4);

Finally, you need to assign a list of variables with team names you need, in document.compositionReady, insert the following code:

sym.setVariable ("Team1", "Team 1 name");

sym.setVariable ("Team2", "Team 2 name");

sym.setVariable ("Team3", "Team 3 name");

sym.setVariable ("Team4", 'Team 4 name');

Tags: Edge Animate

Similar Questions

  • How can I make a group of tiles is one fell swoop

    How can I make a group of tiles is one fell swoop? Thank you very much for your help!

    Please explain what you want to do - when you import photos into iPhoto, the thumbnails are generated automatically - youo need not to do something

    and verisy you use OS X 10.6.8 as you say it and tell us what version of iPhoto you use

    LN

  • How can I make adobe reader prompt me to wonder if he can close to closing if multiple tabs are open?

    How can I make adobe reader prompt me to wonder if he can close to closing if multiple tabs are open? Firefox has this feature, Acrobat needs too. Sometimes I leave the program instead of close the scheduled tab. I understand it is a human error, but this feature could be toggable for those who don't want it and it would help the people who make the same mistake as me.

    Hi hummersaurus,

    I understand your concern and will forward your comments to the relevant team. I will propose you to fill out the feature request/Bug Report Form

    Thank you

    Abhishek

  • How can I make my Clock.swf file disappear?

    Hello

    How can I make my Clock.swf file disappear? The following code works fine for clips video, but throw an error when using the .swf files.

    Introduction_mc. Visible = false; > > > This code works very well

    Clock.swf.visible = false; > > > > Copy the following code generates an error (how to solve this problem?)

    Help, please.

    The simplest is to target the Loader object.

    l.Visible = false;

    or

    removeChild (l);

    the two will work.  And you can make it visible again if need to use the opposite of these commands.

  • How can I make Apple sent an official request for Andorra in the list of international codes?

    Apple acknowledges that Andorra Telecom (Mobiland) is an approved operator.

    However it does not include the international dialing code of Andorra (+ 376) in the list of phone prefixes in the country.

    This prevents verification services, such as in two steps and two-factor authentication.

    How can I make Apple sent an official request for Andorra in the list of international codes?

    Thank you.

    Return of goods - Apple

  • How can I make double click to single click to open files?

    How can I make double click to single click to open files?

    See:

  • How can I make the work/look like a Thunderbird 2 Thunderbird?

    I used Netscape/Mozilla/Thunderbird Mail since the middle / end of the 1990s and was disappointed by the changes after Thunderbird 2, so I went years of Claws Mail, but it is not enough for everything. How can I make Thunderbird current work/look like version 2? In other words, I would turn off the tabs for messages & research, including all traces of what it looks like a label, or space curved GUI / additional shadow separated, so also have only a single search box that will search and display in the current folder box and keep the menus easy to use (with shortcuts that appear when you type) standard for GUI programs While getting rid of the imitation chrome button. I guess that the tabs are okay for things like dealing with Add-ons, but that's all. Maybe there are other things I can think. I know that most/all this can be done in terms of configuration and I think a lot of people would like that there is a full article on it. Virtually everyone, many people that I talk about e-mail also let Thunderbird for all these reasons, of it being too influenced by web browsers, and the IRC channel is virtually dead, so I came here, hoping that this place is not as dead with what happened with the project (announcing that no major update will be When most of the people preferred it maybe before the latest GUI major updates)

    Seriously. You're in the minority, I think.

    No one took the trouble with this stuff since V3 came out. but I wrote a blog postabout this 5 years ago and Mozillazine did a knowledge article database that went further than my blog post. But I wanted to just my menu bar headings message and back small Mozillazine entered CSS change and I think some that can be made obsolete by Australis was two years ago. But if you want to go.

  • How can I make YouTube playback buttons and other plug-ins more great because they are so tiny?

    How can I make YouTube playback buttons and other plug-ins more great because they are so tiny in Firefox? I tried some suggestions dealing with entering "subject: config ' in a fresh browser, but does not. I also downloaded the add-on called "Theme font & size changer", but that no longer works. So I'm reaching here that it was a suggestion that offered another user here.

    Ah, Yes, that's - a ultra high resolution (dots per inch) display. It is a known problem in Flash Player, which Adobe is working on fixing.

    In the meantime, you can get some videos to have normal size controls from the Youtube HTML5 video player:
    In Firefox, go to https://www.youtube.com/html5 and click on the button "request the HTML5 player.

  • How can I make Android V35 behave like the V24?

    I use FF on Android, I've been holding until the update since 24 V for all newer versions will not auto play mp3 for download without interaction. I use this to play on Google voice email messages. How can I make 35 V behave like a 24 V?

    Thanks Roland, I guess all I can ask is that you can do occur in future releases and maybe make an adjustment if it is a problem for other users to access this feature.

    Thanks Bob

  • How can I make my smaller mailboxes, so that all the stuff does not appear after that I have opemed it?

    The email I'm reading is very large with a lot of things that I did not need to see. How can I make my mailbox smaller?

    Remove the stuff that you don't need to see and to compact the folders later.
    http://KB.mozillazine.org/Compacting_folders

  • Firefox keeps displaying old site, ff mobile detects the new site. How can I make Office go to the new site?

    I moved my site from the old host of godaddy. updated the dns at register.com. On my phone android with firefox, I can see the new site, after I dropped the wifi and went to the data. On my desk and my husband two computers, we can only see the old site, even after clearing cache. How can I make Firefox displays the new site?

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    You can delete all data stored in Firefox with a specific area through "Forget this Site" in the context menu of a history entry ("" history > view history "or" view > sidebar > History "") or via the subject: permissions page.

    Using "Forget this Site" will delete all data stored in Firefox in this area as bookmarks, cookies, words of past, cache, history, and exceptions, so be careful and if you have a password or other data from that domain you don't want to lose then check that back up these data or make a comment.

    You can't recover from this "forget" unless you have a backup of the files involved.

    It has no lasting effect, so if come back you on such a 'forgotten' site, then the data of this Web site will be saved once more.

  • How can I make iOS safari bookmarks 9

    How can I make a bookmark in Safari in iOS 9? My wife Samsung has bookmark icons that appear on the desktop. Can I do this?

    To Add a site to your Favorites in Safari, follow these steps. First of all, make sure you are at the top of the Web page so that you can see the address bar. Look at the bottom and tap and HOLD the third icon (it looks like a page).

    If you hold down the icon a popup appears:

  • How can I make a list of all bookmarks as my homepage?

    How can I make a list of all bookmarks as my homepage?

    You can set one of these pages as startup page:

    • chrome://browser/content/places/places. XUL
    • chrome://browser/content/bookmarks/bookmarksPanel.XUL

    The first one opens the Manager of bookmarks (library) and the second the bookmarks that see you in the box to Favorites (Ctrl + B; View > sidebars)

  • How can I make Thunderbird start car with windows startup

    How can I make Thunderbird start car with windows startup

    You can by placing a shortcut in the startup folder of windows, just like any other windows program.

    However if you do, you are likely to encounter problems such as downloading email while still load the antivirus and the network is busy, announcing the arrival of machines on the network (which can be a network a) and any other program of a dozen are loading is heavy risk of timeouts and disconnections of the server as well as error messages that make little sense because they are something that still load.

    The bottom line is so safe that you can, but if there are any questions bring her out of there first.

  • How can I make the biggest impression

    How can I make the biggest impression on all Web sites? where is the setting? Thank you!

    To temporarily make more big, click on 'view' in the menu, then choose 'Zoom' & then it will allow you to set the zoom to larger or smaller.

    If you want to definitely bigger, if you have a Mac, click on 'Firefox', then 'Préférences' / If you have Windoze choose 'Tools', then 'Options' (both look the same from here...), then click the "Content" icon and change the font size.

    That should do it...

Maybe you are looking for

  • Qosmio G20-120: MCE - TVcard does not

    Just installed MCE and he won´t recognize the TV capture card (Toshiba type W).Someone at - it a solution?

  • Failed to update for Windows Vista KB21410007

    I can't install the update for Window Vista KB21410007. I have tried both manually and automatic installation. Can I download the update and after I restarted my computer to complete the update, there is a message that says something like: coming bac

  • Possible bad SPA2102.

    I'm in a game of tennis to tech support. The news is: I initially installed two days ago and things were great. Now I have one of three levels of failure. No dial tone. I can call, I get a ring, he goes to the busy signal or can I make a call with a

  • Error FTP WRT54GH 425

    I've been running a FTP FileZilla Server for more than 2 years now. When I arrived in FTPs was actually the first time I had to port forwarding. External router forward 21 TCP 21 on the LAN, everything was good, FTP works. A few days ago the old rout

  • OfficeJet Pro 6230: Print head: missing, defective or Incompatible

    I have a 3 month old printer Officejet 6230 Pro who now will not be printed.  I get this message: "print head: missing, defective or Incompatible. I tried: (1) the printer reset (2) I have genuine HP cartridges (3) removed, cleaned and replaced cartr