First off all: http://tech.groups.yahoo.com/group/flexcoders/
Second, Flex is a different ballgame. Flex has a number of components/controls/containers available that are not available in Flash. For displaying images, there's the Image component. For displaying a number of thumbnails you could use a TileList component or a Repeater component in combination with an Image component etc.. If you want to build a menu, there's several options as well: linkbar, buttonbar, etc.. And it also depends on whether this is an AS3 or MXML project. So the answer to your question isn't that simple. I suggest you start with going through the docs and having a look at the available components. regards, Muzak ----- Original Message ----- From: "Gustavo Duenas" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <Flashcoders@chattyfig.figleaf.com> Sent: Tuesday, June 12, 2007 7:38 PM Subject: [Flashcoders] flex question(xml based menu) > Hi I have this code in as2, but i was wondering how could I do this in flex. > > myPhoto = new XML(); > myPhoto.ignoreWhite = true; > myPhoto.onLoad = function(success) { > //portfolioTag = this.firstChild; > numimages = this.firstChild.childNodes.length; > > spacing =300; > for (i=0; i<numimages; i++) { > > this.picHolder = this.firstChild.childNodes[i]; > this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i); > > this.thumbHolder._x = i*spacing; > this.thumbLoader = this.thumbHolder.createEmptyMovieClip ("thumbnail_image", > 0); > this.thumbLoader.loadMovie(this.picHolder.attributes.thmb); > this.thumbHolder.title = this.picHolder.attributes.title; > this.thumbHolder.main = this.picHolder.attributes.main; > > this.thumbHolder.onRelease = function() { > loader.loadMovie(this.main); > title_txt.text = this.title; > }; > } > }; > myPhoto.load("commercial/xmlphoto.xml"); > > > I'm not sure where do I have to put this, it seens easy in flash 8 but in > flex I need quite a help. > > Regards _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com