Ask a Question related to Macromedia Director Lingo, Design and Development.
-
JB #1
Re: Swapping a member with another that is exactly 27 cast members ahead
Try this
property oldmem
on mouseEnter me
oldmem = sprite(me.spriteNum).memNum
sprite(me.spriteNum).memNum = oldmem + 27
end
on mousLeave me -- in case you need to restore
sprite(me.spriteNum).memNum = oldmem
end
-- double check my spelling recolection for memNum
JB Guest
-
How to let objects in a cast member be a child of agroup(or a model) in another cast member?
I want to add a model to the scene. I try this code: member('world').newgroup('gr2') member('world').group('gr2').addchild(member('r2').model(1)) ... -
cast members moved in cast - neet to get htem back!!!
Hello I inadvertedly pasted a cast member into my cast and it bumped the rest of the members one number forward, screwing up my lingo all over the... -
Swapping cast member of a masked sprite..... not working.
Hey guys, Have a semi diffucult one here. I have a cast member in sprite(1). It's castNum is 1. It's mask for that member is in memberNum 2.... -
swapping video cast members
Hey all, "Long time listener, first time caller"... I'm working on a director project with multiple movies playing on the stage, and am... -
Swapping cast Members
I would like to swap one cast member with another one. depending on what button the uses clicks. I tried using the sprite(x).member=member... -
spdorsey webforumsuser@macromedia.com #2
Swapping a member with another that is exactly 27 cast members ahead
Hello
Lingo - wow.
I'm trying to get a cast member to swap with another on mouseEnter. The other member is exactly 27 spaces forward in the cast.
I'd normally just swap it with the cast member's number, but I need to apply this script to several cast members, all of which have their "swapping" cousins residing 27 spaces forward in the cast.
This would be easier than creating several dozed scripts and applying them to each sprite on the stage.
Here's what I have so far. I'm new at this, so I'm hoping that the error is simple.
on mouseEnter me
set change = the currentSpriteNum of me
set the member of sprite the currentSpriteNum to member (change + 27)
end
when I use the script, I get a "Property not found" error. I do not know what that means.
Any help is appreciated. Thanks!
-----------------S
--------------------
Steve Dorsey
Dorsey Graphics
:: 3D
:: Animation
:: Web Design
:: Digital Media
[url]http://www.dorseygraphics.com[/url]
--------------------
spdorsey webforumsuser@macromedia.com Guest
-
spdorsey webforumsuser@macromedia.com #3
Re: Swapping a member with another that is exactly 27 cast members ahead
The item is "memberNum"
This worked:
property oldmem
on mouseEnter me
oldmem = sprite(me.spriteNum).memberNum
sprite(me.spriteNum).memberNum = oldmem + 27
end
on mouseLeave me
oldmem = sprite(me.spriteNum).memberNum
sprite(me.spriteNum).memberNum = oldmem - 27
end
Thanks for the heads-up!
Much appreciated!
--------------------
Steve Dorsey
Dorsey Graphics
:: 3D
:: Animation
:: Web Design
:: Digital Media
[url]http://www.dorseygraphics.com[/url]
--------------------
spdorsey webforumsuser@macromedia.com Guest



Reply With Quote

