Announcement

Collapse
No announcement yet.

flash problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • flash problems

    i am having problems passing variables from flash to autoplay.
    i have a long table which contains links to other pages in my project. since its a long table, i used the scrollpane component in flash mx so that i could display the whole table in one link. then i loaded the the swf file externally into autoplay.
    however, when i tried testing it out, the links were not working and i couldnt event close the program!! i have encountered this before and it is usually caused by wrong commands in flash or autoplay. however i have checked my actionscripting in flash and autoplay and it still doesnt work??
    the only thing i am doing different compared to my other projects is that my links(actionscripting) is being loaded into another swf file(contains the scrollpane) which is externally linked to my autoplay project.
    btw this are the commands that i used:

    flash
    on(release){
    mypage = "tumeric";
    fscommand("switch page");
    }
    autoplay
    %newPage%=FlashObject[Flash2].GetVariable("myPage")
    Page.Jump("%newPage%")
    thanks in advance.

  • #2
    Re: flash problems

    Ok I see what you are trying to do here. Much easier way is to do this:

    IN YOUR FLASH

    on (release) {
    fscommand ("jump","tumeric");
    }

    IN YOUR AMS

    Simply set your flash object's OnFScommand state so that it gathers "Last FSCommand Args" and then does a page jump on that...


    BTW if you are using Flash MX you should be using the new event methods even though the old ones still work, i.e.

    IN YOUR FLASH ON FRAME 1 OF TIMELINE

    _root.myButton.onPress = function () {
    fscommand ("jump","tumeric");
    };

    This is the new way of doing things, it allows you to centralize your code and do things in a more flexible way. By attaching your code to the timeline instead of your objects the benfits are many.



    Corey Milner
    Creative Director, Indigo Rose Software

    Comment

    Working...
    X