A Flash Developer Resource Site

Search:

Type: Posts; User: sfpiano

Page 1 of 10 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    1
    Views
    1,153

    Questions about how to use prototypes

    1)


    Color.prototype.fade = function() {
    trace("asdf");
    }

    this.onEnterFrame = function() {
    var col:Color;
    col.fade();
  2. Replies
    4
    Views
    459

    [F8] Size of mc distorted when copied

    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...
  3. Objects with a linked class get reinitialized every frame

    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...
  4. Here's the code for the holder mc that generates...

    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,
    ...
  5. [F8] Hard to explain, involves mcs being lost when I change frames

    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...
  6. Replies
    6
    Views
    943

    Just randomly move it in a fixed area: MyMC._x...

    Just randomly move it in a fixed area:

    MyMC._x += Math.random()*4-2;
    MyMC._y += Math.random()*4-2;
  7. Replies
    3
    Views
    1,491

    You could have each part of your animation span...

    You could have each part of your animation span multiple frames. You'd have to manually do that though.
  8. Replies
    1
    Views
    1,384

    http://www.kirupa.com/developer/actionscript/hitte...

    http://www.kirupa.com/developer/actionscript/hittest.htm
    http://www.planetoftheweb.com/archives/000226.php

    Google is your friend ;)
  9. Thread: break up video

    by sfpiano
    Replies
    3
    Views
    1,598

    You'd probably be better off using some sort of...

    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...
  10. Replies
    14
    Views
    1,205

    You had an extra brace after the creation of the...

    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() {
  11. Basically you could get rid of the rollOut call,...

    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...
  12. [F8] Things get reset everytime I go back into a frame

    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...
  13. Does this help?

    Does this help?
  14. Replies
    0
    Views
    359

    [F8] Can't mask a dynamically attached mc

    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...
  15. Replies
    0
    Views
    351

    MC is only being removed the first time

    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();
    }...
  16. [F8] Dynamic text appears before menu does

    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...
  17. Yes, I have that, but the problem is that that mc...

    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,...
  18. [F8] Drawing (lineTo, moveTo, etc) withing an mc?

    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...
  19. Replies
    2
    Views
    473

    Ok, that worked great, but now I'm trying to get...

    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...
  20. Replies
    1
    Views
    1,308

    Dynamic EKG (heartbeat) readout

    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...
  21. Replies
    2
    Views
    473

    View a looping graph as it's drawn

    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...
  22. [F8] Drag n Drop from one layer to another

    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 =...
  23. [F8] Dynamically setting the functionality of a butotn

    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...
  24. HTML rendered text is not outputted correctly

    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...
  25. Replies
    5
    Views
    515

    I think the problem might be that some things are...

    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...
Results 1 to 25 of 234
Page 1 of 10 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center