Forum Topic: AS troubles

(149 views • 3 replies)

This topic is 1 page long.

<< < > >>
None

m4x0

Reply To Post Reply & Quote

Posted at: 10/1/06 06:22 AM

m4x0 EVIL LEVEL 28

Sign-Up: 11/15/05

Posts: 3,240

why dosent this work?:

onClipEvent (enterFrame)
{
if (_root.ship.gun.bullit.hitTest(this.body.w
indow))
{
this.body.window(play);

}
}

the instances are correct


None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 10/1/06 06:26 AM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,326

You know, I would even doubt that the linkages are correct. Anyway:

body.window.play();

The method is 'play', what you were doing is calling the method 'window' of the instance 'body' and giving the value of 'play'.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

Treb-Miffen

Reply To Post Reply & Quote

Posted at: 10/1/06 06:30 AM

Treb-Miffen LIGHT LEVEL 09

Sign-Up: 01/20/06

Posts: 38

There is an extra line in there. try:
onClipEvent (enterFrame)
{
if (_root.ship.gun.bullit.hitTest(this.body.w
indow))
{
this.body.window(play);
}
}

If that doesn't work then I have no idea.


None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 10/1/06 06:34 AM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,326

At 10/1/06 06:30 AM, Treb-Miffen wrote: There is an extra line in there.

XD
omfgnoob
liek
lol

In other words, the CR and tab characters do not affect the way it is compiled. And Flash orders it right before compiling anyway.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


All times are Eastern Standard Time (GMT -5) | Current Time: 11:24 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!