Newbie needing help. I need to show an MC on the stage in 4 random positions?

I am new to actionscript and need help with showing my MC 4 place on the stage (topleft, topright, bottomleft, bottomright) all one after the other with a second 2 time between them.

If anyone has any actionscript 3.0 how to do what you'd be a life saver

the topleft etc. are not random positions but, if MC a reg point at the top left:

addChild (MC);

MC.x is MC.y = 0;.

var positionA:Array = [[stage.stageWidth - MC.width, 0], [0, stage.stageHeight - MC.height], [stage.sta geWidth-MC-width, stage.stageHeight - MC.height]];

var t:Timer = new Timer (2000,3);

t.addEventListener (TimerEvent.TIMER, f);

t.Start ();

function f(e:TimerEvent):void {}

MC.x = positionA [t.currentCount] [0];

MC.y = positionA [t.currentCount] [1];

}

Tags: Adobe Animate

Similar Questions

  • The path to nowhere - help! SWF files shows no not in the browser

    I need help to get a swf file to display in browsers. (he presents in preview in dreamweaver)

    created a Web site in dreamweaver cs4. created a simple slide show in flash 4.

    on the index.HTML page insert the flash file.

    It presents a preview in dreamweaver, BUT when I have the text in browsers, it shows as a white box.

    read through all the news on paths etc.

    You can simplify this entry below adninjastrator on the seven of 19 2011 adobe forums? ........

    "Always looks like a problem of path for me. For review:

    Path problems

    Almost always, when it works on the local computer and not by the server, it's a path problem.
    You can put your related Flash files into whatever the desired files, they don't have to be at the root, they are NOT all in the same folder. But if you have a problem and their stick it all in the works of root folder, and then, you know that the question was a path problem.
    Remember that used paths in the .swf is compared to the Web page on which is placed the .swf, NOT it's physical location.  Thus, for example, that if your .swf is located in the flash/data folder and you use .swf on a Web page in the root folder, you are in effect, remove this data/flash .swf and put them in the root. So if the .swf is responsible for all associated files (xml, images, video, etc.), the path used inside the .swf to load the .xml file must be compared to its new location in the root and then go back to flash/data. This is true even if when you test the .swf by itself, it can be inside the flash/data and work very well, as compared to its location, the path is very good, they are in the same folder. But if this same path is used when the .swf is placed on a folder page level two upward, the relative path has changed, the old "same folder" path will not work.

    In fact if you place the .swf on a web page in a different folder as the .swf is stored in, and that .swf called foreign assets, then heading by clicking on and open the .swf in his file should NOT work! This is because the paths to the external assets must be relative to the Web page and not the physical location of the .swf.
    So just remember that you use an address from the last Web page (file not physical locations) and you can put related Flash files in folders what ever you want.
    Best wishes
    Look for the video

    adninjastrator ".

    Here is my code...

    < div align = "center" >

    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width = "350" height = "200" id = 'FlashID' title = "2812gtbroslides" > "

    < param name = "movie" value = "" / 2812gtbros.swf "/ >"

    < param name = "quality" value = "high" / >

    < param name = "swfversion' value ="6.0.65.0"/ >

    <!-this param tag prompts users with Flash Player 6.0 r65 or later to download the latest version of Flash Player. Delete it if you do not want users to display the prompt. ->

    "< param name ="expressinstall"value="/Scripts/expressInstall.swf "/ >

    <!-next object tag is for non - IE browsers. Then he hide from IE using IECC. ->

    <!-[if! IE] >->

    < object type = "application/x-shockwave-flash" data = "" / 2812gtbros.swf "width ="350"height ="200">"

    <!-<! [endif]-->

    < param name = "quality" value = "high" / >

    < param name = "swfversion' value ="6.0.65.0"/ >

    "< param name ="expressinstall"value="/Scripts/expressInstall.swf "/ >

    <!-the browser displays the following alternative content for users of Flash Player 6.0 and higher. ->

    < div >

    < h4 > the content of this page requires a newer version of Adobe Flash Player. < / h4 >

    " < p > < a href =" http://www.Adobe.com/go/getflashplayer_fr "> < img src = ' http://www.Adobe.com/images/shared/download_buttons/get_flash_player.gif "alt = 'Get Adobe Flash player' width = '112' height ="33"/ > < /a > < /p > "

    < / div >

    <!-[if! IE] >->

    < / object >

    <!-<! [endif]-->

    < / object >

    < br / >

    thanx

    wwwww1325

    If it works on the server but not on the spot, may be a local computer security problem. Sometimes there are problems of security on the local computer during the trial of all the Flash files that include any code that tries to establish an Internet connection, (even if it's to get the logo .gif Adobe used in the code "Download the latest version here").

    IE displays a bar of permission to Active X you need to 'allow '.

    But first of all, is it a problem or issue of DreamWeaver or a browser problem/questions? I mean when you "Preview", is that actaully in a browser?... so it does not appear in Web browsers you are testing in but don't see in DW?

    So I can't exactly tell what your particular problem, but my guess is that this is a security issue or there is something else that you missed and did not mention that is causing problems.

    Best wishes

    Adninjastrator

  • Please help, my other computer shows an error message: "Windows did not start because of an error in the software: load needed DLLs for kernel.

    Please help, my other computer shows an error message: "Windows did not start because of an error in the software: load needed DLLs for kernel.

    Hello

    ·          What is the number and the model of the computer?

    ·          What is the service pack installed?

    ·          The meadow of operating system has been installed on the computer?

    ·          Do you remember any changes made on the computer before the show?

    Try the steps listed in the link below: how to fix a computer that does not start: http://www.microsoft.com/windowsxp/using/setup/support/nostart.mspx

    You can also check: Error Message: Windows could not start because of the mistake in... : http://support.microsoft.com/kb/326671

  • Newbie need help with syntax gotoAndPlay

    Hello out there.

    I'm editing a Flash template that I downloaded recently

    The following code was placed on a symbol that is defined as a button.

    on (release) {}

    _root. Link = 3;

    _root. Gates.gotoAndPlay ("s1");

    }

    I interpret this code that _root.gates is the name of the instance that is in the root timeline, it moves the playhead to the frame labeled s1 in the case of doors which I guess is a clip.

    How to locate the instance of gates in the flash file. I looked at all the symbols in the whole flash file and none of them have instance names.

    Please help if you can. Thank you

    You have probably reduced to be an object of the library.  You should now see if he is on the stage or is loaded dynamically.

    If you right-click on the object in the library and select link..., you will be able to see if it could be loaded dynamically.  In order to load dynamically, in the Liinkage Panel, he will have to have the export for Actionscript checked (and each other) and will have an identifier defined for it.  This identifier is what will be used to remove it from the library via actionscript (using the attachMovie method).

    If she didn't have things in the link as I've described, then he probably lives on the stage.  If you are unable to find, then it may be on a hidden layer, or it can be set invisible on the timeline, or she may have a first blank frame that would make it appear as a single point on the scene if selected.

    Now, without worrying about if you will find how it is added to the stage, if your intention is to edit this object somehow, don't necessarily understand you the details of how it is added to the scene.  To check if the object in the library that you want to change, change it in a simple way so that you can tell if the item you are editing is the edited item you want.  If this is the case, then do the editing, you are intending.

  • Hello, im a student in England, student of architecture. I have the pack student for 12 months and I really need to know my limits with the use, (copyright licensing). I am allowed, except by using my home application to show works that i already have)

    Hello, im a student in England, student of architecture. I have the pack student for 12 months and I really need to know my limits with the use, (copyright licensing). I am allowed, except by using my home application to show works which I have already done (as portfolios) to architectural firms, I intend to request a placement to? also can I post my stuff (already did the work) on my blog or tumblr? I intend not to use for profit/money at all well (if I was I wouldn't ask you this lol). Thank you.

    Hi,

    Please see Licensing FAQ: where can I find the terms of membership and the terms of use?

    Hope that helps!

    Kind regards

    Sheena

  • Need to show the customer the invoice amount is constant for three months

    Assume that the user will give the month and year (ex: March 2011) then result will show all customers whose the invoice amount is same in March, Feb and Jan-2011 and the result will appear in three lines.
    For these, I need to create a point of view and the corresponding query. The combined output should be-

    Cust_id Base_month Bill_amount

    1 500 03 - 2011
    1 Feb 2011 500
    1 jan-2011 500
    9 Mar 2011 800
    9 Feb 2011 800
    Jan 9, 2011 800

    Can someone help me?

    Not clear.

    SQL> select *
      2  from test_bill
      3  order by cust_id,bill_month;
    
       CUST_ID BILL_MONT   BILL_AMT
    ---------- --------- ----------
             1 01-DEC-10        400
             1 01-JAN-11        500
             1 01-FEB-11        500
             1 01-MAR-11        500
             1 01-APR-11        600
             2 01-FEB-11       2000
             2 01-MAR-11       1000
             3 01-JAN-11       1500
             3 01-MAR-11       1500
    
    9 rows selected.
    
    SQL> select cust_id,bill_month,bill_amt
      2  from(
      3  select cust_id,bill_month,bill_amt,
      4         max(case when bill_amt = prev_bill and bill_amt = prev_bill2 then 1 else 0 end)
      5              over (partition by cust_id) flg
      6  from(
      7  select cust_id,bill_month,bill_amt,
      8         lag(bill_amt) over(partition by cust_id order by bill_month) prev_bill,
      9         lag(bill_amt,2) over(partition by cust_id order by bill_month) prev_bill2
     10  from test_bill
     11  where bill_month between add_months(to_date('Mar-11','Mon-yy'),-2) and to_date('Mar-11','Mon-yy')
     12  )
     13  )
     14  where flg = 1;
    
       CUST_ID BILL_MONT   BILL_AMT
    ---------- --------- ----------
             1 01-JAN-11        500
             1 01-FEB-11        500
             1 01-MAR-11        500
    
  • Flash newbie needs some advice on a project

    Hey guys,.

    Thought I'd ask you guys to a general approach on a project I'm starting.  I have a background in computer science, so I lose patience with some of the beginner step by step tutorials that are out there online / in books.  What I lack, it is for you guys to let me know what will be important for me to learn what I want to do and what are the aspects of the Flash I can go without.

    I'm a grad student in Psych clinical and I want to build an interactive processing application.  Which basically translates to is that he will have a series of screens with text, sound, and video clickable icons that will show small films, I developed that my views on the principles of different treatment.  Anyway, I just wanted to know if you guys could give me advice on the best way to do it.  I can animate text and it's kind of basic, but I feel like I kind of sense in the dark right now and do not want to waste too much time on dead ends.  If you guys can give me an idea about the basic components of Flash, I'm going to need a solid understanding of creating a project like this, I would really appreciate it.  I'm sorry if it is vague, just trying to reduce the amount of time I spend of experimentation and if you guys could tell me precisely these modules/tools in the application that I have to use to do this I can take it from there.

    Thank you!

    -Ricky

    If you are looking for shortcuts, you're not likely to find.  The essential elements you need to know to start with the basics and expand from there.

    One essential thing you should learn is how to find and solve things by yourself using the Flash help documentation and a good search engine like Google.  Almost all the objects/classes have 3 basic elements (properties, methods, events) you need to understand how use/manipulate, and they are all identified in the help documentation.

    If you want to work with videos, start digging to learn the different ways that you can integrate... using a FLVPlayback component or the NetStream class.  If you want to learn how to work with audio, then dig learn how to use the Sound class.

  • Help! I need to connect my iPhone5s to the stereo, but it has only one usb port and whenever I connect it, it connects? Is there a setting on my phone, I need to change? Help, please

    Help! I NEED to connect my iPhone5s to the stereo, but it has only one usb port and whenever I connect it, it connects? Is there a setting I need to change on my phone? Help, please

    You will need something like that and a micro USB to USB cable

    http://www.Apple.com/shop/product/MD820AM/A/lightning-to-micro-USB-adapter

  • Need to show continue button above declining record OAAM OTP key

    Hi all

    I have a requirement for customization of OAAM WBS registration page. Client want to display button continue higher than the button to decrease on the OAAM WBS registration page. If anyone has any idea, how to achieve this, let me know.

    Thank you

    Dori

    Simply change the order as shown below the code in registerUserInfo.jsp. It will display continue button above decline.

    <%= UIOUtil.getLocalizedProp(sessionData, propPage + "continue.message", "")%>

    Class = "submitButton".

    value ="< %="BharosaUtil.encodeHTMLAttribute(continueButtonText)" %="">

    title = "< %="BharosaUtil.encodeHTMLAttribute(continueButtonText)" %="">" / >

    <% } %>

    <%= UIOUtil.getLocalizedProp(sessionData, propPage + "decline.message", "")%>

    Class = "submitButton".

    onclick = "optOut (); »

    value ="< %="BharosaUtil.encodeHTMLAttribute(declineButtonText)" %="">

    title = "< %="BharosaUtil.encodeHTMLAttribute(declineButtonText)" %="">" / >

    Thank you

    Dori

  • Hi I need to know how to expand the curves adjustment Panel. For example, the curves that I need to enlarge the graphic part, so I could show on a screen at the school. Thanks, Phil

    Hi I need to know how to expand the curves adjustment Panel. For example, I need to enlarge the graphic part so that I can view on a screen at the school and work from this Panel to expand. Thanks, Phil

    You can not. At least, not directly Ben Photoshop. For example, this can be done in Gimp and Photoline, and I had hoped that developers of Photoshop team would have done this allowance now. But no, we're still stuck with a tiny curved panel, which is a real shame, because in other applications, the user can be more precise with the curves.

    If you don't need to show close-ups during class time, use Zoomit in Windows, or turn on the Magnifier in the accessibility on a Mac option.

    https://TechNet.Microsoft.com/en-us/Sysinternals/Zoomit.aspx

  • I can not install Lightroom 6 on my laptop using 8.1 to WIN.  The installer asks me to connect and when I do after 20 sec freezes the computer and the battery needs to restart.  This prevents the work online help.  What can I do?

    I can not install Lightroom 6 on my laptop using 8.1 to WIN.  The installer asks me to connect and when I do after 20 sec freezes the computer and the battery needs to restart.  This prevents the work online help.  What can I do?

    Settle in the right forum.

  • Help!  I'm stuck.  No, not the child into the well.  I took a picture and put a second layer top with a rounded rectangle to make a frame.  My problem is that I need to find a way to hide the small box outside the box on the second layer.  Thanks to

    Help!  I'm stuck.  No, not the child into the well.  I took a picture and put a second layer top with a rounded rectangle to make a frame.  My problem is that I need to find a way to hide the small box outside the box on the second layer.  Thanks to all those who can help you.

    Another option is to put the Options bar of the Rectangle rounded to the path tool

    Trash bolt for the background layer, hold down the Cmd key and click on the symbol of the new layer to layer below the image to white. Then edit > fill with white.

    Return the image layer and draw the image as a path

    Click the load as a selection path in the Panel traced

    Edit > stroke and stroke with color

    Select > Inverse > delete

  • Impossible to update LR CC ~ my one day to change and nothing work updated my Mac and all LR will do is CRASH!  Need help.  Tried to stop CC and remove the 1.0 file already and who does not work for me.  What can I do?

    Impossible to update LR CC ~ my one day to change and nothing work updated my Mac and all LR will do is CRASH!  Need help.  Tried to stop CC and remove the 1.0 file already and who does not work for me.  What can I do?

    If lr crashes repeatedly, reset preferences.   http://www.lightroomforums.NET/showthread.php?14226-resetting-%28or-trashing-%29-the-light file-Preferences-room

  • Hi, I need your help. I bought your product. But the status is still trail version. so, what should I do?

    Hi, I need your help. I bought your product. But the status is still trail version. so, what should I do?

    (1) right click on the Finder on dock icon and select the 'Go - To Folder' option.
    (2) you will get a text box, type in below mentioned command and then press 'return '.

    / etc

    (3) it will open the etc folder, look for file named "hosts" and the same screenshot of office.

    (4) double click on the Hosts file, it will open it with TextEdit.

    Let me know if you see any Adobe related as entries in the Hosts file 127.0.0.1 activate.adobe.com... etc?

  • Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.

    I was wondering if I saved a layer somewhere and set it as a default value.

    If you group the layers, you will be left with a single layer, thus spreading your concern.

    Suggest that you do the following:

    1. Make sure you have the latest drivers for your printers
    2. Reset the default preferences.

    Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.

    Items nearby and let regenerate the file.

Maybe you are looking for

  • How to restore time capsule to a single partition?

    I have partitioned my 3T Time Capsule. 2T for storage and 1 t for backup, but I need to restore in a single volume. Someone knows how to do this?

  • Look at one of these two hard disks in Windows

    Hi guys Sam X 200 m/n: PSPBUA-00N007 running a Vista Ultimate operating system. I wanted to see if I can get Windows to recognize the two hard drives as a single. I tried to change the 2nd HARD disk to a dynamic and extending of the primary HARD driv

  • Text moved to medium / or to the top of the conversation.

    Hello! I'll have the problem that when someone IM me, their message is added to what they already typed (above mine) or inbetween my own. It started after the update. As you can see from the parking meter, it is incredibly annoying, all known bugs?

  • Call control panel upward on the iPhone 6 s

    I can last days of work is more drag up to quick access the Panel control, everything just stopped.  Any ideas on how to solve this problem?  I use the flashlight and enable and disable the wifi there all the time and miss it. BUrlgirl

  • Remote AiO cannot send as multiple photos in the camera roll

    After the digitization of 25 photos using remote AiO that I want to send them to the camera roll, but have to send each photo one at a time? I can press edict that allows me to select all, but it does nothing but REMOVE them? Also cannot send multipl