A Flash Developer Resource Site

Search:

Type: Posts; User: dlowe93

Page 1 of 20 1 2 3 4

Search: Search took 0.11 seconds.

  1. The Adobe AS3 Livedocs ...

    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...
  2. Without seeing the source, I believe it's because...

    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...
  3. Replies
    2
    Views
    412

    You need to make the function's scope available...

    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...
  4. Replies
    17
    Views
    2,532

    Ah. Got it. I'm not normally a "let the police...

    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.
  5. Replies
    17
    Views
    2,532

    Are you serious? Did you read this: ...

    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...
  6. You don't have to do the math, there are plenty...

    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...
  7. Make sure that you are either setting the text...

    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.
  8. You can't copy and paste. You'll need to save the...

    You can't copy and paste. You'll need to save the image as PNG32 and import into Flash.

    Hope this helps.

    d.
  9. Replies
    23
    Views
    2,025

    Minneapolis is a fine city. But there's no...

    Minneapolis is a fine city. But there's no mountains nearby.

    I'll wait.
  10. Replies
    3
    Views
    493

    Use this: //where setY is the random y...

    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...
  11. My suggestion would be to create a single array...

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

    It's the old double equals trick ("==" vs. "=");...

    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 {
  13. Replies
    16
    Views
    902

    Nice, but I'll stick with my near vintage all...

    Nice, but I'll stick with my near vintage all Campy Colnago. Steel bikes will always be sweet.

    d.
  14. Replies
    22
    Views
    1,502

    Tell me about it. Living in the land of hoppy...

    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...
  15. You might want to check out Moses' Interactive...

    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.
  16. You can't mask multiple clips with the same mask....

    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:


    ...
  17. Replies
    2
    Views
    436

    I would start with Keith Peter's Book: Foundation...

    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...
  18. Replies
    2
    Views
    697

    You will need it to recast it as a number in your...

    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...
  19. The elements in the array are strings, not movie...

    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...
  20. Throw in a trace on "amount" and you'll see 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...
  21. Replies
    8
    Views
    1,120

    Cool. Happy to help. Or just to confuse things...

    Cool. Happy to help. Or just to confuse things further.

    Either way, it works now.

    d.
  22. Replies
    8
    Views
    1,120

    Ah. I think I see the problem. onChanged won't...

    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...
  23. Replies
    8
    Views
    1,120

    Hmmm. It gets tricky when you are trying to mix...

    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...
  24. Replies
    8
    Views
    1,120

    You can add the listener/function directly to the...

    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:



    ...
  25. Thread: FlashVars

    by dlowe93
    Replies
    3
    Views
    584

    Better yet, one of my developers just showed me...

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




Click Here to Expand Forum to Full Width

HTML5 Development Center