[flexcoders] Is there an isset() in Actionscript 3? (Or an exists())
If I have an hash (object) like this: var o:Object = new Object(); o['blahblah']; How do I test if there exists an o['wwwrgwr']? I had a situation where I set something to a string: o['blahblah']='wefwefw'; and then later tried: if (o['blahblah']['something']) { } and I got: Property value not found on String How do I test if there is exists an o['blahblah']['something'] ? thanks -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Flexcoders mail archive?
Do I have the right URL for the flexcoders mail archive? http://www.mail-archive.com/flexcoders@yahoogroups.com/ Or is it just down... I'm looking for a tutorial on building my own Flex 2 components. Widget how-to -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Loading an external swf screws up the layout (f2)
Anyone who tries to use the Loader class to load a large (in pixels) Flash 7/8 swf into a Flex app would probably run into this. But I couldn't find it in the archives... If you load an external Flash 8 swf into a Flex 2 app, with the Loader class, it will spill out of whatever container you put it in. Really looks like a bug. In other words, say you want to load a large (say 1000 pixel) swf file, into an HBox that's 100 px wide. If you put the Loader into a UIComponent, and then put that UIComponent into an HBox, and the width of the swf that you loaded is larger than the width of the HBox, the swf will just spill over the edges of the HBox. And spill over pretty much anything else in the Flex app too, while it's spilling. What do I do here? Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- 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] Can anyone programmatically select an item in a Tree? (f2b3)
Does anyone have code that selects an item in a Tree control? Particularly if the dataProvider for the tree item is an XML object. Setting the selectedItem property doesn't seem to do anything. thanks Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM ~- -- 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] How to programmatically open a Tree item? (f2b3 bug?)
If you make a Tree, and you set it's data to an XML object: var tree:Tree = new Tree(); tree.showRoot=false; tree.labelField=@label; var xml:XML = node node label=Something node label=child one/ node label=another child/ /node /node; tree.dataProvider =xml; How do you programmatically open the Something item? I've tried: tree.expandItem( XML(this._tree.dataProvider).node[0],true); tree.expandItem( XML(XML(this._tree.dataProvider).node[0]),true); tree.expandItem( XML(this._tree.dataProvider).elements('node') ,true); tree.expandItem( XML(this._tree.dataProvider).elements('node').valueOf() ,true); And I've tried tree.invalidateList(); afterwards, doesn't help. This might be a flex bug. Has anyone programmatically selected a tree node *without* using something like tree.selectedItem.parent? Yahoo! Groups Sponsor ~-- Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM ~- -- 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] Re: How up upload a ByteArray to PHP on the server?
Thanks, it's not working, here is what I've tried: var bar:ByteArray; . I put data in the byte array... I've checked the length, it's about 4k var urlu:URLRequest = new URLRequest( 'http://www.mysite.com/fileup.php' ); urlu.data = bar; urlu.method = URLRequestMethod.POST; urlu.requestHeaders = new Array(new URLRequestHeader(Content-Type ,multipart/form-data)); var urll:URLLoader = new URLLoader(); urll.load(urlu); The $_FILES array is empty. I've also tried: var variables:URLVariables = new URLVariables(); variables.Filedata = bar; urlu.data = variables; The $_FILES array is always empty. --- In flexcoders@yahoogroups.com, Luís Gustavo Sanabio [EMAIL PROTECTED] wrote: Hi rigidcode, Send the bytearray using URLLoader with $POST. I think that you need to send the apropriate header. I did it, but I don't remember well. At PHP, use: if(is_uploaded_file($_FILES[Filedata][tmp_name])) $_FILES[Filedata][tmp_name] Gustavo Sanabio 2006/6/6, Tim Scollick [EMAIL PROTECTED]: I might be wrong but I think that if you wanted it in the files array, you would have to: 1. Get the ByteArray. 2. Send it to the server to make the jpg. 3. Load the jpg into Flash. 4. Send it again in the files array. I think it would be easier and more effiicient to send the ByteArray to make the jpeg and then send the other files independently (I'm assuming that you're sending it with other files). On 6/6/06, rigidcode [EMAIL PROTECTED] wrote: If I make a ByteArray of jpeg data, how do I send it to the server in such a way that PHP will have it in it's $_FILES array? If I just set the URLRequest.data property to the ByteArray, then it won't have a filename, or a variable name, to refer to in the php. http://us3.php.net/manual/en/features.file-upload.php Yahoo! Groups Sponsor ~-- You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM ~- -- 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] Re: How up upload a ByteArray to PHP on the server?
No, I'm not sending it with other files. I just want to send this one, a bytearray of a jpg file. How do I do step 2 on your list? If I make a UrlRequest, and set it's data property to my ByteArray, then what will the variable name be in php's $_FILES array? $_FILES['what??'] ? It's not $_FILES['Filedata'], that's blank. That's what it is for a FileReference.upload(), but not for a URLRequest/URLLoader. --- In flexcoders@yahoogroups.com, Tim Scollick [EMAIL PROTECTED] wrote: I might be wrong but I think that if you wanted it in the files array, you would have to: 1. Get the ByteArray. 2. Send it to the server to make the jpg. 3. Load the jpg into Flash. 4. Send it again in the files array. I think it would be easier and more effiicient to send the ByteArray to make the jpeg and then send the other files independently (I'm assuming that you're sending it with other files). On 6/6/06, rigidcode [EMAIL PROTECTED] wrote: If I make a ByteArray of jpeg data, how do I send it to the server in such a way that PHP will have it in it's $_FILES array? If I just set the URLRequest.data property to the ByteArray, then it won't have a filename, or a variable name, to refer to in the php. http://us3.php.net/manual/en/features.file-upload.php Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM ~- -- 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] How up upload a ByteArray to PHP on the server?
If I make a ByteArray of jpeg data, how do I send it to the server in such a way that PHP will have it in it's $_FILES array? If I just set the URLRequest.data property to the ByteArray, then it won't have a filename, or a variable name, to refer to in the php. http://us3.php.net/manual/en/features.file-upload.php Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM ~- -- 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] Convert a Bitmap into an Image? Flex 2
I made a Bitmap programatically in Flex. How do I display it as an Image. I know I can display it as a Bitmap if I put it into a UIComponent, but if I do, I can't get events on it like mouse over, etc. I want to use the Image uicomponent. Also, when I send my BitmapData byte array to the server in a UrlReuest, what format will it be when the server gets it? A windows .bmp file? -- 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] Save a BitMap to the server as a jpg? flex2
If I create a BitMap (or BitMapData) in Flex, how can I save it to the server as a jpg? thank you. rc -- 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] Re: Custom DataGrid Column (flex 2b3)
Oh I see, I thought that I had to make an itemrenderer for the DataGrid object, I didn't know that DataGridColumn also had an itemrenderer property. Thanks --- In flexcoders@yahoogroups.com, Joan Tan [EMAIL PROTECTED] wrote: If you want a button for one column of a DataGrid, you can do something like To use just the default drop-in button: mx:DataGridColumn itemRenderer=mx.controls.Button ... Or, you can create a custom component that subclasses the Button class so that you can define what type of events happen when you click the button. (This is probably more likely). So, you would then have something like: mx:DataGridColumn itemRenderer=MyButton ... where MyButton.as looks something like - public class MyButton extends Button { ... } I hope this helps. Joan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rigidcode Sent: Tuesday, May 23, 2006 2:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom DataGrid Column (flex 2b3) I have a DataGrid. I want one of the columns to contain a button. It looks like I'm supposted to make an object that implements IDropinListItemRenderer right? I started doing that, but with that I'm responsible for not only rendering my one column- I have to render every column? Even the title columns. I don't want to do all that, I want to use the defaults for that stuff, I only want to change one column. Am I doing this right? thanks -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- 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] Custom DataGrid Column (flex 2b3)
I have a DataGrid. I want one of the columns to contain a button. It looks like I'm supposted to make an object that implements IDropinListItemRenderer right? I started doing that, but with that I'm responsible for not only rendering my one column- I have to render every column? Even the title columns. I don't want to do all that, I want to use the defaults for that stuff, I only want to change one column. Am I doing this right? thanks -- 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] Capture a DisplayObject or UIComponent as a jpg? flex2b3
Can I (programmatically) get a jpg or bitmap of a DisplayObject or a UIComponent as it looks in the browser? Like as a bitmap or jpg or something. What I really want to do is capture frames of an FLV, but I figure I could do it if I could make a VideoDisplay and capture it's appearance. Anyone? -- 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] Screen capture of an FLV file?
I want to programatically make screen captures of a video (flv file). Like, a screen cap of the video at 5 seconds into playback, another at 1 minute, another at 5 minutes... I can't find this in the api. It's gotta be in there somewhere right? -- 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 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] How to bind to something programatically (not in MXML)?
How do you bind TO something via Actionscript 3, not MXML? All of the documentation on how to bind to something uses the {} stuff or the mx:Binding tag, it's very frustrating. How do you do that in Actionscript? -- 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] How can I sort a hash in Actionscript?
If I have an Object (there's no hash class in Actionscript 3 right??), is there a way to sort it according to one of it's member's properties? For example: var o:Object = new Object(); o['something'] = new Thing(); Thing(o['something']).order= 20; o['another'] = new Thing(); Thing(o['another']).order= 10; o['somethingelse'] = new Thing(); Thing(o['somethingelse']).order= 30; I want to loop through o, in the order of it's member's order property. I can do this in java and perl and php, but actionscript (unbelivably) has no Hash object, right? And Object doesn't implement ICollectionView. Is there anything else I can do here using the API? thanks -- 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] Re: Has anyone successfully put one TabNavigator inside another? (Flex 2)
Hi Graham, thanks, I actually asked the poster of that code if it was throwing an exception for him too. It's not throwing an error for you, then? Actually hmm, it looks like I'm not the only one gettng the exception: http://groups.yahoo.com/group/flexcoders/message/35334 I'll try that solution... --- In flexcoders@yahoogroups.com, Graham Weldon [EMAIL PROTECTED] wrote: Hi rigidcode, The following code works fine, and is the solution ot your previous post about using TabNavigators in ActionScript: --- package NestedTabs { import mx.containers.Canvas; import mx.containers.TabNavigator; import mx.events.FlexEvent; import mx.controls.Label; import flash.system.Security; public class NestedTabs extends Canvas { private var tn1 : TabNavigator; private var tn2 : TabNavigator; private var tn1tab1 : Canvas; private var tn1tab2 : Canvas; private var tn2tab1 : Canvas; private var tn2tab2 : Canvas; public function NestedTabs() : void { super(); // Fire the __onCreationComplete event when the component has been created. this.addEventListener(FlexEvent.CREATION_COMPLETE, __onCreationComplete); Security.allowDomain(new Array(10.5.0.56)); } private function __onCreationComplete(_event : FlexEvent) : void { var tn1 : TabNavigator = new TabNavigator(); tn1.percentHeight = 100; tn1.percentWidth = 100; var tn1tab1 : Canvas = new Canvas(); tn1tab1.label = Welcome; tn1.addChild(tn1tab1); var tn1tab2 : Canvas = new Canvas(); tn1tab2.label=Hello; tn1.addChild(tn1tab2); var tn2 : TabNavigator = new TabNavigator(); tn2.percentHeight = 100; tn2.percentWidth = 100; var tn2tab1 : Canvas = new Canvas(); tn2tab1.label = wefwe; tn2.addChild(tn2tab1); var tn2tab2 : Canvas = new Canvas(); tn2tab2.label = wefwe333; tn2.addChild(tn2tab2); tn1tab1.addChild(tn2); this.addChild(tn1); this.setVisible(true); } } } --- Regards, Graham Weldon rigidcode wrote: In Flex 2, has anyone put a TabNavigator onto the Canvas of a tab of another TabNavigator (in Actionscript, not mxml)? Without a fatal exception being thrown when you change tabs on either TabNavigator? I don't find anyone else with this problem when I search. It seems like something a lot of people would run into, if they use more than one tabnavigator in the same app.. -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- 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
[flexcoders] Re: NestingTabNavigators will cause an exception. (Flex 2 bug?)
Thanks very much for making that but it throws the same exception when I click on any tabs. I used your code verbatim, here's my mxml file that loads it: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* creationComplete=initApplication() mx:Script ![CDATA[ import NestedTabs.NestedTabs; public function initApplication():void { var ntn:NestedTabs = new NestedTabs(); this.addChild(ntn); } ]] /mx:Script /mx:Application Does the error happen to you when you try it? --- In flexcoders@yahoogroups.com, oca_gw [EMAIL PROTECTED] wrote: Hi rigidcode, Here is an ActionScript class that you can use. It will need to be changed to meet your needs, but it is based off the code you posted, and should be reasonably self-explainatory. The NestedTabs class is extending Canvas, so that you can assign a size for the whole lot, and they will take 100% in both dimensions for what they are assigned. Let me know how you go with this. package NestedTabs { import mx.containers.Canvas; import mx.containers.TabNavigator; import mx.events.FlexEvent; import mx.controls.Label; public class NestedTabs extends Canvas { private var tn1 : TabNavigator; private var tn2 : TabNavigator; private var tn1tab1 : Canvas; private var tn1tab2 : Canvas; private var tn2tab1 : Canvas; private var tn2tab2 : Canvas; public function NestedTabs() : void { super(); // Fire the __onCreationComplete event when the component has been created. this.addEventListener(FlexEvent.CREATION_COMPLETE, __onCreationComplete); } private function __onCreationComplete(_event : FlexEvent) : void { var tn1 : TabNavigator = new TabNavigator(); tn1.percentHeight = 100; tn1.percentWidth = 100; var tn1tab1 : Canvas = new Canvas(); tn1tab1.label = Welcome; tn1.addChild(tn1tab1); var tn1tab2 : Canvas = new Canvas(); tn1tab2.label=Hello; tn1.addChild(tn1tab2); var tn2 : TabNavigator = new TabNavigator(); tn2.percentHeight = 100; tn2.percentWidth = 100; var tn2tab1 : Canvas = new Canvas(); tn2tab1.label = wefwe; tn2.addChild(tn2tab1); var tn2tab2 : Canvas = new Canvas(); tn2tab2.label = wefwe333; tn2.addChild(tn2tab2); tn1tab1.addChild(tn2); this.addChild(tn1); this.setVisible(true); } } } Regards, Graham Weldon Web Development Manager Object Connections --- In flexcoders@yahoogroups.com, rigidcode twonests@ wrote: I'm trying to make nested TabNavigators in Actionscript (NOT in mxml). Just two- an outer TabNavigator and, on one of it's tab's canvas's, an inner one. Sounds simple right? I reduced it to a smaller reproducable version of the error, here is what I'm doing in my Application: var t:TabNavigator = new TabNavigator(); t.width=800; t.height=600; t.creationPolicy='all'; //tried this to fix var tab1:Canvas = new Canvas(); tab1.label='Welcome'; t.addChild(tab1); var tab2:Canvas = new Canvas(); tab2.label='Hello'; t.addChild(tab2); var tn2:TabNavigator = new TabNavigator(); tn2.creationPolicy='all'; var tn2tab1:Canvas = new Canvas(); tn2tab1.label='wefwe'; tn2.addChild(tn2tab1); var tn2tab2:Canvas = new Canvas(); tn2tab2.label='wefwe333'; tn2.addChild(tn2tab2); tab1.addChild(tn2); this.addChild(t); The tabs display fine initially, and then here is the exception I get when I click on any tab (either on the inner tabnavigator or the outer one): TypeError: Error #1009: null has no properties. at mx.managers::HistoryManager$/save()[C:\dev\beta2\sdk\frameworks\mx\managers\HistoryManager.as:554] at mx.containers::ViewStack/mx.containers:ViewStack::commitSelectedIndex()[C:\dev\beta2\sdk\frameworks\mx\containers\ViewStack.as:1052] at mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()[C:\dev\beta2\sdk\frameworks\mx\containers\ViewStack.as:620] at mx.containers::TabNavigator/mx.containers:TabNavigator::commitProperties()[C:\dev\beta2\sdk\frameworks\mx\containers\TabNavigator.as:325] at mx.core::UIComponent/validateProperties()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:5007] at mx.managers::LayoutManager/validateProperties()[C:\dev\beta2\sdk\frameworks\mx\managers\LayoutManager.as:496] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\beta2\sdk\frameworks\mx\managers\LayoutManager.as:635] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:7379] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:7322] at mx.core::UIComponent/setFocus()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:5814] at mx.managers::FocusManager/setFocus()[C:\dev\beta2\sdk
[flexcoders] Mutiline LinkButton? (Flex 2)
Can I make a LinkButton that line wraps rather than pushing out the Box it's in (or doing an ellipsis), if it's text is too wide? In other words, the behavior you'd expect if it was an html hyperlink... Also, can I do hypertext in Flex? Like, a text field with some of the words as hyperlinks? And can I trap events when those links are clicked? -- 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] Re: Mutiline LinkButton? (Flex 2)
--- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 4/30/06, rigidcode [EMAIL PROTECTED] wrote: Try grabbing the internal TextField object and setting its word-wrapping on (I've lost track of how to do this myself). Yea I tried that but the textField of the LinkButton is always null. Is that a bug in the Flex 2 API? If so is there any way, at all, to do multiline hyperlinks in flex? Also, can I do hypertext in Flex? Like, a text field with some of the words as hyperlinks? And can I trap events when those links are clicked? Listen for the 'click' event and call 'navigateToURL' in the handler. If I have a a href style link in a Text object, how do I sink it's the click event? -- 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] NestingTabNavigators will cause an exception. (Flex 2 bug?)
I'm trying to make nested TabNavigators in Actionscript (NOT in mxml). Just two- an outer TabNavigator and, on one of it's tab's canvas's, an inner one. Sounds simple right? I reduced it to a smaller reproducable version of the error, here is what I'm doing in my Application: var t:TabNavigator = new TabNavigator(); t.width=800; t.height=600; t.creationPolicy='all'; //tried this to fix var tab1:Canvas = new Canvas(); tab1.label='Welcome'; t.addChild(tab1); var tab2:Canvas = new Canvas(); tab2.label='Hello'; t.addChild(tab2); var tn2:TabNavigator = new TabNavigator(); tn2.creationPolicy='all'; var tn2tab1:Canvas = new Canvas(); tn2tab1.label='wefwe'; tn2.addChild(tn2tab1); var tn2tab2:Canvas = new Canvas(); tn2tab2.label='wefwe333'; tn2.addChild(tn2tab2); tab1.addChild(tn2); this.addChild(t); The tabs display fine initially, and then here is the exception I get when I click on any tab (either on the inner tabnavigator or the outer one): TypeError: Error #1009: null has no properties. at mx.managers::HistoryManager$/save()[C:\dev\beta2\sdk\frameworks\mx\managers\HistoryManager.as:554] at mx.containers::ViewStack/mx.containers:ViewStack::commitSelectedIndex()[C:\dev\beta2\sdk\frameworks\mx\containers\ViewStack.as:1052] at mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()[C:\dev\beta2\sdk\frameworks\mx\containers\ViewStack.as:620] at mx.containers::TabNavigator/mx.containers:TabNavigator::commitProperties()[C:\dev\beta2\sdk\frameworks\mx\containers\TabNavigator.as:325] at mx.core::UIComponent/validateProperties()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:5007] at mx.managers::LayoutManager/validateProperties()[C:\dev\beta2\sdk\frameworks\mx\managers\LayoutManager.as:496] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\beta2\sdk\frameworks\mx\managers\LayoutManager.as:635] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:7379] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:7322] at mx.core::UIComponent/setFocus()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:5814] at mx.managers::FocusManager/setFocus()[C:\dev\beta2\sdk\frameworks\mx\managers\FocusManager.as:375] at mx.managers::FocusManager/mx.managers:FocusManager::mouseDownHandler()[C:\dev\beta2\sdk\frameworks\mx\managers\FocusManager.as:1164] Is this a bug in Flex 2? -- 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] Flex 2: How do I make a List that has different heights?
If you make a List control, and you put some options in it, and one of your options is long and happens to wrap, it doesn't wrap the text! It just cuts off the end of the text. How do I make it wrap?? I even tried making a custom IDropInListItemRenderer. If I set the height differently for some but not for others, then the highlighting gets messed up. Apparently the size of the blue highlighter bar has to be the same for all??! Am I the only one with this problem? Anyone else made a List with a long text entry? -- 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] How to programmatically make a custom ListItemRender?
I'm trying to make a custom ListItemRenderer in Actionscript. I was able to make it display the list correctly, but when I click on anything in the list, I get this error: TypeError: Error #1009: null has no properties. at mx.controls::List/drawItem()[C:\dev\beta2\sdk\frameworks\mx\controls\List.as:1416] at mx.controls.listClasses::ListBase/selectItem()[C:\dev\beta2\sdk\frameworks\mx\controls\listClasses\ListBase.as:2907] at mx.controls.listClasses::ListBase/mouseDownHandler()[C:\dev\beta2\sdk\frameworks\mx\controls\listClasses\ListBase.as:4369] at mx.controls::List/mouseDownHandler()[C:\dev\beta2\sdk\frameworks\mx\controls\List.as:1801] Every function in that call stack is not in the documentation. My hello worldish custom listitemrenderer so far is: public class CustomItemRenderer extends HBox implements IFactory, IListItemRenderer { public var thelabel:Label; public function CustomItemRenderer() { super(); this.thelabel=new Label(); this.thelabel.percentWidth=100; this.addChild(this.thelabel); } public function newInstance():* { return new CustomItemRenderer(); } public override function get data():Object { return super.data; } public override function set data(value:Object):void { this.thelabel.text=value['label']; super.data=""> dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); } } I also tried with IDropInListItemRenderer, and I get the same error. Here is my instantiation. var mylist:List = new List(); mylist.dataProvider=this.myarraycollection; mylist.itemRenderer=new CustomItemRenderer(); -- 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.