# How to create frames dynamically using AS3.0

**URL:** https://forum.kirupa.com/t/how-to-create-frames-dynamically-using-as3-0/261201
**Category:** flash
**Created:** [May 24, 2008, 5:45am UTC](https://forum.kirupa.com/t/how-to-create-frames-dynamically-using-as3-0/261201 "2008-05-24T05:45:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ratheesh\_cs](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ratheesh\_cs](https://forum.kirupa.com/u/Ratheesh_cs)
#### Post date: [May 24, 2008, 5:45am UTC](https://forum.kirupa.com/t/how-to-create-frames-dynamically-using-as3-0/261201/1 "2008-05-24T05:45:21Z")

</div>

I want to insert frames dynamically using Actionscript3.0, i couldnt find any code.Please help.

---

<div class="post-metadata">

### Author: ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)
#### Post date: [May 24, 2008, 12:22pm UTC](https://forum.kirupa.com/t/how-to-create-frames-dynamically-using-as3-0/261201/2 "2008-05-24T12:22:11Z")

</div>

I’m sorry, that’s not possible.

---

<div class="post-metadata">

### Author: ![wvxvw](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wvxvw](https://forum.kirupa.com/u/wvxvw)
#### Post date: [May 24, 2008, 8:37pm UTC](https://forum.kirupa.com/t/how-to-create-frames-dynamically-using-as3-0/261201/3 "2008-05-24T20:37:37Z")

</div>

Huh… the more correct version would be that it’s difficult, but doable…  
[http://etcs.ru/pre/ClipFactory/srcview/](http://etcs.ru/pre/ClipFactory/srcview/)

---

<div class="post-metadata">

### Author: ![devonair](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@devonair](https://forum.kirupa.com/u/devonair)
#### Post date: [May 26, 2008, 1:51pm UTC](https://forum.kirupa.com/t/how-to-create-frames-dynamically-using-as3-0/261201/4 "2008-05-26T13:51:07Z")

</div>

Wow… I have no idea why that would be useful, but it’s quite impressive… Actually, if I (or someone smarter) could figure out how to add content to the mc while it’s still in bytearray form (in the ClipFactory class), it would be a piece of cake to actually save a .swf from Flash (especially from Flash player 10)… Should open the door for an online version of Flash…

---

<div class="post-metadata">

### Author: ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)
#### Post date: [May 27, 2008, 4:05am UTC](https://forum.kirupa.com/t/how-to-create-frames-dynamically-using-as3-0/261201/5 "2008-05-27T04:05:14Z")

</div>

You can create a clip from scratch but you can’t modify an existing instance. Once its instantiated it’s set - at least timeline-wise. But anything you can load in at runtime you can create through a bytearray and “instantiate” it, i.e. load it in to a Loader/similar instance (images, SWFs, sounds).

---

<div class="post-metadata">

### Author: ![wvxvw](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wvxvw](https://forum.kirupa.com/u/wvxvw)
#### Post date: [May 27, 2008, 6:05am UTC](https://forum.kirupa.com/t/how-to-create-frames-dynamically-using-as3-0/261201/6 "2008-05-27T06:05:18Z")

</div>

Yes, sure. I didn’t mean inserting frames into allready existing clips. I’ve posted the link just to give en examle of workaround for creating clips with more than 1 frame.
