Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2003
    Posts
    18

    Loading a movie from a flashmenu?

    If I want do load a movie from a button I use the code.

    Video.Load("Video1", "AutoPlay\\Videos\\movie.avi", true, false);

    How do I load a move from a flashmenu, what is the link i flash?

  2. #2
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    You have to use FSCommand in Flash for the button (OnClick).
    In AMS, have an action for the flash object on FSCommand and use the FSCommand/FSCommand Arg as variable (for example the name of the video file).
    Then you can use your action, using that variable instead of the video file name.
    Good Luck
    Yossi

  3. #3
    Join Date
    Jul 2003
    Posts
    18
    Originally posted by yosik
    You have to use FSCommand in Flash for the button (OnClick).
    In AMS, have an action for the flash object on FSCommand and use the FSCommand/FSCommand Arg as variable (for example the name of the video file).
    Then you can use your action, using that variable instead of the video file name.
    Good Luck
    Yossi
    Thanks!

    But I dont understand mutch of that Do you want to give me little code please?

  4. #4
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Here it is.
    I added the FLA in the Doc folder.
    You have to put a video file into the video folder and link the play action on the flash object to the video file.
    Goood luck
    Yossi
    Attached Files

  5. #5
    Join Date
    Jul 2003
    Posts
    18
    It works great. But if I have an dropdown flashmenu?

    I post an exampel what I meen.
    Attached Files

  6. #6
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Just attach the FSCommand to the relevant button.
    WHat you can do is use the FSCommandArg which is the second parameter in the FSCommand in flash and then in AMS, in the action for the flash object, use an IF statement which checks the value of this parameter and, accordingly, shows the relevant movie.
    Yossi

  7. #7
    Join Date
    Jul 2003
    Posts
    18
    Sorry but I dont understand, I have testing many hours now. Think the problem is that Iam not so good in flash.

    I post the menu and XML file I would like to use. Can you insert the code for 2 buttoms ex "Other" and "Project1" and the right code in the movieobject in AMS, please.

    Thanks for all help.
    Attached Files

Posting Permissions

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