A Flash Developer Resource Site

Results 1 to 15 of 15

Thread: onrelease nextscene in mx 2004

  1. #1
    damn, im smooth drkknght's Avatar
    Join Date
    Feb 2001
    Posts
    159

    onrelease nextscene in mx 2004

    heya!

    i'm brand spankin new to mx 2004, but i know mx fairly well.

    i have a project that i'm working on which is sorta set up like an animated powerpoint file, with each "slide" (scene) having its own lil animation, then pausing until you click a NEXT button to go to the next slide (scene).

    all the next buttons have the same code:
    Code:
    on (release) {
    	nextScene();
    }
    the previous button is the same way on every scene:
    Code:
    on (release) {
    	prevScene();
    }
    that, apparently, no longer works in mx 2004.

    how come? and what should i use as the new code?

    thanks
    i'm not new to action scripting. i'm just bad at it.

  2. #2
    damn, im smooth drkknght's Avatar
    Join Date
    Feb 2001
    Posts
    159
    da bump!
    i'm not new to action scripting. i'm just bad at it.

  3. #3
    [sleep.less.ness] euphoricGenius's Avatar
    Join Date
    Jan 2003
    Location
    insomnia
    Posts
    344
    if you are using the "Flash Slide Presentation" template (file>new) then you can use the following actionscript

    code:

    on(release){
    gotoNextSlide();
    }




    eG
     Beware Of Programmers Who Carry A Screwdriver

  4. #4
    [sleep.less.ness] euphoricGenius's Avatar
    Join Date
    Jan 2003
    Location
    insomnia
    Posts
    344
    to be more specific

    if your using scenes as a "slide"
    (file>new>Flash Document)
    then you can use the convensional format
    code:

    on (release) {
    nextScene();
    }


    and
    code:

    on (release) {
    prevScene();
    }



    if your using slides
    (file>new>Flash Slide Presentation)
    then you use the new format
    code:

    on(release){
    gotoNextSlide();
    }


    and
    code:

    on(release){
    gotoPreviousSlide();
    }

     Beware Of Programmers Who Carry A Screwdriver

  5. #5
    damn, im smooth drkknght's Avatar
    Join Date
    Feb 2001
    Posts
    159
    heya euphoricGenius!

    i'm not doing the slideshow thing (though, in retrospect, i prolly shoulda!)

    its just a normal flash movie with 80 or so scenes.

    i've used the action script you listed:

    Code:
    on (release) {
    	nextScene();
    }
    and it worked fine in flash mx. but since i've opened the file in mx 2004 and worked on it a bit, the buttons no longer function properly (and i haven't touched them).

    instead of going to the next scene when clicking on the NEXT button, it'll restart the current scene. instead of going to the previous scene, it'll often just restart the whole movie.

    very frustrating
    i'm not new to action scripting. i'm just bad at it.

  6. #6
    [sleep.less.ness] euphoricGenius's Avatar
    Join Date
    Jan 2003
    Location
    insomnia
    Posts
    344
    im sorry but i disagree, have a look at the attached file

    as you can see it uses both scenes and buttons that use the code mentioned prior.

    As you will notice that it works without a glitch

    eG
    Attached Files Attached Files
     Beware Of Programmers Who Carry A Screwdriver

  7. #7
    damn, im smooth drkknght's Avatar
    Join Date
    Feb 2001
    Posts
    159
    hmm... when i test your movie, i can navigate fine between scenes 1 and 2, but can't get to scene 3!

    i'm not new to action scripting. i'm just bad at it.

  8. #8
    [sleep.less.ness] euphoricGenius's Avatar
    Join Date
    Jan 2003
    Location
    insomnia
    Posts
    344
    seems to work this end


    eG
     Beware Of Programmers Who Carry A Screwdriver

  9. #9
    damn, im smooth drkknght's Avatar
    Join Date
    Feb 2001
    Posts
    159
    eef! this is very frustrating!

    i just had the client test it with their program, and they could also get between scene 1 and 2 with ease, just not scene 3.

    i have no clue what i'm doing wrong! i just unzip your file, open the FLA and publish (or test movie).

    can't figure this out
    i'm not new to action scripting. i'm just bad at it.

  10. #10
    damn, im smooth drkknght's Avatar
    Join Date
    Feb 2001
    Posts
    159
    hmm... now i'm having similar results with another project. humbug!

    i have a buddy who works at maxell test out your attachment. they always get all the latest and greatest computers and programs and such, like mx '04, but even she couldn't get the file to navigate properly. the button from scece 1 to scene 2 works fine, and the button from scene 2 to scene 1 works fine, but neither of us can get to scene 3.

    is there a special way we should be saving the file? or publishing it?
    i'm not new to action scripting. i'm just bad at it.

  11. #11
    Senior Member
    Join Date
    Feb 2003
    Location
    Asstown
    Posts
    107
    /bump
    I think this is a known Mx2004 bug.
    It happened to me too. I think the update *should* fix it, but it did not fix the problem for me .
    What's a siggy?
    /oh...

  12. #12
    [sleep.less.ness] euphoricGenius's Avatar
    Join Date
    Jan 2003
    Location
    insomnia
    Posts
    344
    i am using Flash MX Pro 7.0.1 (thats got the flash update on it)

    try installing the update and see if that helps

    http://www.macromedia.com/support/fl....html#updaters

    eG
     Beware Of Programmers Who Carry A Screwdriver

  13. #13
    [sleep.less.ness] euphoricGenius's Avatar
    Join Date
    Jan 2003
    Location
    insomnia
    Posts
    344
    could you open my flash file publish it and post it here so i can see if i see the same as you.


    eG
     Beware Of Programmers Who Carry A Screwdriver

  14. #14
    damn, im smooth drkknght's Avatar
    Join Date
    Feb 2001
    Posts
    159
    sorry about the delay (holiday chaos!)

    anyway, i downloaded the flash update (to 7.0.1) and your attachment file works now!!

    <phew> i thought i was goin crazy!
    i'm not new to action scripting. i'm just bad at it.

  15. #15
    [sleep.less.ness] euphoricGenius's Avatar
    Join Date
    Jan 2003
    Location
    insomnia
    Posts
    344
    yeah, its so frustrating! glad to hear things are working now!


    eG
    &nbsp;Beware Of Programmers Who Carry A Screwdriver

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