Add/Delete items with AS in PhotoFLIP CS (AS3)
Author: Digicrafts Last Update: 08/04/2008
Add/Delete Item with Action Script
Method | Description |
|---|---|
| addItemAt() | Add a new item with specify index. |
| addItem() | Add a new item at the end. |
| removeItemAt() | Remove an item with specify index from PhotoFLIP. |
| addItem() | Remove the last item. |
Example:
//define a item which have linkage name 'p' , type embed bitmap
var item:Object = {source:"p",width:286,height:354,title:"teset", type:"bitmapasset"};
PhotoFLIP_mc.addItemAt(item,10);
Method summary for the PhotoFLIP class
type | Description |
|---|---|
| bitmapasset | Specify the type of source as embed bitmap. |
| bitmapfileasset | Specify the type to source is external file. Source is url of jpg/png file. |
|
|
| Learning add/delete items with AS in PhotoFLIP CS |
|
Compatibility:
Skill Level: |