Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.

Back

1062 - Can I change the position of my object inside a display icon dynamically?

by - Joseph Ganci


Can I change the position of my object inside a display icon dynamically? If yes, how?

Usually this is done with the Motion icon. If you don't want to use the Motion icon, you can:
  1. Open the Icon Properties of the icon (Ctrl-I).
  2. Change the Layout tab so that Positioning is set to on-screen and the X and Y values are variables (call them X and Y if you wish).
  3. Change the variables whenever you wish to change the position of the icon's contents.
  4. Finally, to make the position shift after you've changed the x and y values, you will need to erase the icon, then redisplay it. You can do this in one script:

x := 143
y := 225
EraseIcon(@"the icon's title")
DisplayIcon(@"the icon's title")

There are 0 reviews
Add your review
Back