OZONE Asylum
Forums
Multimedia/Animation
Drawing with Actionscript
This page's ID:
11489
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
thanks cameron. what i've been trying to do is to just draw[no animation] a line between two button objects and have the line redraw as i drag the buttons around. My problem seems to be the co-ordinate systems, i can make the line which is the correct vector [right sense and magnitude] but it isn't in the right place on the screen. i did something like this: x_pos = _root.<buttoninstancename>._x; x_target = _root.<otherbuttoninstancename>._x; // repeated for y moveTo(x_pos, y_pos); lineTo(x_target, y_target); its there but its all slighlty wrong, i've narrowed this down to how i ref the positions of the buttons [ i think], the script for drawing the line is in a movie clip on the over state of the buttons. I suspect the problem is something to do with the script running from here, but i'm buggered if i can figure it out. i'll go and play with that line file [sadly i'm stuck on 2 p.cs, one rustbucket with dialup and the 'good' one stranded without a connection] , thanks. Also its good how you don't seem to have to declare variables. new, programming without rigour! Makes a change from Monte Carlo models thats for sure :D
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »