Search:
Type: Posts; User: medfoe
Search:
Search took 0.07 seconds.
-
If your button is "my_btn":
my_btn.addEventListener(MouseEvent.CLICK, myClick);
function myClick(e:MouseEvent):void {
if(subtitles == false) {
subtitles = true;
}
if(subtitles == true) {...
-
-
So how do I find the quadratic equation of an object tossed into the air from a point at y=0, if I know the beginning upward velocity and the downward acceleration caused by gravity? (time measured...
-
Yeah, you're right, I haven't changed Pentu's nimi yet.
Anyways, thanks!
-
If your text box's instance name is "my_txt":
var subtitles:Boolean = false; // Make an on/off switch called "subtitles"
if(subtitles == true) { // If switched on
my_txt.alpha = 1; // Make...
-
I have two classes. One is a subclass of the other. The superclass looks like this:
package suomi.suomalainen {
import flash.display.Sprite;
public class Koira extends Sprite {
var nimi:String...
-
I have a class called FC. I want to automatically put all instances of it on an array. I think the best way to do this would be to use a loop. I would usually use a For Loop to automatically add code...
-
I'm making a game, and I want to place objects on the stage, but Flash won't let me scroll past a certain point in the fla. Is there a way of scrolling further?
-
I'm making a game, and I want to place objects on the stage, but Flash won't let me scroll past a certain point in the fla. Is there a way of scrolling further?
-
Well, I just got made a normal member, so I'm going to celebrate by asking a total newb question:
I'm making a game, and I want to place objects on the stage, but Flash won't let me scroll past a...
-
Does your code in the actual movie look like this?:
function onEnterFrame() {
if(enemy1._y > 500){
enemy1.gotoAndStop (2);
}
If I understand what you're trying to do, this should work.
-
Also, if you want to put the code on the main timeline in as2, you could use this:
myButton.onRelease = function() {
getURL("http://www.flashkit.com","_new");
}
-
This AS3 code would do what the previous code did when you used "_blank". I don't know how to force a new window when the browser has tabs, though.
function gotoPDF(e:MouseEvent):void {
var...
-
Wierd...what was the code you used?
-
Hey, sorry if you had trouble with that one. I think I should have put "CLICK" where I put "MOUSE_CLICK".
-
var myTimer = new Timer(1000); // Creates a timer that goes in cycles of 1000 milliseconds until you tell it to stop.
myTimer.start(); // Starts the timer.
...
-
Where object 1 is the mc within an mc, and object2 is the one on the maintimeline:
object1.y = MovieClip(root).object2.y;
You can access an object relative to your current MovieClip's parent by...
-
var myTimer = new Timer(1000, 1); // Make a timer called myTimer that makes one cycle of 1000 milliseconds.
myObject.x = Math.random() * 550; // place myObject in a random x coordinate between 0...
-
I don't know how to zoom, but here's an idea for panning:
function onEnterFrame() { // Everything between these two curley braces is part of a function called the "onEnterFrame" function. A...
-
If you're using ActionScript 2.0, try this, replacing "http://www.flashkit.com" with the web address of your pdf. You can replace "_new" with "_blank" to allow the browser to open the pdf in a new...
-
What version of flash do you have, and what version of ActionScript?
-
So, if the button is myButton_btn and the movie clip is myMovieClip_mc, the following code should work:
myButton_btn.addEventListener(MouseEvent.MOUSE_CLICK, myMouseClick); // If the mouse is...
-
I'm confused about where (0,0) is, exactly. I know it's in the top-left corner, but is y = 0 at the furthest pixel to the top of the stage, the lowest pixel that is outside the stage, or between...
-
Okay, this one has got me stumped. I want an object to move 10 pixels every time a key is pressed, and I don't want it to keep moving when the key is held down.
And I want to know why it moves...
-
I'm trying to do is to get every object of one class to react the same way to every object of another class. Or maybe I shouldn't be using classes for this, I don't know. I'm making a side-scroller...
|
Click Here to Expand Forum to Full Width
|