Results 1 to 5 of 5

Thread: Quick Flash Question

  1. #1
    Join Date
    Sep 2008
    Posts
    48
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Quick Flash Question

    In the attached file, why do I have to put _root on:

    on(release) {
    _root.squareMc.play();
    }

    in order for the squareMc to play.

    And why do I have to double click the circleMC in order for the squareMc to play again. Can't i just click it once to make the movie clip play again.

    I really appreciate your help, i've been stumped with this for a while now.


    Thanks,
    The Penguin

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    The _root brings it back to the main timeline, otherwise it is looking for that movie clip in the current location. For an html example

    This will show image.jpg anywhere
    <img src="http://www.site.com/image/image/image.jpg" />

    but this
    <img src="image.jpg" />
    will only work when in the 2nd image directory
    http://www.site.com/image/image/
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Sep 2008
    Posts
    48
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    Thank you for the quick response!

    Ok, i understand _root is to find its location. But more importantly what about the second question?

    Why do I have to double click the circleMC in order for the squareMc to play again. Can't i just click it once to make the movie clip play again.


    Thanks!

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Not sure can't open your project, is it in a web browser or when you publish or both? Can you put the swf online?
    Corrections to my coding/thoughts welcome.

  5. #5
    Join Date
    Sep 2008
    Posts
    48
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    I figured it out!

    Thanks for your help

Bookmarks

Posting Permissions

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