Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324

    AutoPlay Media Studio Design Objects (Object Orientated Programming)



    I'm not just talking about OOP, I'm talking about OOP with AMS Objects.

    My intention was to have code like this.
    Code:
    -- On Click, Button1.
    this:SetText("Hello");
    But this is as good.
    Code:
    -- On Click, Button1.
    Button1:SetText("Hello");
    I've done these objects.
    • Label
    • Paragraph
    • Image

    These objects have all the methods they do in AMS such as SetPos, SetSize, GetText, GetProperties, etc.

    You can work this example by dragging 'Object.luac' into your AutoPlay/Scripts folder.

    Then On Preload put this in somewhere.
    Code:
    GetObjects = require("Object.luac"); -- You can change GetObjects to whatever you want the grab function to be.
    Also, didn't post in examples because it takes ages to show up.

    Edit:

    If your object has a space in the name, It is converted to Object["object name"]:SetText("BLAH");

  2. #2
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    Very cool idea shadow! I look forward to seeing your other ventures in this field.

Similar Threads

  1. What's new in AMS 5.0?
    By Ted in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 09-22-2003, 03:56 PM
  2. AutoPlay Media Studio 4.0.0.3 Released
    By Brett in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 12-11-2002, 08:39 AM
  3. 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
  4. TUTORIAL: Showing and Hiding Objects in AutoPlay Menu Studio 3.0
    By Support in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 10-10-2002, 02:39 PM
  5. Replies: 0
    Last Post: 10-04-2002, 10:09 AM

Tags for this Thread

Posting Permissions

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