Announcement

Collapse
No announcement yet.

Creating Dynamic event onClick to Objects?

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

  • Creating Dynamic event onClick to Objects?

    i created object from the exmple code:

    tImageProperties = {};
    tImageProperties.ImageFile = _SourceFolder .. "\\AutoPlay\\Images\\Create_Me.jpg";
    tImageProperties.UseTransColor = false;
    tImageProperties.Opacity = 75;
    tImageProperties.HitTest = HITTEST_STANDARD;
    tImageProperties.Enabled = true;
    tImageProperties.Visible = true;
    tImageProperties.X = 50;
    tImageProperties.Y = 50;
    tImageProperties.Width = 100;
    tImageProperties.Height = 200;
    tImageProperties.TooltipText = "I was created by an action!!";
    tImageProperties.Cursor = CURSOR_MEDIA;
    tImageProperties.HighlightSound = SND_STANDARD;
    tImageProperties.ClickSound = SND_STANDARD;

    -- Create the image object
    Page.CreateObject(OBJECT_IMAGE, "AC_Image_Object", tImageProperties);

    Is it possible to create event onClick for this object???

  • #2
    Check out Page.SetObjectScript in the manual.
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #3
      Thanks it works great.

      Comment

      Working...
      X