Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    7

    Change object string

    Hello

    I was wondering if i could change an object action via another object?

    for example:

    i have 2 buttons and another third button (will be called button 3) separated that load a different video on a video object...
    so when i click the first button he will change the LOAD ACTION on button 3 so when someone click on it, the video will be changed to another one...
    when i click another button, it will change the load action of button 3 again so when someone click button 3 he will load another video..
    got it?

    it's possible to do that?

    thanks

  2. #2
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Yes.
    You can use the Page.SetObjectScript Action for that.

    Yossi

  3. #3
    Join Date
    Sep 2006
    Posts
    7
    I was trying to pass an action to an object via another object as you explained me but im getting an error message...
    Could you help me?

    This is my script:
    Page.SetObjectScript("but3", "On Click", Video.Load("Video1", "AutoPlay\\Videos\\Acordes.wmv", false, false));

    When i click the button with this code i get an error:
    "Page1 -> but1 -> OnClick, Line 1: 3 arguments required"

    What should i do?

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    I believe that argument 3 needs to be a string. Try this

    Page.SetObjectScript("but3", "On Click", "Video.Load("Video1", "AutoPlay\\Videos\\Acordes.wmv", false, false)");
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Similar Threads

  1. Change font in paragraph object?
    By rdf in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 10-22-2004, 12:03 PM
  2. INFO: Difference between the Media Player Object and the AVI Object
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-29-2002, 02:15 PM
  3. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM
  4. Replies: 0
    Last Post: 10-04-2002, 10:09 AM

Posting Permissions

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