A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 34 of 34

Thread: Animation on menu button down

  1. #21
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    No problem, I learn and get practice this way while trying to help.
    - action copy/paste "bug" confirmed here too, -> goes to a buglist..

  2. #22
    Member
    Join Date
    Apr 2006
    Posts
    94
    I hope the bug in 3DFA will be fixed soon
    Because I can't do anything with it now...
    (when exporting the slides so not change)

  3. #23
    Member
    Join Date
    Apr 2006
    Posts
    94
    Hmm,
    Seems my problem is't solved...
    Since Rob says it's not a bug, but to use the "Show slide" function..(when using slideshows and menu instead of buttons) it is still not working.
    When using a menu and "show slide", it will not change the "slide" variable(always loads slide 1 again)...
    When using buttons and "let" action (in the new 4.81) it still doesn't work on export...

  4. #24
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    edit: removed unneeded advices, look post below to new info
    Last edited by Finjogi; 01-07-2007 at 03:25 PM.

  5. #25
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    I might know why menus are different and act this way... menu might be separate "movie" so it does not see main movie variables straight away. For example, if I try to use script action to change editbox text -> slide = "abcdef"
    Nothing happens.. but if I use root.slide = "abcdef" then it works.
    So, menu action with variables kinda work, they might be just separate movies from main movie.

    edit: my_6th_sense, if using menu, change syntax a little -> Let root.slide="Slide x"; (earlier: Let slide="Slide x")
    Last edited by Finjogi; 01-07-2007 at 03:22 PM.

  6. #26
    Member
    Join Date
    Apr 2006
    Posts
    94
    Going to try it ut within an hour or so
    I'll let you know!

    Thnx for helping me out here..

  7. #27
    Member
    Join Date
    Apr 2006
    Posts
    94
    I fell asleep yesterday
    Anyway tried it now...Works perfectly in 3DFA preview, does not work on export (slide variable does not change)

  8. #28
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    Damn... I tested my buttonbug test movie in both preview and Flashplayer.. it works, but then I tested my door_effect movie and it too shows always first slide
    I'll look into it and try to find out what goes wrong.

  9. #29
    Member
    Join Date
    Apr 2006
    Posts
    94
    Ok thnx

  10. #30
    Member
    Join Date
    Apr 2006
    Posts
    94
    It's working!!!!
    Rob helped me out on this one...
    He didn't know why your method is not working, but it is working when changing the call function into an instruction.
    ==> element ("Slide show 1").showSlide (root.slide);

    Thnx

  11. #31
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    edit: solved, was classic programming gotcha, my function name was same as one of slideshows function name... that's no no
    Last edited by Finjogi; 01-08-2007 at 01:53 PM.

  12. #32
    Senior Member
    Join Date
    May 2005
    Posts
    163
    From my experience root functions can be called from children but it's a matter of timing. You need to know when in the startup process the root functions are available. I have enclosed a movie which may help explain what I mean. As you will see 3DFA's preview startup is different than flash's which explains why it may work in 1 and not the other.
    Attached Files Attached Files

  13. #33
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    Classic gotcha for me.... function calls are usually ok (see ppedz reply)

    My whole function problem (and so on my_6th_sense's, with my example) was caused by using a function name showSlide(), in preview ok, but Flash did not like it because it is SAME name what slideshow uses to change slide.
    Feel kind of stupid now

    I'll clean up previous replies to not create unneeded confusion to others..

  14. #34
    Member
    Join Date
    Apr 2006
    Posts
    94
    Quote Originally Posted by Finjogi
    Classic gotcha for me.... function calls are usually ok (see ppedz reply)

    My whole function problem (and so on my_6th_sense's, with my example) was caused by using a function name showSlide(), in preview ok, but Flash did not like it because it is SAME name what slideshow uses to change slide.
    Feel kind of stupid now

    I'll clean up previous replies to not create unneeded confusion to others..
    Ok, Maybe I'm not so stupid after all
    When you sent me your file I was wondering if the showslide() was referring to the showslide() of 3DFA or not...Aparently it was not

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