| Subject: | Resize sprites |
|---|---|
| From: | "Otterman2" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Wed, 23 Jul 2008 10:45:43 +0000 (UTC) |
| Newsgroups: | macromedia.director.lingo |
Wow...its been a while since i frequented this forum....my director skills have
become somewhat rusty to say the least....Anyways...heres my pickle.
Im attempted to create a toggle button to resize a sprite to fill the stage.
It works fine if its stationary but the problem is...it slides onto the stage
over several frames and when i tell it to revert back to its original size, it
just 'sticks' to that one co-oridate and does away with the keyframe animation.
Is there a way of telling it to go back to its animated state. Hope this is
clear
property mysprite
property myORIGINALRect
on beginSprite me
mysprite = sprite(me.spriteNum)
myORIGINALRect = mysprite.rect
end
on mouseUp me
if mysprite.rect = myORIGINALRect then -------NOT FULLSIZE
mysprite.rect = rect(0, -1, 1024, 706)------GO FULLSIZE
updatestage
else
mysprite.rect = myORIGINALRect ----GO BACK TO ORIGINAL SIZE
updatestage
end if
end
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Open a folder, maxdieci |
|---|---|
| Next by Date: | Re: Exporting a .dir file and importing to a .fla, pete.h |
| Previous by Thread: | Open a folder, maxdieci |
| Next by Thread: | V2 Flash components unsupported in Director?, pete.h |
| Indexes: | [Date] [Thread] [Top] [All Lists] |