Search:
Type: Posts; User: Vadersapien
Search:
Search took 0.12 seconds.
-
enter_btn.onRelease = function() {
sendData();
}
function sendData() {
trace(name_txt.text);
trace(email_txt.text);
trace(message_txt.text);
...
-
I'm guessing "missile" is a previously created object, right?
EDIT: What about doing something like this(javascript)
cat.prototype.changeName = function(name) {
this.name = name;
}
...
-
For the sound, shouldn't you change your function to look like this?
Play.onRelease = function() {
mix1.start();
}
Then add this function to the same frame is your existing sound code
-
Hello to all,
I would like to know how to create an object-orientated functions in Actionscript 2. I'm actually not sure if that is what it's called...please correct me if I'm wrong. Anyway here's...
-
I got it working eventually...it had to be:
for(x in spiderArray){
if (this.hitTest(_root.spiders[spiderArray[x]])) {
...
-
Tried it, but still no go...
-
Hey everyone,
I am having trouble hitTesting items in an array...here is my full code:
stop();
var gameStarted:Boolean = false;
var gamePaused:Boolean = false;
var generateSpeed:Number =...
-
Come on...this is really important
-
Hello,
I would like to have one movieclip over the top of other attached ones. I have tried getNextHighestDepth on the movieclip, but it still doesn't work.
Here is my code for attaching the...
-
Playing backwards is not possible from what I know...as a workaround you could try making a copy of the frames, reverse them, and then use gotoAndPlay() to go to the required reversed frame. another...
-
Hello all,
I have made a preloader which checks if the movie and all sounds are loaded...here's the code:
stop();
loadedItems = 0;
dialogSoundCanStart = true;
dialogSound = new Sound();
-
followed the tut but the car still turns while it's still(speed = 0)...code:
onClipEvent (load) {
var speed:Number = new Number(0);
}
onClipEvent (enterFrame) {
if (Key.isDown (Key.UP) &...
-
How would I get realistic car movement in AS2. Needs to include acceleration, deceleration and proper turning...found some great examples but they were AS1 only or didn't have acceleration...
-
Scenes are a load of trouble...try labeling the frame instead. You can do this by going to your game over scene, then clicking on the required frame. In the properties panel there should be the text...
-
Tried it and while it works...the movements are really messed up
-
I suggest you take a look at this thread: http://board.flashkit.com/board/showthread.php?t=688580 or this page: http://www.foundation-flash.com/tutorials/turretpart2/
-
It has to do with the component skins. I know you can change them using the library in AS3, but I'm not sure how to do this in AS2
-
How exactly are you generating the apples(it helps to know)
-
Hmm...good point..."this.onLoad = function()" isn't necessary after all. I'll try without that.
It'll probably work since using the "this.onLoad = function()" didn't give the variables their...
-
I'm using Actionscript 2. I also found none of my onLoad code is executing, same with the onEnterFrame code. However if I add trace('Working') under the onEnterFrame section, it works, but no other...
-
Hello,
I can place the following code on a movieclip:
onClipEvent(load) {
gravity = 0.2;
yspeed = 0;
speed = 2;
}
onClipEvent(enterFrame) {
-
That shouldn't matter...nut you never know...just give it a try :)
-
Here's your problem...all your code is correct, but you need to give each button an instance name
Portfolio - portfolio_btn
Bio - bio_btn
Contact - contact_btn
Links - links_btn
CV -...
-
just a tip: it's much better to code these sorts of things since doing so can seriously reduce the megabyte count....
-
Here is the fixed file [Download] which includes all you asked for AND some minor improvements (removed unused frame labels, stopped actionscript errors)...look carefully at everything this time...
...
|
Click Here to Expand Forum to Full Width
|