Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Change flash

  1. #1
    Regular Coder
    Join Date
    Aug 2012
    Posts
    121
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Change flash

    I want to show 3 flashes in the same location, one displayed after another after 5s and repeat.
    I imagine that 3 flashes, same dimention, one put in one div and set 3 div in the same location

    div1 show
    div2 hidden
    div3 hidden

    then

    div1 hidden
    div2 show
    div3 hidden

    div1 hidden
    div2 hidden
    div3 show


    Thanks for any code guide
    Last edited by docco; 06-15-2013 at 07:58 AM.

  • #2
    New Coder djpaul1963's Avatar
    Join Date
    Apr 2012
    Location
    Athens GR
    Posts
    75
    Thanks
    0
    Thanked 8 Times in 8 Posts
    First, you should ask this question to the JavaScript section and then you could find your answer very easilly by Googleing javascript timer. The first result is about setTimeout(milliseconds) function which is exactly what you need.
    However, as it can be implemented more efficiently in flash itself (because the way you described it loads 3 instances of the flash player each one consuming valuable browser/computer resources) you can have all 3 of them called by a flash loader and add/remove them from the stage by using an actionscript timer.
    If you decide to follow this approach I can give you a small snippet if you want.
    Everything can be done, but I don't know how.

  • #3
    Regular Coder
    Join Date
    Aug 2012
    Posts
    121
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by djpaul1963 View Post
    First, you should ask this question to the JavaScript section and then you could find your answer very easilly by Googleing javascript timer. The first result is about setTimeout(milliseconds) function which is exactly what you need.
    However, as it can be implemented more efficiently in flash itself (because the way you described it loads 3 instances of the flash player each one consuming valuable browser/computer resources) you can have all 3 of them called by a flash loader and add/remove them from the stage by using an actionscript timer.
    If you decide to follow this approach I can give you a small snippet if you want.
    Thank you, the question is nothing to do in AS3, but with JS

  • #4
    Regular Coder
    Join Date
    Aug 2012
    Posts
    121
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Now I'm looking for a simple example to know how to
    "change the position (xyz) of 3d object by mouse/cursor"
    For example, my 3d flash has only one object (a picture),
    - if mouse in the middle of flash, the picture is // with the screen
    - if mouse to left, picture turns right (vertical axis)
    - if mouse to right, picture turns left (vertical axis)
    - if mouse to top, picture turns right (horizantal axis -->)
    - if mouse to bottom, picture turns left (horizantal axis -->)
    - if mouse to other position, picture turns in vertical and horizantal axis
    Thanks for guide or an example .fla file
    Last edited by docco; 06-20-2013 at 06:50 AM.


  •  

    Posting Permissions

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