RE: [flexcoders] Re: Gets arrange items in ArrayCollection?
Arraycollection.source.slice() From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Saturday, November 03, 2007 10:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Gets arrange items in ArrayCollection? Thanks for your reply Alex, slice is only in Array, but couldn't be used in ArrayCollection class. Would you please show me how to use it in ArrayCollection? ===the code doesn't work in this case var myData:ArrayCollection myData.slice() Cheers --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: source.slice(). See array.slice() for documentation. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of flexawesome Sent: Saturday, November 03, 2007 10:22 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Gets arrange items in ArrayCollection? Hey there, Is there a way to get arrange items in ArrayCollection? ( like substr ) for example: var myData:ArryCollection it contents 10 *items* I can get entire list of myData, but I only need index 2 - 7, kick out 0,1,8,9,10. Cheers
[flexcoders] FB standalone and plugins
Flex AS3 development would be the only projects I'd be working on so I've installed the standalone version. I've been able to install a couple plugins so I understand at least _part of that process. I'm looking for a better understanding of what bridges are burned (extensibility-wise) by not installing Flex as a plugin to Exclipse. thx --steve...
Re: [flexcoders] Re: remove a item in ArrayCollection
I've no problem with the e4x suggestion, though the debugger says: event.result.sites.site = mx.collections.ArrayCollection (@3ad1a51) so the data should be in the right format (as far as the original question is concerned). - Original Message - From: AJ Seelund [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, November 04, 2007 2:57 AM Subject: Re: [flexcoders] Re: remove a item in ArrayCollection change the result format in your http service to e4x flexawesome wrote: ya, it shows [object] [object] in deugger window. it looks I can use removeItemAt to remove the object, but it doesn;t work -_- Cheers --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, simonjpalmer [EMAIL PROTECTED] wrote: you are assigning event.result.sites.site to myData which you have declared as an ArrayCollection. What makes you think event.result.sites.site is an ArrayCollection? Have you inspected event.result.sites.site in the debugger? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, flexawesome flexawesome@ wrote: here is my completed code... I am going to remove the first site of *adobe* in xml this seems doesn't in this case, any suggestion? Thanks myData.removeItemAt(myData.getItemAt(0)); == need to remove this part out from ArrayCollection == site labelADOBE/label totals500/totals doc_urlwww.adobe.com/doc_url /site === Code from here.. Main MXML File ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute creationComplete=dataServices.send() mx:Script ![CDATA[ import mx.events.*; import mx.rpc.events.*; import mx.collections.*; import mx.controls.*; [Bindable] private var myData:ArrayCollection; private function resultHandler(event:ResultEvent):void { myData = event.result.sites.site; } ]] /mx:Script mx:HTTPService id=dataServices url=myXML.xml resultFormat=object result=resultHandler(event)/ /mx:Application myXML.xml = ?xml version = 1.0 encoding=utf-8? sites site labelADOBE/label totals500/totals doc_urlwww.adobe.com/doc_url /site site labelGOOGLE/label totals300/totals doc_urlwww.google.com/doc_url /site sites === --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Paul Andrews paul@ wrote: There shouldn't be a problem with Simons suggestion. Post your code. The message seems to suggest you didn't declare myData as an ArrayCollection, but your original code did. Hmm.. Paul - Original Message - From: flexawesome flexawesome@ To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Sunday, November 04, 2007 1:29 AM Subject: [flexcoders] Re: remove a item in ArrayCollection hummm I got this error msg: === Severity and Description Path Resource Location Creation Time Id 1118: Implicit coercion of a value with static type Object to a possibly unrelated type mx.collections:ArrayCollection. test.mxml line 69 1194139654331 151789 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, simonjpalmer simonjpalmer@ wrote: how about myData.removeItemAt(0)? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, flexawesome flexawesome@ wrote: Hey there, I have a problem to remove the first *object* in myData, any suggestion? Thank you === [Bindable] private var myData:ArrayCollection; myData.removeItemAt(myData.getItemAt(0)); -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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 Yahoo! Groups Links
Re: [flexcoders] Re: remove a item in ArrayCollection
try event.result.site instead of event.result.sites.site i usually use myXMLListCollection.source = myHttpService.lastResult.myNode and that works. Paul Andrews wrote: I've no problem with the e4x suggestion, though the debugger says: event.result.sites.site = mx.collections.ArrayCollection (@3ad1a51) so the data should be in the right format (as far as the original question is concerned). - Original Message - From: AJ Seelund [EMAIL PROTECTED] mailto:aj%40jetcharters.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Sunday, November 04, 2007 2:57 AM Subject: Re: [flexcoders] Re: remove a item in ArrayCollection change the result format in your http service to e4x flexawesome wrote: ya, it shows [object] [object] in deugger window. it looks I can use removeItemAt to remove the object, but it doesn;t work -_- Cheers --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, simonjpalmer [EMAIL PROTECTED] wrote: you are assigning event.result.sites.site to myData which you have declared as an ArrayCollection. What makes you think event.result.sites.site is an ArrayCollection? Have you inspected event.result.sites.site in the debugger? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, flexawesome flexawesome@ wrote: here is my completed code... I am going to remove the first site of *adobe* in xml this seems doesn't in this case, any suggestion? Thanks myData.removeItemAt(myData.getItemAt(0)); == need to remove this part out from ArrayCollection == site labelADOBE/label totals500/totals doc_urlwww.adobe.com/doc_url /site === Code from here.. Main MXML File ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute creationComplete=dataServices.send() mx:Script ![CDATA[ import mx.events.*; import mx.rpc.events.*; import mx.collections.*; import mx.controls.*; [Bindable] private var myData:ArrayCollection; private function resultHandler(event:ResultEvent):void { myData = event.result.sites.site; } ]] /mx:Script mx:HTTPService id=dataServices url=myXML.xml resultFormat=object result=resultHandler(event)/ /mx:Application myXML.xml = ?xml version = 1.0 encoding=utf-8? sites site labelADOBE/label totals500/totals doc_urlwww.adobe.com/doc_url /site site labelGOOGLE/label totals300/totals doc_urlwww.google.com/doc_url /site sites === --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Paul Andrews paul@ wrote: There shouldn't be a problem with Simons suggestion. Post your code. The message seems to suggest you didn't declare myData as an ArrayCollection, but your original code did. Hmm.. Paul - Original Message - From: flexawesome flexawesome@ To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Sunday, November 04, 2007 1:29 AM Subject: [flexcoders] Re: remove a item in ArrayCollection hummm I got this error msg: === Severity and Description Path Resource Location Creation Time Id 1118: Implicit coercion of a value with static type Object to a possibly unrelated type mx.collections:ArrayCollection. test.mxml line 69 1194139654331 151789 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, simonjpalmer simonjpalmer@ wrote: how about myData.removeItemAt(0)? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, flexawesome flexawesome@ wrote: Hey there, I have a problem to remove the first *object* in myData, any suggestion? Thank you === [Bindable] private var myData:ArrayCollection; myData.removeItemAt(myData.getItemAt(0)); -- Flexcoders Mailing List FAQ:
[flexcoders] Re: Is it possible to save an FLV to a Shared Local Object and open it later ?
I guess the answer is that you can't save an FLV or SWF to a Shared Local Object ? :( Regards, Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Does anyone know how ( if possible ) to save an FLV or Image to the shared local object ( SOL ) and than open it later on for use by the Video Class ? I am trying to build my own Cache system and since Flash can not access the file system my only option is to use the SOL. ( can't use Appolo for this project ). I would imagine one would need to use the ByteArray class but I have no idea where to begin ... If someone has an example that would be GREAT !!! Thank you, Sean.
[flexcoders] How to detect a *piece* of pie be clicked in Pie Chart?
Hey there, I am working on pie chart( loads data from xml file), is there a way to click a piece of Pie chart to open a new window? I can show the following data in pie chart by using flex charting components. but I would like to allow user to click any piece to load the site in a new window. Does anybody know how to detect which piece of pie be clicked? if so I can use urlrequest to open the site. Thanks === xml file = sites site nameyahoo.com/name data120/description urlwww.yahoo.com/url /site site namegoogle.com/name data90/description urlwww.google.com/url /site site namemsn.com/name data150/description urlwww.msn.com/url /site /sites ==
[flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid
I try to use SuperImage but I couldn't get it to work as an itemRenderer. If there's any other way besides using SuperImage, I am all ears. --- In flexcoders@yahoogroups.com, handitan [EMAIL PROTECTED] wrote: Oh boy... you're the last person I expect to say that :( *sigh* I will checkout the website. Thx for the info. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Printing images is hard because image loading is asynchronous. Check out SuperImage on quietlyscheming.com. It may help. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of handitan Sent: Tuesday, October 23, 2007 3:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid Hi, I have an interesting problem here. FYI, I have searched through the forum, and reading the docs but I still couldn't find the solution. I think I do know what's the problem. Here's the situation: I have a datagrid with 3 columns. One of the columns has an itemRenderer that will display an image. This itemRenderer loads the images in REAL-TIME --- this is important for the issue that I am going to point out. The image got displayed when I run the app ,and when I print the dataGrid by having it as a child of FlexPrintJob object will also print out the image. Now here comes the problem: As you all know, it's better to use PrintDataGrid for optimization, well-formatted output, yada yada So I include PrintDataGrid in my print function, assigning it with the neccessary dataProvider and columns, here's the example: - printView.thePrintDataGrid.dataProvider = dataGridSource.dataProvider; printView.thePrintDataGrid.columns = dataGridSource.columns; - And then add printView to the FlexPrintJob obj as its child: - printJob.addObject(printView); - After that, I ask the dataGrid to be printed again and the image won't be printed out. So after quite long investigation, I found out that the images don't get displayed because thePrintDataGrid doesn't have enough time to load the images. If I embed the image in compile-time using @Embed yada..yada..., the image will be printed but I don't want it to be in compile-time. Please enlighten this grasshopper. So
Re: [flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid
Display the images as bitmapdata in the itemrenderer. So rather than passing the image url to the itemrenderer, load the image upfront, transform into bitmapdata and pass that on to the itemrenderer. Haven't tried it, but think it should work. regards, Muzak - Original Message - From: handitan [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, November 05, 2007 12:16 AM Subject: [flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid I try to use SuperImage but I couldn't get it to work as an itemRenderer. If there's any other way besides using SuperImage, I am all ears. -- 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] is this a bug? - filter problems - sample app
Is this a flex bug? Run the simple app below, it contains 2 panels with text fields and combo boxes inside each. One panel has a custom drop shadow filter, the other has a normal panel drop shadow. You will notice, if you select the text in the textInput in the panel with the custom filter, the text highlight color is grey. You might also notice all the text in the custom drop shadow panel is weaker looking, even in the comboBox. Other problem, if you change the css for the combo box so that the letterSpacing is greater than zero (0), you will notice that the text in the comboBox inside the panel with the custom filter disappears. To be honest, I can't fathom how something as simple as a dropShadow filter on a panel can cause all these problems. I am starting to wonder if half the time I am chasing problems I have no control over. If anyone can offer an insight, it would be greatly appreciated. Thanks in advance, ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import flash.filters.*; // Application window Drop Shadows private function appDropShadow():DropShadowFilter { var distance:Number = 1; var angle:Number = 90; var color:Number = 0x00; var alpha:Number = 1; var blurX:Number = 10; var blurY:Number = 10; var strength:Number = 0.45; var quality:Number = BitmapFilterQuality.LOW; var inner:Boolean = false; var knockout:Boolean = false; return new DropShadowFilter(distance, angle, color, alpha, blurX, blurY, strength, quality, inner, knockout); } [Bindable] public var CBData:Array = [ {label:'One', data:1}, {label:'Two', data:2}, {label:'Three', data:3} ]; ]] /mx:Script mx:Style Panel{ backgroundColor:#fff; headerHeight:0; borderThicknessTop:1; borderThicknessRight:1; borderThicknessBottom:1; borderThicknessLeft:1; borderStyle:solid; cornerRadius:5; roundedBottomCorners:true; dropShadowEnabled:false; } ComboBox{ cornerRadius: 12; paddingLeft: 5; paddingRight: 3; paddingTop: 0; paddingBottom: 0; letterSpacing:0; highlightAlphas: 1, 0; fillAlphas: 1, 1, 1, 1; fillColors: #ff, #cc, #ff, #ff; color: #33; borderColor: #dd; borderAlpha:1; fontWeight: normal; } /mx:Style mx:Panel width=200 height=200 y=30 x=20 filters={[appDropShadow()]} dropShadowEnabled=false mx:Label text=Custom Drop Shadow w/ Filter/ mx:TextInput text=tester/ mx:ComboBox dataProvider={CBData}/ /mx:Panel mx:Panel width=200 height=200 y=30 x=270 dropShadowEnabled=true mx:Label text=Normal Panel Drop Shadow/ mx:TextInput text=tester/ mx:ComboBox dataProvider={CBData}/ /mx:Panel /mx:Application
[flexcoders] Re: How to detect a *piece* of pie be clicked in Pie Chart?
any suggestions? thanks --- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hey there, I am working on pie chart( loads data from xml file), is there a way to click a piece of Pie chart to open a new window? I can show the following data in pie chart by using flex charting components. but I would like to allow user to click any piece to load the site in a new window. Does anybody know how to detect which piece of pie be clicked? if so I can use urlrequest to open the site. Thanks === xml file = sites site nameyahoo.com/name data120/description urlwww.yahoo.com/url /site site namegoogle.com/name data90/description urlwww.google.com/url /site site namemsn.com/name data150/description urlwww.msn.com/url /site /sites ==
[flexcoders] Is it possible to set a different framerate for a MovieClip?
i.e. I have a MovieClip in my MXML, can I set it to use a framerate different from the one used in mx:Application? If it matters, I plan to do this for a MovieClip objected exported from Flash CS3 using the Component Kit. Thanks, Roy