Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with a script for zoom

Status
Not open for further replies.

Nesscafe

Programmer
Aug 1, 2006
19
0
0
RO
i'm following a tutorial for a zoom script and there is one problem with the script (the tutorial is for director 8 and i'm working on director 10):

"clickpoint = mapStageToMember(sprite(me.spritenum), the clickloc)", this is the line that director does not understand.... the error is like this : "clickpoint = mapStageToMember(sprite(me?.spritenum), the clickloc)"
and i cant figure this little line out..
if someone can explain that would be great...thx
 
this is the rest of the script :

on mousedown
if pmode = #zoom then
clickpoint = mapStageToMember(sprite(me.spritenum), the clickloc)
mem = sprite(me.spritenum).member
sprite(me.spritenum).rect = mem.rect
newloc = point(240,160) + sprite(me.spritenum).member.regpoint - clickpoint
if newloc.loch < pbounds.left then newloc.loch = pbounds.left
if newloc.loch > pbounds.right then newloc.loch = pbound.right
if newloc.locv < pbounds.top then newloc.locv = pbounds.top
if newloc.locv > pbounds.bottom then newloc.loch = pbound.bottom
sprite(me.spritenum).loc = newloc
pmode = #drag
else if pmode = #drag and the shiftdown then
sprite(me.spritenum).rect = porigrect
pmode = #zoom
else if pmode = #drag then
pdrag = TRUE
poffset = the clickloc - sprite(me.spritenum).loc
end if
end


sorry for the double post..thx again
 
ups... didn't see that :p... thx.. can u delete this post?? :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top