Search:
Type: Posts; User: BobJohnson
Search:
Search took 0.05 seconds.
-
function Build(unit:String) {
var clazz:Object = getDefinitionByName(unit);
var newUnit:MovieClip = new clazz();
addChild(newUnit);
}
Build("House");
Ended up having to data type it as an...
-
A stupid question I'm sure, but here goes:
I have a MC with class name "House" in the library.
The Build function will be used to add hundreds of different MCs to the stage, so I am using the the...
-
Make a function that fades out the dropdown MC in which the button is located...
//main timeline frame code
_global.fadeMenu = function(menuName) {
eval(menuName).gotoAndPlay("fadeOut");
}...
-
They're probably just tweens being played in movie clips. So if a user clicked on button 2, you'd want only buttons 1,3, and 4 to reset...
stop();
button2.onRelease = function() {...
-
stopAllSounds() should actually work, but if you really want to avoid overlapping songs, just use one sound object instead of multiple ones. For a new song, load over the same object.
s = new...
-
It already has speed variables. Change the values of dx and dy for xspeed and yspeed, respectively.
-
You can post the .fla if you want. I'm actually interested to see what the problem is.
-
#include "filename.as"
Don't put a semicolon ( ; ) at the end of the line or it won't work.
-
You can't put on() handlers on components. Use an event listener...
function change() {
trace("hello");
}
comboBox.addEventListener("change" , this);
-
if(n >= 10 && n < 20) {
//stuff
}
-
Probably because it hasn't loaded yet. You could just put stop(); on the first frame of kids2.swf
-
I assume you mean a checkbox not a button. If you're using the chekbox component then you check its value like this...
if(checkBox.selected) trace("selected");where "checkBox" is the instance...
-
Declare the SharedObject before you save the data. Declare as...
dataCoookie = SharedObject.getLocal("datosCookie");not...
var dataCoookie:Object = new Object();
-
Make sure you have the same plugin for IE that you have for Firefox.
-
Probably a scope issue. Try _root.gotoAndStop(55); or _parent.gotoAndStop(55); if you're trying to control the main timeline from a button MC.
-
There are 2 kinds of button code. One kind is code that goes on a frame, refers to the button with a target path, and assigns a function to a certain button event. Example:
searchButton.onRelease...
-
Right. You might want to put matchFound = false; at the very beginning of the search button function (before the for loop), too. That way the user won't get erroneous results if they search more than...
-
Yes. Did you try doing it? Should just be...
loadMovie("filename.swf" , _parent);
-
Maybe something like this...
array = [];
matchFound = false;
Button1.onRelease = function() {
array.push("whatever");
}
Button2.onRelease = function() {
array.push("somethingElse");
}...
-
No, just type it into the instance name field in the properties panel...
-
Do you mean...
for (i=1; i<=50; i++) {
duplicateMovieClip(_root.ship, "ship"+i, i);
_root["ship"+i]._x = _root.gun._x;
_root["ship"+i]._y = _root.gun._y;
}??
-
You could loop through every character of the string in AS to check for those kinds of characters, but that would be a pain. I don't know my CF, but I bet there's a function that strips # and similar...
-
Hmm.... tough one. My next suggestion would be
lvSend["return"]= "http://www.google.com"; but I see you already tried that. You could say...
lvSend.Return = "http://www.google.com";...
-
Not separate MCs, but separate SWFs. When you need to load a new page, you can do...
loadMovie("filename.swf" , containerMC);
//or
loadMovieNum("filename.swf" , level);
//or
loader = new...
-
Open up notepad and type
[autorun]
open=filename.exeThen save the file as "autorun.inf" Burn the file onto your CD.
|
Click Here to Expand Forum to Full Width
|