| Subject: | How do you manipulate a scripted sprite? |
|---|---|
| From: | "adam@blueapplestudio" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Wed, 16 Jan 2008 16:16:59 +0000 (UTC) |
| Newsgroups: | macromedia.director.basics |
After creating a sprite using makeScriptedSprite() I want to control its width.
As soon as I attempt to change the width the sprite ceases being visible.
I?ve traced the sprite?s position and scale before and after I transform the
width, and it appears to change width without changing position. Any thoughts?
//There is a Bitmap cast member named greenHead in the cast.
//Channel 1 is empty at the movie's start.
function exitFrame(me) {
//Creates a scripted sprite in sprite channel 1 from the cast
//member named greenHead, and places it at a specific point on the Stage:
channel(1).makeScriptedSprite(member("greenHead"), point(320, 240));
//Scales the scripted sprite's width
sprite(1).width = 100;//This is when the sprite disappears.
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: MX and MX 2004 compatibility, Gabe D |
|---|---|
| Next by Date: | Re: Uninstalling Director and Xtras, Erniegar |
| Previous by Thread: | MP4's in Director, csharvey |
| Next by Thread: | Re: How do you manipulate a scripted sprite?, Mike Blaustein |
| Indexes: | [Date] [Thread] [Top] [All Lists] |