Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8450015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:51:30+00:00 2026-06-10T10:51:30+00:00

I have to create an mobile flex application with tabbed navigator view. One of

  • 0

I have to create an mobile flex application with tabbed navigator view. One of the view must satisfy this condition: when the view is selected, an image will appear for one second and then disappear for half a second, then reappear at a random position on the screen of the view. This will repeat until another view is selected.

I’m new to Mobile Flex and I need your help.

Thanks you in advance.

Best regards,
HBLE

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:51:31+00:00Added an answer on June 10, 2026 at 10:51 am
    1. Use enterFrame event or a Timer to hide/show the image.
    2. Set the image x and y properties to show the image at a specific position
    3. Use Math.random() to generate a random number in the interval [0,1]

    Important:
    When tab is active call init();
    When changing to other tab do not forget to stop the timer and remove event listeners.
    (for performance reasons and to avoid memory leaks)

    Sample code:

    var isVisible:Boolean = false;
    
    function init():void
    {
       // we show / hide with a delay of 1 second
       var t:timer = new Timer(1000);
       t.addEventListener(TimerEvent.Timer, onTimer);
       t.start();
    }
    
    function onTimer(event:TimerEvent):void
    {
       if(isVisible)
       {
           hideImage();
       }
       else
       {
           showAndMoveImage();
       }
    
       isVisible = !isVisible;
    }
    
    function hideImage():void
    {
        myImage.visible = false;
    }
    
    
    function showAndMoveImage():void
    {
        // we reposition image in screen, assume image size is smaller then screen
        myImage.x  = Math.random() * (stage.width - myImage.width);
        myImage.y  = Math.random() * (stage.height - myImage.height);
    
        myImage.visible = true;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a mobile application that i am creating in Adobe Flex (Flash Builder
I have to create a mobile application which will work on diffrent mobile platforms:
I have to create an application using a Datalogic mobile device that uses Windows
I want to create a mobile application and from a tutorial I have been
I have a mobile website special for the blackberry. I would like to create
I have asp.net application. and I have created mobile version of it which is
I have created a mobile application using kendo Mobile UI's trial version in asp.net
I have created a windows mobile application in Visual Studio. I want to templatize
I am new to mobile application development with PhoneGap. I have created a form
I am working with sencha to build mobile app. I have created one page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.