A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Trouble with delaying of showing a textbox.

Threaded View

  1. #4
    Dignitary rynoe's Avatar
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    760
    That's because my code was WRONG!

    WRONG WRONG WRONG!

    SHAME!


    I fixed it.

    PHP Code:

    var myTimer:Timer = new Timer(1000,20); 
    stop(); 
    cover.visible=true
     
    import flash.events.MouseEvent

     function 
    onClick(event:MouseEvent):void 
     
    {  
     var 
    nRandom Math.floor(Math.random() * 7); 
     
    gotoAndStop(nRandom); 
     
    myTimer.start(); 
     } 
     
    proceed.addEventListener(MouseEvent.CLICKonClick); 

     function 
    frameNumberText(event:Event):void 
     
    {  
     var 
    frames:Number
     
    frames=currentFrame
     
    textBox.text = (String(frames));  
     }  
     
    textBox.addEventListener(Event.ENTER_FRAMEframeNumberText); 
    myTimer.addEventListener(TimerEvent.TIMER_COMPLETEtimeOut

    function 
    timeOut(t:TimerEvent):void
      
    cover.visible=false

    Last edited by rynoe; 03-29-2013 at 01:11 PM. Reason: WRONG
    [SIGPIC][/SIGPIC]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center