×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

group sprites

group sprites

group sprites

(OP)
I have a flash text box in a movie I want to bring text onto this box and allow both to move together - can you group sprites.

Thank you

RE: group sprites

(OP)
What I really need here is a way of keeping  2 objects together, so if one is moved the othrer moves with it.

RE: group sprites

If you want to move 2 sprites together in the authoring mode, just select two sprites at the same time and move - but this is obvious so you must be talking about movable sprites during runtime.

There is a type of member called Film Loop, which is basically a group of sprites. To create a film loop, select any number of channels and frames of sprites in the timeline and drag them to an empty slot in a cast window.

However, there's a problem in your case - I don't think text inputs will work once in a film loop.

You can use this thing called LDM or "linked Director movie", which is basically a Director movie within a Director movie - perhaps it's an overkill though.

Or you can write a simple behaviour like this:
--
property pOffset

on beginSprite me
  pOffset = sprite(1).loc - sprite(me.spriteNum).loc
end beginSprite

on exitFrame me
  sprite(me.spriteNum).loc = sprite(1).loc - pOffset
end exitFrame
--


The sprite with this behaviour will follow the movement of sprite(1).

Kenneth Kawamoto
www.materiaprima.co.uk

RE: group sprites

(OP)
Thank you kenneth great help

RE: group sprites

Just apply the behavior MULTIPLE SPRITE DRAG from the libraries.

Good luck, bye.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close