A Flash Developer Resource Site

Search:

Type: Posts; User: dcnguyen

Page 1 of 9 1 2 3 4

Search: Search took 0.05 seconds.

  1. stage.fullScreenWidth and stage.fullScreenHeight returns zero

    Just doing this: trace( stage.fullScreenWidth, stage.fullScreenHeight );
    Gets me 0,0, instead of the actual resolution of my (laptop, no external screen) monitor...what am I doing wrong here?
  2. Replies
    1
    Views
    1,275

    Applying a blurfilter to a mask

    Ok, so let's say I have a sprite called MaskSprite, and another sprite called PhotoSprite, with this relationship:

    PhotoSprite.mask = MaskSprite;

    Now MaskSprite contains a bunch of sprites as...
  3. Thankee...and I figured out how to do dynamic...

    Thankee...and I figured out how to do dynamic attribute names:

    var strAtt = "@name";

    trace(item[strAtt]);
  4. AS3 - E4X...How to dynamically access a node/attribute name?

    Let's say my xml is like this:



    <root>
    <PERSONS>
    <PERSON name="Hillary Clinton" picture="hillary_clinton.jpg" description="New York Senator">
    </PERSON>
    <PERSON name="Barack Obama"...
  5. Replies
    8
    Views
    1,408

    Essential Actionscript 3.0 has a pretty good...

    Essential Actionscript 3.0 has a pretty good primer on OOP
  6. [CS3] Getting funny boundaries with an imported PNG into a Sprite/Movieclip

    So I've imported a transparent PNG into a Sprite dynamically...but hit detection (mouse rollover, clicks,etc) seems to occur in the rectangular bounds of the PNG, rather than just the non-transparent...
  7. Thanks, that did the trick? Is there a...

    Thanks, that did the trick? Is there a streamlined way to just store the outline produced by applying the filter into another Sprite, other than duplicating the sprite, applying the filter, and then...
  8. A method to dynamically change the outline of a sprite?

    So I've a bunch of pngs I'm loading into sprites that are the shapes of countries...these pngs are solid colors...I'd like to, inside my program, just highlight the outlines of these shapes...Is...
  9. Replies
    4
    Views
    778

    thanks, should've posted in the Newbie forum.

    thanks, should've posted in the Newbie forum.
  10. Replies
    4
    Views
    778

    [RESOLVED] How to test type of variable?

    Is there a function that takes in a string to test if a variable is of that type...for example:

    if( someVariable.isThis("String")){
    ...

    }
  11. [CS3] How to run a .swf from another domain? (AC-RunActiveContent.js)

    I only vaugely remember how to do this in Flash 8...but I'm trying to embed a Flash swf from another server onto another site's homepage...what variables and parameters do I need to make this all...
  12. need some localToGlobal help, in regards to rotation

    Let's say I have a movie clip some distance away from the center, rotated 90 degrees...I just want to find where its x,y coordinates on the Stage (so I can draw a line to where it is now on the...
  13. Replies
    4
    Views
    1,001

    Thank you thank you thank you...I knew it had to...

    Thank you thank you thank you...I knew it had to be something simple...
  14. Replies
    4
    Views
    1,001

    Thanks, but html is not a property of TextField...

    Thanks, but html is not a property of TextField in ActionScript 3...
  15. Replies
    4
    Views
    1,001

    dynamic htmlText isn't working

    About as simple as can be...

    var t = new TextField();
    addChild(t);
    t.htmlText = "Hello<br> World";

    This does not display the line break...p tags also don't work. However, <b> tags do...do I...
  16. Similar to this effect: http://www.fla-shop.com/...

    Similar to this effect:
    http://www.fla-shop.com/

    So the point at the center of the clip should not move at all.
  17. I'd like the clip to remain in place...I thought...

    I'd like the clip to remain in place...I thought this would be the solution, but it ain't:




    public function changeScaleMatrix(val){
    //this function is called upon a tween's change in motion...
  18. Thank you, yes the addChild thing was what I...

    Thank you, yes the addChild thing was what I needed.
  19. How to scale a movieclip without translating it?

    Is there some easy method to scale a movieclip on the stage...i.e. enlarging it, without it translating it positively in the x and y axes?

    I thought this would work, but it didn't:


    public...
  20. How to assign a custom class to multiple kinds of movieclips

    So on my stage and library, I have a movieclip for each state...named as STATE_AK, STATE_IA, STATE_NY, and so forth, inside the library...the clips are then placed on the stage

    I've created a...
  21. Replies
    1
    Views
    7,422

    How to turn animated gif into a movieclip?

    OK, so I have an animated gif that I would like as a movieclip in my FLA file...so what I did was put that animated gif into its own FLA and compiled it into a swf...and it worked fine. But when I...
  22. Replies
    0
    Views
    708

    Melting in effect, convolution filter

    Dang, I wish I had an example to refer to the effect I want...but basically I'd like to start with a movieclip, and then as time passes, have that movieclip kind of melt away into whiteness...I was...
  23. doh! That's what I was worried about.

    doh! That's what I was worried about.
  24. [F8] Can you "adopt" a movieclip created before runtime?

    I've got a movieclip that I've put on the stage that I would like to, at run time, become the child of another movieclip, the latter which is created only at runtime. In the same way that a clip...
  25. Replies
    4
    Views
    857

    OK I have a question along the same lines. Let's...

    OK I have a question along the same lines. Let's say I create an empty movieclip, and then fill it up with a grid of small clips, so:

    maskClip = _root.createEmptyMovieClip("maskClip", 10);
    (for...
Results 1 to 25 of 206
Page 1 of 9 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center