Search:
Type: Posts; User: chi-styler
Search:
Search took 0.74 seconds.
-
This is the best one I've found:
http://www.iparigrafika.hu/pageflip/
-
It looks like you may be overwriting itemClip0, itemClip1 as you may be using the same depths for both sets of attachMovies, i.e. both 0 and 1. Try something like
...
-
Do you mean that if your MC had 20 frames in total, then, for example, when preloader was at 50% you want it to go to frame 10? If so, use
my_mc.gotoAndStop(Math.floor(my_mc._totalframes/100 *...
-
The problem is you have this line
var theObject:String = _root.object_txt.text;
executing on the frame, so when that code runs the textbox is empty as the user hasn't had a chance to put...
-
A simple percentage calcuation might be appropriate here. So say that player needs to get 20% more experience than the previous level, it'd go
Level 1: 1500
+300
Level 2: 1800
...
-
Believe it should be
for (j=0; j<resArr2.length; j++) {
trace("res2="+resArr2[j]);
}
-
Try this
for (var i = 1979; i<=2005; i++) {
this["a" + i] = this["d" + i].split(",");
this["a" + i].pop();
}
-
It's because parseInt takes a String and you're giving it a number.
If you're trying to round to the nearest integer use Math.round() instead.
-
Hi all,
I'm looking to implement this into a little game I'm working on - effectively it involves the AI chasing a ball, something like this (top-down view)
http://www.ice13.com/chase.gif
...
-
Just need a simple if
if(thrust) { //if thrust is true
thrust = false;
}else{ //if thrust is false
thrust = true;
}
-
To set the order of tabbing you use
TextField.tabIndex
A field with index of 1 will be higher up than a field with a index of 2. so in your move you essentially want to go
input1.tabIndex...
-
for(var i=1; i<=6; i++) {
this["input" + i].tabIndex = i;
}
Selection.setFocus(input1);
should do it for you. Keep in mind that the setFocus will only work if the Flash movie has focus,...
-
In MX 2004 you need to make sure the variable exists first. Just go
input = "25,15,10,30,20";
myArray = input.split(",");
sum = 0;
for (var i=0; i<myArray.length; i++){
val =...
-
Sure, look into TextField.autoSize then use TextField._height.
-
Unfortunately you can't do that, you can only change the alpha of the whole textfield.
If you really want a semi-transparent background you'll have to have a separate MC/graphic behind it.
-
Oh right, that variable must be set/created as a String at some point then. If you're bringing it in from an external source, text file for example, everything defaults to a String.
-
I don't see anything nothing wrong with that, as this works as expected:
_root.user_access = 2;
switch (_root.user_access) {
case 1 :
_root.main_menu = 5;
_root.sub_menu = 5;
...
-
You should just need
hdrWA.removeTextField();
-
Ok, 2 problems with that fla you attached (nothing to do with not having 2004 by the way). Firstly you haven't given Instance names to your MCs. If you select a MC then look in the properties panel,...
-
'this' in this case is just referring to the timeline it's on. It's just something to attach the onEnterFrame function to, you can also use _root or a MC for example.
The reason that it's only...
-
You need to name the Instance of the movie clip so Flash can recognise it at run-time.
Click on the MC, in the properties panel put hour_mc in the box where it says <Instance Name>.
-
That doesn't seem to be a valid link
-
The easiest thing to do is make your clock hand into a movie clip, with the pivot point at 0,0. Place it on the stage, call it hour_mc and use this code
this.onEnterFrame = function() {
...
-
Make you sure put the pivot point of the hands at the co-ordinates 0,0. As you said you don't need a clock but here's one anyway. You can change it for your needs just by going hours._rotation += 30...
-
To be honest I don't know why your original method isn't working, but if you're interested here is a working fla of my method.
|
Click Here to Expand Forum to Full Width
|