Search:
Type: Posts; User: dlowe93
Search:
Search took 0.04 seconds.
-
The Adobe AS3 Livedocs says the following:
RETURNINDEXEDARRAY : uint = 8
[static] Specifies that a sort returns an array that consists of array indices.
So yes, it returns an array, but it's...
-
Without seeing the source, I believe it's because you are passing Array.RETURNINDEXEDARRAY in the params. That returns an array of array indices, not of the original array, so it's doing what it...
-
You need to make the function's scope available to each movie clip. Right now each drag item is looking for a colour() function on it's own clip, not on the _root.
The easiest approach would be to...
-
Ah. Got it. I'm not normally a "let the police shoot people" kind of guy, but imagining the scenario that this officer came upon, I can imagine using deadly force was legit.
d.
-
Are you serious? Did you read this:
"…removed a 2-year-old boy from his car seat and proceeded to stomp, kick and punch the boy to death, authorities said. The boy was unrecognizable when he was...
-
You don't have to do the math, there are plenty of tweening packages out there that do it for you. Zigo/Fuse is probably the easiest to use:
http://www.mosessupposes.com/Fuse/
But it's not AS3...
-
Make sure that you are either setting the text box to Static text, or are embedding the font if it's Dynamic text. That's usually the culprit on something like this.
Hope this helps.
d.
-
You can't copy and paste. You'll need to save the image as PNG32 and import into Flash.
Hope this helps.
d.
-
Minneapolis is a fine city. But there's no mountains nearby.
I'll wait.
-
Use this:
//where setY is the random y position of the clip;
bee._y = Math.max (130, clipY);
Math.max uses whatever value is higher. So if setY is less than 130, it will be at 130, if...
-
My suggestion would be to create a single array with a set of objects, then sort on the score attribute of the objects you've created. I know your arrays are more complex, but it would work something...
-
It's the old double equals trick ("==" vs. "=");
You need to do this:
on(release){
if(_root.system.command == "/openfile/v2-rocket"){
v2._visible = true;
} else {
-
Nice, but I'll stick with my near vintage all Campy Colnago. Steel bikes will always be sweet.
d.
-
Tell me about it. Living in the land of hoppy beers, and being a fan of the hoppiest, it's been rough. I just paid $4.25 for a pint of my personal favorite and it hurt.
And sorry to say, but Sam...
-
You might want to check out Moses' Interactive PNG class:
http://blog.mosessupposes.com/?p=40
Does exactly what you are looking for, and he's done the heavy lifting for you.
d.
-
You can't mask multiple clips with the same mask. You will either need to create separate masks for each clip, or create a "master" container and mask that. For example:
...
-
I would start with Keith Peter's Book: Foundation Actionscript 3.0 Animation: Making Things Move!
It's one of the best books out there, and does a good job of balancing big concepts with useful...
-
You will need it to recast it as a number in your ActionScript. So something like:
m_myVar : Number = Number( myVar );
m_myVar++;
trace( m_myVar ); //outputs what you'd expect from...
-
The elements in the array are strings, not movie clips, and Flash can't add a string to the display list. You will need to create an instance of each clip in order to add it to the array and/or the...
-
Throw in a trace on "amount" and you'll see the problem:
trace(amount);
If you publish to Flash 7, it traces out to 3, if you publish to Flash 8+, it traces out the html string of the Text...
-
Cool. Happy to help. Or just to confuse things further.
Either way, it works now.
d.
-
Ah. I think I see the problem. onChanged won't register an event from a change to a dynamic text box that is programmatic, only from user interaction. (I know, you are clicking on the button, but the...
-
Hmmm. It gets tricky when you are trying to mix AS inside and outside of Classes, but yes, you can easily create a reference to the returnedArray by doing something like _level0.returnedArray. It's...
-
You can add the listener/function directly to the external class. Without knowing the entire structure of the class, it would look something like this:
...
-
Better yet, one of my developers just showed me this little tool:
http://www.swffix.org/swfobject/generator/
Generates the SWFObject JS for you. Very handy for CSS hacks like myself.
d.
|
Click Here to Expand Forum to Full Width
|