From: w_danilo on
Hi I have following script in the first frame and on the scene exist a sprite
(under sprite(1)).
The problem is, that this script, that exist from beginning on the stage is
rotating, but this dynamic one not. Why? What I'm making wrong?


function Mysz(lobj)
{
this.OBJ=lobj;
}
Mysz.prototype.enterFrame = function()
{
this.OBJ.rotation+=1
sprite(1).rotation+=1;
}


function prepareFrame() {
var s1=channel(5).makeScriptedSprite(member("p1"), point(0,1));
s1.scriptInstanceList.append(new Mysz(s1));
}

From: w_danilo on
PLEASE! I really need help with this problem :( I hope than anybody on this
forum knows exactly what I'm doing wrong, because this is something pretty easy
I think. Here is my sample scene with this problem :
http://rapidshare.com/files/107786771/test3.dir.html
Please if somebody knows what to do, write it :) Thanks ! :)

From: Sean Wilson on
I downloaded your file and took a look. While I'm *much* more
comfortable with Lingo than with JavaScript, I can't see that there's
anything wrong with your code, and nothing I tried would make it work
for me. Nor does it work in D10 when I rebuilt the file in that version.

It looks like a bug - whether it's with the makeScriptedSprite()
function or the implementation of sprite.rotation in JS or some
combination of the 2 I can't say. According to trace() output to the
message window, the scripted sprite *is* rotated, but this isn't
visually reflected on the stage.

Try logging it with Adobe, and I'll add it to the public bugbase
From: w_danilo on
Hi, I have got only trial of Director 11. I was trying to contact Adobe, but
nobody has replied me. I really wont to learn how to use JavvaScript and
Director before I'll purchase it. So please ask Adobe about it. Thank you very
much :):):)

 | 
Pages: 1
Prev: scores
Next: Sorting property lists