Be a Supporter!

Script on API help

  • 452 Views
  • 3 Replies
New Topic Respond to this Topic
El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Script on API help 2006-11-03 15:59:08 Reply

I hope that this is the right place to post this, because it is about scripting. I am needing some help with this script, because everytime I do this, it only takes the last part of the script but skips the beginning:

_root.onEnterFrame = function() {
createEmptyMovieClip("line", 1);
with (line) {
moveTo(275, 200);
lineStyle(2, 0xFF0000, 80);
lineTo(_root._xmouse, _root._ymouse);
}
createEmptyMovieClip("square", 1);
with(square){
lineStyle(2, 0x000000, 100);
beginFill(0xFFFFFF,100);
lineTo(50,0);
lineTo(50,50);
lineTo(0,50);
lineTo(0,0);
}
}

Alright, so if I did this, it would only take the square. When i make two pieces with _root.onEnterFrame = function(){ it will still only take the square. Lastly, I tried making two totally different layers, but it still doesn't work and will only take the line one. How am I able to change this script to make it have both of these work at the same time?


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
authorblues
authorblues
  • Member since: Jun. 21, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to Script on API help 2006-11-03 16:06:47 Reply

flash forum

dont even care enough to be clever

BBS Signature
harryjarry
harryjarry
  • Member since: May. 15, 2005
  • Offline.
Forum Stats
Member
Level 57
Blank Slate
Response to Script on API help 2006-11-03 16:07:16 Reply

This actually belongs in the flash forum since this is actionscript.

It is a common mistake though, you should be able to get a lot more help in the flash forum as well ;).


twitter | last.fm // Currently working on HarryJarry.com

BBS Signature
authorblues
authorblues
  • Member since: Jun. 21, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to Script on API help 2006-11-03 16:09:21 Reply

At 11/3/06 04:06 PM, authorblues wrote: flash forum

goddamn, im dumb. i copied and pasted the link for the prog forum, but i forgot to change the seven to a two :( flash forum, yo


BBS Signature