Search:
Type: Posts; User: sfpiano
Search:
Search took 0.09 seconds.
-
1)
Color.prototype.fade = function() {
trace("asdf");
}
this.onEnterFrame = function() {
var col:Color;
col.fade();
-
I have a flash program that I've taken over from someone else. There are a couple of animations that are really bogging down the program, so I was going to convert each frame to a bitmap instead of a...
-
I have an mc with a linked AS2 class in frame 1 of my movie. Everytime I go to frame two, then back to frame one, the class constructor gets called, and the mc gets reinitialized. Is there a way to...
-
Here's the code for the holder mc that generates the animation.
this.onEnterFrame = function() {
if( numClips < maxClips ) {
mc = this.attachMovie(_root.Type, 'MC' + rem,
...
-
I have a series of scrolling tiles that make up an animation. There are 7 of them, 5 are ever visible, the others are two others that I use when I need to change the tiles. My program is a room with...
-
Just randomly move it in a fixed area:
MyMC._x += Math.random()*4-2;
MyMC._y += Math.random()*4-2;
-
You could have each part of your animation span multiple frames. You'd have to manually do that though.
-
http://www.kirupa.com/developer/actionscript/hittest.htm
http://www.planetoftheweb.com/archives/000226.php
Google is your friend ;)
-
You'd probably be better off using some sort of video editing program, or a program that lets you take screenshots of video. Then you could past them into photoshop and do whatever. I'm not sure how...
-
You had an extra brace after the creation of the Tween.
onClipEvent (load) {
pos = this._x;
}
import mx.transitions.Tween;
import mx.transitions.easing.*;
menudo.onRelease = function() {
-
Basically you could get rid of the rollOut call, and at the end of each animation do something like gotoAndStop(1);. That way, the animation would be dependent on when it was finished, not when you...
-
I have two frames: in the first one is an mc that is a holder for a dynamic animation. The second frame has other stuff. The problem is that whenever I go from the second frame back to the first...
-
-
mc = _root.attachMovie("clip", 'clip', _root.getNextHighestDepth());
_root.clip.setMask(box);
mc._x = 400;
mc._y = 130;
mc.onEnterFrame = function() {
this._x -= 5;
}
When I run this, my...
-
for(i=0; i<10; i++) {
_root.attachMovie('ciBox', 'ciBox'+i, _root.getNextHighestDepth());
...
for(i=0; i<10; i++) {
_root['ciBox'+i].removeMovieClip();
_root['ciBox'+i].unloadMovie();
}...
-
I have a drop down menu with dynamically generated text. However the text appears before the menu drops down (there's a dropping animation and the text appears instantly before the animation actually...
-
Yes, I have that, but the problem is that that mc that is created is always visible. Say I have two frames, I'm in the first frame when I create the empty mc, but when I switch to the second frame,...
-
I have an image generated with lineTo and moveTo calls, but so far I can only get it working if I draw to the root stage; I'd like to be able to draw just within an mc. And I'd rather not have to set...
-
Ok, that worked great, but now I'm trying to get it to work within an mc. So instead of drawing on the stage, it will just draw within the mc. I tried _root.boxMC instead of just _root on all the...
-
I've been trying to create an EKG readout dynamically, ie one that isn't a static animation. I've been looking around for some mathematical models but so far haven't found anything useful. So my next...
-
I have code to draw say a function curve. But what I can't figure out is how to have a loop so that I can actually see the graph being drawn. I tried just clearing the screen at the end of my graph...
-
I have two levels: _root and _root.options. Within the options layer I have an mc called clamp with the following code:
clamp.onPress = function() {
val = _root.getNextHighestDepth();
mc =...
-
I have an mc and within it is a button. It's a dialogue mc that I fill text by calling a function and changing the variable of the text box. However sometimes I want the same button within the mc to...
-
I have a dynamic textbox that I pass a variable to and tell to render as html.
var myTxt = "<i>Q: What happens when I press DONE?</i>\n";
Which gets outputted to the screen as:
What...
-
I think the problem might be that some things are still being used in the this.onEnterFrame() loop. In the main program I don't call that loop until frame 4, but when I reset and go back to frame...
|
Click Here to Expand Forum to Full Width
|