How can i take the number of a random process to use it in math´s and show the solution to the user?

i wrote this function and i try to show the number of seconds the user was to early or to late to click the stopbutton to the user.
its about to hit stop intuitiv while in the background ther is a random number already made but the user dont know or see it.
the eyes opens in a random between 100 and 40000 millisec. if they open up the user should click stop without seeing them. so its intuitiv.
i just tryed.
this code is on the mc with the eyes to let them open randomly. it is on the second frame at the main time code. 1st frame is the start button and a small description. on the second the stop button and the closed eyes with the script down here as i already said. and on the 3rd frame is the end wher it should be shown to the user. thats how i tryed. please let me know any suggestions and or other solutions to my problem! If you need to see my flashfile to help me just let me know. i send it to you or something :-)
mic(at)hellrec.at
function randomRange(minNum:Number, maxNum:Number):Number
    return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
var myTimer:Timer = new Timer((randomRange(100, 40000)),1);
myTimer.addEventListener(TimerEvent.TIMER,openeyes1);
myTimer.start();
var duration:uint = getTimer();
function openeyes1(e:TimerEvent):void {
gotoAndPlay (26);
e.updateAfterEvent();

to save the number use:
function randomRange(minNum:Number, maxNum:Number):Number
    return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
var randomNum:Number= randomRange(100, 40000);
var myTimer:Timer = new Timer(randomNum,1);
myTimer.addEventListener(TimerEvent.TIMER,openeyes1);
myTimer.start();
var duration:uint = getTimer();
function openeyes1(e:TimerEvent):void {
gotoAndPlay (26);
e.updateAfterEvent();
p.s. please mark helpful/correct responses.

Similar Messages

  • How can I have a Pages document that is shared with me under my Pages section and not open it with the link?

    How can I have a Pages document that is shared with me under my Pages section and not open it with the link?

    Try this.
    Open the document and select and copy a few pages, say ten pages.
    Open a new blank document and paste the pages you copied into that.
    Save it with a new name.
    Work on those new pages to see if the problem has disappeared.
    If this helps, continue breaking up the large file in to smaller chunks and working on them
    You can of course later reverse the process and merge the files into one new one.
    This suggestion is based on my experiences with large Word files. Breaking it up in to smaller chunks does two things. First, if there is any corruption in the old file, the new copies might escape that. Second, the Mac is faster handling the smaller chunks.

  • How can I convert MiniDV tapes to DVD? I've use a Canon GL 2 and an iMac about 1 year old. I'm trying to use iMovie and I've installed the latest drivers.

    How can I convert MiniDV tapes to DVD? I've use a Canon GL 2 and an iMac about 1 year old. I'm trying to use iMovie and I've installed the latest drivers.

    MiniDV was a great format, one I still use often. I also still use iMovie HD6 to process it and, for all the iterations of iMovie that followed it, I still believe it was one of Apple's greatest movie software programmes, next to Final Cut Pro, using a timeline method of editing. That was also in the day which Apple put Superdrives into their computers, so that you could not only make your movie in iMovie, but you could render it to iDVD and then burn the DVD. Now you need to buy an external burner.
    Since iMovie HD6 and iDVD 6 were "universal" software, it has continued to work through the many OS releases since it came out with Tiger, I believe it was. So, it may still work with Mavericks too and, if you could locate a copy of iLife 06, probably used, you might enjoy the difference that HD6 has over all iMovie releases since then.
    Not saying you can't process your MiniDV with current iMovie versions, but I'm not the one to speak about that.

  • How can I take my credit card information out an just use app cards

    How can I delete my credit card informations an just use app cards

    iTunes Store: Changing your payment information
    http://support.apple.com/kb/HT1918
    iTunes Store Accepted Forms of Payment
    http://support.apple.com/kb/HT5552
    By app card, I asume you mean a Gift Card.
    Redeeming iTunes Gift Cards and content codes
    http://support.apple.com/kb/ht1574
     Cheers, Tom

  • How can i download my safari back to my macbook pro after EVERYTHING has been deleted and I don't have the disk

    MacBook Pro (15-inch, Mid 2009) and (15-inch, 2.53 GHz, Mid 2009)
    I recently bought my macbook pro from my brother and he deleted EVERYTHING off it and I do not have the disk that came with it. And now i cant get on safari or no type of internet or nothing!! HELP PLEASE!!!!!!!!!!!!

    You're going to have to get the disc(s) back from your brother or call Apple at 1-800-MYAPPLE and havethem mail you the machine specific disc(s) that shipped with your model.
    Clinton

  • How can I transfer my iTunes Media Library from one PC to another without losing files and making a mess of the file and album structure?

    I have imported a number of Café del Mar CD's to iTunes, and iTunes keeps scattering the tunes into several different folders in iTunes Media. It also has trouble finding album information, unless it has been downloaded from iTunes Store. Previous versions of iTunes I have tried didn't have this problem.
    I've tried to tidy the files manually in iTunes Media, but that usually results in duplicates, so I stopped messing with it. I actually wouldn't mind iTunes blowing up my albums into a nightmare file structure of hyper categorization in iTunes Media (Album, Album Artist, Artist, etc.) if only it recognised its own mess when I transfer the library from one iTunes library into another.
    An example: I downloaded Cafe del Mar - Essential Elements featuring 13 tunes, two of these can be found in the files Cafe del Mar/Cafe del Mar Essential Elements, iTunes also created the folder Cafe del Mar/Cafe del_Mar Essential Elements containing 0 tunes!?! and the rest of the tunes are found under Rue de Soleil in the root folder, indicating ONE of the artists as the criteria for creating a folder of tunes!?!
    I am trying with every fiber NOT to hate this program, and would appreciate it if someone could explain to me how I can move an iTunes Media library of aprox 54 gb from my desktop via an external harddisk onto my laptop. I have tried 4 times, and everytime the result varies. Sometime I transfer 3000 files, other times 4000. Which files follow and don't is random. I lose files tranferring to the external harddisk and lose even more files from the external disk to the new library on my Lap. Do I have to transfer song for song or can this genius program actually transfer a larger amount of files without losing half the files and duplicating the rest?
    Is there a limit of size or amount of files?

    Backup with this User Tip, restore the library to the new computer using the same tool, keep the backup up-to-date in future. Deauthorize the old computer if you no longer need to access protected content on it.
    As to your issues with compilations albums select all the tracks, set the Album Artist to Various Artists and on the options tab set Part of a compilation to Yes. See Grouping tracks into albums for details.
    tt2

  • How can I take data from specific column in a table using VBA

    Hi
    I do not know how to take the values from the last column in a table, I know how to look over each row but I cannot take the last column values for each row I pass by.
    This is the table for example:
    | Date | Account1 | Account2 | Description | Amount |
    |12/03/2008 | 123-32 | 325-78 | None | $50 |
    |12/03/2008 | 123-32 | 325-78 | None | $20 |
    |12/03/2008 | 123-32 | 325-78 | None | $10 |
    |12/03/2008 | 123-32 | 325-78 | None | $40 |
    I am using this code as a reference that User FiveNines gave me to loop through all the rows in the table, so What I need is to take the values of the column Amount for each row I go through.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    Dim rButton As HTMLInputElement
    ' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
    strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
    ' Strip out the ; for inner text comparison
    strValue = Replace(strValue, ";", "")
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    For Each tblRow In tbl.rows
    If tblRow.innerText = strValue Then
    RSWApp.WriteToLog "Tables", "Passed", "Row is Present", True
    End If
    Next
    End Sub

    Hi Lippix.
    This is code that will loop the rows then loop the cells and check for "$" which will return dollar values. I also attached a script.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    For Each tblRow In tbl.rows
      For Each tblCell In tblRow.cells
      ' cycle through the cells and only report those with a dollar value by searching for $
        If InStr(1, tblCell.innerText, "$") <> 0 Then
       RSWApp.WriteToLog tblCell.innerText
       End If
      Next
    Next
    End Sub

  • How can i optimize my SEARCH ENGINE???I use godaddy.i contact them and they give me this conclusion:Search engines are not pulling up your other pages on your website because it is created with javascript. the content on the pages, (photo gallery.....

    conclusion from godaddy:
    Search engines are not pulling up your other pages on your website because it is created with javascript.
    the content on the pages, (photo gallery, My Recipes/Blog, History, Friends) need to be formatted to HTML, PHP or CSS. No search engines (google, Yahoo, Bing) can crawl//analyze webpages built with javascript.
    See if Apple allows iweb to create the pages in HTML format and ask how to make those changes.
    I spend more then 1 hour on the phone with them but we didn't find the solution...
    please i need help because like this nobody can rich my website...
    www.chefdiego.com
    thank you

    The part of iWeb pages that give the search engines problem is the navbar.  That's javascript based.  One way to get around that is to create another blank page in the site that's not  included in the navbar. 
    Add a text based navbar in that page with just the other pages in the site. 
    Also you can use that page for creating the sitemap for Google at Create your Google Sitemap Online - XML Sitemaps Generator.
    Have you let Google know your site exists? This website describes how to get it recognized: Get your iWeb website found in search engines like Google Yahoo MSN and Bing.
    OT

  • I tried updating my iphone 4 to the ios 7 and now its on recovery mode. How can i take it off of recovery mode?

    I tried to update my iphone 4 to the ios 7 and now its on recovery mode. How can i take it off of recovery mode?

    Hi _em24,
    It sounds like you are having an issue with the upgrade to your iPhone’s version of iOS, a frustrating situation to be sure. Let’s see if we can get you back up and running.
    For basic troubleshooting of upgrades, and assuming you are using iTunes to do it, I would suggest using the steps in this article -
    Resolve iOS update and restore errors in iTunes
    http://support.apple.com/kb/TS1275
    If not using iTunes or the above do not produce the desired result, use the steps in this article -
    Resolve iOS update and restore errors
    http://support.apple.com/kb/TS3694
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How can i unlock my iphone 4S? i want to use out CA , i am going for vocation

    How can i unlock my iphone 4S? i want to use out CA , i am going for vocation

    As provided, ONLY the carrier to which it is locked can unlock it.
    Ask them if they provide this service.

  • How can i return object from oracle in my java code using pl/sql procedure?

    How can i return object from oracle in my java code using pl/sql procedure?
    And How can i returned varios rows fron a pl/sql store procedure
    please send me a example....
    Thank you
    null

    yes, i do
    But i can't run this examples...
    my problem is that i want recive a object from a PL/SQL
    //procedure callObject(miObj out MyObject)
    in my java code
    public static EmployeeObj callObject(Connection lv_con,
    String pv_idEmp)
    EmployeeObj ret = new EmployeeObj();
    try
    CallableStatement cstmt =
    lv_con.prepareCall("{call admin.callObject(?)}");
    cstmt.registerOutParameter(1, OracleTypes.STRUCT); // line ocurr wrong
    //registerOutParameter(int parameterIndex, int sqlType,String sql_name)
    cstmt.execute();
    ret = (EmployeeObj) cstmt.getObject(1);
    }//try
    catch (SQLException ex)
    System.out.println("error SQL");
    System.out.println ("\n*** SQLException caught ***\n");
    while (ex != null)
    System.out.println ("SQLState: " + ex.getSQLState ());
    System.out.println ("Message: " + ex.getMessage ());
    System.out.println ("Vendor: " + ex.getErrorCode ());
    ex = ex.getNextException ();
    System.out.println ("");
    catch (java.lang.Exception ex)
    System.out.println("error Lenguaje");
    return ret;
    Do you have any idea?

  • How can I take out my credit card number from purchasing anymore app

    How can I take out my credit card number from the App Store to prevent purchasing anymore apps

    How to Get Apps From the App Store Without a Credit Card
    http://ipadhelp.com/ipad-help/how-to-get-free-apps-from-the-app-store-without-a- credit-card/
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    http://support.apple.com/kb/ht2534
    Why can’t I select None when I edit my payment information?
    http://support.apple.com/kb/ts5366
    If None is not available - On your computer launch iTunes and click “iTunes Store” in the left navigation pane. Click the “down arrow” next to your name at the top right side of the page and click “Account.” Enter your username and password and click “View Account” to log into your account information. Next to your Payment Type, click “Edit.” Select the “None” button and click “Done.” Confirm that your card has been removed by returning to the Apple account information screen. Under Payment Type, it should say that there is no credit card on file.
    iTunes Store: Changing your payment information
    http://support.apple.com/kb/HT1918
    iTunes Store Accepted Forms of Payment
    http://support.apple.com/kb/HT5552
     Cheers, Tom

  • I accidently click on ''Import the list'' but now all the music have  an exclamation point I think they are all in Musique.txt on the desk... How can i take back these music on my library? I tried : Import the list and take Music.txt , but it do not work

    I accidently click on ''Import the list'' but now all the music have  an exclamation point I think they are all in Musique.txt on the desk... How can i take back these music on my library? I tried : Import the list and take Music.txt , but it do not work

    Ok, I had a glitch, forced to restart, and lost my train of thought.
    Reinstalling iTunes should fix the major issue that might have gone wrong, perhaps your explaination points will disappear and everything will be peachy again.
    But if they don't, you can open the XML file in iTunes Folder using a Text edit program to see what the common pathname is to the iTunes Music folder or where your content is located.
    If you moved the itunes folder, it needs to go back.
    I can't  download iTunes to my Vista virtual machine to test it out right now because iTunes is down, so I can't verify the pathname, perhaps your issue and the iTunes being down are related somehow?
    You don't want to import all your music again, but it's a option, but you lose all your playlists, that's what I'm trying to recover.
    If oyu don't have a whole lot of playlists, then simply select all the explaimation point music and delete, select File from the menu and import your itunes folder again.

  • HT4796 How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users?

    How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users? Having to log out just to sign in on a different user to access the files is absurd.
    Do I make all the files sharable to all the NOW users on the mac then just delete the files? Or can i erase my account that I made when starting up my new mac and then just use the one with the transferred files?
    I just dont want to have to og in and out of 2 different accounts .. Help please.         
    -Nina

    Sorry. /Users is a folder path. It would be similar to C:\Users (if that exists on Windows).
    So, in the Finder, select Computer from the Go menu.
    You'll see Macintosh HD, double-click that to open it.
    In there you'll see several folders. One is Users. That is where all the user Home folders exist. Select the other account's home folder and go to step 3.
    If you have any more confusion, please stop and ask. We'll get there.
    If you feel more comfortable, you can just log into that other account and move the files into /Users/Shared.
    Then, log into the account you wish to use and copy the files from the Shared folder and paste them into your Home folder, wherever they belong, Documents, Music, Pictures, etc.  That just takes a little more work. Transferring them into Shared, and then copying into your home sets the permissions on the files so that you won't have a problem accessing them later. The steps I provided just prevent you from having to do the double move, since you are not going to use the old account once you are done.
    Quick unix shorthand. If someone gives you a file path that begins with a /, that means the root of the hard drive, ie Macintosh HD (if you haven't renamed it). The path separator in unix is /, not \.
    A path that starts with ~/ means your Home folder, the one inside /Users named with your account name.

  • How can i take the pictures from my old ipod and transfer them onto my computer without deleting anything

    How can I take the pics from my old ipod and transfer them onto my computer without deleting anything?

    Pictures on an iPod are stored in a special format, optimized for the iPod's small lower resolution screen, to save storage space.  iTunes puts them into that format when syncing.  There is setting in iTunes, on the iPod's Photos screen (where you set up syncing of photos) for Include full resolution photos.  If that checkbox was checked when you synced the photos to the iPod, THEN you can Enable disk use and find those photo files on the iPod in the Photos folder. 
    Otherwise, you cannot get your photos back, using iTunes.  There may be third-party utilities that can extract individual photos from the iPod, but they will still be lower-resolution versions of the original photo.

Maybe you are looking for

  • Problem in templates with hyperlinks to bookmarks

    Hi. I'm using Robohelp X5. I have a template with a hyperlink in the footer, to link to the top of the page. The link works fine in topics that are in the root HTML Files folder (in the Project Manager tab) but it doesn't work in topics that are in s

  • Select-options in SE51 with problem

    Hi! I´m trying to put select-options in screen by SE51. I create a subscreen: selection-screen begin of screen 9001 as subscreen. select-options: so_matnr for mara-matnr. selection-screen end of screen 9001. And i call this screen in PBO of my screen

  • Keyboard keys on left side hard to use

    I'm coming from a Samsung infusend am having the strangest time getting used to the left side of the razr keyboard. It's like it's shifted a little too far to the right so I keep pressing 'a' when I want to press 's'. Anyone else have this problem?

  • Mounting drives

    Fairly generic Linux question but does my non-root user have to belong to any specific groups to be able to mount the disk drive and usb drives? Whenever I try to access one as my non-root user I get a "Not Authorized" message box (in GNOME).

  • Downpayments should auto reduce while APP run, net amount only need to pay?

    Hi We are in Go-Live phase. Client requirement is as follows: After P.O. Creation, Down Payment will be made with reference to respective of that P.O. MIGO & MIRO will be done as per business process (Here while doing MIRO Down Payment existed agains