Sorry I didn't get ur question right I thought from library !
On 7/13/08, Bassam M <[EMAIL PROTECTED]> wrote: > > Sjm I asked this question before and I got the answer as the following > > If your item classes are card1, card2, card3 and so on, and your code > currently works... > > > AboutButton.addEventListener(MouseEvent.CLICK, gocard); > function gocard(e:MouseEvent):void { > /// > var cardName:String = "card"+String(1 + uint(Math.random()*49)); // > 49 is the number of clips you have > > var cardClass:Object = getDefinitionByName(cardName) as Object > var newcard:* = new cardClass(); > // replace the asterisk i used for the base class that all your cards > extend from > /// > > this.addChild(newcard); > newcard.x = 25; > newcard.y = 45; > } > > > I hope this help > > > On 7/8/08, Rich Shupe <[EMAIL PROTECTED]> wrote: >> >> these should all work: >> >> --FlashVar will work if you can edit the template (still no server-side >> required), >> --a list in a text or XML file where no server interaction is required but >> an external file is needed (should work unless your CMS radically alters >> your directory structure) >> --a pre-defined list or filename structure, as suggested (although I'd add >> error handling for the final failure) >> >> >> On 7/8/08 9:54 AM, "SJM - Flash" <[EMAIL PROTECTED]> wrote: >> >> > My problem is the flash file is going to be embeded into a templete page >> to be >> > added to a CMS unfortunatly there is no option for me to use any >> additional >> > XML, PHP, ASP, Pearl script etc... the way i thought it would work is >> the path >> > to the images would be a flash var! >> >> Rich >> http://www.LearningActionScript3.com<http://www.learningactionscript3.com/> >> >> >> _______________________________________________ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders