[flexcoders] Question about RemoveChild
Hi, I want to delete dynamically created buttons. The documentation of Flex says: Removing a child does not delete it, so you can redisplay it later without recreating it. So if RemoveChild doesn't delete them how can i do so? Greetings, Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Global functions
I want to create a Flex application where each part of the application is coded in a seperate mxml file. In the main application mxml i've added a TabNavigator and added a tab for each seperate mxml file. I also created a Functions ActionScript file which contains all functions for my application. In each mxml file i have to use 'import Functions.*' to reach my functions. Also when using an Alert in each file i have to use 'import mx.controls.Alert' in each. Is there a way to only import the needed stuff once, thus in the main mxml file? Does flex have Global Functions and variables? Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem with Matrix
Hi there, I've created a class which extends Image. This class can rotate, scale, flip and mirror the image by using the matrix methods rotate and scale. I want to position an image at a given x and y coordinate. Therefore i use translate method of the matrix. When rotate the image the matrix properties tx and ty are also effected so when using translate to position the image the result is not the same as before rotating. But how can i position my image at given x and y coordinates and keep the current matrix rotation properties? Thanx already, Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Flip and mirror a bitmap in Flex
In IE and Opera i couldn't see a reflection of the image but i did seea reflection when i loaded the demo in Flex Builder ! Richard -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Michael SchmalleSent: Thursday, March 16, 2006 1:54 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flip and mirror a bitmap in Flex Is the image supposed to be reflected also? From the source it looks like it. But, only the text and buttons are reflected.Peace, Mike On 3/15/06, Richie Rich [EMAIL PROTECTED] wrote: Hi Here is a example of what your looking for with sample code I believe. http://humanwasteland.com/reflectdemo/ReflectFilterDemo.html Have Fun, Rich --- In flexcoders@yahoogroups.com, "Richard Schutten" [EMAIL PROTECTED] wrote: Hi there, Are there standard flip and mirror routines that can be applied inFlex 2 for bitmaps? Greetings, Richard --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- What goes up, does come down. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flip and mirror a bitmap in Flex
Hi there, Are there standard flip and mirror routines that can be applied in Flex 2 for bitmaps? Greetings, Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Question about BitmapData max height (Flex)
Hi there, I've created a Animation class which extends Image. When loaded a Timer is created and on each timer event i draw the next state of my source image. Therefore i'm using CopyPixels of BitmapData. This works fine with small images. But i've noticed that i can't use files which height are greater then 2880 pixels. Why does the BitmapData has this strange limit of 2880 pixels? And is there another way to manipulate data of a bitmap? Thanx, Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Error can not resolve a multiname reference unambiguously...
Hi there,I still get the following error: Can not resolve a multiname reference unambiguously. flash.display:Loader(fromframework.swc(mx/controls/loader)) are available. Please take a look at my code:?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" layout="absolute" mx:Script ![CDATA[ import mx.controls.ProgressBar; import mx.controls.Alert; import mx.controls.Image; import flash.events.*; import flash.display.*; private function loadImage(url:String) : void { var myloader:Loader = new Loader(); addEventListeners(myloader); var myprogress:ProgressBar = new ProgressBar(); myprogress.name = 'myprogress'; myprogress.source = myloader; myvbox.addChild(myprogress); var myurlrequest:URLRequest = new URLRequest(url); myloader.load(myurlrequest); } private function addEventListeners(ldr:Loader) : void { ldr.addEventListener(Event.COMPLETE, handleComplete); ldr.addEventListener(IOErrorEvent.IO_ERROR, handleIOError); ldr.addEventListener(HTTPStatusEvent.HTTP_STATUS, handleHTTPStatus); } private function handleComplete(event:Event) : void { var myimage:Image = new Image(); myimage.width = 640; myimage.height = 480; var ldr2:flash.display.Loader = flash.display.Loader(event.target); myimage.load(ldr2.content); myvbox.addChild(myimage); //hide progressbar when image is loaded myvbox.getChildByName('myprogress').visible = false; } private function handleIOError(event:IOErrorEvent) : void { Alert.show('file not found', 'IO error'); } private function handleHTTPStatus(event:HTTPStatusEvent) : void { if (event.status != 200)//200 = HTTP STATUS OK Alert.show('HTTP error: ' + event.status, 'HTTP error'); } ]] /mx:Script mx:Model id="persons" result item id10/id nameRichard/name /item item id20/id nameBas/name /item item id30/id nameDimitry/name /item /result /mx:Model mx:VBox id="myvbox" mx:Button label="load" click="loadImage('http://...')"/ mx:ComboBox id="combo" labelField="name" dataProvider="{persons.result.item}"/ /mx:VBox/mx:Application This results in an error: mx:ComboBox id="combo" labelField="name" dataProvider="{persons.result.item}"/ This too: mx:ComboBox id="combo" labelField="name" dataProvider="{}"/ And this is no problem: mx:ComboBox id="combo" labelField="name" dataProvider=""/ Why? It doesn't make sense to me! Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders]Question about the Loader class
Does someone has a answer for my question, I've a question about the Loader class in Flex 2. I've created a simple project that adds an Image object to a VBox when a button has been clicked. I load the Image with the content of the Loader. I also connected a ProgressBar which shows the progress of bytes loaded. The first time i run the project it works fine. The progressbar is updating when receiving the bytes. The second time i run this project the progressbar is not updating because the image has already been cached by internet explorer. But loading the image takes the same time as when i run my project for the first time. So here's my question: Does the Loader class always downloads the image from the given url, even when the file is cached? Because when i just type in the url in ie the image is directly loaded. Thanx Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Question about error 'Can not resolve a multiname reference...'
Hi there, Why do i get the following error on building the project? Can not resolve a multiname reference unambiguously. flash.display:Loader (...\framework.swc(mx/controls/Loader)) are available. For example: I've used: import mx.controls.Loader; var myLoader:Loader = new Loader(); When i prepend mx.controls. for each Loader the problem is solved. But i thought that when using import mx.controls.Loader i could directly call Loader. Is that correct? Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Bitmap
Hi, I'm having trouble displaying a Bitmap with Flex 2. Just as in the Help documentation i've added the following code: var pictLdr:Loader = new Loader(); var pictURL:String = image.jpg pictLdr.addEventListener(Event.COMPLETE, showPict); var pictURLReq:URLRequest = new URLRequest(pictURL); pictLdr.load(pictURLReq); I also added an event listener COMPLETE. Now i want to add a bitmap to an VBox in my project. function showPic(event:Event) : void { var bmp:Bitmap = new Bitmap(pictLdr.content); vboxImageContainer.addChild(bmp) } I can't get it done. I'm getting the runtime error code 1009 (null has no properties). Good someone help me out! Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Problem with Repeater
Hi Matt, It works for my example, but when i'm using two nested Repeaters i'm in trouble again. See my example code: mx:Model id="test" result item nameItem 1/name subitem nameSubitem 1/name /subitem /item /result /mx:Model mx:ArrayCollection id="testAC" source="{mx.utils.ArrayUtil.toArray(test.item)}"/mx:VBox mx:Repeater id="rep" dataProvider="{testAC}" mx:Label text="{rep.currentItem.name}"/ mx:HBox mx:Repeater id="rep2" dataProvider="{rep.currentItem.subitem}" mx:Label text="{rep2.currentItem.name}"/ /mx:Repeater /mx:HBox /mx:Repeater/mx:VBox The same problem i don't get the subitems only if i use more subitems! Must i use two ArrayCollections? Richard Thanx! -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Matt ChotinSent: Wednesday, February 22, 2006 6:45 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Problem with Repeater You need to use mx.utils.ArrayUtil.toArray().Matt-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of Richard SchuttenSent: Tuesday, February 21, 2006 6:40 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Problem with RepeaterHi there,I'm using Flex 2.0 Beta 1 and having a problem with using a Model asdataProvider for the Repeater.I entered an example code beneath:mx:Model id="test" result itemItem 1/item /result/mx:Modelmx:VBox mx:Repeater id="rep" dataProvider="{test.result.item}" mx:Label text="{rep.currentItem}"/ /mx:Repeater/mx:VBoxWhen the model contains one item, this code will not run. Using moreitemssee code:mx:Model id="test" result itemItem 1/item itemItem 2/item itemItem 3/item /result/mx:ModelAnd it will run correctly!As i read in the documentation the Repeater can be used for one or morecomponents.Does anyone know what's wrong?Greetings,Richard--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Problem with Repeater
Hi there, I'm using Flex 2.0 Beta 1 and having a problem with using a Model as dataProvider for the Repeater. I entered an example code beneath: mx:Model id=test result itemItem 1/item /result /mx:Model mx:VBox mx:Repeater id=rep dataProvider={test.result.item} mx:Label text={rep.currentItem}/ /mx:Repeater /mx:VBox When the model contains one item, this code will not run. Using more items see code: mx:Model id=test result itemItem 1/item itemItem 2/item itemItem 3/item /result /mx:Model And it will run correctly! As i read in the documentation the Repeater can be used for one or more components. Does anyone know what's wrong? Greetings, Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/