dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: retrotron

Page 1 of 6 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    3
    Views
    2,818

    There's also kinetic fusion: ...

    There's also kinetic fusion:

    http://www.kinesissoftware.com
  2. Replies
    10
    Views
    803

    Well, try this and tell me what the output is: ...

    Well, try this and tell me what the output is:

    stop();

    // flag is a file loading.
    fileLoading = false;

    function loadAudioFile(theURL) {
    trace("theURL: " + theURL);
    ...
  3. Replies
    10
    Views
    803

    Could you post the .fla?

    Could you post the .fla?
  4. Replies
    10
    Views
    803

    Ah, I see. Cool, good plan. I was actually...

    Ah, I see. Cool, good plan.

    I was actually wondering about that percent line, thinking that it might throw an error. Try this:

    var percent = (percent-((loading/total)*100))*.25;

    I removed...
  5. Replies
    3
    Views
    408

    You were right the first time: onPress only fires...

    You were right the first time: onPress only fires when the button is just clicked, it doesn't test whether it's continuously down.

    The above code causes the illusion of such because when the...
  6. Replies
    3
    Views
    408

    You are right, you have to use onEnterFrame() or...

    You are right, you have to use onEnterFrame() or setInterval() to check over and over again whether the mouse is pressed. Something like this for onEnterFrame():

    upBtn_mc.onPress = function() {...
  7. Replies
    10
    Views
    803

    I'm not sure I totally understand ... I think I...

    I'm not sure I totally understand ... I think I get what you want, so what exactly is it not doing right?
  8. Replies
    10
    Views
    803

    Your code looks fine syntactically, so if it's...

    Your code looks fine syntactically, so if it's not working, then something else is the culprit, probably something is preventing that code from every executing. Throw a trace statement in right after...
  9. Replies
    9
    Views
    4,423

    What exactly do you mean by wanting an onload...

    What exactly do you mean by wanting an onload event?

    Just for kicks, here's a better one I use these days, better because it's a movieclip method:

    MovieClip.prototype.preloadClip =...
  10. Replies
    2
    Views
    433

    Thanks ericlin (second time tonight :)). ...

    Thanks ericlin (second time tonight :)). Hmm...so I'll have to figure out that ratio for each font, eh? Anybody have any ideas for how to get that baseline? Or how to get the "descent"?
  11. Replies
    2
    Views
    433

    How to calculate the baseline of text?

    I'm trying to calculate what the baseline of a textfield would be.

    TextField.textHeight returns a value that is a few pixels below the actual bottom of the leters. If the font size is large,...
  12. Which two functions? How do they conflict? ...

    Which two functions? How do they conflict?

    Something like this:

    button_mc.onRollOver = function() {
    checkFourH(); // executes only once each time mouse rolls over
    this.onEnterFrame =...
  13. yeah, if(variable) tests whether variable = true...

    yeah, if(variable) tests whether variable = true or false.

    for more on "var", check out this thread:
    http://www.actionscript.org/forums/showthread.php3?s=&postid=145457#post145457
  14. Check out how I did it in the attachment. As...

    Check out how I did it in the attachment. As pellepiano said, you can't nest on() functions. Since you're using MX, it's much better to use function literals (defining the function like I did...
  15. This works (check out the attachment): // set...

    This works (check out the attachment):

    // set a variable
    var someCondition = true;

    // button code
    button_mc.onRollOver = function() {
    this.onEnterFrame = function() {
    if (someCondition)...
  16. Something like this? on (rollOver) { on...

    Something like this?

    on (rollOver) {
    on (enterFrame) {
    if ((_currentframe<10) && (_root.Playable == true)) {
    checkFourH();
    } // end if-statement
    } // end on(enterFrame)
    }...
  17. Replies
    0
    Views
    282

    flash, javascript, and frames

    I have an issue with some anchors in a flash html textfield which try and call a javascript window.open() function to create a popup. The .fla is in a frame. It doesn't work and I'm not sure why. ...
  18. Replies
    17
    Views
    5,468

    fgf wanted me to build one of those environments...

    fgf wanted me to build one of those environments in the as.org thread too, someday I'll get around to that. It's always someday. :)

    I almost never build games...in fact, now that I think about...
  19. Replies
    17
    Views
    5,468

    Whoa, that really tripped me out, senocular and I...

    Whoa, that really tripped me out, senocular and I posting at almost exactly the same time. I didn't know where all that extra text came from. :)

    Anyways, again, a great explanation from...
  20. Replies
    17
    Views
    5,468

    Hey padnpen, thanks for stopping by. ;) The...

    Hey padnpen, thanks for stopping by. ;)

    The reason your code didn't work is because you tried to create a "new" instance of an object. This is not possible in Flash.

    For example, look at...
  21. Replies
    17
    Views
    5,468

    Just for kicks. Look at this code. I've created...

    Just for kicks. Look at this code. I've created my own inheritance scheme. I'll explain it below.

    // create my own inheritance scheme //

    // top level object, so "top level", in fact, that it...
  22. Replies
    17
    Views
    5,468

    Here is some relevant reading for anybody...

    Here is some relevant reading for anybody following this thread, courtesy of ultrashock's x3ro.

    http://www.webreference.com/js/tips/010215.html
    http://www.laputan.org/reflection/warfare.html...
  23. Replies
    17
    Views
    5,468

    Okay, I'm totally tracking with you, or at least...

    Okay, I'm totally tracking with you, or at least I think I am. You must forgive my semi-incoherent ramblings. After 24 hours without sleep I just turn into a bumbler (whatever that is). I actually...
  24. Replies
    17
    Views
    5,468

    Gee, thanks for giving me the time senocular! ...

    Gee, thanks for giving me the time senocular! You're the best! I learned a lot from this (and I know others will too). You've really helped clarify a lot of things. It especially helped me...
  25. Replies
    17
    Views
    5,468

    Instances are just copies right?

    I posted this on ultrashock too, but I might get a quicker reply here. Two questions.

    First question: in actionscript, there isn't such a thing as a "class". Instead, the "class" is just an...
Results 1 to 25 of 141
Page 1 of 6 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center