A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: [MX04] got to frame after unloadMovie

  1. #1
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157

    [MX04] got to frame after unloadMovie

    i have 5 MovieClips wich the user unloads using a character and hitTest!! this all works fine!! but wat i would like to do is to make it so that once all 5 MC's have been unloaded it goes to another frame!! any ideas???

    TA

    GYMPIE
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    as each clip unloads, set a boolean variable - unload1=true, unload2=true, ....
    run a loop, and check for ALL variables set to true -
    if(unload1 && unload2 && unload3.....){ .. do stuff .. }

  3. #3
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157
    how would i set the boolean valule excactly sorry to be a pain and thanks so much for the help
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    //code to unloadMovie clip1
    unload1 = true;
    // end code

  5. #5
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157
    thank you so much
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  6. #6
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157
    one last problem i promise lol

    function check() {
    if
    (unload1 && unload2 && unload3 && unload4 && unload5 = true){gotoAndPlay (3)}}

    i have the following code but it tells me that the Left side of assignment operator must be variable or property.

    can you tell me wat this means?????
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  7. #7
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    // correct syntax is -
    function check() {
    if
    (unload1 && unload2 && unload3 && unload4 && unload5){gotoAndPlay (3)}}

    // no need for = true
    // unload1 etc.. is either true or false/undefined
    // also, when making comparisons you need ==, not =

  8. #8
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157
    Thanks a bunch ***** i owe you one
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  9. #9
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176

  10. #10
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157
    for some reason it still doesnt work would it be possible for you to take a look at it for me????
    Attached Files Attached Files
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  11. #11
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    "unexpected file format" on opening in MX04

  12. #12
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157
    sorry its flash 8 lol i usually use mx i must have opend 8 sorry do you have 8? or should i upload it with mx?
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  13. #13
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    see my sig for versions

  14. #14
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157
    here try this
    Attached Files Attached Files
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  15. #15
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    is this OK ?
    NOTE -
    _root path added to movieclips
    use of 1 onEnterFrame

  16. #16
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157
    perfec thanks man
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

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