RE: [flexcoders] Flex is quite flakey (spurious errors!)
Are you using modules? This looks like an ApplicationDomain problem. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:18 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem I don't even know what to say about this... Mark
[flexcoders] Flex is quite flakey (spurious errors!)
Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem I don't even know what to say about this... Mark
[flexcoders] Re: Integrate ANT script with the Flex Builder debug (F11) key [bump]
On 11/1/07, superabe superabe [EMAIL PROTECTED] wrote: I use ant buildfiles for my Flex projects. A typical application would usually involve an ant script that builds a few lib swcs and then finally builds the swf. I'd like to integrate this as part of the Flex Builder IDE, meaning when I hit F11 (the debug key) I'd like Flex Builder to run my ant script and then launch the specified file (swf or html wrapper page) and invoke the debugger if required. I think I can do part of this by specifying the ANT script as a builder, but I cannot see an easy way to invoke the debugger on the swf/html wrapper. Is there an easy way to set this up ? TIA -superabe
RE: [flexcoders] Flex is quite flakey (spurious errors!)
Ok, and do you use modules? Did you try a clean in FB? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) As in, I've closed the browser then relaunched it via Flex Builder. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) What do you mean by I've loaded my application again? Did you reload a module or did you refresh the browser? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem I don't even know what to say about this... Mark
RE: [flexcoders] Flex is quite flakey (spurious errors!)
What do you mean by I've loaded my application again? Did you reload a module or did you refresh the browser? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem I don't even know what to say about this... Mark
[flexcoders] Help--Volume Control
hi..hw to control volume using Hslider...explain with som examples... regards stephen __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Flex/ActionScript wrapper for Pownce API
Hi all, there is a wrapper for the new Pownce API http://blog.pownce.com/2007/10/30/pownce-public-api/ available. This is an alpha release, so work on it is still needed, but it should already be able to handle most of the request options. Read more about the wrapper here http:// .
[flexcoders] Q: Issues generating AS proxy classes from WSDL
I'm having trouble Importing a Web Service using the WSDL wizard. I've followed the recommendations in http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=651threadid=1303339highlight_key=ykeyword1=WSDL but still am unable to generated the Proxy code I need. The WSDL in question (along with the xsd files) are contained in the following archive. http://www.identityconcepts.com.au/files/GW7SP2.zip Hopefully someone can offer any assistance ! (Happy to have someone with a newer build generate the proxy stubs :) ) Sincerely, Adam
RE: [flexcoders] Flex is quite flakey (spurious errors!)
I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem I don't even know what to say about this... Mark
Re: [flexcoders] Wrapper .svn copies BUG!
I mean FlexBuilder on windows is eclipse 3.1 and subclipse requires 3.2. On Nov 2, 2007, at 9:13 AM, Samuel R. Neff wrote: What do you mean Subclipse doesn't work with Flex Builder? Our whole team uses Flex Builder and Subclipse without problems (some use FB standalone, some use plugin version of FB). Sam -- We’re Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Decoursey Sent: Friday, November 02, 2007 9:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Wrapper .svn copies BUG! Subclipse doesn't work with Flex Builder, and I wouldn't use Eclipse for anything else. I'll check it out though. I do think all these suggestions are nice, but they all just ignore the real problem, there is an issue with FlexBuilder and it should be resolved, not worked around. Paul
[flexcoders] Charting: adjust y-axis range automatically when changing x-axis range
Hi, I have a stock market line chart with a CategoryAxis (representing dates) along the bottom and a LinearAxis up the side. My chart has the option of adjusting the date range, which is done by switching the category data provider for the x-axis, but keeping the actual line series data provider the same. However, when I change the x-axis range, the y-axis range remains unchanged, as the min and max are being determined from the entire series data provider. How can I adjust the y-axis range to match only what is currently visible on the graph? Thanks, Iain
RE: [flexcoders] Re: Prevent Mouse events
We do this by setting a flag when we dispatch the faked event so the blocking handler doesn't block. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of workmichal Sent: Friday, November 02, 2007 7:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Prevent Mouse events Thanks guys, the idea behind this is to control the app by simply dispatching events. so for example i can initiate drag and drop between grids by dispatching mouse down and mouse move events, however the problem is that when i start moving a mouse than manual events are in conflict with actual mouse events. The only thing that comes to my mind which would address this would be to temporarily disconnect default application(systemManager) mouse listeners or to actually associate mouse cursor with manual event, however i was not able to figure out how to implement any of these. Any ideas are appreciated. Thanks, --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Daniel Freiman [EMAIL PROTECTED] wrote: This method intercepts right mouse clicks using javascript, so it should be adaptable for left/all mouse clicks. Although I have to agree with Alex, I other than right mouse clicks, I can't think of a situation where this wouldn't be overkill. http://code.google.com/p/custom-context-menu/ http://code.google.com/p/custom-context-menu/ - Dan Freiman On 11/2/07, Alex Harui [EMAIL PROTECTED] wrote: Why do you have to be that bulletproof? You'd probably have to find a way to block the events from the OS going to the plug-in in the browser. -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *workmichal *Sent:* Thursday, November 01, 2007 1:52 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Re: Prevent Mouse events Hi, thanks for your input; however, this is not a solution that I am looking for since for example mouse event will still fire, or click event on the shield will still occur. What I am looking for is to disconnect mouse events from the flex app so that none of the events would ever dispatched. Thanks, --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: stopImmediatePropagation, or place a transparent 'shield' over the app. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of workmichal Sent: Thursday, November 01, 2007 10:02 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Prevent Mouse events Hi there, I am trying to prevent my Flex application from capturing any mouse events within the app. I tried mouseChildren, mouseEnabled but my application is still receiving events like mouse move. Is there a way to disable and enable participation of the mouse within the Flex app? Thank you
[flexcoders] Re: Flex 2.0.1: Calling all Flex Masters for this interesting printing format issue
Does anyone have any ideas/suggestions to tackle this printing issue? I hope my explanation was clear enough. Thank you for reading. --- In flexcoders@yahoogroups.com, handitan [EMAIL PROTECTED] wrote: I have been trying to solve this issue for days but still couldn't find the right solution. I am going to make as simple as I can about the issue. Here's the situation: I have this DataGrid mx:DataGrid id=myDataGrid width=100% height=100% mx:columns mx:DataGridColumn headerText=FirstName dataField=fName itemRenderer=Renderer.NameRenderer/ mx:DataGridColumn headerText=LastName dataField=lName itemRenderer=Renderer.NameRenderer/ /mx:columns /mx:DataGrid === Now here's the NameRenderer's definition: mx:HBox width=100% horizontalAlign=left verticalAlign=middle mx:Script ![CDATA[ override public function set data(value:Object):void { super.data = value; if (value != null) { myLabel.text = value; } ]] /mx:Script !-- Remember the font size please. It relates to the issue- - mx:Label id=myLabel fontSize=14 /mx:HBox == Now, the grid displays fine in my flex app. Then I added a functionality to be able to print the grid using almost exactly the same like in this example: http://livedocs.adobe.com/flex/2/langref/mx/printing/PrintDataGrid.htm l#includeExamplesSummary with the following exceptions: - My FormPrintView doesn't have the all of the mx:columns stuffs in PrintDataGrid. - Inside my doPrint() (this is in PrintDataGridExample section) under thePrintView.myDataGrid.dataProvider = myDataGrid.dataProvider statement, I add this: thePrintView.myDataGrid.columns = myDataGrid.columns; == Now when I print it out, everything is working fine and dandy (good job Flex team!). Then one day, I was told to do a bit change. The Printouts need to be in font-size 8 instead of 14. The grid looks great on the web using font-size 14 but when it is being printed out, it needs to be in font-size 8. So my question is how do you do that? Just to let you know, these were the things that I try: - In my FormPrintView, I added this attribute 'fontSize=8'. I thought that this will take care the problem but it didn't. It wasn't overriding myLabel's fontSize. - Then I do another way using Bindable strategy, this is what I did: == Create a global variable to store the font size. GlobalFont.as package myGlobals { [Bindable] public class GlobalFont { public static const DEFAULT_SIZE:int = 14; public static const PRINT_SIZE:int = 8; public static var myFontSize:int = DEFAULT_SIZE; } } ==Then in NameRenderer, I change myLabel to be like this: mx:Label id=myLabel fontSize={GlobalFont.myFontSize} ==Then on my doPrint(), I add this before I assign the dataProvider and columns to thePrintView.myDataGrid: GlobalFont.myFontSize = GlobalFont.PRINT_SIZE ==Then I do the print. Result: It prints out with the font-size 8 :) But the Flex app will show all my grid's column content to be shifted off the column after I scroll the grid up/down (you have to have large data that will have the vertical scroll bar to appear). You can fix the display again but clicking the column's header. Again I call all Flex Masters to share your wisdom in this matter. I have been given a deadline to fix this by early next week. So all ideas/suggestions/anything will help. Thank you!
[flexcoders] Re: Q: Issues generating AS proxy classes from WSDL
Forgetting about Flex for a moment, I first tried loading your WSDL using Eclipse WTP 1.5.5 (based on Eclipse 3.2.2)'s Web Service Explorer and it reported 100s of errors and warnings. I'd independently try to use Axis's WSDL2Java tool first to see if that can generate Java proxy stubs for this WSDL and see what errors you get there.
Re: [flexcoders] Submit Flex Applications
Hi Dave, Its not prime time yet, but its a Sports Management application with a facebook twist. Everything from League Management with Mapping, to Team managementm and Players can upload photos and YouTube Videos. I would be more than happy to set you up with a beta account if you would like to help me test it? Anyways, thanks for the flex.org tip!! cheers -aly On 11/1/07, Dave Meeker [EMAIL PROTECTED] wrote: What's your application? I'd love to see it. Check out Flex.org as well. Ted should hook you up. Dave On Nov 1, 2007, at 8:46 PM, nodovu wrote: Hello, I was just wondering where developers can go to submit and showcase their web 2.0 flex 2 or 3 applications. Thanks in advance, and sorry if this has already been answered. cheers -aly
[flexcoders] Re: Prevent Mouse events
Thanks guys, the idea behind this is to control the app by simply dispatching events. so for example i can initiate drag and drop between grids by dispatching mouse down and mouse move events, however the problem is that when i start moving a mouse than manual events are in conflict with actual mouse events. The only thing that comes to my mind which would address this would be to temporarily disconnect default application(systemManager) mouse listeners or to actually associate mouse cursor with manual event, however i was not able to figure out how to implement any of these. Any ideas are appreciated. Thanks, --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: This method intercepts right mouse clicks using javascript, so it should be adaptable for left/all mouse clicks. Although I have to agree with Alex, I other than right mouse clicks, I can't think of a situation where this wouldn't be overkill. http://code.google.com/p/custom-context-menu/ - Dan Freiman On 11/2/07, Alex Harui [EMAIL PROTECTED] wrote: Why do you have to be that bulletproof? You'd probably have to find a way to block the events from the OS going to the plug-in in the browser. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *workmichal *Sent:* Thursday, November 01, 2007 1:52 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Prevent Mouse events Hi, thanks for your input; however, this is not a solution that I am looking for since for example mouse event will still fire, or click event on the shield will still occur. What I am looking for is to disconnect mouse events from the flex app so that none of the events would ever dispatched. Thanks, --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: stopImmediatePropagation, or place a transparent 'shield' over the app. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of workmichal Sent: Thursday, November 01, 2007 10:02 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Prevent Mouse events Hi there, I am trying to prevent my Flex application from capturing any mouse events within the app. I tried mouseChildren, mouseEnabled but my application is still receiving events like mouse move. Is there a way to disable and enable participation of the mouse within the Flex app? Thank you
Re: [flexcoders] DisplayObjects Layout problem
Components are resized by their parents, so even if an object is updated/measured it will not be resized until the parent is updated. I'm not sure what the timing of the parent updating is relative to adding a child. After calling 'addChild()' and before calling 'layoutWindowsHorizontally()' try explicitly calling 'child.validateSize(true)' and ' child.parent.validateDisplayList()' - Dan Freiman On 11/2/07, Daniel [EMAIL PROTECTED] wrote: Hey guys, I'm working in an application where I need to layout a bunch of panels called 'windows'. The container of this panels is another panel called 'panelContainer'. I need to layout the windows horizontally, vertically or absolute, depending of the button pressed byt the user. Of course I could use the panelContainer.layout property, but I need to set a move effect for each window, so I analyse the children of the panelContainer and set the percentWidth and percentHeight and add a listener for an updateComplete event for each Window. In the updateCompleteHandler I move the Windows to its new X position with the move effect, and calculate the X of the next window. My problem is when I add a new Window to panelContainer. The default size of a new Window is 400x400. I add the Window to panelContaner throught panelContainer.addChild(newWindow) and then I call to the layoutWindows method. The new window should be treated like any other window, right? This doesn't happen... In the updateCompleteHandler, the recently added window still has the default size (400x400) instead of the assigned percentWidth and percentHeight... Does anyone know why this happen? I'll post the code for the layoutWindowsHorizontally and the updateComplete handler... private function layoutWindowsHorizontally ():void { posX = 0; // variable that sets the X position of each Window. for (var i:int = 0; i panelContainer.numChildren; i++) { if (panelContainer.getChildAt(i) is WindowPanel) // if a child of the panelContainer is a WindowPanel { var p:WindowPanel = panelContainer.getChildAt(i) as WindowPanel; // it sets its size p.percentHeight = 100; p.percentWidth = 100 / panelContainer.numChildren; p.addEventListener(updateComplete,updateCompleteInHorizontal); // and adds the listener to updateComplete p.addEventListener(ResizeEvent.RESIZE, resizePanel); //adds a resize effect to the window } } panelContainer.validateNow(); } private function updateCompleteInHorizontal(event:Event):void // called when the new size of the Windows are set. { var p:WindowPanel = event.currentTarget as WindowPanel; moveEffect(p, posX, 0); // moves the panel to its position posX = posX + p.width; // sets the X position of the next Window. p.removeEventListener(updateComplete,updateCompleteInHorizontal); // removes the listeners. p.removeEventListener(ResizeEvent.RESIZE, resizePanel); } Any help is appreciated... This is driving me crazy...
RE: [flexcoders] Wrapper .svn copies BUG!
Paul, do you have the project | properties | flex compiler | copy non-embedded files into output directory checkbox checked (it's the default) ? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Decoursey Sent: 02 November 2007 13:58 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Wrapper .svn copies BUG! Ok, send me a disk image of your setup... because I think you are full of it. I've tried it with the plugin, with subclipse, on a mac, on windows, on a toaster (ok I made that one up) and in all cases it copies that directory into the build directory. Why is this not configurable? Paul On Nov 1, 2007, at 5:47 PM, Justin Patrin wrote: Not for me with subclipse. On 11/1/07, Paul Decoursey [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: So if you have you html-template checked into SVN and you do a build it doesn't copy your .svn files? On Nov 1, 2007, at 5:09 PM, Andriy Panas wrote: Hi, Hmm... This never had occurred to me neither on Flex Builder 2 not Flex Builder 3 Beta 2. I am using Eclipse 3.2 and SVN Tigris plugin (Subclipse) if this matters. If for some reason you continue to experience this unwanted behavior from the Flex Builder with copying .svn folders, you can always switch to Flex Ant Tasks to optimize your complication times and control the deployment process at your fingertips: http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks On 02/11/2007, Paul Decoursey [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Please tell me that Flex Builder 3 will not copy .svn directories into the build or at least that we can specify what to include or exclude. This has been one of the biggest time wasters for me for the past year and a half (prior to that I wasted my time more efficiently on many more interesting things). __._ -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Justin Patrin __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
Re: [flexcoders] Wrapper .svn copies BUG!
You can select the older version of subclipse (1.0.6 I think) to add to FB on windows. I did it a few weeks ago and it works well. On 02/11/2007, Paul Decoursey [EMAIL PROTECTED] wrote: I mean FlexBuilder on windows is eclipse 3.1 and subclipse requires 3.2. On Nov 2, 2007, at 9:13 AM, Samuel R. Neff wrote: What do you mean Subclipse doesn't work with Flex Builder? Our whole team uses Flex Builder and Subclipse without problems (some use FB standalone, some use plugin version of FB). Sam -- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] -- *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.comflexcoders@yahoogroups.com] *On Behalf Of *Paul Decoursey *Sent:* Friday, November 02, 2007 9:38 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Wrapper .svn copies BUG! Subclipse doesn't work with Flex Builder, and I wouldn't use Eclipse for anything else. I'll check it out though. I do think all these suggestions are nice, but they all just ignore the real problem, there is an issue with FlexBuilder and it should be resolved, not worked around. Paul
[flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed.
ApplicationServiceSoap is my code - it is the class I quoted a few posts earlier. In this case, it is not the first time the class is running, but it is the first time the function is running. It is long (256 lines), but here are what I think are the relevant parts: package com.pinnacol.sane.service { import com.pinnacol.sane.dataobject.Application; import mx.collections.ArrayCollection; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.rpc.soap.mxml.WebService; public class ApplicationServiceSoap implements ApplicationService { private var webService:WebService; private var loadAllCallback:Function; private var loadApplicationCallback:Function; private var saveApplicationCallback:Function; private var deleteApplicationCallback:Function; /** * Called by another class before this class is used */ public function setWebService(webService:WebService):void { this.webService = webService; webService.addEventListener(FaultEvent.FAULT, ServiceFactory.faultHandler); webService.loadAllApplications.addEventListener(ResultEvent.RESULT, loadAllXmlHandler); webService.loadAllApplications.resultFormat= e4x; webService.loadApplication.addEventListener(ResultEvent.RESULT, loadApplicationXmlHandler); webService.loadApplication.resultFormat = e4x; webService.saveSplitApplication.addEventListener(ResultEvent.RESULT, saveXmlHandler); webService.saveSplitApplication.resultFormat=e4x; webService.deleteApplication.addEventListener(ResultEvent.RESULT, deleteHandler); webService.deleteApplication.resultFormat=e4x; } /** * Use the WebService to delete an application. The * deleteHandler should be called when the WebService * is finished. */ public function deleteApplication(application:Application, user:String):void { if ( deleteApplicationCallback == null ) { throw new Error(No deleteAllCallback); } application.setEvents(null); application.setFunctions(null); webService.deleteApplication(application, user); } /** * Called when the WebService returns, use the callback * function (set by the original requestor) to let the * requestor know we are finished. */ public function deleteHandler(event:ResultEvent):void { deleteApplicationCallback(); } } } If some of the code looks a little convoluted, with all the callbacks, it is because I am trying to separate my application into layers. I have MXML files that represent the view of my application, ActionScript Model classes to represent the model behind the views, ActionScript Service classes that represent the service layer - handling all of my server communication and data access, and a Service Factory - responsible for loading my service and returning it to the Model layer. This architecture allows me to create Service Mocks to keep development moving when the Web Services aren't available, or when the ActionScript service layer isn't working, as in this case. Thank you so much for all of your help on this. Steve --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The verifier runs on a class or function just before it runs it for the first time. Is ApplicationServiceSoap your code? Or is it coming from a library/swc? What does the code for that look like?
[flexcoders] Is there a way to make the AIR release version show stack traces?
We have compiled our SWF with -debug=true, but when we package it as an AIR file and install it, we do not see the stack trace window when errors occur, making our application behave unpredictably, and our users are unable to quickly identify the issue. Is it possible to have installed AIR applications show stack traces when errors occur? Thanks, Andy
RE: [flexcoders] Wrapper .svn copies BUG!
What do you mean Subclipse doesn't work with Flex Builder? Our whole team uses Flex Builder and Subclipse without problems (some use FB standalone, some use plugin version of FB). Sam -- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Decoursey Sent: Friday, November 02, 2007 9:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Wrapper .svn copies BUG! Subclipse doesn't work with Flex Builder, and I wouldn't use Eclipse for anything else. I'll check it out though. I do think all these suggestions are nice, but they all just ignore the real problem, there is an issue with FlexBuilder and it should be resolved, not worked around. Paul
[flexcoders] Re: Problem with Webservice Introspection Wizard in FB 3 Beta 2
After searching the bug database, this is already a bug that has supposedly been fixed, but I guess the fix won't be available until the next beta release. According to the bug report, if you don't select the soap1.1 port, the Finish button is supposed to be disabled, but it's not. I can live with this until the next release by just making sure I always select the soap1.1 port in the wizard. ~randy --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: OK. I found the cause of the problem. The webservice has two soap ports -- a soap1.1 port and a soap1.2 port. If you use the soap1.2 port, the wizard does not generate the event classes. If you use the soap1.1 post, the event classes are generated. This is a bug in the webservice wizard, right? ~randy --- In flexcoders@yahoogroups.com, Randy Martin randy@ wrote: The wizard finishes, and I have a nice set of AS classes from the WSDL. However, when I try and use any of the classes, I get compile errors all over the place. Apparently, the wizard creates references to custom events in the main service class like this: /** * Dispatches when a call to the operation GetUserInfoEx completes with success * and returns some data * @eventType GetUserInfoExSoapOutResultEvent */ [Event(name=GetUserInfoExSoapOut_result, type=GetUserInfoExSoapOutResultEvent)] /** * Dispatches when a call to the operation FindUsers completes with success * and returns some data * @eventType FindUsersSoapOutResultEvent */ [Event(name=FindUsersSoapOut_result, type=FindUsersSoapOutResultEvent)] But, there no supporting classes for the event types are generated. So, I get errors when the main class tries to do stuff like: /** * @see IADUtils#addGetUserInfoEx() */ public function addgetUserInfoExEventListener (listener:Function):void { addEventListener (GetUserInfoExSoapOutResultEvent.GetUserInfoExSoapOut_RESULT ,listener); } /** * @private */ private function _GetUserInfoEx_populate_results (event:ResultEvent):void { var e:GetUserInfoExSoapOutResultEvent = new GetUserInfoExSoapOutResultEvent(); e.result = event.result as Object; getUserInfoEx_lastResult = e.result; dispatchEvent(e); } The addEventListener call and the new GetUserInfoExSoapOutResultEvent generate errors because the compiler doesn't know anything about the custom event types. Is this a bug in the wizard, or am I supposed to code those custom event classes myself? And, if I'm supposed to code the custom events myself, are they just normal result events, or is there some additional code I don't know about? There doesn't seem to be any good documentation (flex docs, tutorials, sample code, etc) on how to use the code generated by the wizard. Does anyone know of any examples? TIA, Randy No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.15.14/1100 - Release Date: 10/30/2007 6:26 PM
Re: [flexcoders] Wrapper .svn copies BUG!
Ok, send me a disk image of your setup... because I think you are full of it. I've tried it with the plugin, with subclipse, on a mac, on windows, on a toaster (ok I made that one up) and in all cases it copies that directory into the build directory. Why is this not configurable? Paul On Nov 1, 2007, at 5:47 PM, Justin Patrin wrote: Not for me with subclipse. On 11/1/07, Paul Decoursey [EMAIL PROTECTED] wrote: So if you have you html-template checked into SVN and you do a build it doesn't copy your .svn files? On Nov 1, 2007, at 5:09 PM, Andriy Panas wrote: Hi, Hmm... This never had occurred to me neither on Flex Builder 2 not Flex Builder 3 Beta 2. I am using Eclipse 3.2 and SVN Tigris plugin (Subclipse) if this matters. If for some reason you continue to experience this unwanted behavior from the Flex Builder with copying .svn folders, you can always switch to Flex Ant Tasks to optimize your complication times and control the deployment process at your fingertips: http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks On 02/11/2007, Paul Decoursey [EMAIL PROTECTED] wrote: Please tell me that Flex Builder 3 will not copy .svn directories into the build or at least that we can specify what to include or exclude. This has been one of the biggest time wasters for me for the past year and a half (prior to that I wasted my time more efficiently on many more interesting things). __._ -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] -- Justin Patrin
Re: [flexcoders] Re: Prevent Mouse events
This method intercepts right mouse clicks using javascript, so it should be adaptable for left/all mouse clicks. Although I have to agree with Alex, I other than right mouse clicks, I can't think of a situation where this wouldn't be overkill. http://code.google.com/p/custom-context-menu/ - Dan Freiman On 11/2/07, Alex Harui [EMAIL PROTECTED] wrote: Why do you have to be that bulletproof? You'd probably have to find a way to block the events from the OS going to the plug-in in the browser. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *workmichal *Sent:* Thursday, November 01, 2007 1:52 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Prevent Mouse events Hi, thanks for your input; however, this is not a solution that I am looking for since for example mouse event will still fire, or click event on the shield will still occur. What I am looking for is to disconnect mouse events from the flex app so that none of the events would ever dispatched. Thanks, --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: stopImmediatePropagation, or place a transparent 'shield' over the app. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of workmichal Sent: Thursday, November 01, 2007 10:02 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Prevent Mouse events Hi there, I am trying to prevent my Flex application from capturing any mouse events within the app. I tried mouseChildren, mouseEnabled but my application is still receiving events like mouse move. Is there a way to disable and enable participation of the mouse within the Flex app? Thank you
[flexcoders] DisplayObjects Layout problem
Hey guys, I'm working in an application where I need to layout a bunch of panels called 'windows'. The container of this panels is another panel called 'panelContainer'. I need to layout the windows horizontally, vertically or absolute, depending of the button pressed byt the user. Of course I could use the panelContainer.layout property, but I need to set a move effect for each window, so I analyse the children of the panelContainer and set the percentWidth and percentHeight and add a listener for an updateComplete event for each Window. In the updateCompleteHandler I move the Windows to its new X position with the move effect, and calculate the X of the next window. My problem is when I add a new Window to panelContainer. The default size of a new Window is 400x400. I add the Window to panelContaner throught panelContainer.addChild(newWindow) and then I call to the layoutWindows method. The new window should be treated like any other window, right? This doesn't happen... In the updateCompleteHandler, the recently added window still has the default size (400x400) instead of the assigned percentWidth and percentHeight... Does anyone know why this happen? I'll post the code for the layoutWindowsHorizontally and the updateComplete handler... private function layoutWindowsHorizontally ():void { posX = 0; // variable that sets the X position of each Window. for (var i:int = 0; i panelContainer.numChildren; i++) { if (panelContainer.getChildAt(i) is WindowPanel) // if a child of the panelContainer is a WindowPanel { var p:WindowPanel = panelContainer.getChildAt(i) as WindowPanel; // it sets its size p.percentHeight = 100; p.percentWidth = 100 / panelContainer.numChildren; p.addEventListener(updateComplete,updateCompleteInHorizontal); // and adds the listener to updateComplete p.addEventListener(ResizeEvent.RESIZE, resizePanel); //adds a resize effect to the window } } panelContainer.validateNow(); } private function updateCompleteInHorizontal(event:Event):void // called when the new size of the Windows are set. { var p:WindowPanel = event.currentTarget as WindowPanel; moveEffect(p, posX, 0);// moves the panel to its position posX = posX + p.width; // sets the X position of the next Window. p.removeEventListener(updateComplete,updateCompleteInHorizontal); // removes the listeners. p.removeEventListener(ResizeEvent.RESIZE, resizePanel); } Any help is appreciated... This is driving me crazy...
RE: [flexcoders] Flex is quite flakey (spurious errors!)
Ok, and that's where you run into an ApplicationDomain problem. Check Alex's blog http://blogs.adobe.com/aharui/2007/03/modules.html and read the part about ApplicationDomain. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:33 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) We don't use modules as such - but we do have widgets - which are Flex applications within the main Flex application. One of the widgets is a charting widget. We simply pass some XML data to the widget and it displays it in a chart of the user's choice. One of which is a pie chart. Sporadically the pie chart will crash in the WedgeItemRenderer code. I've tried a clean, Firefox, IE7 and deleting all temporary internet files / cache. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:18 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and do you use modules? Did you try a clean in FB? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) As in, I've closed the browser then relaunched it via Flex Builder. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) What do you mean by I've loaded my application again? Did you reload a module or did you refresh the browser? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem I don't even know what to say about this... Mark
Re: [flexcoders] Wrapper .svn copies BUG!
Totally unrelated. But good guess. The .svn folder from the html- template is what is being copied. The only way I can see to stop it is to turn off generating the HTML template, but I need the template to be generated, I have support javascripts in it. Paul On Nov 2, 2007, at 9:48 AM, Jim Hayes wrote: Paul, do you have the project | properties | flex compiler | copy non-embedded files into output directory checkbox checked (it’s the default) ? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Decoursey Sent: 02 November 2007 13:58 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Wrapper .svn copies BUG! Ok, send me a disk image of your setup... because I think you are full of it. I've tried it with the plugin, with subclipse, on a mac, on windows, on a toaster (ok I made that one up) and in all cases it copies that directory into the build directory. Why is this not configurable? Paul On Nov 1, 2007, at 5:47 PM, Justin Patrin wrote: Not for me with subclipse. On 11/1/07, Paul Decoursey [EMAIL PROTECTED] wrote: So if you have you html-template checked into SVN and you do a build it doesn't copy your .svn files? On Nov 1, 2007, at 5:09 PM, Andriy Panas wrote: Hi, Hmm... This never had occurred to me neither on Flex Builder 2 not Flex Builder 3 Beta 2. I am using Eclipse 3.2 and SVN Tigris plugin (Subclipse) if this matters. If for some reason you continue to experience this unwanted behavior from the Flex Builder with copying .svn folders, you can always switch to Flex Ant Tasks to optimize your complication times and control the deployment process at your fingertips: http:// labs.adobe.com/wiki/index.php/Flex_Ant_Tasks On 02/11/2007, Paul Decoursey [EMAIL PROTECTED] wrote: Please tell me that Flex Builder 3 will not copy .svn directories into the build or at least that we can specify what to include or exclude. This has been one of the biggest time wasters for me for the past year and a half (prior to that I wasted my time more efficiently on many more interesting things). __._ -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] -- Justin Patrin __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
[flexcoders] Re: Q: Issues generating AS proxy classes from WSDL
--- In flexcoders@yahoogroups.com, Adam Bradley [EMAIL PROTECTED] wrote: I'm having trouble Importing a Web Service using the WSDL wizard. I've followed the recommendations in http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=651threadid=1303339highlight_key=ykeyword1=WSDL but still am unable to generated the Proxy code I need. The WSDL in question (along with the xsd files) are contained in the following archive. http://www.identityconcepts.com.au/files/GW7SP2.zip I've opened an incident and its available (along with the WSDL and schea files) from http://bugs.adobe.com/jira/browse/FB-10541 Sincerely, Adam
RE: [flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed.
I don't think I saw where deletApplicationCallback gets assigned. Maybe others have suggestions as to how to do this w/o blind callbacks. Callbacks of type Function lose compile time type checking and can become a pain to manage, but shouldn't be the problem here. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lrdvadersith Sent: Friday, November 02, 2007 7:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed. ApplicationServiceSoap is my code - it is the class I quoted a few posts earlier. In this case, it is not the first time the class is running, but it is the first time the function is running. It is long (256 lines), but here are what I think are the relevant parts: package com.pinnacol.sane.service { import com.pinnacol.sane.dataobject.Application; import mx.collections.ArrayCollection; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.rpc.soap.mxml.WebService; public class ApplicationServiceSoap implements ApplicationService { private var webService:WebService; private var loadAllCallback:Function; private var loadApplicationCallback:Function; private var saveApplicationCallback:Function; private var deleteApplicationCallback:Function; /** * Called by another class before this class is used */ public function setWebService(webService:WebService):void { this.webService = webService; webService.addEventListener(FaultEvent.FAULT, ServiceFactory.faultHandler); webService.loadAllApplications.addEventListener(ResultEvent.RESULT, loadAllXmlHandler); webService.loadAllApplications.resultFormat= e4x; webService.loadApplication.addEventListener(ResultEvent.RESULT, loadApplicationXmlHandler); webService.loadApplication.resultFormat = e4x; webService.saveSplitApplication.addEventListener(ResultEvent.RESULT, saveXmlHandler); webService.saveSplitApplication.resultFormat=e4x; webService.deleteApplication.addEventListener(ResultEvent.RESULT, deleteHandler); webService.deleteApplication.resultFormat=e4x; } /** * Use the WebService to delete an application. The * deleteHandler should be called when the WebService * is finished. */ public function deleteApplication(application:Application, user:String):void { if ( deleteApplicationCallback == null ) { throw new Error(No deleteAllCallback); } application.setEvents(null); application.setFunctions(null); webService.deleteApplication(application, user); } /** * Called when the WebService returns, use the callback * function (set by the original requestor) to let the * requestor know we are finished. */ public function deleteHandler(event:ResultEvent):void { deleteApplicationCallback(); } } } If some of the code looks a little convoluted, with all the callbacks, it is because I am trying to separate my application into layers. I have MXML files that represent the view of my application, ActionScript Model classes to represent the model behind the views, ActionScript Service classes that represent the service layer - handling all of my server communication and data access, and a Service Factory - responsible for loading my service and returning it to the Model layer. This architecture allows me to create Service Mocks to keep development moving when the Web Services aren't available, or when the ActionScript service layer isn't working, as in this case. Thank you so much for all of your help on this. Steve --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: The verifier runs on a class or function just before it runs it for the first time. Is ApplicationServiceSoap your code? Or is it coming from a library/swc? What does the code for that look like?
RE: [flexcoders] Flex is quite flakey (spurious errors!)
It is the fact that wedgeItemRenderer needs to be in the main app or in a shared code module. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 6:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Hmm, thanks for the link, I've gone through the presentation and I'm still a little puzzled, I use LocalConnection to simply send the XML string from the main application to the widget. I wait for the complete event to fire from the SWFLoader, then I register for the applicationComplete event to make sure the widget is loaded correctly before I attempt to send messages via the connection. What areas in my code do I need to be looking at? Is it setting the data too early or is it the part about PieSeriesItem being loaded twice? Once in the main application and once in the widget? Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 13:30 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and that's where you run into an ApplicationDomain problem. Check Alex's blog http://blogs.adobe.com/aharui/2007/03/modules.html http://blogs.adobe.com/aharui/2007/03/modules.html and read the part about ApplicationDomain. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:33 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) We don't use modules as such - but we do have widgets - which are Flex applications within the main Flex application. One of the widgets is a charting widget. We simply pass some XML data to the widget and it displays it in a chart of the user's choice. One of which is a pie chart. Sporadically the pie chart will crash in the WedgeItemRenderer code. I've tried a clean, Firefox, IE7 and deleting all temporary internet files / cache. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:18 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and do you use modules? Did you try a clean in FB? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) As in, I've closed the browser then relaunched it via Flex Builder. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) What do you mean by I've loaded my application again? Did you reload a module or did you refresh the browser? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk
RE: [flexcoders] Flex is quite flakey (spurious errors!)
Yes, the size has increased, but due to the assets we've embedded the increase isn't too noticeable. I don't think the shared code module is going to be easy to implement because the widgets will be developed by 3rd parties, so if we did that we'd have to add a dependency onto their development. Thanks - much appreciated. Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 02 November 2007 16:16 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Right. I don't think it'll fix your resizeEvent prob, but you never know. Now if you look at your main app's swf, it should have grown considerably as it now has a bunch of charting code in it. If you don't like that, then you have to go to a shared code module. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 9:13 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) That's great, thanks Alex. For future group reference, here is some code I have in the main App file: // FIX: For 'Cannot convert IStroke to Stroke' import mx.graphics.IStroke; private var dummy1:IStroke; // FIX: For 'Cannot convert PieSeriesItem to PieSeriesItem' import mx.charts.renderers.WedgeItemRenderer; private var dummy2:WedgeItemRenderer; // FIX: For 'Cannot convert Event to ResizeEvent' import mx.events.ResizeEvent; private var dummy3:ResizeEvent; dummy1 dummy3 are just guesses, I'm experimenting to find out if they fix some problems I'm having. Thanks, Mark size=2 width=100% align=center tabIndex=-1 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 02 November 2007 16:03 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) It is the fact that wedgeItemRenderer needs to be in the main app or in a shared code module. size=2 width=100% align=center tabIndex=-1 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 6:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Hmm, thanks for the link, I've gone through the presentation and I'm still a little puzzled, I use LocalConnection to simply send the XML string from the main application to the widget. I wait for the complete event to fire from the SWFLoader, then I register for the applicationComplete event to make sure the widget is loaded correctly before I attempt to send messages via the connection. What areas in my code do I need to be looking at? Is it setting the data too early or is it the part about PieSeriesItem being loaded twice? Once in the main application and once in the widget? Thanks, Mark size=2 width=100% align=center tabIndex=-1 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 13:30 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and that's where you run into an ApplicationDomain problem. Check Alex's blog http://blogs.adobe.com/aharui/2007/03/modules.html http://blogs.adobe.com/aharui/2007/03/modules.html and read the part about ApplicationDomain. size=2 width=100% align=center tabIndex=-1 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:33 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) We don't use modules as such - but we do have widgets - which are Flex applications within the main Flex application. One of the widgets is a charting widget. We simply pass some XML data to the widget and it displays it in a chart of the user's choice. One of which is a pie chart. Sporadically the pie chart will crash in the WedgeItemRenderer code. I've tried a clean, Firefox, IE7 and deleting all temporary internet files / cache. Thanks, Mark size=2 width=100% align=center tabIndex=-1 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:18 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and do you use modules? Did you try a clean in FB? size=2 width=100% align=center tabIndex=-1 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) As in, I've closed the browser then relaunched it via Flex Builder.
RE: [flexcoders] Cannot convert Event to ResizeEvent
They're all created in AS. The error hasn't occurred today. I've just put in a fix similar to the WedgeItemRenderer because I think the Resize Event error is due to a widget / SWF loaded into the main app. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 02 November 2007 16:08 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent It might be that if you set up those listeners in MXML, it is generating the wrong code. Can you make a mini-test case? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 2:34 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent Hmm, there are no resize listeners on the system manager. There are a couple listening on the stage, but they all expect an event:Event parameter. Like I say, even when the code bases are the same, it does't work on my computer, but does work on a colleagues. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 01 November 2007 18:34 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent You would do a search for resize not resizeEvent. It appears that someone is listening to resize on the systemManager by accident. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, November 01, 2007 9:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent Nope, I've done a search for the term ResizeEvent in all projects and I don't get a single match. I've tested it on a colleague's computer (which works fine) and the only difference between our dev boxes is the fact I'm running Vista and he's running XP. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 01 November 2007 16:09 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent Is anything listening for a resize event in either swf? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, November 01, 2007 7:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cannot convert Event to ResizeEvent Hi, I'm getting this odd error when trying to load a Flex application inside a parent Flex application: TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::[EMAIL PROTECTED] to mx.events.ResizeEvent. at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.managers::SystemManager/setActualSize()[C:\dev\flex_201_gmc\sdk\frame works\mx\managers\SystemManager.as:1753] at mx.controls::SWFLoader/doScaleContent()[C:\dev\flex_201_gmc\sdk\framewor ks\mx\controls\SWFLoader.as:1449] at mx.controls::SWFLoader/updateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\controls\SWFLoader.as:1091] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] I have no idea why, especially when the word ResizeEvent doesn't even occur in any of our source code... Has anyone seen this before?? Mark
Re: [flexcoders] Wrapper .svn copies BUG!
Subclipse doesn't work with Flex Builder, and I wouldn't use Eclipse for anything else. I'll check it out though. I do think all these suggestions are nice, but they all just ignore the real problem, there is an issue with FlexBuilder and it should be resolved, not worked around. Paul On Nov 1, 2007, at 5:47 PM, Justin Patrin wrote: Not for me with subclipse. On 11/1/07, Paul Decoursey [EMAIL PROTECTED] wrote: So if you have you html-template checked into SVN and you do a build it doesn't copy your .svn files? On Nov 1, 2007, at 5:09 PM, Andriy Panas wrote: Hi, Hmm... This never had occurred to me neither on Flex Builder 2 not Flex Builder 3 Beta 2. I am using Eclipse 3.2 and SVN Tigris plugin (Subclipse) if this matters. If for some reason you continue to experience this unwanted behavior from the Flex Builder with copying .svn folders, you can always switch to Flex Ant Tasks to optimize your complication times and control the deployment process at your fingertips: http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks On 02/11/2007, Paul Decoursey [EMAIL PROTECTED] wrote: Please tell me that Flex Builder 3 will not copy .svn directories into the build or at least that we can specify what to include or exclude. This has been one of the biggest time wasters for me for the past year and a half (prior to that I wasted my time more efficiently on many more interesting things). __._ -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] -- Justin Patrin
RE: [flexcoders] Re: Flex 2.0.1: Calling all Flex Masters for this interesting printing format issue
The recommended practice is to define the fontSize on the column and not the label. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of handitan Sent: Friday, November 02, 2007 8:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 2.0.1: Calling all Flex Masters for this interesting printing format issue Does anyone have any ideas/suggestions to tackle this printing issue? I hope my explanation was clear enough. Thank you for reading. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , handitan [EMAIL PROTECTED] wrote: I have been trying to solve this issue for days but still couldn't find the right solution. I am going to make as simple as I can about the issue. Here's the situation: I have this DataGrid mx:DataGrid id=myDataGrid width=100% height=100% mx:columns mx:DataGridColumn headerText=FirstName dataField=fName itemRenderer=Renderer.NameRenderer/ mx:DataGridColumn headerText=LastName dataField=lName itemRenderer=Renderer.NameRenderer/ /mx:columns /mx:DataGrid === Now here's the NameRenderer's definition: mx:HBox width=100% horizontalAlign=left verticalAlign=middle mx:Script ![CDATA[ override public function set data(value:Object):void { super.data = value; if (value != null) { myLabel.text = value; } ]] /mx:Script !-- Remember the font size please. It relates to the issue- - mx:Label id=myLabel fontSize=14 /mx:HBox == Now, the grid displays fine in my flex app. Then I added a functionality to be able to print the grid using almost exactly the same like in this example: http://livedocs.adobe.com/flex/2/langref/mx/printing/PrintDataGrid.htm http://livedocs.adobe.com/flex/2/langref/mx/printing/PrintDataGrid.htm l#includeExamplesSummary with the following exceptions: - My FormPrintView doesn't have the all of the mx:columns stuffs in PrintDataGrid. - Inside my doPrint() (this is in PrintDataGridExample section) under thePrintView.myDataGrid.dataProvider = myDataGrid.dataProvider statement, I add this: thePrintView.myDataGrid.columns = myDataGrid.columns; == Now when I print it out, everything is working fine and dandy (good job Flex team!). Then one day, I was told to do a bit change. The Printouts need to be in font-size 8 instead of 14. The grid looks great on the web using font-size 14 but when it is being printed out, it needs to be in font-size 8. So my question is how do you do that? Just to let you know, these were the things that I try: - In my FormPrintView, I added this attribute 'fontSize=8'. I thought that this will take care the problem but it didn't. It wasn't overriding myLabel's fontSize. - Then I do another way using Bindable strategy, this is what I did: == Create a global variable to store the font size. GlobalFont.as package myGlobals { [Bindable] public class GlobalFont { public static const DEFAULT_SIZE:int = 14; public static const PRINT_SIZE:int = 8; public static var myFontSize:int = DEFAULT_SIZE; } } ==Then in NameRenderer, I change myLabel to be like this: mx:Label id=myLabel fontSize={GlobalFont.myFontSize} ==Then on my doPrint(), I add this before I assign the dataProvider and columns to thePrintView.myDataGrid: GlobalFont.myFontSize = GlobalFont.PRINT_SIZE ==Then I do the print. Result: It prints out with the font-size 8 :) But the Flex app will show all my grid's column content to be shifted off the column after I scroll the grid up/down (you have to have large data that will have the vertical scroll bar to appear). You can fix the display again but clicking the column's header. Again I call all Flex Masters to share your wisdom in this matter. I have been given a deadline to fix this by early next week. So all ideas/suggestions/anything will help. Thank you!
RE: [flexcoders] Flex is quite flakey (spurious errors!)
That's great, thanks Alex. For future group reference, here is some code I have in the main App file: // FIX: For 'Cannot convert IStroke to Stroke' import mx.graphics.IStroke; private var dummy1:IStroke; // FIX: For 'Cannot convert PieSeriesItem to PieSeriesItem' import mx.charts.renderers.WedgeItemRenderer; private var dummy2:WedgeItemRenderer; // FIX: For 'Cannot convert Event to ResizeEvent' import mx.events.ResizeEvent; private var dummy3:ResizeEvent; dummy1 dummy3 are just guesses, I'm experimenting to find out if they fix some problems I'm having. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 02 November 2007 16:03 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) It is the fact that wedgeItemRenderer needs to be in the main app or in a shared code module. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 6:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Hmm, thanks for the link, I've gone through the presentation and I'm still a little puzzled, I use LocalConnection to simply send the XML string from the main application to the widget. I wait for the complete event to fire from the SWFLoader, then I register for the applicationComplete event to make sure the widget is loaded correctly before I attempt to send messages via the connection. What areas in my code do I need to be looking at? Is it setting the data too early or is it the part about PieSeriesItem being loaded twice? Once in the main application and once in the widget? Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 13:30 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and that's where you run into an ApplicationDomain problem. Check Alex's blog http://blogs.adobe.com/aharui/2007/03/modules.html http://blogs.adobe.com/aharui/2007/03/modules.html and read the part about ApplicationDomain. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:33 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) We don't use modules as such - but we do have widgets - which are Flex applications within the main Flex application. One of the widgets is a charting widget. We simply pass some XML data to the widget and it displays it in a chart of the user's choice. One of which is a pie chart. Sporadically the pie chart will crash in the WedgeItemRenderer code. I've tried a clean, Firefox, IE7 and deleting all temporary internet files / cache. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:18 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and do you use modules? Did you try a clean in FB? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) As in, I've closed the browser then relaunched it via Flex Builder. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) What do you mean by I've loaded my application again? Did you reload a module or did you refresh the browser? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com
Re: [flexcoders] Help--Volume Control
hi..hw to control volume using Hslider...explain with som examples... Actionscript? or mxml? If it's in actionscript. [code] _volumeSlider = new HSlider(); _volumeSlider.minimum = 0; _volumeSlider.maximum = 100; _volumeSlider.snapInterval = 5; _volumeSlider.liveDragging = true; _volumeSlider.addEventListener( SliderEvent.CHANGE, onSoundVolumeChange ); [/code] and for the onSoundVolumeChange method [code] var volumen:Number = _volumeSlider.value * 0.01; var soundTransform:SoundTransform = _stream.soundTransform; soundTransform.volume = _soundVolume; [/code] Regards, Edward Yakop
RE: [flexcoders] Cannot convert Event to ResizeEvent
It might be that if you set up those listeners in MXML, it is generating the wrong code. Can you make a mini-test case? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 2:34 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent Hmm, there are no resize listeners on the system manager. There are a couple listening on the stage, but they all expect an event:Event parameter. Like I say, even when the code bases are the same, it does't work on my computer, but does work on a colleagues. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 01 November 2007 18:34 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent You would do a search for resize not resizeEvent. It appears that someone is listening to resize on the systemManager by accident. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, November 01, 2007 9:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent Nope, I've done a search for the term ResizeEvent in all projects and I don't get a single match. I've tested it on a colleague's computer (which works fine) and the only difference between our dev boxes is the fact I'm running Vista and he's running XP. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 01 November 2007 16:09 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent Is anything listening for a resize event in either swf? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, November 01, 2007 7:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cannot convert Event to ResizeEvent Hi, I'm getting this odd error when trying to load a Flex application inside a parent Flex application: TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::[EMAIL PROTECTED] to mx.events.ResizeEvent. at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.managers::SystemManager/setActualSize()[C:\dev\flex_201_gmc\sdk\frame works\mx\managers\SystemManager.as:1753] at mx.controls::SWFLoader/doScaleContent()[C:\dev\flex_201_gmc\sdk\framewor ks\mx\controls\SWFLoader.as:1449] at mx.controls::SWFLoader/updateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\controls\SWFLoader.as:1091] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] I have no idea why, especially when the word ResizeEvent doesn't even occur in any of our source code... Has anyone seen this before?? Mark
RE: [flexcoders] Flex is quite flakey (spurious errors!)
As in, I've closed the browser then relaunched it via Flex Builder. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) What do you mean by I've loaded my application again? Did you reload a module or did you refresh the browser? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem I don't even know what to say about this... Mark
RE: [flexcoders] Flex is quite flakey (spurious errors!)
We don't use modules as such - but we do have widgets - which are Flex applications within the main Flex application. One of the widgets is a charting widget. We simply pass some XML data to the widget and it displays it in a chart of the user's choice. One of which is a pie chart. Sporadically the pie chart will crash in the WedgeItemRenderer code. I've tried a clean, Firefox, IE7 and deleting all temporary internet files / cache. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:18 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and do you use modules? Did you try a clean in FB? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) As in, I've closed the browser then relaunched it via Flex Builder. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) What do you mean by I've loaded my application again? Did you reload a module or did you refresh the browser? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem I don't even know what to say about this... Mark
[flexcoders] Re: Flex is quite flakey (spurious errors!)
Yesterday, while creating a function, my keyboard buffer started operating backwards. I typed :void and it came out as doiv:. This is the second time that I've seen this. I simply closed and reloaded Flex (2.01) and carried on as usual. Had it been halloween it would have really freaked me out! :)
RE: [flexcoders] Flex is quite flakey (spurious errors!)
Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem I don't even know what to say about this... Mark
RE: [flexcoders] how to determine if a component is offscreen in a Canvas?
It might be more important when you do this calculation. Flex is an invalidating framework meaning that when you add children, it invalidates the parent container and it is later that the parent container reacts and puts up scrollbars. I would try catching the updateComplete event and then you should be able to use height and verticalScrollPosition. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Friday, November 02, 2007 7:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to determine if a component is offscreen in a Canvas? I'm using a Canvas where I'm adding components dynamically at absolute positions, which may increase the size of the canvas beyond it's parent container. When this happens, scrollbars are created, as expected and desired. I'm trying to figure out if the component I just added are offscreen, in the clipped area. If that's the case, I want to be able to make that newly-added component visible by manually adjusting the scrollbars. I've done this before in another development environment so I know the logic to do, but I'm new to Flex and struggling to find which properties to use, amongst all the different properties and methods, i.e. height, maxHeight, measuredHeight, scrollPosition, etc. Thanks
RE: [flexcoders] Flex is quite flakey (spurious errors!)
Hmm, thanks for the link, I've gone through the presentation and I'm still a little puzzled, I use LocalConnection to simply send the XML string from the main application to the widget. I wait for the complete event to fire from the SWFLoader, then I register for the applicationComplete event to make sure the widget is loaded correctly before I attempt to send messages via the connection. What areas in my code do I need to be looking at? Is it setting the data too early or is it the part about PieSeriesItem being loaded twice? Once in the main application and once in the widget? Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 13:30 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and that's where you run into an ApplicationDomain problem. Check Alex's blog http://blogs.adobe.com/aharui/2007/03/modules.html http://blogs.adobe.com/aharui/2007/03/modules.html and read the part about ApplicationDomain. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:33 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) We don't use modules as such - but we do have widgets - which are Flex applications within the main Flex application. One of the widgets is a charting widget. We simply pass some XML data to the widget and it displays it in a chart of the user's choice. One of which is a pie chart. Sporadically the pie chart will crash in the WedgeItemRenderer code. I've tried a clean, Firefox, IE7 and deleting all temporary internet files / cache. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:18 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and do you use modules? Did you try a clean in FB? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) As in, I've closed the browser then relaunched it via Flex Builder. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) What do you mean by I've loaded my application again? Did you reload a module or did you refresh the browser? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at
RE: [flexcoders] Re: Why can't I dispatch a different event from an event handler?
Embarrassingly, yes. Thanks :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: 01 November 2007 18:04 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Why can't I dispatch a different event from an event handler? Does UploadDialogEvent.SELECT_FILES evaluate to a string that has a MouseEvent listener assigned to it? Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark Ingram [EMAIL PROTECTED] wrote: I have the following code: private function browseButton_clickHandler(event:MouseEvent):void { var uiEvent:UploadDialogEvent = new UploadDialogEvent(UploadDialogEvent.SELECT_FILES); this.dispatchEvent(uiEvent); } Which throws the following error: TypeError: Error #1034: Type Coercion failed: cannot convert com.softease.honeycomb.events.ui::[EMAIL PROTECTED] to flash.events.MouseEvent. However, the following code works just fine! private function publishButton_clickHandler(event:MouseEvent):void { var publishDialogEvent:PublishDialogEvent = new PublishDialogEvent(PublishDialogEvent.PUBLISH, passwordTextInput.text); this.dispatchEvent(publishDialogEvent); } Both UploadDialogEvent and PublishDialog event inherit from a custom UIEvent class (which just sets bubbling = true). So why does it work fine in one case and not in another case?! The only difference as far as I can see is that a custom parameter is passed through to the PublishDialogEvent - but why would that make a difference?? Mark
RE: [flexcoders] Flex is quite flakey (spurious errors!)
Right. I don't think it'll fix your resizeEvent prob, but you never know. Now if you look at your main app's swf, it should have grown considerably as it now has a bunch of charting code in it. If you don't like that, then you have to go to a shared code module. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 9:13 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) That's great, thanks Alex. For future group reference, here is some code I have in the main App file: // FIX: For 'Cannot convert IStroke to Stroke' import mx.graphics.IStroke; private var dummy1:IStroke; // FIX: For 'Cannot convert PieSeriesItem to PieSeriesItem' import mx.charts.renderers.WedgeItemRenderer; private var dummy2:WedgeItemRenderer; // FIX: For 'Cannot convert Event to ResizeEvent' import mx.events.ResizeEvent; private var dummy3:ResizeEvent; dummy1 dummy3 are just guesses, I'm experimenting to find out if they fix some problems I'm having. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 02 November 2007 16:03 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) It is the fact that wedgeItemRenderer needs to be in the main app or in a shared code module. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 6:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Hmm, thanks for the link, I've gone through the presentation and I'm still a little puzzled, I use LocalConnection to simply send the XML string from the main application to the widget. I wait for the complete event to fire from the SWFLoader, then I register for the applicationComplete event to make sure the widget is loaded correctly before I attempt to send messages via the connection. What areas in my code do I need to be looking at? Is it setting the data too early or is it the part about PieSeriesItem being loaded twice? Once in the main application and once in the widget? Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 13:30 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and that's where you run into an ApplicationDomain problem. Check Alex's blog http://blogs.adobe.com/aharui/2007/03/modules.html http://blogs.adobe.com/aharui/2007/03/modules.html and read the part about ApplicationDomain. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:33 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) We don't use modules as such - but we do have widgets - which are Flex applications within the main Flex application. One of the widgets is a charting widget. We simply pass some XML data to the widget and it displays it in a chart of the user's choice. One of which is a pie chart. Sporadically the pie chart will crash in the WedgeItemRenderer code. I've tried a clean, Firefox, IE7 and deleting all temporary internet files / cache. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:18 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and do you use modules? Did you try a clean in FB? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) As in, I've closed the browser then relaunched it via Flex Builder. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) What do you mean by I've loaded my application again? Did you reload a module or did you refresh the browser? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
[flexcoders] how to determine if a component is offscreen in a Canvas?
I'm using a Canvas where I'm adding components dynamically at absolute positions, which may increase the size of the canvas beyond it's parent container. When this happens, scrollbars are created, as expected and desired. I'm trying to figure out if the component I just added are offscreen, in the clipped area. If that's the case, I want to be able to make that newly-added component visible by manually adjusting the scrollbars. I've done this before in another development environment so I know the logic to do, but I'm new to Flex and struggling to find which properties to use, amongst all the different properties and methods, i.e. height, maxHeight, measuredHeight, scrollPosition, etc. Thanks
RE: [flexcoders] how to determine if a component is offscreen in a Canvas?
I'd probably do it using getBounds and the Rectangle class's comparison methods. var canvasBounds :Rectangle = myCanvas.getBounds(myCanvas.parent); var componentBounds:Rectangle = myComponent.getBounds(myCanvas.parent); and then either if(canvasBounds.contains(componentBounds)) or if(canvasBounds.intersects(componentBounds)) Michael Krotscheck Senior Developer RESOURCE INTERACTIVE http://www.resource.com/ www.resource.com http://www.resource.com [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] This email and any of its attachments may contain Resource Interactive proprietary information, which is privileged, confidential and may be subject to copyright or other intellectual property rights belonging to Resource Interactive. This email is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this email is strictly prohibited and may be unlawful. If you have received this email in error, please notify the sender immediately and permanently delete the original and any copy of this email and any printout. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Friday, November 02, 2007 10:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to determine if a component is offscreen in a Canvas? I'm using a Canvas where I'm adding components dynamically at absolute positions, which may increase the size of the canvas beyond it's parent container. When this happens, scrollbars are created, as expected and desired. I'm trying to figure out if the component I just added are offscreen, in the clipped area. If that's the case, I want to be able to make that newly-added component visible by manually adjusting the scrollbars. I've done this before in another development environment so I know the logic to do, but I'm new to Flex and struggling to find which properties to use, amongst all the different properties and methods, i.e. height, maxHeight, measuredHeight, scrollPosition, etc. Thanks
Re: [flexcoders] Wrapper .svn copies BUG!
My FB rejected 1.0.x. I do have it installed on my Mac version and I find that it kind of sucks, but it's not entirely their fault. I cannot use it for the most part because it seems to do everything based on the root repository and I don't have access to that. I only have access to certain projects in the repository (I'm a consultant and they don't trust me). As a result I find subclipse to be kind of useless, plus it doesn't solve my problem. Part of it also is that I have gotten so used to TortiseSVN that I find the alternatives to be quite lacking. There is nothing worthwhile on the Mac for SVN, I've resorted to the terminal in fact. On Nov 2, 2007, at 9:37 AM, Paul Booth wrote: You can select the older version of subclipse (1.0.6 I think) to add to FB on windows. I did it a few weeks ago and it works well.
[flexcoders] Re: Flex 2.0.1: Calling all Flex Masters for this interesting printing format issue
Thx Alex! You're the man! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The recommended practice is to define the fontSize on the column and not the label. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of handitan Sent: Friday, November 02, 2007 8:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 2.0.1: Calling all Flex Masters for this interesting printing format issue Does anyone have any ideas/suggestions to tackle this printing issue? I hope my explanation was clear enough. Thank you for reading. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , handitan handitan@ wrote: I have been trying to solve this issue for days but still couldn't find the right solution. I am going to make as simple as I can about the issue. Here's the situation: I have this DataGrid mx:DataGrid id=myDataGrid width=100% height=100% mx:columns mx:DataGridColumn headerText=FirstName dataField=fName itemRenderer=Renderer.NameRenderer/ mx:DataGridColumn headerText=LastName dataField=lName itemRenderer=Renderer.NameRenderer/ /mx:columns /mx:DataGrid === Now here's the NameRenderer's definition: mx:HBox width=100% horizontalAlign=left verticalAlign=middle mx:Script ![CDATA[ override public function set data(value:Object):void { super.data = value; if (value != null) { myLabel.text = value; } ]] /mx:Script !-- Remember the font size please. It relates to the issue- - mx:Label id=myLabel fontSize=14 /mx:HBox == Now, the grid displays fine in my flex app. Then I added a functionality to be able to print the grid using almost exactly the same like in this example: http://livedocs.adobe.com/flex/2/langref/mx/printing/PrintDataGrid.htm http://livedocs.adobe.com/flex/2/langref/mx/printing/PrintDataGrid.ht m l#includeExamplesSummary with the following exceptions: - My FormPrintView doesn't have the all of the mx:columns stuffs in PrintDataGrid. - Inside my doPrint() (this is in PrintDataGridExample section) under thePrintView.myDataGrid.dataProvider = myDataGrid.dataProvider statement, I add this: thePrintView.myDataGrid.columns = myDataGrid.columns; == Now when I print it out, everything is working fine and dandy (good job Flex team!). Then one day, I was told to do a bit change. The Printouts need to be in font-size 8 instead of 14. The grid looks great on the web using font-size 14 but when it is being printed out, it needs to be in font-size 8. So my question is how do you do that? Just to let you know, these were the things that I try: - In my FormPrintView, I added this attribute 'fontSize=8'. I thought that this will take care the problem but it didn't. It wasn't overriding myLabel's fontSize. - Then I do another way using Bindable strategy, this is what I did: == Create a global variable to store the font size. GlobalFont.as package myGlobals { [Bindable] public class GlobalFont { public static const DEFAULT_SIZE:int = 14; public static const PRINT_SIZE:int = 8; public static var myFontSize:int = DEFAULT_SIZE; } } ==Then in NameRenderer, I change myLabel to be like this: mx:Label id=myLabel fontSize={GlobalFont.myFontSize} ==Then on my doPrint(), I add this before I assign the dataProvider and columns to thePrintView.myDataGrid: GlobalFont.myFontSize = GlobalFont.PRINT_SIZE ==Then I do the print. Result: It prints out with the font-size 8 :) But the Flex app will show all my grid's column content to be shifted off the column after I scroll the grid up/down (you have to have large data that will have the vertical scroll bar to appear). You can fix the display again but clicking the column's header. Again I call all Flex Masters to share your wisdom in this matter. I have been given a deadline to fix this by early next week. So all ideas/suggestions/anything will help. Thank you!
[flexcoders] Re: Tree: Removing expand triangle from select nodes
Thanks for your help guys, Adding in a customITreeRenderer seems to fix the problem. It looks like this.. package { import mx.controls.treeClasses.*; import mx.collections.*; public class CustomTreeItemRenderer extends TreeItemRenderer { // Define the constructor. public function CustomTreeItemRenderer() { super(); } // Override the set method for the data property // to set the font color and style of each node. override public function set data(value:Object):void { super.data = value; if(super.listData != null){ if(TreeListData(super.listData).hasChildren) { setStyle(fontWeight, 'bold'); } else { setStyle(fontWeight, 'normal'); } } } // Override the updateDisplayList() method // to set the text for each tree node. override protected function updateDisplayList (unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if(super.data) { if(TreeListData(super.listData).hasChildren) { var tmp:XMLList = new XMLList(TreeListData (super.listData).item); var myStr:int = tmp[0].children().length(); super.label.text = TreeListData (super.listData).label + ( + myStr + ); } } } } } --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Here is one that draws lines between siblings, perhaps it will help you see what to do. http://www.cflex.net/showFileDetails.cfm?ObjectID=575 Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Monday, October 29, 2007 4:10 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Tree: Removing expand triangle from select nodes A custom TreeItemRenderer? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djdyland Sent: Monday, October 29, 2007 3:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Tree: Removing expand triangle from select nodes So I guess to simplify my question... how do I apply myTree.setStyle(disclosureOpenIcon, null); myTree.setStyle(disclosureCloseIcon, null); to individual nodes instead if the whole tree? Anyone have any idea --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , djdyland djdyland@ wrote: Hi, Thanks for the reply. Like I said I have a ITreeDataDescriptor. But I don't see how I can use that to disable the expand triagle for certain nodes. Thanks Dylan --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Custom ITreeDataDescriptor From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of djdyland Sent: Monday, October 29, 2007 8:41 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Tree: Removing expand triangle from select nodes Hello, I'm building a scripting reference app that is populated from an XML file. The structure is something like this. groupOfAssociatedClasses name=name of container class name=className property name=propertyName typetheType/type /property method name=methodName inputTypetype/inputType returnValuevalue/returnValue /method /class class name=className property name=propertyName typetheType/type /property method name=methodName inputTypetype/inputType returnValuevalue/returnValue /method /class /groupOfAssociatedClasses groupOfAssociatedClasses name=name of container class name=className property name=propertyName typetheType/type /property method name=methodName inputTypetype/inputType returnValuevalue/returnValue /method /class /groupOfAssociatedClasses I created a tree discriptor to filter out all the children on each class so it doesn't display them in the tree. All I want to see in the tree is the names of the containers and the names of the classes. My proplem is that beucase the classes have children flex is displaying the expand node triangle beside the icon which ends up doing nothing becuase of the filter. How can I get rid of the expand node triangle? I
[flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed.
If I comment out the body, I get the same error at the same place. For grins, I also tried renaming the method in case deleteHandler was somehow reserved. Same result. At this point it looks like the ActionScript compiler (or maybe the flash player) reacts differently based on method order, but I haven't seen anything that required ActionScript methods to be declared in any particular order. BTW, I tried this on another computer to rule out my particular Flex and Flash software, and got the same results on the other computer as well. Could there be a bug in the compiler? Steve --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: verification occurs just before the call. It looks at the code in the body to make sure it looks reasonable. If you comment out the body, what happens?
RE: [flexcoders] Convert ByteArray to Bitmap
Yes, that would be nice! For what I've been doing a synchronous convertToBitmapData(bytes:ByteArray):BitmapData would be really nice as well. If only because using a loader seems a bit wrong when you've already loaded (or otherwise have) a byteArray. I have to admit that I've not actually checked the source code to see if I could find/copy that kind of function, however, since I do now have everything working with loader. Thanks Alex! Jim. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 02 November 2007 16:05 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Convert ByteArray to Bitmap Yeah, things are working, but really there should be a loadBytes() API on mx:Image/SWFLoader to save you a step. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes Sent: Friday, November 02, 2007 3:16 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Convert ByteArray to Bitmap Oops, sorry, this one makes slightly more sense (first thing in the morning, not even finished my first cuppa...) private var _ldr:Loader private function myTest():void{ //get ByteArray from Image Component content var testBM:Bitmap = testImg.content as Bitmap; var myByte:ByteArray = new JPEGEncoder().encode(testBM.bitmapData); _ldr = new Loader(); _ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,bitmapLoaded); _ldr.loadBytes(myByte); } private function bitmapLoaded(event:Event) { _ldr.removeEventListener(Event.COMPLETE,bitmapLoaded) //reset source myImage.source = _ldr.content; } . http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/ msgId=92581/stime=1193998266/nc1=4507179/nc2=3848642/nc3=5008826 __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __ __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
RE: [flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed.
verification occurs just before the call. It looks at the code in the body to make sure it looks reasonable. If you comment out the body, what happens? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lrdvadersith Sent: Friday, November 02, 2007 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed. deleteApplicationCallback is injected by the user of the service, but my hunch is that it isn't a problem because the deleteHandler never gets called. The verify error appears to be happening when Flex is trying to make the call to the deleteHandler - if I put a breakpoint inside the function, it never gets reached. Now here is where things get a little weird: If I take the deleteHandler function and move it up in my file, everything works. I changed no other code, I just reorded the methods. I can't think of any reason why the method order should make a difference, but in my code, it does. Anyone have any ideas? Steve --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I don't think I saw where deletApplicationCallback gets assigned. Maybe others have suggestions as to how to do this w/o blind callbacks. Callbacks of type Function lose compile time type checking and can become a pain to manage, but shouldn't be the problem here.
RE: [flexcoders] Re: Prevent Mouse events
If you have an obj that is listening and blocking, you'd set a flag on that obj before dispatching the event. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of workmichal Sent: Friday, November 02, 2007 9:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Prevent Mouse events Thanks Alex, but I dont't understand. Are you setting a flag on the event? I think that setting a flag in user code will not stop the stage from listening to mouse move event or mouse move event from dispatching. Can you please clarify? For example, i am dispatching mouse move event like this: dg.getChildAt(2).dispatchEvent(new MouseEvent(MouseEvent.MOUSE_MOVE, true, false, 100, 50)); what I would like to archive would be to prevent mouse from dispatching its own mouse move event when ever it is moved, so that i control the flow of the app with dispatching events within action script instead of dispatching them by clicking or moving a mouse. Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: We do this by setting a flag when we dispatch the faked event so the blocking handler doesn't block. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of workmichal Sent: Friday, November 02, 2007 7:47 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Prevent Mouse events Thanks guys, the idea behind this is to control the app by simply dispatching events. so for example i can initiate drag and drop between grids by dispatching mouse down and mouse move events, however the problem is that when i start moving a mouse than manual events are in conflict with actual mouse events. The only thing that comes to my mind which would address this would be to temporarily disconnect default application(systemManager) mouse listeners or to actually associate mouse cursor with manual event, however i was not able to figure out how to implement any of these. Any ideas are appreciated. Thanks, --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Daniel Freiman FreimanCQ@ wrote: This method intercepts right mouse clicks using javascript, so it should be adaptable for left/all mouse clicks. Although I have to agree with Alex, I other than right mouse clicks, I can't think of a situation where this wouldn't be overkill. http://code.google.com/p/custom-context-menu/ http://code.google.com/p/custom-context-menu/ http://code.google.com/p/custom-context-menu/ http://code.google.com/p/custom-context-menu/ - Dan Freiman On 11/2/07, Alex Harui aharui@ wrote: Why do you have to be that bulletproof? You'd probably have to find a way to block the events from the OS going to the plug-in in the browser. -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *workmichal *Sent:* Thursday, November 01, 2007 1:52 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Re: Prevent Mouse events Hi, thanks for your input; however, this is not a solution that I am looking for since for example mouse event will still fire, or click event on the shield will still occur. What I am looking for is to disconnect mouse events from the flex app so that none of the events would ever dispatched. Thanks, --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: stopImmediatePropagation, or place a transparent 'shield' over the app. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of workmichal Sent: Thursday, November 01, 2007 10:02 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Prevent Mouse events Hi there, I am trying to prevent my Flex application from capturing any mouse events within the app. I tried mouseChildren, mouseEnabled but my application is still receiving events like mouse move. Is there a way to disable and enable
Re: [flexcoders] Maximum Image Width able to be displayed
Wow that's sort of not cool but great to hear I am not losing my mind. Thanks! :) So what I am doing is basically loading a 15Kpx wide gif or jpg image and using it as a film strip. (Legacy data format that I can't really change) And I am trying to render subsections of that image by sliding it through a viewable region. So what it seems is going on is that it renders the image, clips it, and then displays the visible region and applies a mask over the rest. However the render fails so the rest of the steps are just wasted cycles. I have a fix to just chop the image in half prior to loading it.. But since I am not the only one with this problem, I was wondering if there are known strategies I don't know of to get around this feature. Also to help your page out a little more. I think when embedding the image into the swf fails at a smaller width for some reason. Loading it at runtime from an external source seems to allow larger files. No scaling is going on. -Greg - Original Message From: Daniel Freiman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 2, 2007 7:10:25 AM Subject: Re: [flexcoders] Maximum Image Width able to be displayed The 8191px limit has been confirmed. The 2880 limit is on instantiating BitmapData objects, but the player allows for the existence of BitmapData objects larger than 2880. So if you can get the player to create a BitmapData object for you that is larger than 2880 then you're in the clear. I'm keeping a running list of known limitations here: http://nondocs. blogspot. com/2007/ 05/faqlimitation s.html - Dan Freiman On 11/2/07, Jon Bradley [EMAIL PROTECTED] l.com wrote: On Nov 2, 2007, at 3:11 AM, greggiacovelli wrote: Hi, I have been trying to figure out a way around this for a few weeks. It seems there is an undocumented limit of around 8192 px wide images that can be rendered inside of the flash player. Is this an undocumented limitation or is there a way to get around it? I believe that is correct. I think the maximum addressable space in Flex is around that number. Someone from Adobe may be able to confirm/debunk that ... I assume you're loading a bitmap smaller than that then scaling it up? Didn't think you could load a bitmap larger than 2880. cheers, jon !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff;text-decoration:none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} -- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a{ text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc{ background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad
[flexcoders] Aha... did someone say C/C++ to AS3???
woo I just saw the video [1] damn. list... how come I see so little buzz on this!!!?? It is THE biggest thing I have seen so far related to the flash player. Bu, bu, please!!! - is this real? - when should we expect this to hit the street, if ever ( we need to get prepared ya know... ) - hmm what happens with licenses... can we just port EVERY open source c/cpp interpreter, codec, lib, etc to as3? damn. this is one of those things that make me question everything about everything. It just changes the rules of the game completely. It is too good to be true, and at the same time too bad... i'm confused. Of course, it makes sense. In the race for the WebOS desktop... Adobe will have to port their desktop applications to their universal client platform. How much will the photoshop v.2010 online subscription cost? anyone? [1] http://www.youtube.com/watch?v=0hX-Uh3oTcE -- Aldo Bucchi +1 858 539 6986 +56 9 8429 8300 +56 9 7623 8653 skype:aldo.bucchi
[flexcoders] [Mac] Copy and Paste in Camino
Is anybody else unable to copy and paste text in Camino (on the Mac)? Does anyone know if Camino is even supported? Copy and paste doesn't work for any sort of editable text field (textinput, textarea, etc). It works for FireFox and Safari, but not Camino (using the latest version 1.5.3).
Re: [flexcoders] Maximum Image Width able to be displayed
On Nov 2, 2007, at 3:11 AM, greggiacovelli wrote: Hi, I have been trying to figure out a way around this for a few weeks. It seems there is an undocumented limit of around 8192 px wide images that can be rendered inside of the flash player. Is this an undocumented limitation or is there a way to get around it? I believe that is correct. I think the maximum addressable space in Flex is around that number. Someone from Adobe may be able to confirm/ debunk that ... I assume you're loading a bitmap smaller than that then scaling it up? Didn't think you could load a bitmap larger than 2880. cheers, jon
RE: [flexcoders] Convert ByteArray to Bitmap
Oops, sorry, this one makes slightly more sense (first thing in the morning, not even finished my first cuppa...) private var _ldr:Loader private function myTest():void{ //get ByteArray from Image Component content var testBM:Bitmap = testImg.content as Bitmap; var myByte:ByteArray = new JPEGEncoder().encode(testBM.bitmapData); _ldr = new Loader(); _ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,bitmapLoaded); _ldr.loadBytes(myByte); } private function bitmapLoaded(event:Event) { _ldr.removeEventListener(Event.COMPLETE,bitmapLoaded) //reset source myImage.source = _ldr.content; } . http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/ msgId=92581/stime=1193998266/nc1=4507179/nc2=3848642/nc3=5008826 __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
RE: [flexcoders] Convert ByteArray to Bitmap
After reading some previous posts, it appears that the best way to convert a byte array into a Bitmap is though the loader class... In my debugging it fails silently, but I get the follow message when I try to look into the vars (Error: Error #2099: The loading object is not sufficiently loaded to provide this information.) Also the content property is null even though the bytes are fully loaded. Is there another better way to do this. I have been struggling with this all day. Thanks, Kevin Hi Kevin, I feel your pain! Having been through this one before ... It doesn't work quite as one (well, myself in any case) would expect on first look. Even when feeding in an already complete byteArray, you still have to listen for the load Complete event. Up until that event, loader.content remains null. _jpgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,jpgCompleteHandler); try something like this (it could do with an IoError event listener as well,perhaps?) : private var _ldr:Loader private function myTest():void{ //get ByteArray from Image Component content var testBM:Bitmap = testImg.content as Bitmap; var myByte:ByteArray = new JPEGEncoder().encode(testBM.bitmapData); //convert ByteArray to Bitmap _ldr = new Loader(); _ldr.addEventListener(Event.COMPLETE,bitmapLoaded); _ldr.loadBytes(myByte); } private function bitmapLoaded(event:Event) { _ldr.removeEventListener(Event.COMPLETE,bitmapLoaded) //reset source myImage.source = _ldr.content; } (Personally I like to keep a permanent reference to the loader, rather than casting it from the event.target) Alex, I think it does work as it's meant to, but I would really like to have a means to do the same byteArray bitmapData conversion synchronously without the listener. If anyone can help with that, then please let me know! Also, I did have some difficulty with the docs in this respect, a small sample like the above would help greatly imho. Jim. __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
RE: [flexcoders] Cannot convert Event to ResizeEvent
Hmm, there are no resize listeners on the system manager. There are a couple listening on the stage, but they all expect an event:Event parameter. Like I say, even when the code bases are the same, it does't work on my computer, but does work on a colleagues. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 01 November 2007 18:34 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent You would do a search for resize not resizeEvent. It appears that someone is listening to resize on the systemManager by accident. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, November 01, 2007 9:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent Nope, I've done a search for the term ResizeEvent in all projects and I don't get a single match. I've tested it on a colleague's computer (which works fine) and the only difference between our dev boxes is the fact I'm running Vista and he's running XP. Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 01 November 2007 16:09 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent Is anything listening for a resize event in either swf? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, November 01, 2007 7:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cannot convert Event to ResizeEvent Hi, I'm getting this odd error when trying to load a Flex application inside a parent Flex application: TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::[EMAIL PROTECTED] to mx.events.ResizeEvent. at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.managers::SystemManager/setActualSize()[C:\dev\flex_201_gmc\sdk\frame works\mx\managers\SystemManager.as:1753] at mx.controls::SWFLoader/doScaleContent()[C:\dev\flex_201_gmc\sdk\framewor ks\mx\controls\SWFLoader.as:1449] at mx.controls::SWFLoader/updateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\controls\SWFLoader.as:1091] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] I have no idea why, especially when the word ResizeEvent doesn't even occur in any of our source code... Has anyone seen this before?? Mark
[flexcoders] Charts: Specifying Series Effects in ActionScript
Hello, I have a LineChart and I would like to use the SeriesSlide effect. If I create my LineSeries in mxml, I can specify the showDataEffect and hideDataEffect for this. mx:LineSeries showDataEffect=.../ However, I create my series dynamically in ActionScript and cannot find the equivalent syntax: var ls:LineSeries = new LineSeries(); ls.showDataEffect =... //invalid How can I specify the effect for the LineSeries in AS? Many Thanks, Aman
[flexcoders] setChildIndex issue
Hey guys... I'm working in a application were I need to let the user set the order of 3 panels using drag and drop. These panels are inside a container. The children of the container are another container that I don't need to do any of this (always in the position 0 of the children array) and the 3 panels to be dragged. The user should be able to drag a panel and drop it in the position he wants it to be, and the other panels should reorder. For example, if the user takes the first panel and wants to put it in the middle of the 3 panels, the second panel should take the place of the first panel and the dragged panel should be in the middle (position 2). To do this I have a handler to the drop of the panel, and I calculate its new position through the y's of the panels. Once I have the new position I setChildIndex of the panel. Sometimes it works, sometimes it doesn't. When I put a panel in the middle of the bunch (panel.parent.setChildIndex(panel, 2)) it swaps the panels of the position 1 and 3. This should happen, because I dont set any other childIndex. For example, if a have A B and C in that order, and I want to put A in the middle it should be B A C, but it stays like this: C A B. It shouldn't switch B and C. Does anyone know why this happen? Here is the code for panel drop: private function panelDrop (event:FlexEvent):void { var menu:MyPanel = event.currentTarget as MyPanel; // panel that is being dropped. var position:int = 1; // it is initialized in 1, because in 0 there is no panel. for (var i:int = 0; i pnl_container.numChildren; i++) // finds the new position of the dropped panel. { if (this.pnl_container.getChildren()[i] is MyPanel) // gets the child at i { var obj:MyPanel = pnl_container.getChildAt(i) as MyPanel; // child at i if ( menu.y obj.y ) // if the y of the dropped menu is bigger than the child at position i, the position of the new panel is one lower. { position++; } } } menu.parent.setChildIndex(menu,position); // it sets the new position of the panel. I believe the problem is here. The problem is not searching the position, I have debugged and that is ok. } Thanx a lot guys =D
[flexcoders] Re: FDS ManualSync and AS [Managed] Metadata
I have some questions about manual sync with LCDS 2.5.1. --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: One other difference is that the refresh fill process - i.e. where the server refreshes fill methods after an insert or update or explicit refreshFill call is made on the server does not work with manual sync. Since the server has no knowledge of what fills each client is actively managing and does not cache its current set of ids, it can't refresh it. But the assembler doesn't know what fills are active, either. Or am I missing something? The assembler can keep track of a client's initial use of a fill (by saving the fillParams argument to the assembler's fill method), but can the assembler get notification when the fill is no longer being used (e.g., when the client goes away)? You can still update queries by using the DataServiceTransaction.addItemToFill and removeItemFromFill methods. In my experimentation, you have to call addItemToFill and removeItemFromFill with the *exact* fill parameters (unlike the matching that is done by refreshFill). Hence the need to keep track of which fills are active. Also, in my experimentation, the client only seems to get the collection-change event if the addItemToFill call has position=-1. Is that expected? In my application, the fills have a sort value, meaning that the new item could be in different positions in different fills anyway, so what I think the client should do is to just start the fill over again when an item is created. How would the assembler notify the client that it should do that? (That is, how do I get something similar to a refreshFill method returning EXECUTE_FILL in the auto-sync case?) Of course the other server side methods updateItem, createItem, and deleteItem also still work though make sure that any use of these apis also supply the producerSubtopics or producerDefaultHeaders needed to route these changes to the right clients. What exactly are createItem and deleteItem good for in the manual-sync case? They're not pushing anything to the clients. thanks/jeff
RE: [flexcoders] Convert ByteArray to Bitmap
Yeah, things are working, but really there should be a loadBytes() API on mx:Image/SWFLoader to save you a step. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes Sent: Friday, November 02, 2007 3:16 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Convert ByteArray to Bitmap Oops, sorry, this one makes slightly more sense (first thing in the morning, not even finished my first cuppa...) private var _ldr:Loader private function myTest():void{ //get ByteArray from Image Component content var testBM:Bitmap = testImg.content as Bitmap; var myByte:ByteArray = new JPEGEncoder().encode(testBM.bitmapData); _ldr = new Loader(); _ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,bitmapLoaded); _ldr.loadBytes(myByte); } private function bitmapLoaded(event:Event) { _ldr.removeEventListener(Event.COMPLETE,bitmapLoaded) //reset source myImage.source = _ldr.content; } . http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/ msgId=92581/stime=1193998266/nc1=4507179/nc2=3848642/nc3=5008826 __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
[flexcoders] Re: Flex/ActionScript wrapper for Pownce API
Oops, the Rich Text Editor screwed up the link. Here is the link again to the Pownce API wrapper: http://blog.makesoft.de/2007/11/powncelib-actionscript-3-library-for-pownce/ Sorry... --- In flexcoders@yahoogroups.com, kaiser.marco [EMAIL PROTECTED] wrote: Hi all, there is a wrapper for the new Pownce API http://blog.pownce.com/2007/10/30/pownce-public-api/ available. This is an alpha release, so work on it is still needed, but it should already be able to handle most of the request options. Read more about the wrapper here http:// .
RE: [flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed.
Yes, could be bug in the compiler. Can you turn this into a small test case? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lrdvadersith Sent: Friday, November 02, 2007 10:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed. If I comment out the body, I get the same error at the same place. For grins, I also tried renaming the method in case deleteHandler was somehow reserved. Same result. At this point it looks like the ActionScript compiler (or maybe the flash player) reacts differently based on method order, but I haven't seen anything that required ActionScript methods to be declared in any particular order. BTW, I tried this on another computer to rule out my particular Flex and Flash software, and got the same results on the other computer as well. Could there be a bug in the compiler? Steve --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: verification occurs just before the call. It looks at the code in the body to make sure it looks reasonable. If you comment out the body, what happens?
[flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed.
deleteApplicationCallback is injected by the user of the service, but my hunch is that it isn't a problem because the deleteHandler never gets called. The verify error appears to be happening when Flex is trying to make the call to the deleteHandler - if I put a breakpoint inside the function, it never gets reached. Now here is where things get a little weird: If I take the deleteHandler function and move it up in my file, everything works. I changed no other code, I just reorded the methods. I can't think of any reason why the method order should make a difference, but in my code, it does. Anyone have any ideas? Steve --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I don't think I saw where deletApplicationCallback gets assigned. Maybe others have suggestions as to how to do this w/o blind callbacks. Callbacks of type Function lose compile time type checking and can become a pain to manage, but shouldn't be the problem here.
Re: [flexcoders] Maximum Image Width able to be displayed
On Nov 2, 2007, at 12:30 PM, Greg Giacovelli wrote: So what it seems is going on is that it renders the image, clips it, and then displays the visible region and applies a mask over the rest. However the render fails so the rest of the steps are just wasted cycles. I have a fix to just chop the image in half prior to loading it. But since I am not the only one with this problem, I was wondering if there are known strategies I don't know of to get around this feature. Create a rectangle and move that using any of your available tween libraries. Use the rectangle to copy pixels from the virtual 'region' that the rectangle represents on the original image into a new Bitmap that represents the visible area. cheers, jon
[flexcoders] Re: Prevent Mouse events
Thanks Alex, but I dont't understand. Are you setting a flag on the event? I think that setting a flag in user code will not stop the stage from listening to mouse move event or mouse move event from dispatching. Can you please clarify? For example, i am dispatching mouse move event like this: dg.getChildAt(2).dispatchEvent(new MouseEvent(MouseEvent.MOUSE_MOVE, true, false, 100, 50)); what I would like to archive would be to prevent mouse from dispatching its own mouse move event when ever it is moved, so that i control the flow of the app with dispatching events within action script instead of dispatching them by clicking or moving a mouse. Thanks --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: We do this by setting a flag when we dispatch the faked event so the blocking handler doesn't block. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of workmichal Sent: Friday, November 02, 2007 7:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Prevent Mouse events Thanks guys, the idea behind this is to control the app by simply dispatching events. so for example i can initiate drag and drop between grids by dispatching mouse down and mouse move events, however the problem is that when i start moving a mouse than manual events are in conflict with actual mouse events. The only thing that comes to my mind which would address this would be to temporarily disconnect default application(systemManager) mouse listeners or to actually associate mouse cursor with manual event, however i was not able to figure out how to implement any of these. Any ideas are appreciated. Thanks, --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Daniel Freiman FreimanCQ@ wrote: This method intercepts right mouse clicks using javascript, so it should be adaptable for left/all mouse clicks. Although I have to agree with Alex, I other than right mouse clicks, I can't think of a situation where this wouldn't be overkill. http://code.google.com/p/custom-context-menu/ http://code.google.com/p/custom-context-menu/ - Dan Freiman On 11/2/07, Alex Harui aharui@ wrote: Why do you have to be that bulletproof? You'd probably have to find a way to block the events from the OS going to the plug-in in the browser. -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *workmichal *Sent:* Thursday, November 01, 2007 1:52 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Re: Prevent Mouse events Hi, thanks for your input; however, this is not a solution that I am looking for since for example mouse event will still fire, or click event on the shield will still occur. What I am looking for is to disconnect mouse events from the flex app so that none of the events would ever dispatched. Thanks, --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: stopImmediatePropagation, or place a transparent 'shield' over the app. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of workmichal Sent: Thursday, November 01, 2007 10:02 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Prevent Mouse events Hi there, I am trying to prevent my Flex application from capturing any mouse events within the app. I tried mouseChildren, mouseEnabled but my application is still receiving events like mouse move. Is there a way to disable and enable participation of the mouse within the Flex app? Thank you
RE: [flexcoders] Aha... did someone say C/C++ to AS3???
Quake in Flash. Quite awesome :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aldo Bucchi Sent: 02 November 2007 16:30 To: flexcoders@yahoogroups.com Subject: [flexcoders] Aha... did someone say C/C++ to AS3??? woo I just saw the video [1] damn. list... how come I see so little buzz on this!!!?? It is THE biggest thing I have seen so far related to the flash player. Bu, bu, please!!! - is this real? - when should we expect this to hit the street, if ever ( we need to get prepared ya know... ) - hmm what happens with licenses... can we just port EVERY open source c/cpp interpreter, codec, lib, etc to as3? damn. this is one of those things that make me question everything about everything. It just changes the rules of the game completely. It is too good to be true, and at the same time too bad... i'm confused. Of course, it makes sense. In the race for the WebOS desktop... Adobe will have to port their desktop applications to their universal client platform. How much will the photoshop v.2010 online subscription cost? anyone? [1] http://www.youtube.com/watch?v=0hX-Uh3oTcE http://www.youtube.com/watch?v=0hX-Uh3oTcE -- Aldo Bucchi +1 858 539 6986 +56 9 8429 8300 +56 9 7623 8653 skype:aldo.bucchi
[flexcoders] mx:Text - how to get number of lines of text?
Hi, I have an mx:Text control and I want to know the length of the last line. I can do this with the following: var metrics:TextLineMetrics = myTextControl.getLineMetrics (indexOfLastLine); Trouble is, I don't the right value for 'indexOfLastLine' because I don't know how many lines there are in the text control. I'm assuming I'm missing something obvious, can someone tell me how to get the number of lines? Thanks, Paul.
[flexcoders] Maximum Image Width able to be displayed
Hi, I have been trying to figure out a way around this for a few weeks. It seems there is an undocumented limit of around 8192 px wide images that can be rendered inside of the flash player. Is this an undocumented limitation or is there a way to get around it? Basically the player just renders a blank image. I cropped the image and it loads fine, but as soon as I expand it past 8000px it dies. I apologize if this is an elementary style question however, at this point I am completely stumped. Please help -Greg
Re: [flexcoders] Maximum Image Width able to be displayed
The 8191px limit has been confirmed. The 2880 limit is on instantiating BitmapData objects, but the player allows for the existence of BitmapData objects larger than 2880. So if you can get the player to create a BitmapData object for you that is larger than 2880 then you're in the clear. I'm keeping a running list of known limitations here: http://nondocs.blogspot.com/2007/05/faqlimitations.html - Dan Freiman On 11/2/07, Jon Bradley [EMAIL PROTECTED] wrote: On Nov 2, 2007, at 3:11 AM, greggiacovelli wrote: Hi, I have been trying to figure out a way around this for a few weeks. It seems there is an undocumented limit of around 8192 px wide images that can be rendered inside of the flash player. Is this an undocumented limitation or is there a way to get around it? I believe that is correct. I think the maximum addressable space in Flex is around that number. Someone from Adobe may be able to confirm/debunk that ... I assume you're loading a bitmap smaller than that then scaling it up? Didn't think you could load a bitmap larger than 2880. cheers, jon
[flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed.
I'm not sure I could. On the one hand, I can make an entry point to the Soap class that doesn't need the classes above it, but on the other, this problem happens on the return of a web service. If I strip out the Web Service, the handler code wouldn't be called in the same way. Steve --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Yes, could be bug in the compiler. Can you turn this into a small test case?
Re: [flexcoders] Aha... did someone say C/C++ to AS3???
On Nov 2, 2007, at 12:30 PM, Aldo Bucchi wrote: It is THE biggest thing I have seen so far related to the flash player. It's cool, no doubt. There are questionable elements to that demonstration. Although it was primarily running in the Player, it's likely that the actual rendering was done using low-level within a modified version of the Player. An interpreted language is just not fast enough, and there is no way the current Player version couldn't approach a 30fps playback speed with the graphics of Quake. Something has to give somewhere. Details are not plentiful enough to fully evaluate the approach. - is this real? To some extent, it sure is. Pre-processing C into other languages has been around a long time. This is the first time a lot of people have seen this approach because they don't come from a traditional software dev. background. - when should we expect this to hit the street, if ever ( we need to get prepared ya know... ) It's RD tech. I don't think this is to be expected anytime soon, but I could be wrong about that. - hmm what happens with licenses... can we just port EVERY open source c/cpp interpreter, codec, lib, etc to as3? Licenses? This is kinda moot. It's the possibility of porting C to AS3, not whether or not it's legal. Could you port over mp3 codecs? Sure you probably could, but you'd have to pay dearly. damn. this is one of those things that make me question everything about everything. It just changes the rules of the game completely. It is too good to be true, and at the same time too bad... i'm confused. Remove the coolness factor for one moment of being able to see Quake run in the Flash Player. Then wonder how modified that Player version was... Quake is available open source. Why in the world would you want to put it in AS3 – aside from absolute coolness factor? We have to remember target audiences here. Gamers expect cool ass graphics and high framerates. Even with hardware acceleration, you can't fine tune memory management and eek out as many CPU cycles as you can to get the best playback. Try getting the PhysX libraries to run at a decent rate in an interpreted language To me, it means more libraries are available for use to AS3 (or 4) developers. Those libraries are already there and we can already use them. We just have to port it by hand. Just like the PNG and JPG encoder were ported by Tinic. Took a bit of thinking I'm sure, but it works. The absolutely cool factor is the amazing speed at which they demonstrated code being ported over, questions about implementation notwithstanding. The technology is highly cool, no doubt. I'd just keep focus on what it really means at this present time - a faster way to get more code into Flash. Heck, I'm excited because I might be able to resurrect some pretty complex projects – complex for me, 8 or so years ago – that were built in Codewarrior. :) cheers, jon
RE: [flexcoders] mx:Text - how to get number of lines of text?
That's not an exposed API. Probably worth filing a bug as your not the first to ask for it. For now, subclass Text and get to the underlying TextField From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Booth Sent: Friday, November 02, 2007 10:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:Text - how to get number of lines of text? Hi, I have an mx:Text control and I want to know the length of the last line. I can do this with the following: var metrics:TextLineMetrics = myTextControl.getLineMetrics(indexOfLastLine); Trouble is, I don't the right value for 'indexOfLastLine' because I don't know how many lines there are in the text control. I'm assuming I'm missing something obvious, can someone tell me how to get the number of lines? Thanks, Paul.
RE: [flexcoders] Re: Tree: Removing expand triangle from select nodes
isBranch didn't work? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djdyland Sent: Friday, November 02, 2007 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Tree: Removing expand triangle from select nodes Thanks for your help guys, Adding in a customITreeRenderer seems to fix the problem. It looks like this.. package { import mx.controls.treeClasses.*; import mx.collections.*; public class CustomTreeItemRenderer extends TreeItemRenderer { // Define the constructor. public function CustomTreeItemRenderer() { super(); } // Override the set method for the data property // to set the font color and style of each node. override public function set data(value:Object):void { super.data = value; if(super.listData != null){ if(TreeListData(super.listData).hasChildren) { setStyle(fontWeight, 'bold'); } else { setStyle(fontWeight, 'normal'); } } } // Override the updateDisplayList() method // to set the text for each tree node. override protected function updateDisplayList (unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if(super.data) { if(TreeListData(super.listData).hasChildren) { var tmp:XMLList = new XMLList(TreeListData (super.listData).item); var myStr:int = tmp[0].children().length(); super.label.text = TreeListData (super.listData).label + ( + myStr + ); } } } } } --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Here is one that draws lines between siblings, perhaps it will help you see what to do. http://www.cflex.net/showFileDetails.cfm?ObjectID=575 http://www.cflex.net/showFileDetails.cfm?ObjectID=575 Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Monday, October 29, 2007 4:10 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Re: Tree: Removing expand triangle from select nodes A custom TreeItemRenderer? Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of djdyland Sent: Monday, October 29, 2007 3:43 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Tree: Removing expand triangle from select nodes So I guess to simplify my question... how do I apply myTree.setStyle(disclosureOpenIcon, null); myTree.setStyle(disclosureCloseIcon, null); to individual nodes instead if the whole tree? Anyone have any idea --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , djdyland djdyland@ wrote: Hi, Thanks for the reply. Like I said I have a ITreeDataDescriptor. But I don't see how I can use that to disable the expand triagle for certain nodes. Thanks Dylan --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Custom ITreeDataDescriptor From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of djdyland Sent: Monday, October 29, 2007 8:41 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Tree: Removing expand triangle from select nodes Hello, I'm building a scripting reference app that is populated from an XML file. The structure is something like this. groupOfAssociatedClasses name=name of container class name=className property name=propertyName typetheType/type /property method name=methodName inputTypetype/inputType returnValuevalue/returnValue /method /class class name=className property name=propertyName typetheType/type /property method name=methodName inputTypetype/inputType returnValuevalue/returnValue /method /class /groupOfAssociatedClasses groupOfAssociatedClasses name=name of container class name=className property name=propertyName typetheType/type /property method name=methodName inputTypetype/inputType returnValuevalue/returnValue /method /class /groupOfAssociatedClasses I created a tree discriptor to filter out all the children on each class so it doesn't display them in the tree. All I want to see in the tree is the names of the containers and the names of the classes.
[flexcoders] moving a LinkBar
I have a LinkBar that I need to move from the bottom of the screen to the top of the screen when the user clicks on one of the items in the LinkBar. Then once it gets to where it's going, disable the move effect so that it doesn't get repeated when the user clicks another item in the same LinkBar. Thanks, Ric
[flexcoders] how to refer to Flex components in ActionScript?
There is a section of the Flex 2 Developer's Guide (- Using Flex Programming Language - Using ActionScript - Working with Flex components - Referring to Flex components ) that talks about referring to flex components via the id of that component. The example given uses inline script, but it states : The IDs for all tags in an MXML component, no matter how deeply nested they are, generate public variables of the component being defined. As a result, all id properties must be unique within a document. This also means that if you specified an ID for a component instance, you can access that component from anywhere in the application: from functions, external class files, imported ActionScript files, or inline scripts. I cannot get this to work with an external AS file/class. I have created external ActionScript files which define classes which I import in my main application .mxml script section. For example, I have a TextArea component in my .mxml file with an id='messageLog'. I have a business object defined in an external AS file, which is imported in the inline SCRIPT section of the same .mxml file. Yes, the AS files are in the source path and resolve fine. Based on the Developer's Guide, within that object I should be able to do something like 'messageLog.text = my message;'. I've even tried having a TextArea var within the business object, and trying to set that reference with Application.appliction.getChildByName(messageLog), but that returns null as well. What am I missing? Is it a scope or namespace issue? The way I'm getting around it now is using set methods in the SCRIPT section to pass the Flex components into the AS classes (many of which are singletons, but that's another issue), but that seems like a hack, or at least not any kind of best practice. Thanks
Re: [flexcoders] how to refer to Flex components in ActionScript?
Brian - If you have your components nested within other components (like a VBox, HBox, etc.) then I believe you would have to get to them through their parent. For example: myview.mxml mx:Panel id=myTopPanel mx:TextField id=myTextField ... myview.as { ... var myTextField:TextField = myTopPanel.myTextField; ... } hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com Brian wrote: There is a section of the Flex 2 Developer's Guide (- Using Flex Programming Language - Using ActionScript - Working with Flex components - Referring to Flex components ) that talks about referring to flex components via the id of that component. The example given uses inline script, but it states : The IDs for all tags in an MXML component, no matter how deeply nested they are, generate public variables of the component being defined. As a result, all id properties must be unique within a document. This also means that if you specified an ID for a component instance, you can access that component from anywhere in the application: from functions, external class files, imported ActionScript files, or inline scripts. I cannot get this to work with an external AS file/class. I have created external ActionScript files which define classes which I import in my main application .mxml script section. For example, I have a TextArea component in my .mxml file with an id='messageLog'. I have a business object defined in an external AS file, which is imported in the inline SCRIPT section of the same .mxml file. Yes, the AS files are in the source path and resolve fine. Based on the Developer's Guide, within that object I should be able to do something like 'messageLog.text = my message;'. I've even tried having a TextArea var within the business object, and trying to set that reference with Application.appliction.getChildByName(messageLog), but that returns null as well. What am I missing? Is it a scope or namespace issue? The way I'm getting around it now is using set methods in the SCRIPT section to pass the Flex components into the AS classes (many of which are singletons, but that's another issue), but that seems like a hack, or at least not any kind of best practice. Thanks
[flexcoders] conflicts resolution for flex data service and hibernate
I have two classes, Survey and Question. Both of them have version attribute. Class Survey reference a collection of Question. When I add new Question object into the collection reference in Survey, then I commit. e.g. surveyServiceervice.fill(surveys, survey.all, []); var survey:Survey = surveys.getItemAt(0); var question:Question = new Question(); survey.questions.addItem(question); surveyService.commit([survey], true); in my database, I see the new question object persisted, with foreign key pointing to the survey. I also see the question has a version number of 1. Here is my headache: all the other question objects in the survey.questions have their version number increase by 1. But they are not reflected in the client (browser) side. This makes all my client side data obsolete. I wonder whether this is the supposed behavior of hibernateflex? if not, what configuration attributes I need to take care of? Thanks a lot! York
RE: [flexcoders] AMFPHP Flex 3 Beta
Well I've exposed a dump of the actionscript object easily enough that's being returned and the object in PHP is just a result from a MySQL query. I can get at the data currently, but if you notice down below, there aren't any named references for the columns, which make it nearly impossible to using bindings. public function getProjects():void { amfConnection.call( Something.getProjects, new Responder(getProjectsOnResult, OnFault), userInfo.uid); } public function getProjectsOnResult( result:Object ) : void { var projectDP:ArrayCollection = new ArrayCollection(); for( var i in result.serverInfo.initialData) { var name:String = result.serverInfo.initialData[i][3]; var pid:String = result.serverInfo.initialData[i][0]; projectDP.addItem({name:name, pid:pid}); } projects.labelField = name; projects.dataProvider = projectDP; } The old phrase of If it ain't broke, don't fix it comes to mind when I see whats being returned ala AMF3. Any suggestions you can make would be greatly appreciated. Cheers, Kevin _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Samuel R. Neff Sent: Thursday, November 01, 2007 2:14 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AMFPHP Flex 3 Beta We use Fluorine and NetConnection directly.. much smaller than using the mx rpc classes and is more future proof since NetConnection is built into the player and won't change whereas rpc classes don't even have source available and have a history of breaking stuff in hotfixes with 3rd party AMF implementations. I don't think any of the proper wrappers of NetConnection provide data reformatting for AMF--that's provided by the player. With Fluorine we certainly don't see things coming back ugly or restructured. So perhaps the better quest to ask is to show a dump of the data in PHP and then in AS3 and ask for how to get it to what you want (stating what you want of course). HTH, Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Thursday, November 01, 2007 11:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AMFPHP Flex 3 Beta Hey all, I've seen all kinds of posts and suggestions from people online suggesting various ways to connect to an AMFPHP service, but I want to do it the *proper* way. I'm somewhat old school and have made connections with NetConnection, but the data that comes back from a MySQL result is ugly and has obviously been restructured. What's the best way and can someone provide an example of using this method in AS3? Thanks for your time, !k
RE: [flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed.
Can you make the site available to me? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lrdvadersith Sent: Friday, November 02, 2007 11:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: VerifyError: Error #1025: An invalid register 5 was accessed. I'm not sure I could. On the one hand, I can make an entry point to the Soap class that doesn't need the classes above it, but on the other, this problem happens on the return of a web service. If I strip out the Web Service, the handler code wouldn't be called in the same way. Steve --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Yes, could be bug in the compiler. Can you turn this into a small test case?
RE: [flexcoders] AMFPHP Flex 3 Beta
ah, that's the format the old Flash Recordset class used so it makes sense that AMFPHP would use the same format. Fluorine provides support for both that style and for ArrayCollection of Object instances which is more Flex friendly. My suggestion would be to create a Recordset implementation and use that as a wrapper. You can look at the Recordset.as file included with Flash 8 remoting for hints on how it's done. I'm actually surprised nobody else has solved his problem already for AMFPHP. HTH, Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Friday, November 02, 2007 3:46 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AMFPHP Flex 3 Beta Well I've exposed a dump of the actionscript object easily enough that's being returned and the object in PHP is just a result from a MySQL query. I can get at the data currently, but if you notice down below, there aren't any named references for the columns, which make it nearly impossible to using bindings. public function getProjects():void { amfConnection.call( Something.getProjects, new Responder(getProjectsOnResult, OnFault), userInfo.uid); } public function getProjectsOnResult( result:Object ) : void { var projectDP:ArrayCollection = new ArrayCollection(); for( var i in result.serverInfo.initialData) { var name:String = result.serverInfo.initialData[i][3]; var pid:String = result.serverInfo.initialData[i][0]; projectDP.addItem({name:name, pid:pid}); } projects.labelField = name; projects.dataProvider = projectDP; } The old phrase of If it ain't broke, don't fix it comes to mind when I see whats being returned ala AMF3. Any suggestions you can make would be greatly appreciated. Cheers, Kevin
RE: [flexcoders] Aha... did someone say C/C++ to AS3???
The demo was on a custom Flash Player but my understanding of the only real change is that he made some performance improvements in our ByteArray class (that we can hopefully incorporate into a future release). As part of the demo I believe the sound was not actually coming out of the Player, but the graphics all were. This was definitely a research project, we'll see what happens in the future but there's no immediate release plans. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: Friday, November 02, 2007 11:34 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Aha... did someone say C/C++ to AS3??? On Nov 2, 2007, at 12:30 PM, Aldo Bucchi wrote: It is THE biggest thing I have seen so far related to the flash player. It's cool, no doubt. There are questionable elements to that demonstration. Although it was primarily running in the Player, it's likely that the actual rendering was done using low-level within a modified version of the Player. An interpreted language is just not fast enough, and there is no way the current Player version couldn't approach a 30fps playback speed with the graphics of Quake. Something has to give somewhere. Details are not plentiful enough to fully evaluate the approach. - is this real? To some extent, it sure is. Pre-processing C into other languages has been around a long time. This is the first time a lot of people have seen this approach because they don't come from a traditional software dev. background. - when should we expect this to hit the street, if ever ( we need to get prepared ya know... ) It's RD tech. I don't think this is to be expected anytime soon, but I could be wrong about that. - hmm what happens with licenses... can we just port EVERY open source c/cpp interpreter, codec, lib, etc to as3? Licenses? This is kinda moot. It's the possibility of porting C to AS3, not whether or not it's legal. Could you port over mp3 codecs? Sure you probably could, but you'd have to pay dearly. damn. this is one of those things that make me question everything about everything. It just changes the rules of the game completely. It is too good to be true, and at the same time too bad... i'm confused. Remove the coolness factor for one moment of being able to see Quake run in the Flash Player. Then wonder how modified that Player version was... Quake is available open source. Why in the world would you want to put it in AS3 - aside from absolute coolness factor? We have to remember target audiences here. Gamers expect cool ass graphics and high framerates. Even with hardware acceleration, you can't fine tune memory management and eek out as many CPU cycles as you can to get the best playback. Try getting the PhysX libraries to run at a decent rate in an interpreted language To me, it means more libraries are available for use to AS3 (or 4) developers. Those libraries are already there and we can already use them. We just have to port it by hand. Just like the PNG and JPG encoder were ported by Tinic. Took a bit of thinking I'm sure, but it works. The absolutely cool factor is the amazing speed at which they demonstrated code being ported over, questions about implementation notwithstanding. The technology is highly cool, no doubt. I'd just keep focus on what it really means at this present time - a faster way to get more code into Flash. Heck, I'm excited because I might be able to resurrect some pretty complex projects - complex for me, 8 or so years ago - that were built in Codewarrior. :) cheers, jon
Re: [flexcoders] Aha... did someone say C/C++ to AS3???
On Nov 2, 2007, at 4:27 PM, Matt Chotin wrote: The demo was on a custom Flash Player but my understanding of the only real change is that he made some performance improvements in our ByteArray class (that we can hopefully incorporate into a future release). As part of the demo I believe the sound was not actually coming out of the Player, but the graphics all were. If the only change was to the ByteArray class then all I have to say is ... ... damn. Now all that remains if for you guys to post up that converted AS3 code for peer review. Quake is open source ya know ... :o) - jon
[flexcoders] Why is mouseOut being called?
I have a very basic Canvas. It has a VBox that holds some text and then under that is a HBox that holds some other test. The canvas has both mouseOver and mouseOut events defined. I also tried rollOver and rollOut and get the exact same thing. When I move my cursor in between the text lines in the top VBox as was as when I move the cursor in between the top VBox and the bottom HBox, the mouseOut event fires. Also the rollOut fires when I try that. Why? I'm clearly withing the Canvas. Here is the Canvas with some scripts removed... Thanks, Dale ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:components=components.* mouseOver=onMouseOver(event) mouseOut=onMouseOut(event) mx:Script ![CDATA[ private function onMouseOver(event:MouseEvent):void { trace(onMouseOver); { private function onMouseOut(event:MouseEvent):void { trace(onMouseOut); } ]] /mx:Script mx:VBox width=100% paddingLeft=10 mx:Text id=listingNameText text={listing.title} width=100% height=24 styleName=resultTitle / mx:Text id=listingLocation text={listing.city}, {listing.state} width=100% height=13.5 styleName=resultCity / mx:Text id=listingDesc text={listing.description} width=100% height=25 styleName=resultDesc / /mx:VBox mx:HBox id=listingDollars width=100% horizontalGap=0 height=18 bottom=0 paddingLeft=10 mx:HBox horizontalGap=0 width=30% mx:Text text=CF: styleName=resultFinHead width=15/ mx:Text text={ usdFormatter.format(StringUtils.nullToBlank(listing.cashFlow)) } styleName=resultFinValue width=60 height=18/ /mx:HBox mx:HBox horizontalGap=0 width=30% mx:Text text=R: styleName=resultFinHead width=15/ mx:Text text={ usdFormatter.format(StringUtils.nullToBlank(listing.revenue)) } styleName=resultFinValue width=60 height=18/ /mx:HBox mx:HBox horizontalGap=0 width=40% mx:Text text=A: styleName=resultFinHead width=15/ mx:Text text={ usdFormatter.format(StringUtils.nullToBlank(listing.price)) } styleName=resultFinValueSorted width=60 height=18/ /mx:HBox /mx:HBox /mx:Canvas
[flexcoders] Function to generate TitleWindows
Hi there, I have this simple function that is used in my application to generate a TitleWindow. private function loadAddCustomerForm():void { var form:addCustomer=addCustomer(PopUpManager.createPopUp( this, addCustomer , true)); var dx:Number = (mainPanel.width - form.width)/2; var dy:Number = (mainPanel.height - form.height)/2; form.x=dx; form.y=dy; } This works perfect but I want to alter this so that I can use the same function to generate similar forms. i.e. I don't want to declare this function for every single form that I want to create. All I want is to pass a parameter, let's say loadForm('addCustomer'), which will do exactly the same thing as the above, but also assign the name 'addCustomer' into the form. Any help ? :-) Thanks, George
RE: [flexcoders] AMFPHP Flex 3 Beta
You and me both. Thanks a lot for your help. I'm going to look into whether or not I've set up AMFPHP properly, as well as contact some of the develops to see if perhaps I can hack away at the source to return back something more useful. Wrapping the results is still on the chopping block though. so at least I have options. Cheers, Kevin _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Samuel R. Neff Sent: Friday, November 02, 2007 2:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AMFPHP Flex 3 Beta ah, that's the format the old Flash Recordset class used so it makes sense that AMFPHP would use the same format. Fluorine provides support for both that style and for ArrayCollection of Object instances which is more Flex friendly. My suggestion would be to create a Recordset implementation and use that as a wrapper. You can look at the Recordset.as file included with Flash 8 remoting for hints on how it's done. I'm actually surprised nobody else has solved his problem already for AMFPHP. HTH, Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Friday, November 02, 2007 3:46 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AMFPHP Flex 3 Beta Well I've exposed a dump of the actionscript object easily enough that's being returned and the object in PHP is just a result from a MySQL query. I can get at the data currently, but if you notice down below, there aren't any named references for the columns, which make it nearly impossible to using bindings. public function getProjects():void { amfConnection.call( Something.getProjects, new Responder(getProjectsOnResult, OnFault), userInfo.uid); } public function getProjectsOnResult( result:Object ) : void { var projectDP:ArrayCollection = new ArrayCollection(); for( var i in result.serverInfo.initialData) { var name:String = result.serverInfo.initialData[i][3]; var pid:String = result.serverInfo.initialData[i][0]; projectDP.addItem({name:name, pid:pid}); } projects.labelField = name; projects.dataProvider = projectDP; } The old phrase of If it ain't broke, don't fix it comes to mind when I see whats being returned ala AMF3. Any suggestions you can make would be greatly appreciated. Cheers, Kevin
[flexcoders] disable buttons with icons
Hi there, I have a form with a 'Save' button. I have also placed an icon with this button using the 'icon='/assets/save.gif' attribute. By default I have this button disabled and I enable it only when validation returns success. This works great! However, I have noticed that although the button is disabled, the icon does not look like disabled :-( For that I have designed a disabled button, and I am now trying to change the icon (programmatically) when the validation succeeds. This is my function that enables/disabled the button: private function handleValid(eventObj:ValidationResultEvent):void { if(eventObj.type==ValidationResultEvent.VALID) { saveButton.enabled = true; } else saveButton.enabled = false; } I have tried to add a new property, like saveButton.icon = '/assets/enabled_button.gif'; so that my icon looks enabled/disabled according to the button status. However this attribute does not really exist :-( Is there any way to overcome this problem? thanks, George
Re: [flexcoders] Convert ByteArray to Bitmap
Thanks for all your help on this. To answer your question Alex, no we are not using JPEGEncoder in our app, that was just to do a test that could easily get us the ByteArray data that we know is a valid image. I will try the listener approach. I guess I thought that wouldn't be needed since the data is already loaded. Regardless, to get it working in the meantime we sent everything thing back from the server as base64 encoded. We then used a Base64Image class (which extends Image) to display the image. http://flexlib.googlecode.com/svn/trunk/src/flexlib/controls/ Base64Image.as (You will see it uses the same approach as yours to load the ByteArray) It works very well and makes me think that it could be a model for extending the Image component to receive a ByteArray as a source. It really should be that easy! Thanks for your thoughts. - Kevin On Nov 2, 2007, at 12:22 PM, Jim Hayes wrote: Yes, that would be nice! For what I’ve been doing a synchronous “convertToBitmapData (bytes:ByteArray):BitmapData” would be really nice as well. If only because using a “loader” seems a bit “wrong” when you’ve already loaded (or otherwise have) a byteArray. I have to admit that I’ve not actually checked the source code to see if I could find/copy that kind of function, however, since I do now have everything working with loader. Thanks Alex! Jim. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 02 November 2007 16:05 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Convert ByteArray to Bitmap Yeah, things are “working”, but really there should be a loadBytes () API on mx:Image/SWFLoader to save you a step. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes Sent: Friday, November 02, 2007 3:16 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Convert ByteArray to Bitmap Oops, sorry, this one makes slightly more sense (first thing in the morning, not even finished my first cuppa…) private var _ldr:Loader private function myTest():void{ //get ByteArray from Image Component content var testBM:Bitmap = testImg.content as Bitmap; var myByte:ByteArray = new JPEGEncoder().encode(testBM.bitmapData); _ldr = new Loader(); _ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,bitmapLoaded); _ldr.loadBytes(myByte); } private function bitmapLoaded(event:Event) { _ldr.removeEventListener(Event.COMPLETE,bitmapLoaded) //reset source myImage.source = _ldr.content; } . __ This communication is from Primal Pictures Ltd., a company registered inEngland and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA,UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __ __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
RE: [flexcoders] Why is mouseOut being called?
Mouse events bubble. Tou're seeing mouseOver/mouseOut events from the HBoxes, VBoxes, UITextFields, etc that are children of the Canvas. You can determine if the Canvas is the display object processing the event by querying the currentTarget property on the event object. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dbronk Sent: Friday, November 02, 2007 1:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why is mouseOut being called? I have a very basic Canvas. It has a VBox that holds some text and then under that is a HBox that holds some other test. The canvas has both mouseOver and mouseOut events defined. I also tried rollOver and rollOut and get the exact same thing. When I move my cursor in between the text lines in the top VBox as was as when I move the cursor in between the top VBox and the bottom HBox, the mouseOut event fires. Also the rollOut fires when I try that. Why? I'm clearly withing the Canvas. Here is the Canvas with some scripts removed... Thanks, Dale ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:components=components.* mouseOver=onMouseOver(event) mouseOut=onMouseOut(event) mx:Script ![CDATA[ private function onMouseOver(event:MouseEvent):void { trace(onMouseOver); { private function onMouseOut(event:MouseEvent):void { trace(onMouseOut); } ]] /mx:Script mx:VBox width=100% paddingLeft=10 mx:Text id=listingNameText text={listing.title} width=100% height=24 styleName=resultTitle / mx:Text id=listingLocation text={listing.city}, {listing.state} width=100% height=13.5 styleName=resultCity / mx:Text id=listingDesc text={listing.description} width=100% height=25 styleName=resultDesc / /mx:VBox mx:HBox id=listingDollars width=100% horizontalGap=0 height=18 bottom=0 paddingLeft=10 mx:HBox horizontalGap=0 width=30% mx:Text text=CF: styleName=resultFinHead width=15/ mx:Text text={ usdFormatter.format(StringUtils.nullToBlank(listing.cashFlow)) } styleName=resultFinValue width=60 height=18/ /mx:HBox mx:HBox horizontalGap=0 width=30% mx:Text text=R: styleName=resultFinHead width=15/ mx:Text text={ usdFormatter.format(StringUtils.nullToBlank(listing.revenue)) } styleName=resultFinValue width=60 height=18/ /mx:HBox mx:HBox horizontalGap=0 width=40% mx:Text text=A: styleName=resultFinHead width=15/ mx:Text text={ usdFormatter.format(StringUtils.nullToBlank(listing.price)) } styleName=resultFinValueSorted width=60 height=18/ /mx:HBox /mx:HBox /mx:Canvas -- 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
[flexcoders] Stream upload directly back to server
Since it is not possible to upload data directly into the client without going through a server, I am wondering if it would be possible to have our servlet directly stream the data back to Flex and grab it with the UPLOAD_COMPLETE_DATA event. On the Java end we are trying something like this: //FileItem item; InputStream in = item.getInputStream(); OutputStream out = response.getOutputStream(); out.flush(); We can get small text examples to work, but seem to have trouble when the data is an image or larger file. Images will work if we Base64 encode them, but they also break if the file size is too large. This may be because it just won't work. However, I am assuming someone else has tried this and I would love to know if there is a way to get it to work. We would prefer not to have to go through the process of saving a bunch of temporary files on the server only to simply send them back with a second call. Thanks, Kevin
RE: [flexcoders] Convert ByteArray to Bitmap
Please file a bug at bugs.adobe.com/jira so we can see if we can squeeze loadBytes onto SWFLoader before 3.0 closes down. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Friday, November 02, 2007 3:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Convert ByteArray to Bitmap Thanks for all your help on this. To answer your question Alex, no we are not using JPEGEncoder in our app, that was just to do a test that could easily get us the ByteArray data that we know is a valid image. I will try the listener approach. I guess I thought that wouldn't be needed since the data is already loaded. Regardless, to get it working in the meantime we sent everything thing back from the server as base64 encoded. We then used a Base64Image class (which extends Image) to display the image. http://flexlib.googlecode.com/svn/trunk/src/flexlib/controls/Base64Image .as http://flexlib.googlecode.com/svn/trunk/src/flexlib/controls/Base64Imag e.as (You will see it uses the same approach as yours to load the ByteArray) It works very well and makes me think that it could be a model for extending the Image component to receive a ByteArray as a source. It really should be that easy! Thanks for your thoughts. - Kevin On Nov 2, 2007, at 12:22 PM, Jim Hayes wrote: Yes, that would be nice! For what I've been doing a synchronous convertToBitmapData(bytes:ByteArray):BitmapData would be really nice as well. If only because using a loader seems a bit wrong when you've already loaded (or otherwise have) a byteArray. I have to admit that I've not actually checked the source code to see if I could find/copy that kind of function, however, since I do now have everything working with loader. Thanks Alex! Jim. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 02 November 2007 16:05 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Convert ByteArray to Bitmap Yeah, things are working, but really there should be a loadBytes() API on mx:Image/SWFLoader to save you a step. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes Sent: Friday, November 02, 2007 3:16 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Convert ByteArray to Bitmap Oops, sorry, this one makes slightly more sense (first thing in the morning, not even finished my first cuppa...) private var _ldr:Loader private function myTest():void{ //get ByteArray from Image Component content var testBM:Bitmap = testImg.content as Bitmap; var myByte:ByteArray = new JPEGEncoder().encode(testBM.bitmapData); _ldr = new Loader(); _ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,bitmapLoaded); _ldr.loadBytes(myByte); } private function bitmapLoaded(event:Event) { _ldr.removeEventListener(Event.COMPLETE,bitmapLoaded) //reset source myImage.source = _ldr.content; } . http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/ msgId=92581/stime=1193998266/nc1=4507179/nc2=3848642/nc3=5008826 __ This communication is from Primal Pictures Ltd., a company registered inEngland and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA,UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __ __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
RE: [flexcoders] disable buttons with icons
Set disabledIcon=... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of George Georgiou Sent: Friday, November 02, 2007 2:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] disable buttons with icons Hi there, I have a form with a 'Save' button. I have also placed an icon with this button using the 'icon='/assets/save.gif' attribute. By default I have this button disabled and I enable it only when validation returns success. This works great! However, I have noticed that although the button is disabled, the icon does not look like disabled :-( For that I have designed a disabled button, and I am now trying to change the icon (programmatically) when the validation succeeds. This is my function that enables/disabled the button: private function handleValid(eventObj:ValidationResultEvent):void { if(eventObj.type==ValidationResultEvent.VALID) { saveButton.enabled = true; } else saveButton.enabled = false; } I have tried to add a new property, like saveButton.icon = '/assets/enabled_button.gif'; so that my icon looks enabled/disabled according to the button status. However this attribute does not really exist :-( Is there any way to overcome this problem? thanks, George
RE: [flexcoders] moving a LinkBar
Use a boolean flag to track whether the LinkBar has already received its first click (in which case play the move effect) or not. private var clickedOnce:Boolean = false; private function handleClick(event:ItemClickEvent):void { if (!clickedOnce) { //play the move effect, this is the first click clickedOnce = true; } else //no move effect - these are subsequent clicks } You can control when you want that specific effect to play by controlling the value of the flag. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ric Aruffo Sent: Friday, November 02, 2007 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] moving a LinkBar I have a LinkBar that I need to move from the bottom of the screen to the top of the screen when the user clicks on one of the items in the LinkBar. Then once it gets to where it's going, disable the move effect so that it doesn't get repeated when the user clicks another item in the same LinkBar. Thanks, Ric
Re: [flexcoders] Aha... did someone say C/C++ to AS3???
Jon, Well, I am leaving the cool factor away, but it is still cool. Honestly, I don't really care about porting quake or any other super pop tech... neither sound nor graphics rendering software. Porting the ranking system of a bw version of pacman is already scary enough! As you point out, having access to a tool ( or even just a cheap methodology ) for porting c/cpp code opens a new world of possibilities, and drastically changes the rules of the game. Basically, it is now business to create a library and become the first to have it in AS3... probably not an evident niche to the rest of us because AIR has not hit the streets yet, but I can bet more than one company is doing something in those lines. Take the very same Adobe and their Flex IDE as a cannonical example... how long would it be, after the release of such piece of machinery, before someone ports a compiler generator et al and gives something like FLEXible a final push to completion. Or someone creates a solid migration tool from another UI technology with established IDEs to Flash? Of course you might argue that the flex framework is unparalleled with binding, repeaters, events, effects, etc. ... but isn't it opensource already? and with respect to other technologies, now that the ideas are on the table, it's just a matter of playing catch up... which will be quite fast given that, as Scott Peterson emphasizes, we can even port interpreters for other languages. And what about LCS?? It might not have a contender right off the shelf but, hey, having the ability to port libraries puts me much much closer. And closer to building something better! Or even something that runs with MS technology in the backend. Of course this would definitely lean the balance against silverlight and other contenders in terms of developer adoption, but at what cost. If part of the player is OS ( correct me is im wrong ), the framework is OS, and now we can port code and run it in Flash... what's left for Adobe to profit from? Perhaps acrobat...? or Media Server? ( oh.. red5 ). So, wrapping up, I think this announcement deserves a LOT more attention that what it's had. They somehow opened Pandora's box with that short demo. I just don't see a clear business strategy behind the move. I might be missing very important point but with my current understanding this scares me a bit... quite a bit to be honest. After all, some of us are betting on the sustainability of this platform. To a certain degree, Adobe might be shooting themselves in the foot with this one. I am very interested to hear some informed opinions. Thanks, Aldo On Nov 2, 2007 5:40 PM, Jon Bradley [EMAIL PROTECTED] wrote: On Nov 2, 2007, at 4:27 PM, Matt Chotin wrote: The demo was on a custom Flash Player but my understanding of the only real change is that he made some performance improvements in our ByteArray class (that we can hopefully incorporate into a future release). As part of the demo I believe the sound was not actually coming out of the Player, but the graphics all were. If the only change was to the ByteArray class then all I have to say is ... ... damn. Now all that remains if for you guys to post up that converted AS3 code for peer review. Quake is open source ya know ... :o) - jon -- Aldo Bucchi +1 858 539 6986 +56 9 8429 8300 +56 9 7623 8653 skype:aldo.bucchi
[flexcoders] Repeaters and ListCollectionViews
Is it possible to use a ListCollectionView as the dataProvider for a Repeater? I think the answer is no because I can't get it to work, but I wanted to make sure that it is not just me writing buggy code. Thanks Simon