A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Break Apart with ActionScript, Impossible?

  1. #1
    Member
    Join Date
    Aug 2003
    Location
    Asia
    Posts
    74

    Break Apart with ActionScript, Impossible?

    Hi, remember if we attach way too many MovieClip in flash (imagine 1000), the flash will be running very slow.....

    So, I have an idea about after the MC is attached to the stage, some actionscript will do "BREAK APART" that MC... so the stage will be filled with SHAPE symbols....

    for example, I want to add circle_mc to flash overtime, just add circle_mc and no animation is that circle_mc. after that, the circle_mc is break aparted into plain circle (with fill and outline)....

    My question is one, It it possible?

  2. #2
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    You can't break apart symbols with actionscript, and it really wouldn't improve the performance anyway...

    If you're using Flash 8, you can set the movieclips to cacheAsBitmap, and you'll be able to deal with tons of clips without a major performance hit...

    K.

  3. #3
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    just a little add-on question deadbeat. I've never really understoon which is the proper _mc to set as cacheAsBitmap.

    If you had a container clip, and inside of it you had hundreds of objects moving around, would you set the container or each moving object to cacheAsBitmap?

  4. #4
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    Quote Originally Posted by jAQUAN
    If you had a container clip, and inside of it you had hundreds of objects moving around, would you set the container or each moving object to cacheAsBitmap?
    Hmm.. I think you can just set the container clip to cacheAsBitmap...but I haven't really used it enough to verify that.

    Depends partly what's in the clips - if the content is scaling / rotating frequently, Flash will have to recalculate the vectors anyway in which case cacheAsBitmap can actually degrade performance...

    K.

  5. #5
    Member
    Join Date
    Aug 2003
    Location
    Asia
    Posts
    74
    hmm...
    I should install flash 8 quickly then....
    anyway, if an MC is set to cacheBitmap, can we still access that MC by using it's instance name?
    if No, then how can we make that MC return to it original form, in vector based?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center