[flexcoders] Adobe AIR powered cyn.in desktop fuses instant messengers and web based collabor
Hello All, Check out another Adobe AIR app at http://blogs.adobe.com/air/2008/12/adobe_air_powered_cynin_deskto.html Regards, Abhi
[flexcoders] Re: getting refs to items in Group.mxmlContent?
I think I need more help on this one :-( I found getElementAt(), getElementIndex() etc in the GraphicElement-ContentElement class, but not sure how to relate any of this to the loaded .fxg object: If I go to this.contentGroup __mxmlContent [0] VGroup (button group) [1] displayGroup (Group var containing .fxg object for display) __mxmlContent [0].fxg Object __myGroup1 __myGroup2 etc I still arrive at this mxmlContent array of 1 row containing the .fxg object with all the groups I want to reference. Any kind of getElementAt() at this level throws an index error talking about unknown mxml content. Am I even interrogating the correct instance? TIA, Mic. --- In flexcoders@yahoogroups.com, Haykel BEN JEMIA hayke...@... wrote: You should use the content management functions of group to access its children: numElements(), getElementAt(index:int), getElementIndex(element:Object) etc. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, Dec 16, 2008 at 10:28 PM, Mic chigwel...@... wrote: (OK to ask Gumbo questions?)When an .fxg file is loaded into FxApplication and added to a Group, and that Group is then added to FxApplication, array mxmlContent[0] contains the .fxg Graphic object, whose child Groups can be accessed directly by name: displayGroup.mxmlContent[0].myGroup1 However I cannot access mxmlContent[0] with getChildAt() etc, nor can I work out how to extract out references to mxmlContent[0] into another array etc so a list can be displayed where a Group object might be selected. Can find no info on mxmlContent :-( code: testFXG.fxg contains group id=myGroup1, group id=myGroup2 etc private var displayGroup:Group; displayGroup = new Group(); var source: testFXG= new testFXG(); displayGroup.addItem(source); addItem(displayGroup); breakpoint shows: displayGroup [inherited] mxmlContent [0] myGroup1 myGroup2 etc code: private var testGroup:Group; testGroup = displayGroup.mxmlContent[0].myGroup1; - this is a good reference and can be used to change myGroup1.x, myGroup1.y etc. However as stated above I cannot get a reference to e.g. the 3rd child etc. As always, TIA, Mic.
Re: [flexcoders] Re: Padding/spacing before the first line in a TextArea
Jon: Thanks for taking the time to answer this so extensively. Your Method 2 is what I've come up with so far, only using descent instead of ascent, as you pointed out. And yeah, you're right - it doesn't always work since Flash does not seem to return accurate values for ascent/descent/etc. for all fonts. So I'm feeling kind of stuck at the end of this road ... maybe a Gumbo-truck will come to rescue soon?? ;-) Alex Harui: Subclass and reposition the internal textfield. The repositioning itself is not the problem, finding the number of pixels to reposition by is :) Bjørn 2008/12/17 Gordon Smith gosm...@adobe.com This has been a long standing bug that I've been complaining to Adobe about. The new Text Layout Framework that Gumbo components use gives you control over the vertical placement of the first line. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Jon Bradley *Sent:* Tuesday, December 16, 2008 7:46 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Padding/spacing before the first line in a TextArea You can't manually remove that padding from the field. It's built into the field as the ascent of the font + 4 pixels for the natural field border (which also cannot be 'removed'). There are only two ways to shift up a field in Flash: Method 1: a. Bitmap snapshot of the text field b. getColorRectBounds on the bitmap in question to retrieve a bounding rectangle of the non-alpha pixels. c. Capture the top position from the Rectangle returned from that call and subtract that value from the y-position of the field. Pros: Will work every time Cons: Additional memory overhead. Tricky to do with the Flex component architecture - especially TextArea Method 2: a. Capture font metrics from the text field b. Subtract (metrics.ascent + 4) from the text field y position. It is the ascent measurement, not descent. Pros: Less memory and less code to deal with. Cons: Will not work every time. Ascent and descent measurements from the font metrics within Flash are not accurate measurements and are only correct at very, very specific font sizes (8, 12, 17, 28, 36, 44 ... etc.). Almost all point sizes of text return incorrect ascent and descent values in Flash. They usually return values less than they really are (7,8,9 point type will return the same ascent value for most fonts, for example). Additionally, you'll still need to extend TextArea to handle the functionality. Does not function well at all with advanced antialiasing ... also a known bug in the Flash text rendering. Saffron antialiasing causes a jump in the leading and position values of lines in a field, so don't use it. -- This has been a long standing bug that I've been complaining to Adobe about. I've worked on applications for some big greeting card companies (take a couple guesses) creating a rendering system in Flash that will match Photoshop and Illustrator text rendering. Illustrator, btw, is the only Adobe application that let's you set the first baseline position of a text field using a variety of measures. Good luck. - jon On Dec 16, 2008, at 8:53 AM, bjorn wrote: Any ideas on where I might find more info about this? .. or people who might know more ... 2008/12/2 bjorn itrashm...@gmail.com There is some padding before the first line in a TextArea. Have a look at this image to see what I mean: http://i34.tinypic.com/4uz8s0.jpg I need to remove this, and the first solution that comes to mind is to find that value and position the TextArea.y = TextArea.y - [that value]. The padding before the first line seems to be equal (in most cases) to the font's descent, which I can get from getTextLineMetrics().descent. However, this is not true in all cases. In some cases, the padding is more. Anyone have suggestions? -- http://www.juicability.com - flex blog http://www.nospoiler.com - link to youtube videos without the spoilers
[flexcoders] Re: Programmatically managing BlazeDS ServerConfig
I've tested using SDK 3.1.0 and the following XML is obtained from ServerConfig.serverConfigData services service id=remoting-service/ service id=proxy-service destination id=DefaultHTTP channels channel ref=my-amf/ /channels /destination /service service id=message-service/ channels channel id=my-amf type=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/WebContent/messagebroker/amf/ properties/ /channel channel id=my-polling-amf type=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/WebContent/messagebroker/amfpolling/ properties polling-enabled true /polling-enabled polling-interval-seconds 4 /polling-interval-seconds /properties /channel channel id=my-secure-amf type=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}/WebContent/messagebroker/amfsecure/ properties/ /channel /channels /services So in my case when using channel instead of channel-definition the E4X expression works. Can you take a look on the XML object ServerConfig.serverConfigData and see what is the structure?
Re: [flexcoders] Rounding error
ActionScript's Number follows the IEEE 754 floating point standard ( http://en.wikipedia.org/wiki/IEEE_754 ). It's essentially lossy by design. It's not the really the right thing to use for financial calculations, but ActionScript doesn't really have alternatives. It has essentially two numeric types int (with--obviously--only integer precision) and the above-mentioned Number. One approach would be to do all your math in cents (or tenths of cents) using ints and convert for display to the user. Another would be to write your own numeric class that works to the precision you need. There may be some out there already, since it seems like this would come up pretty often (a quick search seems to confirm this). -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Ken Johnson kenjohnso...@hotmail.com Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Rounding error Date: Wed, 17 Dec 2008 14:15:54 - Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to equal 0.918. Instead, it equals 0.9179. And when I apply a number formatter with a precision of 2, I get 0.91. I am performing financial calculations, and this is not acceptable. Am I doing something wrong here? Thanks for your help! Ken
Re: [flexcoders] Rounding error
Valdhor already gave you all the info you need, but I like the sound of my own fingers typing. I also like to procrastinate, so I'm in heaven right now :p - Some numbers that are easy to represent in decimal are hard to represent in binary, just as some numbers that are easy to represent in base 60 are hard to represent in decimal (such as 1/3). - Your calculations are safe enough: Number has a very high precision and calculations are carried out with full precision. It's just when testing for equality that you can run into problems -- I'm guessing this is where you noticed the discrepancy? - When comparing for floating-point numbers for equality, you need to specify a tolerance too. Most unit-testing frameworks provide this for their floating-point asserts. And when I was doing financial apps, we did the same thing. If you *really* need higher precision, you'll need a BigNumber implementation for AS3, of which there are several. The AS3Crypto library has one I believe... Chyrs :) Jules On Thu, Dec 18, 2008 at 03:15, Ken Johnson kenjohnso...@hotmail.com wrote: Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to equal 0.918. Instead, it equals 0.9179. And when I apply a number formatter with a precision of 2, I get 0.91. I am performing financial calculations, and this is not acceptable. Am I doing something wrong here? Thanks for your help! Ken -- Cheers, Jules -- Jules Suggate Owner and Technical Lead Uphill Sprint Limited +64-21-157-8562
Re: [flexcoders] Loadbytes - Exclude framework?
If you load a class at run-time, and a class already exists in the same application domain, with the same qualified name, then the class will be skipped and the first one that was loaded will be used. So the implications should relate to unecessary filesize. Peter On Wed, Dec 17, 2008 at 10:15 AM, Sceneshift j...@sceneshift.com wrote: I am loading in a external SWF at runtime using loadBytes, so I am able to retrieve library items / class names created via the designers in the SWF. I need to use loadBytes so I can use timeline AS3 code etc. I was wondering what the implications are of this, since the exported SWFs filesize will include the FP framework. Is there a way to load in a SWF using loadBytes, but ignoring any of the framework stuff we already have loaded? -- View this message in context: http://www.nabble.com/Loadbytes---Exclude-framework--tp21050425p21050425.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Re: Weborb to return XML data
This depends on what you really mean. XML is a data format. AMF and HTTPService and SOAP are transport protocols. You can send XML formatted data via any protocol. One of the benefits of xml is it is a self-describing structure and you do not need design and build your own DTOs or be concerned about transport serilazation. Some of the other technologies help with this as well. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gjessup1 Sent: Tuesday, December 16, 2008 7:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Weborb to return XML data Why would you want to do this? I would adjust the graph to take an array collection or object as a datasource. I think you could hack it in your C# code to pass a xml object or array with xml in it. But To me it defeats the purpose of weborb. I would take the approach of changing the datasource of the chart. If you post or PM me some sample code, I'd be happy to help. -Greg --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , timgerr tgallag...@... wrote: I have been working with weborb and I think it is great. I am working on a graph that needs XML data that I have generated via php and mysql. I was wondering of Weborb can return XML and if you have any examples of this. Thanks for the, timgerr
RE: [flexcoders] sort XMLListcollection in dp
You need to define a custom sort function. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Kenneth Sutherland Sent: Wednesday, December 17, 2008 9:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sort XMLListcollection in dp I'm trying to apply a sort to an XMLListcollection that is assigned to a dataprovider. Each element of the collection has the following format and I've no control over the format to change it. f rablah/ra roblah/ro fs dithe name to filter on/di sother stuff/s /fs /f I am trying to sort on the node di so I've done the following var sort:Sort = new Sort(); sort.fields = [new SortField(di, true, true)]; and applied that to the dataprovider that contains the XMLListCollection and done the refresh. I doesn't do the sort but what it does do is swap the first element of the collection with another halfway through the collection (so if collection has 22 elements the is swaps [0] with [11]). If I do the sort on nodes such as 'ra' or 'ro' (new SortField(ra, true, true)]; or new SortField(ro, true, true)];) then they work fine so I'm presuming it's because the node 'di' is another level below the main children. Any ideas? Cheers. realise . Kenneth Sutherland Technical Developer Realise Ltd Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB Tel 0131 476 7432 www.realise.com http://www.realise.com/ Check out some of our recent flex work: * Focus on funds UK http://www.focusonfunds.co.uk/ * Focus on funds Europe http://europe.standardlifeinvestments.com/distributor/products_and_serv ices/going_further_focus_on_funds/index.html * Fund selector http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html * Video view http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m p3s/index.html Realise are sponsors of the Marketing Society Scotland. Realise Limited is registered in Scotland, SC172507. Disclaimer This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast.
Re: [flexcoders] data returned from WSDL call
You can also put a mx:TraceTarget / at the top of your MXML document to see all the data going back and forth. That's how I troubleshoot when I'm dealing with SOAP. Cheers, Nate On Wed, Dec 17, 2008 at 9:21 AM, Tracy Spratt tspr...@lariatinc.com wrote: Have you set resultFormat=e4x? If not, you are not working with xml. Flex has generated a tree of dynamic objects. Though it allows you to go straight to an arrayCollection, this format is rarely desirable. Set the resultFormat, then in your result handler do: var xmlResult = event.result as XML; trace(xmlResult.toXMLString); You will see your xml as flex sees it. Be aware that you may have xml namespace issues accessing the nodes via e4x expressions. Google, check archives and see the docs for help with this. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Louise Rains *Sent:* Wednesday, December 17, 2008 9:28 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] data returned from WSDL call I'm getting data back from a wsdl call that looks like this: ?xml version=1.0 encoding=windows-1252? ns0:ROOT xmlns:ns0=urn:AMAT_Asset_KeyGen xmlns:xsd= http://www.w3.org/2001/XMLSchema; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; ns0:getListValues ns0:B_License_Key0200362/ns0:B_License_Key ns0:B_Warranty_End_Date2007-03-31T00:00:00-04:00/ns0:B_Warranty_End_Date ns0:Company_NameSOME COMPANY/ns0:Company_Name ns0:Part_NumberALFLSS3300-1400/ns0:Part_Number ns0:Product_CategoryPER/ns0:Product_Category ns0:Product_TypeAUTOMOD/ns0:Product_Type ns0:Quantity1.00/ns0:Quantity ns0:Site_NameSOME SITE/ns0:Site_Name /ns0:getListValues … ns0:ROOT If I have multiple getListValues returned, I can use an ArrayCollection and step through each object in the collection to get the data. However, I'm having a hard time determining the type of event.result in the case where there is only one getListValues object returned. When I trace event.result, I get [object Object]. If I try to cast it to XML, XMLList or ArrayCollection, I get null objects. Is there a way to use reflection to determine what the [object Object] really is? How can I access the data that's coming back? Thanks! LG Rains -- Cheers, Nate http://blog.natebeck.net
RE: [flexcoders] Common base class for components
In theory, if your base class implements IUIComponent, then your visual components will work in Flex From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jules Suggate Sent: Wednesday, December 17, 2008 8:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Common base class for components Hi list, anyone know if it's possible to have all our components inherit from a common base component of our own making? There are some things in our app that every View component will have to do at loadtime, and it'd be nice to just write that code once and have all the other components inherit it... Last time I checked in Flex 3 Beta 2 there was some vague suggestion of using Template Components, but that seemed like an afterthought in the SDK at the time. Just thought I'd check to see if you knew of any tricks for doing it :) Perhaps even an include file would be the way to go...
[flexcoders] problem with Consumer
I have a flex project using BlazeDS where I am trying to create a message destination dynamically and then subscribe to it in Flex. I've been using the sample from Blaze as a reference. Java method returns the string of the new destination: ... ms = (MessageService) MessageBroker.getMessageBroker(null).getService (message-service); MessageDestination destination = (MessageDestination) ms.createDestination(dStr); if (ms.isStarted()) { System.out.println(Starting Destination + dStr); destination.start(); } ... return dStr; In Flex, this Java method is called through a RemoteObject and the handle on the result does the following: var consumer:Consumer = new Consumer(); if (event.result != null){ var destination:String = event.result as String; var myStreamingAMF:AMFChannel = new StreamingAMFChannel(my- streaming-amf, ../messagebroker/streamingamf); var myPollingAMF:AMFChannel = new AMFChannel(my-polling- amf, ../messagebroker/amfpolling); myPollingAMF.pollingEnabled = true; myPollingAMF.pollingInterval = 2000; var channelSet:ChannelSet = new ChannelSet(); channelSet.addChannel(myStreamingAMF); channelSet.addChannel(myPollingAMF); consumer.channelSet = channelSet; consumer.destination = destination; consumer.addEventListener(MessageEvent.MESSAGE, handleMessage); consumer.subscribe(); } Alert.show(Subscrided: + consumer.subscribed); The Alert box is showing the consumer is not subscribed. I've traced through and everything looks ok. Anyone know what I am doing wrong? Thanks Dom
[flexcoders] Bug: history.js issues in IE7
Wondering if anyone else has seen this issue. In IE7 our application, which has a swf file (via Flex) in it is showing an extra white box or div at the botoom of the page, which is roughly 200 pixels wide and 15 pixels tall, that has the name IFRAME id=ie_historyFrame. Also on this same page, sometimes when navigating in the page the tab title(page title in the tab) is removed (in IE 7)and all that is showing is a # sign. Pretty sure both are related to Adobe's history.js file. Is it safe to remove the history.js file and if I do this will I need to remove any other files or code? We don't use the back button or history navigation in our component on the page so that won't be an issue, but I am wondering if remove history.js would cause issues anywhere else.
[flexcoders] data returned from WSDL call
I'm getting data back from a wsdl call that looks like this: ?xml version=1.0 encoding=windows-1252? ns0:ROOT xmlns:ns0=urn:AMAT_Asset_KeyGen xmlns:xsd= http://www.w3.org/2001/XMLSchema; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; ns0:getListValues ns0:B_License_Key0200362/ns0:B_License_Key ns0:B_Warranty_End_Date2007-03-31T00:00:00-04:00/ns0:B_Warranty_End_Date ns0:Company_NameSOME COMPANY/ns0:Company_Name ns0:Part_NumberALFLSS3300-1400/ns0:Part_Number ns0:Product_CategoryPER/ns0:Product_Category ns0:Product_TypeAUTOMOD/ns0:Product_Type ns0:Quantity1.00/ns0:Quantity ns0:Site_NameSOME SITE/ns0:Site_Name /ns0:getListValues . ns0:ROOT If I have multiple getListValues returned, I can use an ArrayCollection and step through each object in the collection to get the data. However, I'm having a hard time determining the type of event.result in the case where there is only one getListValues object returned. When I trace event.result, I get [object Object]. If I try to cast it to XML, XMLList or ArrayCollection, I get null objects. Is there a way to use reflection to determine what the [object Object] really is? How can I access the data that's coming back? Thanks! LG Rains
[flexcoders] PFolder vs. Folder
I cannot find documentation on the List Controls member elements folder and pfolder. I see them everywhere in the examples but noplace can I find the explanation of the difference, where would I use folder vs. pfolder and why? -- View this message in context: http://www.nabble.com/PFolder-vs.-Folder-tp21058508p21058508.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Real Time data grid updates/streaming - Oracle - Flex using BlazeDS ???
Folks, I have an Oracle application which is updating tables. I want to display these tables in a Flex data grid and update them in real time as the Oracle tables get updated. So the question is, how do I get Oracle to pass real time updates to Java/Tomcat/BlazeDS application to interface to Flex. Here are some thoughts from lots of Google searching. 1. Java SP with JMS interface to Java/Tomcat/BlazeDS 2. Oracle streams to Java/Tomcat/BlazeDS 3. Mining the redo logs for changes (not real time ?) I also have a issue with synchronization. I need to be able to load a table into Flex and then get all subsequent changes. How do I ensure that I do not miss a update between the table load and my update mechanism starting. Are there any other synchronization issues ? Thanks john
[flexcoders] Stop the flicker between menu items
When I place the mouse in just the right spot between 2 menu items I can get a flicker. Does anyone know how to stop this?
[flexcoders] Issue with Flash 10 3d api and Flex/AIR
I'm looking to do a simple flip effect via the new rotationY attribute. I'm building my example in Flex 3.2 on AIR 1.5 using Flash player 10. My example is comprised of a viewstack with two children (canvases). The stylenames on each of the children just apply a background image. I'm also wrapping my viewstack with a canvas so I can rotate my children at a center registration point. I've got the rotation working beautifully, but the children of the viewstack are blurry after the rotation ends. After researching this issue on the web, I've found that people have experienced the same issue with rotating a movie clip. They fixed the issue by reseting the transform.matrix on the movieclip after the rotating effect ended. This doesn't seem to work for my case. Any insight as to why this is happening and how to work-around this until the bug is resolved? Here is my sample code: mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute showFlexChrome=false mx:Style source=assets/css/main.css/ mx:Script ![CDATA[ import mx.controls.scrollClasses.ScrollThumb; import caurina.transitions.*; private var isTurning:Boolean = false; private function loop(e:Event):void { if(mycon.rotationY 90) { deck.selectedChild = two; } else { deck.selectedChild = one; } } private function flip(event:MouseEvent):void { addEventListener(Event.ENTER_FRAME, loop); if(!isTurning) { Tweener.addTween(mycon,{rotationY:(mycon.rotationY==0?180:0),time:2,onComplete:function():void{isTurning=false;}}); isTurning = true; } } ]] /mx:Script mx:Canvas id=mycon x=180 y=250 clipContent=false mx:ViewStack id=deck resizeToContent=true x=-180 y=-250 mouseDown=moveMe(event) creationPolicy=all mx:Canvas id=one width=360 height=500 styleName=mainViewStyle mx:Button id=rotateToBackBtn label=rotateToBack click=flip(event)/ mx:Text text=hello world x=100 y=150/ /mx:Canvas mx:Canvas id=two width=360 height=500 clipContent=false mx:Canvas width=360 height=500 styleName=configViewStyle x=360 rotationY=180 mx:Button id=rotateToFrontBtn label=rotateToFront click=flip(event)/ mx:Text text=hello world x=100 y=150 color=0xFF/ /mx:Canvas /mx:Canvas /mx:ViewStack /mx:Canvas /mx:WindowedApplication
[flexcoders] RestExpressionNode not yet implemented
I wanted to get some input on this. I'm writing a DateTime object using Proxy, (for all of the timezone stuff I'm working on) and I'm a little annoyed trying to make the DateTime constructor work exactly like the Date constructor. Here's my code... commented out code was other attempts: public function DateTime(... args) { super(); // var yearOrTimevalue:Object = args[0]; // trace(getQualifiedClassName(yearOrTimevalue)); _item = new Date(... args); // Adobe PLEASE add native overloaded constructor support! even though this works, doing crap like this makes me feel dirty. /* switch(args.length) { case 0: _item = new Date(); break; case 1: _item = new Date(args[0]); break; case 2: _item = new Date(args[0], args[1]); break; case 3: _item = new Date(args[0], args[1], args[2]); break; case 4: _item = new Date(args[0], args[1], args[2], args[3]); break; case 5: _item = new Date(args[0], args[1], args[2], args[3], args[4]); break; case 6: _item = new Date(args[0], args[1], args[2], args[3], args[4], args[5]); break; case 7: _item = new Date(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); break; } */ /* if(args.length == 0) { _item = new Date(); } else if (args.length == 1) { _item = new Date(args[0]); } else { _item = new Date(args[0], args[1], args[2]); } */ /* if(yearOrTimevalue is String) // Handle String { _item = new Date(yearOrTimevalue); } else if (yearOrTimevalue is Number) // Handle Number { _item = new Date(yearOrTimevalue); } else if (yearOrTimevalue is int) // Handle Int { if(yearOrTimevalue _item = new Date(yearOrTimevalue, month, date, hour, minute, second, millisecond); } else if (!yearOrTimevalue) // Handle null { _item = new Date(); } else { _item = new Date(invalid); } */ trace(DateTime constructed); } I really wish I could just pass the argument string straight through, using something like, _item = new Date(... args); , but I get the error: 1199: RestExpressionNode not yet implemented This makes my heart sad. Doing some research I found this forum post: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60catid=585threadid=1394047 Anyone have any ideas? -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Shape blocking mouse down
I'm drawing a horizontal timeline graph, my own component, not Flex charting. The horizontal bars are blocking the mouse down event from reaching a component in a lower depth. I'm confused because I've set the parent, the children, and everything near there's mouseChildren and mouseEnabled to false, yet the contents of the rows, little squares, block the mouse down event. Doing tests in Flash, I've proven those are the only 2 properties you need to set to false, even with nested containers, and cacheAsBitmap set to true. I have no events on this children; they are just a bunch of Shapes inside a Sprite, with his mouseChildren and mouseEnabled set to false as well. So, I'm confused. I know UIComponent sets your doubleClickEnabled to true, but tracing my components out, they seem to all say false for those values. What could possibly be causing those Shapes in a Sprite to be blocking the mouse down events?
[flexcoders] Re: BadPaddingException using RTMPS
Hello Seth! We either get the SSLHandshake exception like below or the following: javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack? at com.sun.net.ssl.internal.ssl.Alerts.getSSLException (Alerts.java:166) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal (SSLEngineImpl.java:1356) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal (SSLEngineImpl.java:1324) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.closeInbound (SSLEngineImpl.java:1263) at flex.messaging.socketserver.SSLConnection.handshake (SSLConnection.java:290) at flex.messaging.socketserver.Connection$ConnectionReader.run (Connection.java:761) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work er.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work er.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) I have now found out, that the SSLHandshake exception occurs if an AIR Client installed on Vista is started. On one Vista client we always get the exception. On other Vista clients the problem occurs sometimes. We use a self signed cert. Best regards, Taze --- In flexcoders@yahoogroups.com, taze170171 taze170...@... wrote: Hello! We are using AIR, LCDS (running on a JBoss) and an RTMPS connection. Sometimes we get the following exception, when the AIR client tries to connect to the server: [Flex]Thread[my-rtmps-SocketServer-WorkerThread-88,5,jboss] failed to read Connection 'xxx' or process the data; Connection is in the 'Handshaking' state and will be forced closed. javax.net.ssl.SSLHandshakeException: Invalid padding at com.sun.net.ssl.internal.ssl.Alerts.getSSLException (Alerts.java:150) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal (SSLEngineImpl.java:1417) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord (SSLEngineImpl.java:874) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord (SSLEngineImpl.java:787) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap (SSLEngineImpl.java:663) at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:566) at flex.messaging.socketserver.SSLConnection.handshake (SSLConnection.java:301) at flex.messaging.socketserver.Connection$ConnectionReader.run (Connection.java:761) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work er.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work er.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) Caused by: javax.crypto.BadPaddingException: Padding length invalid: 244 at com.sun.net.ssl.internal.ssl.CipherBox.removePadding (CipherBox.java:442) at com.sun.net.ssl.internal.ssl.CipherBox.decrypt (CipherBox.java:290) at com.sun.net.ssl.internal.ssl.InputRecord.decrypt (InputRecord.java:153) at com.sun.net.ssl.internal.ssl.EngineInputRecord.decrypt (EngineInputRecord.java:238) at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord (SSLEngineImpl.java:856) ... 8 more Can anybody help? Thanks in advance, Taze
RE: [flexcoders] data returned from WSDL call
Have you set resultFormat=e4x? If not, you are not working with xml. Flex has generated a tree of dynamic objects. Though it allows you to go straight to an arrayCollection, this format is rarely desirable. Set the resultFormat, then in your result handler do: var xmlResult = event.result as XML; trace(xmlResult.toXMLString); You will see your xml as flex sees it. Be aware that you may have xml namespace issues accessing the nodes via e4x expressions. Google, check archives and see the docs for help with this. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Louise Rains Sent: Wednesday, December 17, 2008 9:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] data returned from WSDL call I'm getting data back from a wsdl call that looks like this: ?xml version=1.0 encoding=windows-1252? ns0:ROOT xmlns:ns0=urn:AMAT_Asset_KeyGen xmlns:xsd= http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance ns0:getListValues ns0:B_License_Key0200362/ns0:B_License_Key ns0:B_Warranty_End_Date2007-03-31T00:00:00-04:00/ns0:B_Warranty_End_D ate ns0:Company_NameSOME COMPANY/ns0:Company_Name ns0:Part_NumberALFLSS3300-1400/ns0:Part_Number ns0:Product_CategoryPER/ns0:Product_Category ns0:Product_TypeAUTOMOD/ns0:Product_Type ns0:Quantity1.00/ns0:Quantity ns0:Site_NameSOME SITE/ns0:Site_Name /ns0:getListValues ... ns0:ROOT If I have multiple getListValues returned, I can use an ArrayCollection and step through each object in the collection to get the data. However, I'm having a hard time determining the type of event.result in the case where there is only one getListValues object returned. When I trace event.result, I get [object Object]. If I try to cast it to XML, XMLList or ArrayCollection, I get null objects. Is there a way to use reflection to determine what the [object Object] really is? How can I access the data that's coming back? Thanks! LG Rains
[flexcoders] Strange #2147 error
I am using an embedded PNG as the background for my app: mx:Application backgroundImage=@Embed('c:/we/assets/skins/design-empty1.png') .. I have my Flash Global Security Setting set to: Always trust files from these locations: 'c:\' When I run the app it tells me 'SecurityError: Error #2147: Forbidden protocol in URL @Embed('c:/we/assets/skins/design-empty1.png')' - See below for full details. Additionally, this error was not present yesterday, and to the best of my knowledge I have not made any changes to anything. I have other PNGs embedded for button skins, and they are now throwing errors. How do I fix this? thanks tom SecurityError: Error #2147: Forbidden protocol in URL @Embed('c:/we/assets/skins/design-empty1.png'). at flash.display::Loader/_load() at flash.display::Loader/load() at mx.preloaders::DownloadProgressBar/loadBackgroundImage()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1274] at mx.preloaders::DownloadProgressBar/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:876] at mx.preloaders::DownloadProgressBar/calcScale()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1185] at mx.preloaders::DownloadProgressBar/show()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1134] at mx.preloaders::DownloadProgressBar/initProgressHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1470] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.preloaders::Preloader/appProgressHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:450] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:646] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8565] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8508]
[flexcoders] How do I expand the console buffer in the debugger?
Hi, how can I expand the Console Window buffer in the debugger so that my 1000 messages don't scroll off the screen and never to be seen again? thanks,
Re: [flexcoders] File Explorer
I worked on something similar not too long ago and my approach for #1 was to load top-level folders only and only drill inward with a server call as the user clicks on the expand arrow on individual folders. It made it appear more responsive for huge structures. For #2 you can have each of your nodes be an object with a 'children' member that is an ArrayCollection of node objects. When inserting/removing you operate on the children ArrayCollection directly and the Tree will reflect the change on the next screen update. var _children:ArrayCollection = new ArrayCollection();//add your child nodes to this var _parent:Object = {label: 'parent', children: _children} //this would be the parent object var _dp:ArrayCollection = new ArrayCollection([_parent]); //data provider for tree - Ivo From: Dan Vega danv...@gmail.com To: flexcoders@yahoogroups.com Sent: Wednesday, December 17, 2008 6:01:36 AM Subject: [flexcoders] File Explorer I am building a full featured file explorer and I am stuck on one part of the application. On the left hand side I will have a base root directory (root) and a listing of all directories that fall under it (no end). When you click on a folder they will show up in the datagrid to the right. My question is actually 2 parts. 1.) What approach should I take. Do I make one call to my server and build the entire folder structure, then return either and arraycollection or xmllistcollection or should I just grab the list of directories and show an arrow next to directories with sub directories indicating that there are sub directories. When you click on that folder make another call to the server to grab that sub directory list and so on. 2.) The second part of the question is i heard that If I am going to be updating this collection (deleting / adding / renaming directories) that I should be using an ArrayCollection. The question is when I have data like there is below, how do I break it down into parent/child nodes? Every example I have seen of the tree always uses xml as the data and in those examples its clear how to break down child / parent relationships. ** Any help on this how to move forward with this would be great help ** [0] (Object)#3 Attributes = DateLastModified = Sat Nov 1 13:21:02 GMT-0400 2008 Directory = H:\JRun4 hasDirs = 0 Mode = Name = bin Path = H:\JRun4\bin Size = 0 Type = Dir [1] (Object)#4 Attributes = DateLastModified = Fri Aug 3 21:55:23 GMT-0400 2007 Directory = H:\JRun4 hasDirs = 1 Mode = Name = docs Path = H:\JRun4\docs Size = 0 Type = Dir Thank You Dan Vega danv...@gmail. com http://www.danvega. org
[flexcoders] Solved: Issue with selectedItem Indices with lists and uiComponent..
--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: I have an itemRenderer that copies bitmapdata into my uiComponent inside my itemRenderer. the problem comes up when I try to run a filter on my list and then the bitmapData changes, I am clearing out the bitmapData and the bitmap Container, on my commitProperties. Any suggestion on this? the only reason I think that could be goofing this up is the bounds of my itemRenderer is changed with the content of the bitmap Data object? I am not sure, it's a tough one to nail down? Any suggestions? Thanks, Patrick Yes, this was exactly it... the bounds of my bitmapData was larger than my rowHeight in my list
Re: [flexcoders] FlexBuilder on 64bit machine any good?
same kind of performance really. Never noticed anything, i mean its faster because you have more ram, not because you have a 64 bit. On 15-Dec-08, at 3:01 AM, Ralf Bokelberg wrote: Hi guys I'm in the process of choosing a new machine to be placed under my christmas tree :). I wonder, if anybody has some experiences with 64 bit machines and FlexBuilder? Does it run at all? What is the performance like? Does it make use of lots of RAM? Cheers Ralf.
[flexcoders] sort XMLListcollection in dp
I'm trying to apply a sort to an XMLListcollection that is assigned to a dataprovider. Each element of the collection has the following format and I've no control over the format to change it. f rablah/ra roblah/ro fs dithe name to filter on/di sother stuff/s /fs /f I am trying to sort on the node di so I've done the following var sort:Sort = new Sort(); sort.fields = [new SortField(di, true, true)]; and applied that to the dataprovider that contains the XMLListCollection and done the refresh. I doesn't do the sort but what it does do is swap the first element of the collection with another halfway through the collection (so if collection has 22 elements the is swaps [0] with [11]). If I do the sort on nodes such as 'ra' or 'ro' (new SortField(ra, true, true)]; or new SortField(ro, true, true)];) then they work fine so I'm presuming it's because the node 'di' is another level below the main children. Any ideas? Cheers. realise . Kenneth Sutherland Technical Developer Realise Ltd Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB Tel 0131 476 7432 www.realise.com http://www.realise.com/ Check out some of our recent flex work: * Focus on funds UK http://www.focusonfunds.co.uk/ * Focus on funds Europe http://europe.standardlifeinvestments.com/distributor/products_and_serv ices/going_further_focus_on_funds/index.html * Fund selector http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html * Video view http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m p3s/index.html Realise are sponsors of the Marketing Society Scotland. Realise Limited is registered in Scotland, SC172507. Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
RE: [flexcoders] Test-driven development in Flex
Thanks for the helpful comments and suggestions. Here is what I have already looked at. We looked at PureMVC for the project that I am on but stayed with Cairngorm because of the applications already written in Cairngorm that are also part of the project. However, we have written a version of notifier and notification that are similar to PureMVC. After all that is simply an implementation of the observer pattern. The other programmer on the project doesn't believe that automated tests are worth having and doesn't understand how to write code that improves the ability to test so there is a bit of a challenge. We are also using Maven for the build. The build incorporates Java host modules as well as the Flex code. Our directory structure reflects the Maven naming conventions src/main/flex and src/test/flex. The Flex Mojo builds its own test runner for FlexUnit tests so I have created a test application in the src/flex/main directory alongside the actual application file. This allows me to run either the tests or the application from with in Flex Builder. My thoughts on getting around Cairngorm are to create an application controller which holds a reference to the model, services, and front controller. All other modules reference the application controller to obtain a reference to these. Cairngorm doesn't really care whether the model is a singleton but does require the front controller and may be services to be a singleton. However, using the application controller, I am able to mock out the front controller and services. This allows me to trap the command calls for events and the calls to get services. The other thing that I tried to put in place was what Martin Fowler calls a Supervising Controller for each view (this is similar to PureMVC's mediator). This has been removed for some views by the other programmer but for the view that I am currently working on, it appears to be working well, and the mxml view has no ActionScript in it. All events and status variables are in the supervising controller. The view binds to the model and status values. So far this seems to be working well and although I haven't written tests for it yet, I believe that it shouldn't be too difficult. Using the notifier and notifications, we are able to have the supervising controller receive notification of events that update the status variables thus eliminating the need for a view locator. These status variables could easily be considered part of the model except that we have multiple views within the application and that would mean creating special model elements for each view to help make it clear what each of the status variables are associated with. My thinking is that this makes the supervising controller even of more value since it is clear where status values for the view are held. I hope to blog on this later once I have conducted more experiments and also on comparisons between Cairngorm and PureMVC. I have already done some comparison of Flex based testing frameworks (http://kiwi-et.blogspot.com/). - Errol Thompson Kiwi-ET Computing Education Research Wellington, New Zealand Phone: +64 21 210 1662 E-Mail: kiwiet (at) acm.org kiwiet (at) computer.org Web: www.teach.thompsonz.net -
[flexcoders] Rounding error
Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to equal 0.918. Instead, it equals 0.9179. And when I apply a number formatter with a precision of 2, I get 0.91. I am performing financial calculations, and this is not acceptable. Am I doing something wrong here? Thanks for your help! Ken
Re: [flexcoders] Test-driven development in Flex
Hey, a fellow Kiwi? Cool :) I am based out of Christchurch... Having used Cairngorm plenty in the past, I always found it pretty excellent, just a little out of date these days perhaps -- your changes sound (IMHO) sane and reasonable, as does your decision to go with Cairngorm if you are integrating with other Cairngorm apps. If you get the chance to blog about it and/or contribute your changes, I'm sure you'd find some appreciative folks out there. You mentioned Supervising Controller by Martin Fowler; did you know he has another variant of that same idea called Presentation Model? http://martinfowler.com/eaaDev/PresentationModel.html I can't remember the subtleties right now (and don't have time to refresh my memory!) but you might want to check it out. I find Fowler's articles great to clarify ones own thinking (and/or convince other devs to stop /removing/good/code/?!?!) Best of luck with that aye Jules On Wed, Dec 17, 2008 at 22:48, Errol Thompson kiw...@acm.org wrote: Thanks for the helpful comments and suggestions. Here is what I have already looked at. We looked at PureMVC for the project that I am on but stayed with Cairngorm because of the applications already written in Cairngorm that are also part of the project. However, we have written a version of notifier and notification that are similar to PureMVC. After all that is simply an implementation of the observer pattern. The other programmer on the project doesn't believe that automated tests are worth having and doesn't understand how to write code that improves the ability to test so there is a bit of a challenge. We are also using Maven for the build. The build incorporates Java host modules as well as the Flex code. Our directory structure reflects the Maven naming conventions src/main/flex and src/test/flex. The Flex Mojo builds its own test runner for FlexUnit tests so I have created a test application in the src/flex/main directory alongside the actual application file. This allows me to run either the tests or the application from with in Flex Builder. My thoughts on getting around Cairngorm are to create an application controller which holds a reference to the model, services, and front controller. All other modules reference the application controller to obtain a reference to these. Cairngorm doesn't really care whether the model is a singleton but does require the front controller and may be services to be a singleton. However, using the application controller, I am able to mock out the front controller and services. This allows me to trap the command calls for events and the calls to get services. The other thing that I tried to put in place was what Martin Fowler calls a Supervising Controller for each view (this is similar to PureMVC's mediator). This has been removed for some views by the other programmer but for the view that I am currently working on, it appears to be working well, and the mxml view has no ActionScript in it. All events and status variables are in the supervising controller. The view binds to the model and status values. So far this seems to be working well and although I haven't written tests for it yet, I believe that it shouldn't be too difficult. Using the notifier and notifications, we are able to have the supervising controller receive notification of events that update the status variables thus eliminating the need for a view locator. These status variables could easily be considered part of the model except that we have multiple views within the application and that would mean creating special model elements for each view to help make it clear what each of the status variables are associated with. My thinking is that this makes the supervising controller even of more value since it is clear where status values for the view are held. I hope to blog on this later once I have conducted more experiments and also on comparisons between Cairngorm and PureMVC. I have already done some comparison of Flex based testing frameworks (http://kiwi-et.blogspot.com/ ). - Errol Thompson Kiwi-ET Computing Education Research Wellington, New Zealand Phone: +64 21 210 1662 E-Mail: kiwiet (at) acm.org kiwiet (at) computer.org Web: www.teach.thompsonz.net - Messages in this topic http://groups.yahoo.com/group/flexcoders/message/132508;_ylc=X3oDMTM5MjgyNmx2BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxMzI3MzQEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMjI5NTIyNzA1BHRwY0lkAzEzMjUwOA--( 16) Reply (via web post) http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJzbHNoajNhBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxMzI3MzQEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMjI5NTIyNzA1?act=replymessageNum=132734| Start a new topic
Re: [flexcoders] SWC compression format?
If you rename the *.swc file to a *.zip file you can open it with Windows Vista (and XP?) or with 7-zip (etc.) without renaming it, so it must be a derivation of the pkzip format. There are some zip functions in the nochump branch of papervision3D so that might help. John aaron smith wrote: Does anyone have any idea what format a swc is compressed with? I'm trying to figure out how to take the ouput of a swc (with the -directory switch from compc), run the optimize command line tool on the library.swf, and then zip it back up as a swc. any ideas? thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Flex + Papervision Business Applications
Has anyone really developed a true business application using Flex + Papervision? I have been researching integration of the two but so far have found very little. I've found a couple good links on getting started but the solutions aren't optimal and no one seems to have brought it out of the proof of concept phase. http://www.systemsofseven.com/blog/tag/flexpv3d/ http://www.systemsofseven.com/blog/tag/flexpv3d/ http://blog.pekpongpaet.com/2008/09/18/set-up-papervision-20-for-flex-3-in-3-minutes-flat/ http://blog.pekpongpaet.com/2008/09/18/set-up-papervision-20-for-flex-3-in-3-minutes-flat/ The main question seems to be transitioning a 3D object (bitmap) back to a UIComponent. Any information is greatlyappreciated! -- View this message in context: http://www.nabble.com/Flex-%2B-Papervision-Business-Applications-tp21057163p21057163.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Strange #2147 error
I have noticed this as well but only on IE6. My solution was to move the background into a stylesheet, ex: .applicationStyle{ background-image: Embed('c:/we/assets/ skins/design- empty1.png'); } ... mx:Application styleName=applicationStyle .. - Ivo From: tom s tcs2...@gmail.com To: flexcoders@yahoogroups.com Sent: Wednesday, December 17, 2008 5:22:06 AM Subject: [flexcoders] Strange #2147 error I am using an embedded PNG as the background for my app: mx:Application backgroundImage=@Embed('c:/we/assets/ skins/design- empty1.png') .. I have my Flash Global Security Setting set to: Always trust files from these locations: 'c:\' When I run the app it tells me 'SecurityError: Error #2147: Forbidden protocol in URL @Embed('c:/we/assets/ skins/design- empty1.png')' - See below for full details. Additionally, this error was not present yesterday, and to the best of my knowledge I have not made any changes to anything. I have other PNGs embedded for button skins, and they are now throwing errors. How do I fix this? thanks tom SecurityError: Error #2147: Forbidden protocol in URL @Embed('c:/we/assets/ skins/design- empty1.png'). at flash.display: :Loader/_ load() at flash.display: :Loader/load( ) at mx.preloaders: :DownloadProgres sBar/loadBackgro undImage( )[E:\dev\ 3.1.0\frameworks \projects\ framework\ src\mx\preloader s\DownloadProgre ssBar.as: 1274] at mx.preloaders: :DownloadProgres sBar/createChild ren()[E:\ dev\3.1.0\ frameworks\ projects\ framework\ src\mx\preloader s\DownloadProgre ssBar.as: 876] at mx.preloaders: :DownloadProgres sBar/calcScale( )[E:\dev\ 3.1.0\frameworks \projects\ framework\ src\mx\preloader s\DownloadProgre ssBar.as: 1185] at mx.preloaders: :DownloadProgres sBar/show( )[E:\dev\ 3.1.0\frameworks \projects\ framework\ src\mx\preloader s\DownloadProgre ssBar.as: 1134] at mx.preloaders: :DownloadProgres sBar/initProgres sHandler( )[E:\dev\ 3.1.0\frameworks \projects\ framework\ src\mx\preloader s\DownloadProgre ssBar.as: 1470] at flash.events: :EventDispatcher /dispatchEventFu nction() at flash.events: :EventDispatcher /dispatchEvent( ) at mx.preloaders: :Preloader/ appProgressHandl er()[E:\dev\ 3.1.0\frameworks \projects\ framework\ src\mx\preloader s\Preloader. as:450] at flash.events: :EventDispatcher /dispatchEventFu nction() at flash.events: :EventDispatcher /dispatchEvent( ) at mx.core::UIComponen t/dispatchEvent( )[E:\dev\ 3.1.0\frameworks \projects\ framework\ src\mx\core\ UIComponent. as:9156] at mx.managers: :LayoutManager/ doPhasedInstanti ation()[E: \dev\3.1. 0\frameworks\ projects\ framework\ src\mx\managers\ LayoutManager. as:646] at Function/http://adobe. com/AS3/2006/ builtin:: apply() at mx.core::UIComponen t/callLaterDispa tcher2()[ E:\dev\3. 1.0\frameworks\ projects\ framework\ src\mx\core\ UIComponent. as:8565] at mx.core::UIComponen t/callLaterDispa tcher()[E: \dev\3.1. 0\frameworks\ projects\ framework\ src\mx\core\ UIComponent. as:8508]
RE: [flexcoders] Shape blocking mouse down
Use getDisplayObjectsUnderPoint() or break on SystemManager.mouseDownHandler and see what the target is. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jesse Warden Sent: Tuesday, December 16, 2008 3:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Shape blocking mouse down I'm drawing a horizontal timeline graph, my own component, not Flex charting. The horizontal bars are blocking the mouse down event from reaching a component in a lower depth. I'm confused because I've set the parent, the children, and everything near there's mouseChildren and mouseEnabled to false, yet the contents of the rows, little squares, block the mouse down event. Doing tests in Flash, I've proven those are the only 2 properties you need to set to false, even with nested containers, and cacheAsBitmap set to true. I have no events on this children; they are just a bunch of Shapes inside a Sprite, with his mouseChildren and mouseEnabled set to false as well. So, I'm confused. I know UIComponent sets your doubleClickEnabled to true, but tracing my components out, they seem to all say false for those values. What could possibly be causing those Shapes in a Sprite to be blocking the mouse down events?
[flexcoders] Re: How does Flex Builder validate a BlazeDS/LCDS J2EE project?
I've tested now the button validate location from Flex Server - yes it seems broken, I think you should fill a bug.
[flexcoders] Re: data returned from WSDL call
I have two recommendations for you: 1. Use the debugger. Put a breakpoint in your resultEvent handler and check the event.result variable. 2. Get a copy of Charles (http://www.charlesproxy.com). This should show the actual objects returned. HTH. Steve --- In flexcoders@yahoogroups.com, Louise Rains rainygl...@... wrote: I'm getting data back from a wsdl call that looks like this: ?xml version=1.0 encoding=windows-1252? ns0:ROOT xmlns:ns0=urn:AMAT_Asset_KeyGen xmlns:xsd= http://www.w3.org/2001/XMLSchema; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; ns0:getListValues ns0:B_License_Key0200362/ns0:B_License_Key ns0:B_Warranty_End_Date2007-03-31T00:00:00-04:00/ns0:B_Warranty_End_Date ns0:Company_NameSOME COMPANY/ns0:Company_Name ns0:Part_NumberALFLSS3300-1400/ns0:Part_Number ns0:Product_CategoryPER/ns0:Product_Category ns0:Product_TypeAUTOMOD/ns0:Product_Type ns0:Quantity1.00/ns0:Quantity ns0:Site_NameSOME SITE/ns0:Site_Name /ns0:getListValues . ns0:ROOT If I have multiple getListValues returned, I can use an ArrayCollection and step through each object in the collection to get the data. However, I'm having a hard time determining the type of event.result in the case where there is only one getListValues object returned. When I trace event.result, I get [object Object]. If I try to cast it to XML, XMLList or ArrayCollection, I get null objects. Is there a way to use reflection to determine what the [object Object] really is? How can I access the data that's coming back? Thanks! LG Rains
[flexcoders] Re: Rounding error
No, you're not doing anything wrong. It's just a fact of life that computers use binary and we humans use decimal. You will get a rounding error when converting between the two radix's. There are a number of posts on the net explaining this better than me: http://e2easy.wordpress.com/2008/09/25/overcoming-rounding-errors/ http://joshblog.net/2007/01/30/flash-floating-point-number-errors/ http://www.kirupa.com/forum/showthread.php?t=247416 --- In flexcoders@yahoogroups.com, Ken Johnson kenjohnso...@... wrote: Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to equal 0.918. Instead, it equals 0.9179. And when I apply a number formatter with a precision of 2, I get 0.91. I am performing financial calculations, and this is not acceptable. Am I doing something wrong here? Thanks for your help! Ken
[flexcoders] Re: Weborb to return XML data
Why would you want to do this? I would adjust the graph to take an array collection or object as a datasource. I think you could hack it in your C# code to pass a xml object or array with xml in it. But To me it defeats the purpose of weborb. I would take the approach of changing the datasource of the chart. If you post or PM me some sample code, I'd be happy to help. -Greg --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: I have been working with weborb and I think it is great. I am working on a graph that needs XML data that I have generated via php and mysql. I was wondering of Weborb can return XML and if you have any examples of this. Thanks for the, timgerr
[flexcoders] Looking for LCDS paging for server to datasource Example
Hi All, I am Bonny working as Flex Developer. I want to know about paging in LCDS. So please if you have any example for LCDS paging for server to datasource. Then please let me know about that. It is very helpful to me. Right now we are using client-server paging and want to move on server to datasource paging. Please help me if you have any Example or POC for this. Thanks Regards, Bonny
[flexcoders] Re: Weborb to return XML data
AFAIK Weborb sends and receives only via AMF. Of course, why would you want to use Weborb to receive XML? Just use a standard HTTPService call. --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: I have been working with weborb and I think it is great. I am working on a graph that needs XML data that I have generated via php and mysql. I was wondering of Weborb can return XML and if you have any examples of this. Thanks for the, timgerr
Re: [flexcoders] SWC compression format?
i think its gnu zip On Wed, Dec 17, 2008 at 5:13 PM, John McCormack j...@easypeasy.co.ukwrote: If you rename the *.swc file to a *.zip file you can open it with Windows Vista (and XP?) or with 7-zip (etc.) without renaming it, so it must be a derivation of the pkzip format. There are some zip functions in the nochump branch of papervision3D so that might help. John aaron smith wrote: Does anyone have any idea what format a swc is compressed with? I'm trying to figure out how to take the ouput of a swc (with the -directory switch from compc), run the optimize command line tool on the library.swf, and then zip it back up as a swc. any ideas? thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- j:pn \\no comment
[flexcoders] Getting progress of a POST operation (HTTPService or any other way)?
Is it possible to get the progress (or at least bytes sent) for a POST operation in any way, I'm currently using HTTPService but will happily change to something else if it will give me the ability to track the progress of the POST.
RE: [flexcoders] Rounding error
What you could do is look into fixed point maths. This is how you do maths when you don't want to (can't) use floating point numbers. That way you control the precision, it's used in games as its generally quicker than using decimals and as it uses integers there isn't any rounding, but you have to compromise either the size of the number or the precision of the number. This is explained in many places better than I could. I've included a few links for starters. http://home.comcast.net/~ohommes/MathFP/mathfp_bg.html http://www.essentialmath.com/FixedFloat.pps http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/ most of the info out there is in C/C++ but you should be able to pick up something if it doesn't sound too much like overkill. Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ken Johnson Sent: 17 December 2008 14:16 To: flexcoders@yahoogroups.com Subject: [flexcoders] Rounding error Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to equal 0.918. Instead, it equals 0.9179. And when I apply a number formatter with a precision of 2, I get 0.91. I am performing financial calculations, and this is not acceptable. Am I doing something wrong here? Thanks for your help! Ken Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] Re: Looking for LCDS paging for server to datasource Example
Hi Bonny, Here's a reply from Ed Solovey, one of our engineers in the LCDS team: The first thing you want to do is enable Server-to-data-source paging, also referred to as paged-fill, by implementing the useFillPage method in your extension of AbstractAssembler: @Override public boolean useFillPage(List fillParameters) { // enabling paged-fill for all fills return true; } LCDS will call this method when a fill request comes in to the server to determine whether to call the Assembler fill method variant with just a fill parameters argument or the fill method variant with additional startIndex, and numberOfRows parameters. You can enable it for a subset of fills by returning true/false based on the fillParameters argument. Above, I've enabled it for all fills. Next, you'll want to implement the paged-fill variant of the fill method: @Override public Collection fill(List fillParameters, int startIndex, int numberOfRows) { System.out.println(paged fill called with: + startIndex + , + numberOfRows); ArrayListPerson people = new ArrayListPerson(); Connection c = null; c = getConnection(); Statement s = c.createStatement(); // use the startIndex and numItems parameters to limit the result set // returned by your data source. Details will depend on your datasource; // we are using MySQL here which supports a LIMIT clause // to do exactly what we want ResultSet rs = s.executeQuery(SELECT * FROM people LIMIT + startIndex + , + numberOfRows); while (rs.next()) { Person person = new Person(); person.lastName = rs.getString(lastName); person.firstName = rs.getString(firstName); person.id = rs.getInt(id); people.add(person); } return people; } (error handling is not included above, I'll include a full version of the assembler at the bottom). I am using MySQL in this sample and the line of interest above is ResultSet rs = s.executeQuery(SELECT * FROM people LIMIT + startIndex + , + numberOfRows);. Here I am using the startIndex and numberOfRows parameters to limit the result set fetched by MySQL thus extending paging all the way to the datasource. The exact syntax here will depend on your specific datasource. When you use paged-fill, LCDS can no longer determine the size of the fill collection from the result of the first fill request because it only returns the first page of your collection. So it is required that the count method is implemented when paged-fill is used. Here is my method: @Override public int count(List countParameters) { // when fill paging is enabled, this method will be called // after the first fill request comes in because the size of // the collection is no longer known from the result of that // initial fill request. However, in the cases where a count // query is almost as expensive as a full fill query, you may // avoid it and return -1. In this case the client's notion of // the size will be incremented with each page request causing // UI components such as the DataGrid to adjust with each page request boolean countQueryExpensive = false; int count = -1; if (!countQueryExpensive) { Connection c = null; c = getConnection(); Statement s = c.createStatement(); ResultSet rs = s.executeQuery(SELECT COUNT(*) count FROM people); rs.next(); count = rs.getInt(count); } System.out.println(count returning: + count); return count; } (again, error handling is not included above, I'll include a full version of the assembler at the bottom). Note the comment at the top of the implementation, if count is expensive you may return -1 and LCDS will adjust the collection size dynamically. At this point you should be ready to go. You can configure this destination in data-management-config.xml just as you would any other: adapters adapter-definition class=flex.data.adapters.JavaAdapter id=java-dao/adapter-definition /adapters destination adapter=java-dao id=PagingDestination properties sourcepaging.PagingAssembler/source scopeapplication/scope network paging enabled=true pageSize=5/paging /network metadata identity property=id/identity /metadata /properties /destination As you would expect, to use server-to-data-source paging, client-to-server paging must also be enabled. Note above that I've set my page size to 5. You can now hit access your destination with a simple client: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=myDS.fill(myCollection) mx:DataService id=myDS destination=PagingDestination/ mx:ArrayCollection id=myCollection/ mx:DataGrid id=myDG dataProvider={myCollection}/ /mx:Application In your server output you should initially see: paged fill called with: 0, 6
Re: [flexcoders] Rounding error
Jules, For financial applications, it's far more problematic than testing for equality. For example, if you are applying a discount to a price the resulting price must have exact two digit decimal accuracy, otherwise by the time you have discounted a few items you have an invoice whose total doesn't match the sum of the discounted items as shown on the invoice. That tends to upset customers. The other thing to consider is that such arithmetic must be consistent on server as well as client, otherwise you can end up with server-side reports that don't match client-side displays. Paul - Original Message - From: Jules Suggate To: flexcoders@yahoogroups.com Sent: Wednesday, December 17, 2008 4:36 PM Subject: Re: [flexcoders] Rounding error Valdhor already gave you all the info you need, but I like the sound of my own fingers typing. I also like to procrastinate, so I'm in heaven right now :p a.. Some numbers that are easy to represent in decimal are hard to represent in binary, just as some numbers that are easy to represent in base 60 are hard to represent in decimal (such as 1/3). b.. Your calculations are safe enough: Number has a very high precision and calculations are carried out with full precision. It's just when testing for equality that you can run into problems -- I'm guessing this is where you noticed the discrepancy? c.. When comparing for floating-point numbers for equality, you need to specify a tolerance too. Most unit-testing frameworks provide this for their floating-point asserts. And when I was doing financial apps, we did the same thing. If you *really* need higher precision, you'll need a BigNumber implementation for AS3, of which there are several. The AS3Crypto library has one I believe... Chyrs :) Jules On Thu, Dec 18, 2008 at 03:15, Ken Johnson kenjohnso...@hotmail.com wrote: Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to equal 0.918. Instead, it equals 0.9179. And when I apply a number formatter with a precision of 2, I get 0.91. I am performing financial calculations, and this is not acceptable. Am I doing something wrong here? Thanks for your help! Ken -- Cheers, Jules -- Jules Suggate Owner and Technical Lead Uphill Sprint Limited +64-21-157-8562
Re: [flexcoders] Re: Looking for LCDS paging for server to datasource Example
Try this link http://coenraets.org/blog/category/lcds/ On Wed, Dec 17, 2008 at 12:35 PM, meteatamel meteata...@yahoo.com wrote: Hi Bonny, Here's a reply from Ed Solovey, one of our engineers in the LCDS team: The first thing you want to do is enable Server-to-data-source paging, also referred to as paged-fill, by implementing the useFillPage method in your extension of AbstractAssembler: @Override public boolean useFillPage(List fillParameters) { // enabling paged-fill for all fills return true; } LCDS will call this method when a fill request comes in to the server to determine whether to call the Assembler fill method variant with just a fill parameters argument or the fill method variant with additional startIndex, and numberOfRows parameters. You can enable it for a subset of fills by returning true/false based on the fillParameters argument. Above, I've enabled it for all fills. Next, you'll want to implement the paged-fill variant of the fill method: @Override public Collection fill(List fillParameters, int startIndex, int numberOfRows) { System.out.println(paged fill called with: + startIndex + , + numberOfRows); ArrayListPerson people = new ArrayListPerson(); Connection c = null; c = getConnection(); Statement s = c.createStatement(); // use the startIndex and numItems parameters to limit the result set // returned by your data source. Details will depend on your datasource; // we are using MySQL here which supports a LIMIT clause // to do exactly what we want ResultSet rs = s.executeQuery(SELECT * FROM people LIMIT + startIndex + , + numberOfRows); while (rs.next()) { Person person = new Person(); person.lastName = rs.getString(lastName); person.firstName = rs.getString(firstName); person.id = rs.getInt(id); people.add(person); } return people; } (error handling is not included above, I'll include a full version of the assembler at the bottom). I am using MySQL in this sample and the line of interest above is ResultSet rs = s.executeQuery(SELECT * FROM people LIMIT + startIndex + , + numberOfRows);. Here I am using the startIndex and numberOfRows parameters to limit the result set fetched by MySQL thus extending paging all the way to the datasource. The exact syntax here will depend on your specific datasource. When you use paged-fill, LCDS can no longer determine the size of the fill collection from the result of the first fill request because it only returns the first page of your collection. So it is required that the count method is implemented when paged-fill is used. Here is my method: @Override public int count(List countParameters) { // when fill paging is enabled, this method will be called // after the first fill request comes in because the size of // the collection is no longer known from the result of that // initial fill request. However, in the cases where a count // query is almost as expensive as a full fill query, you may // avoid it and return -1. In this case the client's notion of // the size will be incremented with each page request causing // UI components such as the DataGrid to adjust with each page request boolean countQueryExpensive = false; int count = -1; if (!countQueryExpensive) { Connection c = null; c = getConnection(); Statement s = c.createStatement(); ResultSet rs = s.executeQuery(SELECT COUNT(*) count FROM people); rs.next(); count = rs.getInt(count); } System.out.println(count returning: + count); return count; } (again, error handling is not included above, I'll include a full version of the assembler at the bottom). Note the comment at the top of the implementation, if count is expensive you may return -1 and LCDS will adjust the collection size dynamically. At this point you should be ready to go. You can configure this destination in data-management-config.xml just as you would any other: adapters adapter-definition class=flex.data.adapters.JavaAdapter id=java-dao/adapter-definition /adapters destination adapter=java-dao id=PagingDestination properties sourcepaging.PagingAssembler/source scopeapplication/scope network paging enabled=true pageSize=5/paging /network metadata identity property=id/identity /metadata /properties /destination As you would expect, to use server-to-data-source paging, client-to-server paging must also be enabled. Note above that I've set my page size to 5. You can now hit access your destination with a simple client: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=myDS.fill(myCollection) mx:DataService id=myDS destination=PagingDestination/ mx:ArrayCollection id=myCollection/ mx:DataGrid id=myDG dataProvider={myCollection}/ /mx:Application In your server output you should initially see: paged fill called with: 0, 6 count returning: 25 (or count returning: -1, depending on whether your count is implemented or you are using
Re: [flexcoders] Loadbytes - Exclude framework?
export the framework as an external RSL for both your main app and the runtime loaded class swf, that way your external swf won't have the bytes in it and the main app will mount all the needed classes from the rsl as is necesary. of course you are also helping all the rest of us who then export with the framework as an rsl. the downside is that the external framework includes all the classes and is thus bigger. On Wed, Dec 17, 2008 at 12:15 PM, Sceneshift j...@sceneshift.com wrote: I am loading in a external SWF at runtime using loadBytes, so I am able to retrieve library items / class names created via the designers in the SWF. I need to use loadBytes so I can use timeline AS3 code etc. I was wondering what the implications are of this, since the exported SWFs filesize will include the FP framework. Is there a way to load in a SWF using loadBytes, but ignoring any of the framework stuff we already have loaded? -- View this message in context: http://www.nabble.com/Loadbytes---Exclude-framework--tp21050425p21050425.html Sent from the FlexCoders mailing list archive at Nabble.com. -- j:pn \\no comment
Re: [flexcoders] Re: getting refs to items in Group.mxmlContent?
displayGroup.getItemAt(0) should return the FXG object and then you should be able to use the content management functions, i.e. to get the number of items: displayGroup.getItemAt(0).numItems to get the second item: displayGroup.getItemAt(0).getItemAt(1) Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Wed, Dec 17, 2008 at 9:26 AM, Mic chigwel...@yahoo.com wrote: I think I need more help on this one :-( I found getElementAt(), getElementIndex() etc in the GraphicElement-ContentElement class, but not sure how to relate any of this to the loaded .fxg object: If I go to this.contentGroup __mxmlContent [0] VGroup (button group) [1] displayGroup (Group var containing .fxg object for display) __mxmlContent [0].fxg Object __myGroup1 __myGroup2 etc I still arrive at this mxmlContent array of 1 row containing the .fxg object with all the groups I want to reference. Any kind of getElementAt() at this level throws an index error talking about unknown mxml content. Am I even interrogating the correct instance? TIA, Mic. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Haykel BEN JEMIA hayke...@... wrote: You should use the content management functions of group to access its children: numElements(), getElementAt(index:int), getElementIndex(element:Object) etc. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, Dec 16, 2008 at 10:28 PM, Mic chigwel...@... wrote: (OK to ask Gumbo questions?)When an .fxg file is loaded into FxApplication and added to a Group, and that Group is then added to FxApplication, array mxmlContent[0] contains the .fxg Graphic object, whose child Groups can be accessed directly by name: displayGroup.mxmlContent[0].myGroup1 However I cannot access mxmlContent[0] with getChildAt() etc, nor can I work out how to extract out references to mxmlContent[0] into another array etc so a list can be displayed where a Group object might be selected. Can find no info on mxmlContent :-( code: testFXG.fxg contains group id=myGroup1, group id=myGroup2 etc private var displayGroup:Group; displayGroup = new Group(); var source: testFXG= new testFXG(); displayGroup.addItem(source); addItem(displayGroup); breakpoint shows: displayGroup [inherited] mxmlContent [0] myGroup1 myGroup2 etc code: private var testGroup:Group; testGroup = displayGroup.mxmlContent[0].myGroup1; - this is a good reference and can be used to change myGroup1.x, myGroup1.y etc. However as stated above I cannot get a reference to e.g. the 3rd child etc. As always, TIA, Mic.
[flexcoders] SWC compression format?
Does anyone have any idea what format a swc is compressed with? I'm trying to figure out how to take the ouput of a swc (with the -directory switch from compc), run the optimize command line tool on the library.swf, and then zip it back up as a swc. any ideas? thanks
[flexcoders] Common base class for components
Hi list, anyone know if it's possible to have all our components inherit from a common base component of our own making? There are some things in our app that every View component will have to do at loadtime, and it'd be nice to just write that code once and have all the other components inherit it... Last time I checked in Flex 3 Beta 2 there was some vague suggestion of using Template Components, but that seemed like an afterthought in the SDK at the time. Just thought I'd check to see if you knew of any tricks for doing it :) Perhaps even an include file would be the way to go...
[flexcoders] Re: Disable Flash Player Settings Panel
Thanks a lot Nate. --- In flexcoders@yahoogroups.com, Nate Beck n...@... wrote: That's a tough problem that I've had to deal with before. Here is what I figured out. - You widget MUST be 216 x 140 (some people will argue you can do 215 wide, but in my testing sometimes that causes issues) - The main issue that you will run into is... When the player window is too small, the settings panel will either 1) not show up at all OR 2) Show up clipped and in some browsers which will not register mouse events to the player - You cannot disable the settings panel. Here are a couple of workarounds that I figured out: - The widget needs to be 216 x 140 ONLY when you're asking for permission to the microphone. If you have control of Javascript on the page, you can change the size of the flash object on the page temporarily while you show the settings panel. - You can use Security.showSettings(SecurityPanel.PRIVACY); to control when you want the settings panel to show up. - Using the Security.showSettings method is helpful because there is a Remember button on that panel. If the user chooses Remember, then you never have to show the Settings panel again. - The Microphone status events get dispatched when a user changes a Microphone setting within the settings panel. ( _mic.addEventListener(StatusEvent.STATUS, onMicStatus); ) - On your Microphone class, the muted property will tell you if you have access to the microphone or not. Hope this helps, Nate On Mon, Dec 15, 2008 at 1:50 AM, vinayakvijay_v vinayakvija...@...wrote: Hello. am vinu. Need Help, I am developing a Audio recorder Widget using FMS and Flex . The size of the widget should be small. But the problem is that when i access the mic. the flash player settings window does not appear because of the small size of my Widget . Any workaround to get mic without displaying the settings. The Widget need min 250X150 size to display the settings ,but i need to build it 200X100. please help me if u can. thanks in advance, vinu.
Re: [flexcoders] Rounding error
I may be missing something from your explanation. Are you seeing erroneous calculations? Are there bugs? What exactly is the problem we are trying to solve. AFAIK, 2 digit accuracy is a given. In fact, it goes many digits higher than that (I forgete exactly how many -- too long since my University days). But that's what I meant by Number has a very high precision. If you need two-digit accuracy, just round all Number to two decimal places and it'll be correct. x = Math.round(x*100.0) / 100.0; //round x to 2 decimal places More generally, x = Math.round(x*10^n) / 10^n; //round to n decimal places Or, Math.floor(x*100.0) / 100.0; //ensures you never round up http://www.google.co.nz/search?q=round+float+decimal+places has a whole bunch of people wanting 2 digit accuracy. If you're still concerned, someone else mentioned using integers to store cents. That's usually my approach, but I've worked on codebases that do the above and not had any problems. Server and client-side implementations will be the same. AS3 floats are IEEE compliant. Datetimes between server and client however ... watch out :-) On Thu, Dec 18, 2008 at 06:25, Paul Andrews p...@ipauland.com wrote: Jules, For financial applications, it's far more problematic than testing for equality. For example, if you are applying a discount to a price the resulting price must have exact two digit decimal accuracy, otherwise by the time you have discounted a few items you have an invoice whose total doesn't match the sum of the discounted items as shown on the invoice. That tends to upset customers. The other thing to consider is that such arithmetic must be consistent on server as well as client, otherwise you can end up with server-side reports that don't match client-side displays. Paul - Original Message - *From:* Jules Suggate julian.sugg...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Wednesday, December 17, 2008 4:36 PM *Subject:* Re: [flexcoders] Rounding error Valdhor already gave you all the info you need, but I like the sound of my own fingers typing. I also like to procrastinate, so I'm in heaven right now :p - Some numbers that are easy to represent in decimal are hard to represent in binary, just as some numbers that are easy to represent in base 60 are hard to represent in decimal (such as 1/3). - Your calculations are safe enough: Number has a very high precision and calculations are carried out with full precision. It's just when testing for equality that you can run into problems -- I'm guessing this is where you noticed the discrepancy? - When comparing for floating-point numbers for equality, you need to specify a tolerance too. Most unit-testing frameworks provide this for their floating-point asserts. And when I was doing financial apps, we did the same thing. If you *really* need higher precision, you'll need a BigNumber implementation for AS3, of which there are several. The AS3Crypto library has one I believe... Chyrs :) Jules On Thu, Dec 18, 2008 at 03:15, Ken Johnson kenjohnso...@hotmail.comwrote: Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to equal 0.918. Instead, it equals 0.9179. And when I apply a number formatter with a precision of 2, I get 0.91. I am performing financial calculations, and this is not acceptable. Am I doing something wrong here? Thanks for your help! Ken -- Cheers, Jules -- Jules Suggate Owner and Technical Lead Uphill Sprint Limited +64-21-157-8562 -- Cheers, Jules -- Jules Suggate Owner and Technical Lead Uphill Sprint Limited +64-21-157-8562
[flexcoders] File Explorer
I am building a full featured file explorer and I am stuck on one part of the application. On the left hand side I will have a base root directory (root) and a listing of all directories that fall under it (no end). When you click on a folder they will show up in the datagrid to the right. My question is actually 2 parts. 1.) What approach should I take. Do I make one call to my server and build the entire folder structure, then return either and arraycollection or xmllistcollection or should I just grab the list of directories and show an arrow next to directories with sub directories indicating that there are sub directories. When you click on that folder make another call to the server to grab that sub directory list and so on. 2.) The second part of the question is i heard that If I am going to be updating this collection (deleting / adding / renaming directories) that I should be using an ArrayCollection. The question is when I have data like there is below, how do I break it down into parent/child nodes? Every example I have seen of the tree always uses xml as the data and in those examples its clear how to break down child / parent relationships. ** Any help on this how to move forward with this would be great help ** [0] (Object)#3 Attributes = DateLastModified = Sat Nov 1 13:21:02 GMT-0400 2008 Directory = H:\JRun4 hasDirs = 0 Mode = Name = bin Path = H:\JRun4\bin Size = 0 Type = Dir [1] (Object)#4 Attributes = DateLastModified = Fri Aug 3 21:55:23 GMT-0400 2007 Directory = H:\JRun4 hasDirs = 1 Mode = Name = docs Path = H:\JRun4\docs Size = 0 Type = Dir Thank You Dan Vega danv...@gmail.com http://www.danvega.org
[flexcoders] BlazeDS and Internet Explorer (7 at least)
Hello :) I have started exploring BlazeDS (Turnkey) and after I followed and understood this hello world example, http://blog.ashier.com/2008/02/22/bl...world-example/, it became very confusing to me :| Locally everything runs fine in IE, but remotely its a living hell... it simply does not work... in IE, becauses in Firefox its Ok. I have tried blazeds samples and they work fine, remotely and localy, in IE and in firefox, so I'm suspicious it can be something in mey java classes! In IE the following error appears: code: Client.Error.DeliveryInDoubt Message: error Detail: Invalid URL url: 'http://nofearp_2008:8400/xelfsystems/messagebroker/ amf' Can anyone help me :| it's very frustrating :( I can't see anything related with this on the web, at least something that makes sense to me. Thanks again people.
RE: [flexcoders] problem in WebService help me plz
Google: Flex WebService document literal xml Also, you will find it much easier to debug problems if you build the webservice request object in AS rather than in declarative mxml;. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of NATA RAJAN Sent: Wednesday, December 17, 2008 1:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem in WebService help me plz Hi All, The Below code is working very fine . but my need is i want to place the XML file instead of parameter (externalServiceParameterInfo). if i print in XML file using Aert it will show correctly.. mx:WebService id=ws_IM wsdl=http://125.17.111.152:8600/imedicore/services/ExternalServiceDAO?w sdl http://125.17.111.152:8600/imedicore/services/ExternalServiceDAO?wsdl service=ExternalServiceDAO port=ExternalServiceDAOSOAP11Port useProxy=false mx:operation name=UpdateAllExternalServiceParameterInfo resultFormat=e4x result=ws_IM_result(event) fault=ws_IM_fault(event) mx:request xmlns=http://www.resilient-networks.com/schemas http://www.resilient-networks.com/schemas xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/ inParam externalServiceParameterInfo externalServiceGUID{ExGuid}/externalServiceGUID externalServiceParameterGUID{getAllExSrParam_arr_guid.getItemAt(0)}/e xternalServiceParameterGUID name{getAllExSrParam_arr_names.getItemAt(0)}/name typeText/type value{getAllExSrParam_arr_values.getItemAt(0)}/value /externalServiceParameterInfo /inParam /mx:request /mx:operation /mx:WebService MY CODE IS ~~ [Bindable] public var inParameter:XMLList = new XMLList(inParam/); mx:WebService id=ws_IM wsdl=http://125.17.111.152:8600/imedicore/services/ExternalServiceDAO?w sdl http://125.17.111.152:8600/imedicore/services/ExternalServiceDAO?wsdl service=ExternalServiceDAO port=ExternalServiceDAOSOAP11Port useProxy=false mx:operation name=UpdateAllExternalServiceParameterInfo resultFormat=e4x result=ws_IM_result(event) fault=ws_IM_fault(event) mx:request xmlns=http://www.resilient-networks.com/schemas http://www.resilient-networks.com/schemas xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/ inParam {inParameter. externalServiceParameterInfo} // XML file it will print correctly in Alert but not working here /inParam /mx:request /mx:operation /mx:WebService XML file ~~ externalServiceParameterInfo externalServiceGUID1200/externalServiceGUID externalServiceParameterGUID1001/externalServiceParameterGUID nameLipix/name typeText/type valueReference/value /externalServiceParameterInfo Plz find me a solution for this WebService parameter issue . Thanks in Advance Regards Natarajan V Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.webmessenger.yahoo.com/ http://in.webmessenger.yahoo.com/
[flexcoders] Re: problem in WebService help me plz
I don't believe the Flex WebService allows you to send plain XML. I think you need to create objects which Flex will parse to create SoapObjects. I have put together a demo application that you can use as a starting point: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.soap.mxml.*; private var webService:WebService; public function onCreationComplete():void { webService = new WebService(); webService.endpointURI = http://125.17.111.152:8600/imedicore/services/ExternalServiceDAO;; webService.loadWSDL(http://125.17.111.152:8600/imedicore/services/Exter\ nalServiceDAO?wsdl); webService.addEventListener(FaultEvent.FAULT, faultHandler); webService.addEventListener(ResultEvent.RESULT, resultHandler); } public function resultHandler(event:ResultEvent):void { Alert.show((event.result as String)); } public function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultString); } public function runRequest():void { var ExternalServiceParameterInfo:Object = new Object(); ExternalServiceParameterInfo.externalServiceGUID = 1200; ExternalServiceParameterInfo.externalServiceParameterGUID = 1001; ExternalServiceParameterInfo.name = Lipix; ExternalServiceParameterInfo.type = Text; ExternalServiceParameterInfo.value = Reference; var inParam:Object = new Object(); inParam.externalServiceParameterInfo = ExternalServiceParameterInfo; webService.UpdateAllExternalServiceParameterInfo(inParam); } ]] /mx:Script mx:Button label=Run Request click=runRequest()/ /mx:Application This will contact the WebService but will return a SoapFault of No External Service Parameter record found for the GUID '1001' HTH Steve --- In flexcoders@yahoogroups.com, NATA RAJAN natrajan_majest...@... wrote: Hi All, The Below code is working very fine . but my need is i want to place the XML file instead of parameter (externalServiceParameterInfo). if i print in XML file using Aert it will show correctly.. mx:WebService id=ws_IM wsdl=http://125.17.111.152:8600/imedicore/services/ExternalServiceDAO?w\ sdl service=ExternalServiceDAO port=ExternalServiceDAOSOAP11Port useProxy=false mx:operation name=UpdateAllExternalServiceParameterInfo resultFormat=e4x result=ws_IM_result(event) fault=ws_IM_fault(event) mx:request xmlns=http://www.resilient-networks.com/schemas; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; inParam externalServiceParameterInfo externalServiceGUID{ExGuid}/externalServiceGUID externalServiceParameterGUID{getAllExSrParam_arr_guid.getItemAt(0)}/e\ xternalServiceParameterGUID name{getAllExSrParam_arr_names.getItemAt(0)}/name typeText/type value{getAllExSrParam_arr_values.getItemAt(0)}/value /externalServiceParameterInfo /inParam /mx:request /mx:operation /mx:WebService MY CODE IS ~~ [Bindable] public var inParameter:XMLList = new XMLList(inParam/); mx:WebService id=ws_IM wsdl=http://125.17.111.152:8600/imedicore/services/ExternalServiceDAO?w\ sdl service=ExternalServiceDAO port=ExternalServiceDAOSOAP11Port useProxy=false mx:operation name=UpdateAllExternalServiceParameterInfo resultFormat=e4x result=ws_IM_result(event) fault=ws_IM_fault(event) mx:request xmlns=http://www.resilient-networks.com/schemas; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; inParam {inParameter. externalServiceParameterInfo} // XML file it will print correctly in Alert but not working here /inParam /mx:request /mx:operation /mx:WebService XML file ~~ externalServiceParameterInfo externalServiceGUID1200/externalServiceGUID externalServiceParameterGUID1001/externalServiceParameterGUID nameLipix/name typeText/type valueReference/value /externalServiceParameterInfo Plz find me a solution for this WebService parameter issue . Thanks in Advance Regards Natarajan V Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.webmessenger.yahoo.com/
[flexcoders] Loadbytes - Exclude framework?
I am loading in a external SWF at runtime using loadBytes, so I am able to retrieve library items / class names created via the designers in the SWF. I need to use loadBytes so I can use timeline AS3 code etc. I was wondering what the implications are of this, since the exported SWFs filesize will include the FP framework. Is there a way to load in a SWF using loadBytes, but ignoring any of the framework stuff we already have loaded? -- View this message in context: http://www.nabble.com/Loadbytes---Exclude-framework--tp21050425p21050425.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Issue with selectedItem Indices with lists and uiComponent in ItemRenderer
I have an itemRenderer that copies bitmapdata into my uiComponent inside my itemRenderer. the problem comes up when I try to run a filter on my list and then the bitmapData changes, I am clearing out the bitmapData and the bitmap Container, on my commitProperties. Any suggestion on this? the only reason I think that could be goofing this up is the bounds of my itemRenderer is changed with the content of the bitmap Data object? I am not sure, it's a tough one to nail down? Any suggestions? Thanks, Patrick
Re: [flexcoders] SWC compression format?
thanks guys, I think this should work. On Wed, Dec 17, 2008 at 7:49 AM, Johannes Nel johannes@gmail.com wrote: i think its gnu zip On Wed, Dec 17, 2008 at 5:13 PM, John McCormack j...@easypeasy.co.uk wrote: If you rename the *.swc file to a *.zip file you can open it with Windows Vista (and XP?) or with 7-zip (etc.) without renaming it, so it must be a derivation of the pkzip format. There are some zip functions in the nochump branch of papervision3D so that might help. John aaron smith wrote: Does anyone have any idea what format a swc is compressed with? I'm trying to figure out how to take the ouput of a swc (with the -directory switch from compc), run the optimize command line tool on the library.swf, and then zip it back up as a swc. any ideas? thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- j:pn \\no comment
[flexcoders] SWF file format question - SymbolClass Tag
Has anyone read through the SWF file format, and been able to decipher how exactly AS3 classes are compiled into the SWF? From reading through all of the control tags it seems it would be the SymbolClass tag. So, it would seem, I could rip out SymbolClass tags from the bytecode (for a specific class) - while keeping track of the new file length, then write the swf again and have a swf that doesn't include the definition for a particular class. Anyone else think that makes sense? Thanks
[flexcoders] How to open the popup many time?
Hi, I have a component file. BasicWindow.mxml ?xml version=1.0 encoding=utf-8? mx:Window xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=300 height=200 mx:Script ![CDATA[ [Bindable] public var showText:String; ]] /mx:Script mx:Label horizontalCenter=0 y=58 text={showText} id=lbl/ /mx:Window This is the main file,but I only can open the window once,I want to know how to open it many times.Please help me.Thanks main.mxml private var win:BasicWindow = new BasicWindow(); private function createWindow():void{ //Alert.show(I am here); win.showText = Show me on the Window; win.open(); } mx:Button label=Open Window click=this.createWindow() horizontalCenter=0 y=50/
[flexcoders] How focusOut Event works in Flex
Hi, I have multiple tabs, My users requirement is to save the data of one of his tab form if he move from that tab to another tab with out pressing save button. I was trying with focusOut event. It was not working properly. If i click some where in the current tab also it is invoking every time i click else not. And more over the focusOut event of first clicked tab is invoking in every other tab and every mouse click in other tabs. I am pretty much new to Flex Development. Could any one please help me how can i access a method before going on of a page. Please let me know is their any alternate method to invoke a particular method when my focus out from TAB to another. Thanks in advance
Re: [flexcoders] Flex + Papervision Business Applications
hello monkeyden, On Wed, Dec 17, 2008 at 2:06 PM, monkeyden monk...@monkeyden.com wrote: The main question seems to be transitioning a 3D object (bitmap) back to a UIComponent. I'd done a UIComponent viewer for displaying and using with bindings, states, etc., papervision DisplayObject3D objects. It's kind of old and I'm not that happy about it now, and it was for pre-great white pv3d, but hopefully might help you in some way. http://code.google.com/p/rojored/source/browse/trunk/src/com/rojored/view/controls/Display3D.as it allows for stuff like this (although I think this example is from a slightly older version): http://rojored.com/code/pv3d-flex/PV3D.swf -- gabriel montagné láscaris comneno http://rojored.com t/506.8367.6794
Re: [flexcoders] How focusOut Event works in Flex
Hi, did you try show / hide events? You could also use the containers change event: change=navigatorClicked() for example and in there check for unsaved data On Wed, Dec 17, 2008 at 11:55 PM, b.kotireddy koti_reddy...@yahoo.comwrote: Hi, I have multiple tabs, My users requirement is to save the data of one of his tab form if he move from that tab to another tab with out pressing save button. I was trying with focusOut event. It was not working properly. If i click some where in the current tab also it is invoking every time i click else not. And more over the focusOut event of first clicked tab is invoking in every other tab and every mouse click in other tabs. I am pretty much new to Flex Development. Could any one please help me how can i access a method before going on of a page. Please let me know is their any alternate method to invoke a particular method when my focus out from TAB to another. Thanks in advance -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Error Message
I am trying to get a Flex App to access a Cold Fusion CFC on my CF 7.0.2 server. I get the following error: MessagingError message='Destination 'ColdFusion' either does not exist or the destination has no channels defined (and the application does not define any default channels Using: mx:RemoteObject id=userRequest destination=ColdFusion source=flexapp.returnusers mx:method name=returnRecords result=returnHandler(event) fault=mx.controls.Alert.show(event.fault.faultString)/ mx:method name=insertRecord result=insertHandler() fault=mx.controls.Alert.show(event.fault.faultString)/ /mx:RemoteObject (This and the CFC are sample files from the Flex 3 Docs.) If I use the local developer edition of the CF server (same version) all works well, no errors. Does anyone have an idea of what the issue could be? How about a good resource (book, article, consultant) to assist? Can anyone explain what the Destination parameter is? thank you in advance. jh
RE: [flexcoders] File Explorer
If I am going to be updating this collection (deleting / adding / renaming directories) that I should be using an ArrayCollection Don't believe everything that you hear. Demand an explanation why. I advise staying with XML. Like the filesystem structure, XML is inherently hierarchical. The collections are not, and as Ivo shows, you will have to do some work to make the hierarchy accessible. XML will just be there. Plus, e4x is very powerful for manipulating hierarchies, where the nested collections are not. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ivo Sent: Wednesday, December 17, 2008 12:47 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] File Explorer I worked on something similar not too long ago and my approach for #1 was to load top-level folders only and only drill inward with a server call as the user clicks on the expand arrow on individual folders. It made it appear more responsive for huge structures. For #2 you can have each of your nodes be an object with a 'children' member that is an ArrayCollection of node objects. When inserting/removing you operate on the children ArrayCollection directly and the Tree will reflect the change on the next screen update. var _children:ArrayCollection = new ArrayCollection();//add your child nodes to this var _parent:Object = {label: 'parent', children: _children} //this would be the parent object var _dp:ArrayCollection = new ArrayCollection([_parent]); //data provider for tree - Ivo From: Dan Vega danv...@gmail.com To: flexcoders@yahoogroups.com Sent: Wednesday, December 17, 2008 6:01:36 AM Subject: [flexcoders] File Explorer I am building a full featured file explorer and I am stuck on one part of the application. On the left hand side I will have a base root directory (root) and a listing of all directories that fall under it (no end). When you click on a folder they will show up in the datagrid to the right. My question is actually 2 parts. 1.) What approach should I take. Do I make one call to my server and build the entire folder structure, then return either and arraycollection or xmllistcollection or should I just grab the list of directories and show an arrow next to directories with sub directories indicating that there are sub directories. When you click on that folder make another call to the server to grab that sub directory list and so on. 2.) The second part of the question is i heard that If I am going to be updating this collection (deleting / adding / renaming directories) that I should be using an ArrayCollection. The question is when I have data like there is below, how do I break it down into parent/child nodes? Every example I have seen of the tree always uses xml as the data and in those examples its clear how to break down child / parent relationships. ** Any help on this how to move forward with this would be great help ** [0] (Object)#3 Attributes = DateLastModified = Sat Nov 1 13:21:02 GMT-0400 2008 Directory = H:\JRun4 hasDirs = 0 Mode = Name = bin Path = H:\JRun4\bin Size = 0 Type = Dir [1] (Object)#4 Attributes = DateLastModified = Fri Aug 3 21:55:23 GMT-0400 2007 Directory = H:\JRun4 hasDirs = 1 Mode = Name = docs Path = H:\JRun4\docs Size = 0 Type = Dir Thank You Dan Vega danv...@gmail. com mailto:danv...@gmail.com http://www.danvega. org http://www.danvega.org
Re: [flexcoders] File Explorer
Thank you so much! After screwing around with this for awhile I am finding that to be the real problem. When you get into unlimited numbers of sub directories the array collection becomes very hard to manage. I think to return my list of files an arrayCollection will work just fine but for the directory structure I am going to produce xml. Also I think when we we are just talking about directories, I might as well go build them all out now __,_,_ Thank You Dan Vega
[flexcoders] Re: File Explorer
--- In flexcoders@yahoogroups.com, ivo cervantes_v...@... wrote: I worked on something similar not too long ago and my approach for #1 was to load top-level folders only and only drill inward with a server call as the user clicks on the expand arrow on individual folders. It made it appear more responsive for huge structures. For #2 you can have each of your nodes be an object with a 'children' member that is an ArrayCollection of node objects. When inserting/removing you operate on the children ArrayCollection directly and the Tree will reflect the change on the next screen update. This has the advantage that you can cast this to HierarchicalCollectionView, which makes it really easy to get back from child to parent.
Re: [flexcoders] Re: File Explorer
Depends on your style / preferences... XML might be easier to handle but arrays are much faster to wire and compute.. I use the following array based structure , where parent helps upward tree traversal (children contains CategoryTree instances): public class CategoryTree { public var label:String ; public var children:ArrayCollection ; public var parent:CategoryTree; } On Thu, Dec 18, 2008 at 2:13 AM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, ivo cervantes_v...@... wrote: I worked on something similar not too long ago and my approach for #1 was to load top-level folders only and only drill inward with a server call as the user clicks on the expand arrow on individual folders. It made it appear more responsive for huge structures. For #2 you can have each of your nodes be an object with a 'children' member that is an ArrayCollection of node objects. When inserting/removing you operate on the children ArrayCollection directly and the Tree will reflect the change on the next screen update. This has the advantage that you can cast this to HierarchicalCollectionView, which makes it really easy to get back from child to parent. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
RE: [flexcoders] Re: File Explorer
Amy, I have never worked with HierarchicalCollectionView. What are its advantages over e4x XML? Is it mainly integration with AdvancedDataGrid? Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Amy Sent: Wednesday, December 17, 2008 7:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: File Explorer --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ivo cervantes_v...@... wrote: I worked on something similar not too long ago and my approach for #1 was to load top-level folders only and only drill inward with a server call as the user clicks on the expand arrow on individual folders. It made it appear more responsive for huge structures. For #2 you can have each of your nodes be an object with a 'children' member that is an ArrayCollection of node objects. When inserting/removing you operate on the children ArrayCollection directly and the Tree will reflect the change on the next screen update. This has the advantage that you can cast this to HierarchicalCollectionView, which makes it really easy to get back from child to parent.
RE: [flexcoders] File Explorer
...talking about directories, I might as well go build them all out now... Try it. But if the server is large, there may still be thousands of directories. But maybe not. Did I say try it? Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dan Vega Sent: Wednesday, December 17, 2008 7:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] File Explorer Thank you so much! After screwing around with this for awhile I am finding that to be the real problem. When you get into unlimited numbers of sub directories the array collection becomes very hard to manage. I think to return my list of files an arrayCollection will work just fine but for the directory structure I am going to produce xml. Also I think when we we are just talking about directories, I might as well go build them all out now __,_,_ Thank You Dan Vega
[flexcoders] Re: data returned from WSDL call
Thanks, that's the ticket. mx:WebService doesn't have a resultFormat attribute, but mx:operation does. Setting the operations' resultFormat to e4x gave me XML back. I also had to play around with the result to get past the outer layers. It involved the following: var xmlResultList:XMLList = event.result as XMLList var xmlResult:XML = xmlResultList[0] trace(xmlResult.children()) However, with that said, I'm finding it's actually easier to deal with the tree of dynamic objects. I found something under the comments about the DataGrid object that explains how to handle the return result as either an ObjectProxy or an ArrayCollection. For my purposes turning an ObjectProxy (if that's what I got) into an ArrayCollection and then processing the ArrayCollection is working better than digging through the XML structure. I'm curious to know why you said that going straight to an ArrayCollection is rarely desirable. Can you give me more info on your reasoning behind that? Thanks! LG Rains --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Have you set resultFormat=e4x? If not, you are not working with xml. Flex has generated a tree of dynamic objects. Though it allows you to go straight to an arrayCollection, this format is rarely desirable. Set the resultFormat, then in your result handler do: var xmlResult = event.result as XML; trace(xmlResult.toXMLString); You will see your xml as flex sees it. Be aware that you may have xml namespace issues accessing the nodes via e4x expressions. Google, check archives and see the docs for help with this. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Louise Rains Sent: Wednesday, December 17, 2008 9:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] data returned from WSDL call I'm getting data back from a wsdl call that looks like this: ?xml version=1.0 encoding=windows-1252? ns0:ROOT xmlns:ns0=urn:AMAT_Asset_KeyGen xmlns:xsd= http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance ns0:getListValues ns0:B_License_Key0200362/ns0:B_License_Key ns0:B_Warranty_End_Date2007-03-31T00:00:00-04:00/ns0:B_Warranty_End_D ate ns0:Company_NameSOME COMPANY/ns0:Company_Name ns0:Part_NumberALFLSS3300-1400/ns0:Part_Number ns0:Product_CategoryPER/ns0:Product_Category ns0:Product_TypeAUTOMOD/ns0:Product_Type ns0:Quantity1.00/ns0:Quantity ns0:Site_NameSOME SITE/ns0:Site_Name /ns0:getListValues ... ns0:ROOT If I have multiple getListValues returned, I can use an ArrayCollection and step through each object in the collection to get the data. However, I'm having a hard time determining the type of event.result in the case where there is only one getListValues object returned. When I trace event.result, I get [object Object]. If I try to cast it to XML, XMLList or ArrayCollection, I get null objects. Is there a way to use reflection to determine what the [object Object] really is? How can I access the data that's coming back? Thanks! LG Rains
RE: [flexcoders] Re: data returned from WSDL call
One issue with dynamic objects is the speed of access compared to strongly typed value objects. It is usually only an issue if you have large numbers of item renderers on screen. In that case, accessing values from dynamic objects or even XML nodes (which are essentially dynamic) is significantly *noticably* slower than accessing strongly typed objects. (I personally have not had this issue, but search the archives for many posts) The consensus of opinion seems to be to get the data as e4x XML, without the conversion (there is a performance penalty incurred to convert the xml into that tree of objects). Then, process the xml manually, building an array collection of strongly typed value objects. Now, that is pretty clear if you have a straightforward list of items, but if you data is hierarchical, it might not be so clear. Note: I have not used the hirearchical collection view. So the default tree is the worst of both worlds you take the conversion hit, you have the dynamic object access hit, and you do not get the awesome e4x expression API. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of weezee49 Sent: Wednesday, December 17, 2008 7:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: data returned from WSDL call Thanks, that's the ticket. mx:WebService doesn't have a resultFormat attribute, but mx:operation does. Setting the operations' resultFormat to e4x gave me XML back. I also had to play around with the result to get past the outer layers. It involved the following: var xmlResultList:XMLList = event.result as XMLList var xmlResult:XML = xmlResultList[0] trace(xmlResult.children()) However, with that said, I'm finding it's actually easier to deal with the tree of dynamic objects. I found something under the comments about the DataGrid object that explains how to handle the return result as either an ObjectProxy or an ArrayCollection. For my purposes turning an ObjectProxy (if that's what I got) into an ArrayCollection and then processing the ArrayCollection is working better than digging through the XML structure. I'm curious to know why you said that going straight to an ArrayCollection is rarely desirable. Can you give me more info on your reasoning behind that? Thanks! LG Rains --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspr...@... wrote: Have you set resultFormat=e4x? If not, you are not working with xml. Flex has generated a tree of dynamic objects. Though it allows you to go straight to an arrayCollection, this format is rarely desirable. Set the resultFormat, then in your result handler do: var xmlResult = event.result as XML; trace(xmlResult.toXMLString); You will see your xml as flex sees it. Be aware that you may have xml namespace issues accessing the nodes via e4x expressions. Google, check archives and see the docs for help with this. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Louise Rains Sent: Wednesday, December 17, 2008 9:28 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] data returned from WSDL call I'm getting data back from a wsdl call that looks like this: ?xml version=1.0 encoding=windows-1252? ns0:ROOT xmlns:ns0=urn:AMAT_Asset_KeyGen xmlns:xsd= http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance ns0:getListValues ns0:B_License_Key0200362/ns0:B_License_Key ns0:B_Warranty_End_Date2007-03-31T00:00:00-04:00/ns0:B_Warranty_End_D ate ns0:Company_NameSOME COMPANY/ns0:Company_Name ns0:Part_NumberALFLSS3300-1400/ns0:Part_Number ns0:Product_CategoryPER/ns0:Product_Category ns0:Product_TypeAUTOMOD/ns0:Product_Type ns0:Quantity1.00/ns0:Quantity ns0:Site_NameSOME SITE/ns0:Site_Name /ns0:getListValues ... ns0:ROOT If I have multiple getListValues returned, I can use an ArrayCollection and step through each object in the collection to get the data. However, I'm having a hard time determining the type of event.result in the case where there is only one getListValues object returned. When I trace event.result, I get [object Object]. If I try to cast it to XML, XMLList or ArrayCollection, I get null objects. Is there a way to use reflection to determine what the [object Object] really is? How can I access the data that's coming back? Thanks! LG Rains
Re: [flexcoders] Stop the flicker between menu items
danielrkrueger wrote: When I place the mouse in just the right spot between 2 menu items I can get a flicker. Does anyone know how to stop this? I also experience this. But its not just between two menu items. It happens whenever you hover the mouse over any part of the border of a menuitem. -- View this message in context: http://www.nabble.com/Stop-the-flicker-between-menu-items-tp21058600p21066243.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...
On Dec 16, 2008, at 9:36 PM, devenhariyani wrote: Thanks for the advice so far. If I follow the advice not to use the Application tag, *and* if I also remove all the MXML and re- write the app to use only ActionScript do you think I can get the size down to under 200KB? I think Flex is a great technology, but if its not the right tool for the job I will sadly have to go to Flash. I'm primarily a Flex developer and, of course it depends on what you want to do, but I wouldn't go for a pure AS3 project unless it was a simple banner. 200KB is too little. A normal medium size flickr image already weights about 100KB. Even though widgets might use little area, they are often complete websites upon themselves. I did a facebook widget for Target not long ago. It was a simple widget but still it had to load data from different sources, it had to do reporting, it had to forward requests for products, it had a carousel with details info and additional images, etc... and of course, it had to do the normal things that all of these flash movies have to do: it had to load smoothly, it had instantiate it's components, it had to load and cache stuff, it had to have embedded fonts and assets, load backgrounds, etc. And it had to be ready in a very short time. All these things Flex solves already for you... you can redo them and perhaps save some bandwidth, but the cost is high: you'll loose all the architecture and debugging that the Adobe engineers (not to mention the Flex community in general) have already put into the framework, (which is made, of course, from the very same kind of actionscript that you would have to write yourself anyways to solve the very same problems.) I did that widget in full fledged Flex (+ Cairngorm + UM Extensions, etc.), it ended up costing like 350KB... and nobody complained, specially since we could cut down one third of the initially scoped development time and it turned out to be robust and pretty much bug free. -- gabriel montagné láscaris comneno http://rojored.com t/506.8367.6794
Re: [flexcoders] File Explorer
So I am working with the file explorer and I came across another problem. Server side I am writing out the following xml root node label=Root Directory node label=bin path=H:\JRun4\bin isBranch=false/ node label=docs path=H:\JRun4\docs isBranch=true/ node label=jnbridge path=H:\JRun4\jnbridge isBranch=true/ node label=jre path=H:\JRun4\jre isBranch=true/ node label=lib path=H:\JRun4\lib isBranch=true/ node label=logs path=H:\JRun4\logs isBranch=false/ node label=servers path=H:\JRun4\servers isBranch=true/ node label=uninstall path=H:\JRun4\uninstall isBranch=true/ node label=verity path=H:\JRun4\verity isBranch=true/ /node /root __,_._,_ My 1st problem is when its an array collection I know how to get the 1st item (getItemAt(0)) but here i have no idea how to tell the tree to expand. private function buildTree(event:ResultEvent):void { _treedata = new XML(event.result); tree.expandChildrenOf(_treedata,true); } Also, now that I have my basic structure, i am not quite sure what the approach is. Here i have a listener function so that when the folder is opened we can make another trip the server. private function onItemOpen(event:TreeEvent):void { var path:String = event.it...@path; //trip to the server. } ** on that trip back to the server do I have a different function that re writes my xml strucutre or am I just inserting the new xml block somewhere? If I am just inserting how do I replace the block node label=logs path=H:\JRun4\logs isBranch=false/ If anyone has an example of what I am doing please let me know.
Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...
I definitely agree with you Gabriel, you wouldn't catch me doing a non-Flex Flash project at all- I was under the impression the OP was *very* concerned about size, although that could just've been my (often lax) comprehension skills :) -Josh On Thu, Dec 18, 2008 at 2:38 PM, gabriel montagné gabr...@rojored.comwrote: On Dec 16, 2008, at 9:36 PM, devenhariyani wrote: Thanks for the advice so far. If I follow the advice not to use the Application tag, *and* if I also remove all the MXML and re- write the app to use only ActionScript do you think I can get the size down to under 200KB? I think Flex is a great technology, but if its not the right tool for the job I will sadly have to go to Flash. I'm primarily a Flex developer and, of course it depends on what you want to do, but I wouldn't go for a pure AS3 project unless it was a simple banner. 200KB is too little. A normal medium size flickr image already weights about 100KB. Even though widgets might use little area, they are often complete websites upon themselves. I did a facebook widget for Target not long ago. It was a simple widget but still it had to load data from different sources, it had to do reporting, it had to forward requests for products, it had a carousel with details info and additional images, etc... and of course, it had to do the normal things that all of these flash movies have to do: it had to load smoothly, it had instantiate it's components, it had to load and cache stuff, it had to have embedded fonts and assets, load backgrounds, etc. And it had to be ready in a very short time. All these things Flex solves already for you... you can redo them and perhaps save some bandwidth, but the cost is high: you'll loose all the architecture and debugging that the Adobe engineers (not to mention the Flex community in general) have already put into the framework, (which is made, of course, from the very same kind of actionscript that you would have to write yourself anyways to solve the very same problems.) I did that widget in full fledged Flex (+ Cairngorm + UM Extensions, etc.), it ended up costing like 350KB... and nobody complained, specially since we could cut down one third of the initially scoped development time and it turned out to be robust and pretty much bug free. -- gabriel montagné láscaris comneno http://rojored.com t/506.8367.6794 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: j...@gfunk007.com :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] uploading a file with ruby
Anyone done this? This is how I try to do it: fileReference.upload( new URLRequest( http://localhost:3000/files/upload; ) ); however, I get Error #2038 File I/O error Anyone know why I am getting this error? can you not post to the localhost? Is there something else I have to do?
[flexcoders] Database connection from AIR application
Hi all, I am going to create a AIR Desktop application. Am i able to connect to the database such as SQL Server or MYSQL from AIR to retrieve data. Can anyone give me an idea how can i do this task or send me any websites regarding the same. Thanks in Advance, Poornima
Re: [flexcoders] Database connection from AIR application
On Thu, Dec 18, 2008 at 7:59 AM, kotha poornima poorni_ag...@yahoo.com wrote: Hi all, I am going to create a AIR Desktop application. Am i able to connect to the database such as SQL Server or MYSQL from AIR to retrieve data. Can anyone give me an idea how can i do this task or send me any websites regarding the same. No, you need to write server-side code in java, php, ruby, .net, etc..., or your can use a gateway such as merapi. All the best, Fidel.
Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...
If you go for size, i'd use Flash. There is nothing wrong with it, as you are not developing a enterprise application with a big team. Cheers Ralf. On Thu, Dec 18, 2008 at 5:50 AM, Josh McDonald dzn...@gmail.com wrote: I definitely agree with you Gabriel, you wouldn't catch me doing a non-Flex Flash project at all- I was under the impression the OP was *very* concerned about size, although that could just've been my (often lax) comprehension skills :) -Josh On Thu, Dec 18, 2008 at 2:38 PM, gabriel montagné gabr...@rojored.com wrote: On Dec 16, 2008, at 9:36 PM, devenhariyani wrote: Thanks for the advice so far. If I follow the advice not to use the Application tag, *and* if I also remove all the MXML and re- write the app to use only ActionScript do you think I can get the size down to under 200KB? I think Flex is a great technology, but if its not the right tool for the job I will sadly have to go to Flash. I'm primarily a Flex developer and, of course it depends on what you want to do, but I wouldn't go for a pure AS3 project unless it was a simple banner. 200KB is too little. A normal medium size flickr image already weights about 100KB. Even though widgets might use little area, they are often complete websites upon themselves. I did a facebook widget for Target not long ago. It was a simple widget but still it had to load data from different sources, it had to do reporting, it had to forward requests for products, it had a carousel with details info and additional images, etc... and of course, it had to do the normal things that all of these flash movies have to do: it had to load smoothly, it had instantiate it's components, it had to load and cache stuff, it had to have embedded fonts and assets, load backgrounds, etc. And it had to be ready in a very short time. All these things Flex solves already for you... you can redo them and perhaps save some bandwidth, but the cost is high: you'll loose all the architecture and debugging that the Adobe engineers (not to mention the Flex community in general) have already put into the framework, (which is made, of course, from the very same kind of actionscript that you would have to write yourself anyways to solve the very same problems.) I did that widget in full fledged Flex (+ Cairngorm + UM Extensions, etc.), it ended up costing like 350KB... and nobody complained, specially since we could cut down one third of the initially scoped development time and it turned out to be robust and pretty much bug free. -- gabriel montagné láscaris comneno http://rojored.com t/506.8367.6794 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: j...@gfunk007.com :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] Re: File Explorer
Waht server are you using ? Java ? if so I can dig up an old project form flex2 --- In flexcoders@yahoogroups.com, Dan Vega danv...@... wrote: I am building a full featured file explorer and I am stuck on one part of the application. On the left hand side I will have a base root directory (root) and a listing of all directories that fall under it (no end). When you click on a folder they will show up in the datagrid to the right. My question is actually 2 parts. 1.) What approach should I take. Do I make one call to my server and build the entire folder structure, then return either and arraycollection or xmllistcollection or should I just grab the list of directories and show an arrow next to directories with sub directories indicating that there are sub directories. When you click on that folder make another call to the server to grab that sub directory list and so on. 2.) The second part of the question is i heard that If I am going to be updating this collection (deleting / adding / renaming directories) that I should be using an ArrayCollection. The question is when I have data like there is below, how do I break it down into parent/child nodes? Every example I have seen of the tree always uses xml as the data and in those examples its clear how to break down child / parent relationships. ** Any help on this how to move forward with this would be great help ** [0] (Object)#3 Attributes = DateLastModified = Sat Nov 1 13:21:02 GMT-0400 2008 Directory = H:\JRun4 hasDirs = 0 Mode = Name = bin Path = H:\JRun4\bin Size = 0 Type = Dir [1] (Object)#4 Attributes = DateLastModified = Fri Aug 3 21:55:23 GMT-0400 2007 Directory = H:\JRun4 hasDirs = 1 Mode = Name = docs Path = H:\JRun4\docs Size = 0 Type = Dir Thank You Dan Vega danv...@... http://www.danvega.org
[flexcoders] Re: File Explorer
I have emailed you the project, I see that you are using JRun4 --- In flexcoders@yahoogroups.com, Dan Vega danv...@... wrote: I am building a full featured file explorer and I am stuck on one part of the application. On the left hand side I will have a base root directory (root) and a listing of all directories that fall under it (no end). When you click on a folder they will show up in the datagrid to the right. My question is actually 2 parts. 1.) What approach should I take. Do I make one call to my server and build the entire folder structure, then return either and arraycollection or xmllistcollection or should I just grab the list of directories and show an arrow next to directories with sub directories indicating that there are sub directories. When you click on that folder make another call to the server to grab that sub directory list and so on. 2.) The second part of the question is i heard that If I am going to be updating this collection (deleting / adding / renaming directories) that I should be using an ArrayCollection. The question is when I have data like there is below, how do I break it down into parent/child nodes? Every example I have seen of the tree always uses xml as the data and in those examples its clear how to break down child / parent relationships. ** Any help on this how to move forward with this would be great help ** [0] (Object)#3 Attributes = DateLastModified = Sat Nov 1 13:21:02 GMT-0400 2008 Directory = H:\JRun4 hasDirs = 0 Mode = Name = bin Path = H:\JRun4\bin Size = 0 Type = Dir [1] (Object)#4 Attributes = DateLastModified = Fri Aug 3 21:55:23 GMT-0400 2007 Directory = H:\JRun4 hasDirs = 1 Mode = Name = docs Path = H:\JRun4\docs Size = 0 Type = Dir Thank You Dan Vega danv...@... http://www.danvega.org
Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...
Josh McDonald wrote: I definitely agree with you Gabriel, you wouldn't catch me doing a non-Flex Flash project at all- I was under the impression the OP was *very* concerned about size, although that could just've been my (often lax) comprehension skills :) Strictly my opinion, but I'd do widgets in AS before I'd touch any mx imports. -Ricky