problem with a script for zoom
problem with a script for zoom
(OP)
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
"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
RE: problem with a script for zoom
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
RE: problem with a script for zoom
on mousedown me
Kenneth Kawamoto
www.materiaprima.co.uk
RE: problem with a script for zoom