[flexcoders] Re: Adobe technical support dropped for Flex 3!
Thanks Matt for your reply and your interest to clarify this. Obviously someone from the support center has been given the wrong impression about what is going to happen to Flex Builder3.. (as far as I know, Adobe has a technical support policy for all commercial products, so one can buy technical support under contract for older products - even if this case is an installation problem and advice should be given free of charge) George --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: I've asked our customer service team to investigate what happened here. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of GeorgeB Sent: Monday, February 08, 2010 8:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Adobe technical support dropped for Flex 3! It was written by the original poster: I am very disappointed as I just bought Flex builder this week after I carefully evaluated the product during the trial period. I had an issue activating my product, and needed support to remove some conflict with the trial version that did not disappeared even after uninstalling and deleting completely the trial version. Customer Service was very nice but no technical support was offered. What else is there to interpret? Thanks George --- In flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com, Jochem van Dieten jochemd@mailto:jochemd@ wrote: On 2/8/10, GeorgeB wrote: I think it was bound to happen. First Adobe announces that it drops the brand name of a product line. Then somebody tosses in the rumor that Adobe has dropped tech support for that product!!! (as if it has anything else to support in this area) No support is a frequent complaint from people and in many cases when you dig around for details in the end it turns out that people ask for Flex support instead of Flex Builder support. (Case in point: the subject of this thread.) When we get a distinction between the supported commercial products Flash Professional / Builder / Catalyst and the open source frameworks like Flex and OSMF the message will be much clearer Jochem ! -- Jochem van Dieten http://jochem.vandieten.net/
[flexcoders] Extending the DragManager Class
Greetings everyone! I have been working on a drawing application in AS3 and have come to the determination that the dragging of items around on a canvas is best left to the drag manager. There are many things that the drag manager validates and handles for you that make the presentation smooth and happy. What I am trying to accomplish is to constrain movement to 45 degree angle from a provided point. So that it can only be dropped on one of the cardinal points. If you have pressed shift while drawing a line in most drawing applications then you have most likely run into this. My thought was to extend the DragManager class to add in a point to its parameters that drag movement would be constrained to. Has anyone done or come across something like this? Have suggestions?
[flexcoders] Re: Has AdvancedDataGrid been removed from Flex 3.4
ok. i shall do that. --- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: Please do a quick google for Flex to see latest version and instructions for installing it. Since you got 3.4 you must have skipped the 'other' downloads. --- In flexcoders@yahoogroups.com, rashvi05 rashvi05@ wrote: Hi I have this strange problem. I have been using FlexBuilder version 3.0 and the Flex3.2 sdk since august to learn and practise Flex. I had used AdvancedDataGrid in on of my projects. In January I upgraded the compiler to Flex3.4, and when I build the project, I get this error - Type was not found or was not a compile-time constant:AdvancedDataGrid Also when I click Help - Product Details - Configuration Details it says *** Adobe Flex Builder 3: Flex Builder 3-Professional Edition - Educational Why is this? Does anyone else have the same problem?? Has this got anything to do with my flex builder version? Or has AdvancedDataGrid been removed from Flex3.4 (this sounds very strange though) ?? Thanks Vatsala
[flexcoders] Re: Has AdvancedDataGrid been removed from Flex 3.4
Got it to work. Thanks. Installed the data visualization components fully again and now it works. thanks vatsala --- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: Please do a quick google for Flex to see latest version and instructions for installing it. Since you got 3.4 you must have skipped the 'other' downloads. --- In flexcoders@yahoogroups.com, rashvi05 rashvi05@ wrote: Hi I have this strange problem. I have been using FlexBuilder version 3.0 and the Flex3.2 sdk since august to learn and practise Flex. I had used AdvancedDataGrid in on of my projects. In January I upgraded the compiler to Flex3.4, and when I build the project, I get this error - Type was not found or was not a compile-time constant:AdvancedDataGrid Also when I click Help - Product Details - Configuration Details it says *** Adobe Flex Builder 3: Flex Builder 3-Professional Edition - Educational Why is this? Does anyone else have the same problem?? Has this got anything to do with my flex builder version? Or has AdvancedDataGrid been removed from Flex3.4 (this sounds very strange though) ?? Thanks Vatsala
Re: [flexcoders] HTTPService token: a bug or by design?
To answer my own dumb question. var token: AsyncToken; token = send(); var myResponder : AsyncResponder= new AsyncResponder(onResult, onFault, token); token.addResponder(myResponder); function onResult(e:ResultEvent , token:Object=null):void {} On 2/8/2010 6:05 PM, Tim Romano wrote: I've run into one bug in the mx.rpc.http.HTTPService class in FB4 beta 2 -- the AsyncResponder's onResult function fires *twice* unless you wire up a dummy eventhandler. And so I am wondering if the following is not also a bug: var myResponder : AsyncResponder= new AsyncResponder(onResult, onFault); var token: AsyncToken; token = send(); token.addResponder(myResponder); function onResult(e:ResultEvent , token:Object=null):void {} The token parameter is always null in the onResult function. Isn't that parameter supposed to contain the token to which the Responder was added? Thanks Tim Romano
[flexcoders] Best practices regarding XML to VO conversion
Hello, I am having a question what the best approach is to convert existing XML data to a object graph of value objects. I have spend quite some time to fix a memory leak in my existing parsing practice and I am curious how others solve this problem. My common approach is to create a class such as EventReader and EventItemReader class which is responsible for the parsing of the specific XML element and return the appropriate value object. But somehow this code is leaking like a mad dog (200kb per time) while the XML file is only 16kb. Now I have currently rewritten it so that just using simple strong typed objects. But I would love to find out what I am doing wrong in my current approach and how to solve it. Because it makes it easier to reuse the parsing code/logic. For example, normally, I use the approach of creating a public class with a few public variables like this: public class EventItemVO { public var eventDate: Date; public var eventName: String; public var location: String; } and then I am having code like this to parse it: try { var xml: XML = new XML( loaderContent ); var parser: EventItemXMLReader = new EventItemXMLReader( xml ); parser.parse(); } catch (e: Error) { trace(Error occured while parsing); } finally { parser = null; xml = null; } in the EventItemXMLReader-class I then return an instance of the EventItemVO-class Somehow this leaks and while I do the same stuff in the onComplete-handler of the Loader and do: array.push( {eventDate:date, eventName:name, location:location} ); The memory leak disappears. I would expect their is some reference kept alive but I am having a hard-time finding the reference which keeps it from garbage collecting it all. How do you parse XML and convert it in value objects? Yours, Weyert de Boer
[flexcoders] Re: Custom ItemRenderer still not working...
I am just not seeing the problem you describe. I imported the project and ran it; Scrolled 20+ times up and down, both with the arrows and clicking in the scroll bar. Also tried partial scrolls up and down (ie. not all the way up nor all the way down). The numbers in the combo-boxes drop-downs always match the displayed number. Perhaps this is not a problem in your code but something in your development system. I am using the following: Flex Builder Version 3.0 (Build 3.0.2.214193) Flex SDK 3.5a (Build 3.5.0.12683) Flash Player WIN 10,0,32,18 Debug Firefox 3.5.7
[flexcoders] Re: Getting My HTML Thumbnail Gallery To Work Using Event.complete
Your code seems a little roundabout for me. I have rewritten it but the functionality is still the same (And it works as you want)... ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=middle backgroundColor=white width=1024 height=768 mx:Script ![CDATA[ import mx.graphics.ImageSnapshot; private function takeSnapshot(event:Event):void { var imageBitmapData:BitmapData = ImageSnapshot.captureBitmapData(myhtml); switch(myhtml.location) { case http://abcnews.go.com/: abcnewsimage.source = new Bitmap(imageBitmapData); myhtml.location = http://news.yahoo.com/;; break; case http://news.yahoo.com/: yahoonewsimage.source = new Bitmap(imageBitmapData); myhtml.location = http://news.google.com/;; break; case http://news.google.com/: googlenewsimage.source = new Bitmap(imageBitmapData); break; } } ]] /mx:Script mx:HBox mx:Image id=abcnewsimage width=100 height=100/ mx:Image id=googlenewsimage width=100 height=100/ mx:Image id=yahoonewsimage width=100 height=100/ /mx:HBox mx:HTML id=myhtml location=http://abcnews.com/; complete=takeSnapshot(event) width=100% height=100% / /mx:WindowedApplication HTH Steve --- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote: At the moment I have an app which I can only describe as something that generates thumbnails of html pages (or at least it is meant to). The way this is achieved is by using a html component. Upon event complete of this component I have a function which creates a snapshot of the html component and makes it the source of an image there fore making that image a thumbnail of that particular site. I then want it to do the same for further sites but obviously using multiple hmtl components would be out of the question as it would greatly increase loading times (I've tried and it slows the application down majorly) so what I'm trying to do is set the 'complete' property of the 1 html component I've got so that when the first site is loaded i.e. event complete of the html component has been reached a snapshot of that site will be created and made as the source of my first thumbnail and then the location of the html component will change to the next site, a snapshot of that site will then be made upon event complete of the component and will be made the source of my second thumbnail and so on and so forth. I'm struggling to get this to work effectively but I think I'm going along the right lines. Here's my code so far. Can anyone please tell me how I can edit it so that this effect is achieved in a row the way I have described:- ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=middle backgroundColor=white width=1024 height=768 mx:Script ![CDATA[ import mx.graphics.ImageSnapshot; private function takeabcnewsSnapshot(abcnewssource:IBitmapDrawable):void { var abcnewsimageBitmapData:BitmapData = ImageSnapshot.captureBitmapData(abcnewssource); abcnewsimage.source = new Bitmap(abcnewsimageBitmapData); } private function takegooglenewsSnapshot(googlenewssource:IBitmapDrawable):void { var googlenewsimageBitmapData:BitmapData = ImageSnapshot.captureBitmapData(googlenewssource); googlenewsimage.source = new Bitmap(googlenewsimageBitmapData); } private function takeyahoonewsSnapshot(yahoonewssource:IBitmapDrawable):void { var yahoonewsimageBitmapData:BitmapData = ImageSnapshot.captureBitmapData(yahoonewssource); yahoonewsimage.source = new Bitmap(yahoonewsimageBitmapData); } private function abcnewshtml_complete(evt:Event):void { takeabcnewsSnapshot(myhtml); } private function googlenewshtml_complete(evt:Event):void { takegooglenewsSnapshot(myhtml); } private function yahoonewshtml_complete(evt:Event):void { takeyahoonewsSnapshot(myhtml); } ]] /mx:Script mx:Image id=abcnewsimage width=100 height=100/ mx:Image id=googlenewsimage width=100 height=100/ mx:Image id=yahoonewsimage width=100 height=100/ mx:HTML id=myhtml location=http://abcnews.com/; complete=abcnewshtml_complete(event); myhtml.location='http://news.yahoo.com/';
Re: [flexcoders] Best practices regarding XML to VO conversion
I usually had a finite number of xml's 4 or 5 per project top. So I wrote custom parsers/unmarshallers and use e4x. Works like clockwork :) C From: W.R. de Boer w...@innerfuse.biz To: flexcoders@yahoogroups.com Sent: Tue, February 9, 2010 4:02:54 PM Subject: [flexcoders] Best practices regarding XML to VO conversion Hello, I am having a question what the best approach is to convert existing XML data to a object graph of value objects. I have spend quite some time to fix a memory leak in my existing parsing practice and I am curious how others solve this problem. My common approach is to create a class such as EventReader and EventItemReader class which is responsible for the parsing of the specific XML element and return the appropriate value object. But somehow this code is leaking like a mad dog (200kb per time) while the XML file is only 16kb. Now I have currently rewritten it so that just using simple strong typed objects. But I would love to find out what I am doing wrong in my current approach and how to solve it. Because it makes it easier to reuse the parsing code/logic. For example, normally, I use the approach of creating a public class with a few public variables like this: public class EventItemVO { public var eventDate: Date; public var eventName: String; public var location: String; } and then I am having code like this to parse it: try { var xml: XML = new XML( loaderContent ); var parser: EventItemXMLReader = new EventItemXMLReader( xml ); parser.parse( ); } catch (e: Error) { trace(Error occured while parsing); } finally { parser = null; xml = null; } in the EventItemXMLReader- class I then return an instance of the EventItemVO- class Somehow this leaks and while I do the same stuff in the onComplete-handler of the Loader and do: array.push( {eventDate:date, eventName:name, location:location} ); The memory leak disappears. I would expect their is some reference kept alive but I am having a hard-time finding the reference which keeps it from garbage collecting it all. How do you parse XML and convert it in value objects? Yours, Weyert de Boer
Re: [flexcoders] Best practices regarding XML to VO conversion
Hi Claudiu, I am using my custom unmarshaller class in combination with XML/E4X but I keep having a memory. Maybe I am just doing something? Maybe it's the use of a Vector-type in main VO object which stores child VO objects? Maybe I have to nullify the variables with vectors or arrays? I can put some code online on pastebin.com. If anyone is interested. Weyert de Boer
[flexcoders] Flash 10.1 - When???
When are the official releases for Flashbuilder, Flash 10.1 and Air 2.0. I am bragging about some of the new features , and i get asked when? Please don't reply with, when it's ready thanks, Patrick
RE: [flexcoders] Flash 10.1 - When???
Spring :) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Tuesday, February 09, 2010 7:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash 10.1 - When??? When are the official releases for Flashbuilder, Flash 10.1 and Air 2.0. I am bragging about some of the new features , and i get asked when? Please don't reply with, when it's ready thanks, Patrick
[flexcoders] Re: HTTPService token: a bug or by design?
This is a bug with the 3.4 sdk, pick up the 3.41 , or 3.5 sdk. P --- In flexcoders@yahoogroups.com, Tim Romano tim.rom...@... wrote: I've run into one bug in the mx.rpc.http.HTTPService class in FB4 beta 2 -- the AsyncResponder's onResult function fires *twice* unless you wire up a dummy eventhandler. And so I am wondering if the following is not also a bug: var myResponder : AsyncResponder= new AsyncResponder(onResult, onFault); var token: AsyncToken; token = send(); token.addResponder(myResponder); function onResult(e:ResultEvent , token:Object=null):void {} The token parameter is always null in the onResult function. Isn't that parameter supposed to contain the token to which the Responder was added? Thanks Tim Romano
Re: [flexcoders] Flash 10.1 - When???
At 10:16 AM 2/9/2010, you wrote: When are the official releases for Flashbuilder, Flash 10.1 and Air 2.0. I am bragging about some of the new features , and i get asked when? Please don't reply with, when it's ready thanks, Patrick Don't know when it's coming, but it can't come soon enough for my Motorola Droid. I want it NOW! :-) Laurence MacNeill Mableton, Georgia, USA
[flexcoders] Re: Custom ItemRenderer still not working...
Just tried it again following your instructions. Clicked on each combobox and verified the number displayed is the same as one in the dropdown. Scrolled down one at a time selecting each new combobox displayed and verified the number displayed is the same as one in the dropdown. When I reached the bottom did the same thing scrolling up. At every step I did not see the problem. Maybe you could try updating the SDK to the latest (3.5a at http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 or http://opensource.adobe.com/wiki/display/flexsdk/download?build=3.5.0.12683pkgtype=1 directly)
RE: [SPAM] [flexcoders] Re: Custom ItemRenderer still not working...
You said, I scroll up and down, and the selected value in the ComboBox does NOT change, but the values in the drop-down DO change So I have been trying to solve the wrong problem. The problem is that the combo box dataProvider is not updating correctly when you scroll, is that correct? Did you try directly assigning the dataProvider instead of binding as I suggested earlier? Yes, use commitProperties. Find an example, mine on www.cflex.net http://www.cflex.net/ is one, there are many others. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Laurence Sent: Monday, February 08, 2010 8:44 AM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Re: Custom ItemRenderer still not working... --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tr...@... wrote: Post it here, the more eyes that look at it the better for you. Know an easy way to export my SQL data as something I can post here? Something like an SQL to XML conversion, so I can include the data in a text file that the test-program can read? Your DataGrid is not editable, correct? And your render is not set as an editor, right? The data grid IS editable, and one of the columns has renderer-as-editor set. NOT the column that's giving me the trouble. In fact all the columns have editable set to false, except one column -- again, NOT the one that's giving me trouble. I assume you have debugged this and have tested to see that the dataProvider is set when you set selectedItem? Maybe there is a timing issue with the bound dataProvider. Loop over the items to make sure the item exists. And make sure it matches the selectedIndex. I'd probably suggest you do this any way and use selectedItem always. I would use a conditional, testing for the selectedItem, rather than blindly setting selectedIndex every time. Not 100% certain what you mean here... Check to see if the selectedItem isn't null? The problem I'm having is not that the selectedItem changes (or appears to change) when you scroll. It's solely in the drop-down. The data that appears in the drop-down will change from time-to-time as you scroll -- but the selected value doesn't change ever, unless you change it manually. And when you do change it manually, it shows the value it's supposed to show! Then you re-open the drop-down and THAT show's the correct values, too! That's what's so weird about this problem. Finally, I strongly suggest you move that work into commitProperties() The set data() function gets called much more often than you may realize. I've never used the commitProperties() function... What does it do? And when does it get called? Would that work 100% of the time? Basically you're telling me to do super.data = value in the set data() function, then populate the drop-down and selectedItem stuff in the commitProperties() function? Is that what you're saying? I'll be working on writing a test-case -- the biggest part of it seems to be exporting my data. I can't find a shortcut to doing that. But if you can answer my above questions, then maybe I won't have to write the test-case? Anyway, thanks a bunch! Laurence MacNeill Mableton, Georgia, USA
[flexcoders] Re: Custom ItemRenderer still not working...
So the numbers displayed in the drop-downs never changed for you at all? Nope, never changed. What OS are you running? On my development machine I'm running 64-bit Windows Server 2003 R2, Service Pack 2. Maybe that's the problem? But I think Alex Harui was also able to replicate the problem on some of the combo boxes, so I'm not sure if the OS would have an effect or not... I am using Windows XP 32-bit with Service Pack 2. This is the current latest we are allowed to use for our enterprise. In fact -- try this. Access the project from my web-site. http://laurence.is-a-geek.com/ItemRendererTestProject /ItemRendererTestProject.htmlSee if you can't get it to replicate on there. The problem always shows up for me on the 8th one down (Event ID# T106) when following my above click-on-'em-one-at-a-time instructions. It's running the EXACT source-code I sent out in the attachment yesterday. No changes at all. Sorry, can't get to that web site at the moment (My employer blocks sites that use dynamic DNS amongst other things). I will give it a try when I get home tonight.
Re: [flexcoders] Re: Custom ItemRenderer still not working... [1 Attachment]
I fear I'm not explaining the problem properly. So I'm attaching a screen-shot of what the problem is, exactly. As you can see from the screen-shot, the selected combo-box is displaying a number -- the correct number ($275.00) -- in the main display area. But in the combo-box's drop down, are two completely unrelated numbers ($315.00 and $325.00). If you were to select, say $315.00, the displayed number would change to $255, and the next time you open that combo box, the drop-down would show the proper numbers ($255.00 and $275.00). I hope that helps to explain the problem, if there are some folks out there who aren't understanding it. Thanks, L.
[flexcoders] Re: Custom ItemRenderer still not working...
That was exactly what I was expecting to experience from your instructions. Of course, I don't get that experience. I also tried it in IE6 with the same result. Have you confirmed that others have actually seen the problem? --- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote: I fear I'm not explaining the problem properly. So I'm attaching a screen-shot of what the problem is, exactly. As you can see from the screen-shot, the selected combo-box is displaying a number -- the correct number ($275.00) -- in the main display area. But in the combo-box's drop down, are two completely unrelated numbers ($315.00 and $325.00). If you were to select, say $315.00, the displayed number would change to $255, and the next time you open that combo box, the drop-down would show the proper numbers ($255.00 and $275.00). I hope that helps to explain the problem, if there are some folks out there who aren't understanding it. Thanks, L.
Re: [flexcoders] Re: Custom ItemRenderer still not working...
At 12:48 PM 2/9/2010, you wrote: That was exactly what I was expecting to experience from your instructions. Of course, I don't get that experience. I also tried it in IE6 with the same result. Have you confirmed that others have actually seen the problem? I'm pretty sure Alex Hauri saw it -- he said the first 5 and last 5 don't ever change for him. But that implies that some of the others do change, which is why I think he's seen the problem. Don't know if anyone else has D/L'ed the code, other than you. I think Tracy Spratt is working on it, though, so he probably D/L'ed the code as well... L.
Re: [flexcoders] Re: Custom ItemRenderer still not working...
At 01:10 PM 2/9/2010, you wrote: At 12:48 PM 2/9/2010, you wrote: That was exactly what I was expecting to experience from your instructions. Of course, I don't get that experience. I also tried it in IE6 with the same result. Just for kicks, I downloaded and installed Firefox 3.6. The problem shows up in there, too... At least, on my computer it does. :-) One thing I noticed, however, is that in Firefox the Flash-version shows up as 10,0,32,18 -- even after I visited the adobe.com site to update it to the newest 10,0,42,34 version... Bug or deliberate? L.
[flexcoders] FLEX SDK Release Notes
Is there an online document at Adobe web site to show what has changed between different SDK Versions from 3.2 -- 3.5. I can not seem to find it.
Re: [flexcoders] Re: Custom ItemRenderer still not working...
Not sure what is going on with your player versions, but I doubt that is the issue. Like Tracy, I was looking for the wrong problem. I tried again this morning and still cannot reproduce the new description of the problem. However, the versions of the Flex SDK you tried still contained a bug that is also in some 3.5 versions. Please use the latest 4.0 SDK and see if you can reproduce the problem. Or a 3.5 build 13209 or later. On 2/9/10 10:20 AM, Laurence MacNeill lmacne...@comcast.net wrote: At 01:10 PM 2/9/2010, you wrote: At 12:48 PM 2/9/2010, you wrote: That was exactly what I was expecting to experience from your instructions. Of course, I don't get that experience. I also tried it in IE6 with the same result. Just for kicks, I downloaded and installed Firefox 3.6. The problem shows up in there, too... At least, on my computer it does. :-) One thing I noticed, however, is that in Firefox the Flash-version shows up as 10,0,32,18 -- even after I visited the adobe.com site to update it to the newest 10,0,42,34 version... Bug or deliberate? L. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Extending the DragManager Class
I recently posted one way to do something similar on my blog: -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui On 2/8/10 1:00 PM, lilolbear lilolb...@yahoo.com wrote: Greetings everyone! I have been working on a drawing application in AS3 and have come to the determination that the dragging of items around on a canvas is best left to the drag manager. There are many things that the drag manager validates and handles for you that make the presentation smooth and happy. What I am trying to accomplish is to constrain movement to 45 degree angle from a provided point. So that it can only be dropped on one of the cardinal points. If you have pressed shift while drawing a line in most drawing applications then you have most likely run into this. My thought was to extend the DragManager class to add in a point to its parameters that drag movement would be constrained to. Has anyone done or come across something like this? Have suggestions? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: Custom ItemRenderer still not working...
10485 is not the latest. The latest is going to be 13000 or higher. Get one of those build (probably listed as nightly) and install it into Flex Builder. On 2/9/10 10:58 AM, Laurence MacNeill lmacne...@comcast.net wrote: At 01:43 PM 2/9/2010, you wrote: Not sure what is going on with your player versions, but I doubt that is the issue. Like Tracy, I was looking for the wrong problem. I tried again this morning and still cannot reproduce the new description of the problem. However, the versions of the Flex SDK you tried still contained a bug that is also in some 3.5 versions. Please use the latest 4.0 SDK and see if you can reproduce the problem. Or a 3.5 build 13209 or later. Just tried it with FlashBuilder 4, SDK version 4.0.0.10485, which according to opensource.adobe.com is the latest 4.0 build. The same problem shows up. On Flex Builder 3, my SDK is 3.5.0.12683, which according to opensource.adobe.com is the latest 3.5 build. Don't know where to get a 3.5 build of 13209 or later. I see a bunch of 4.0 builds and 3.6 builds on that adobe site, but only the one 3.5 build -- which is the one I've already got. So how do I get 3.5.0.13209? Thanks, L. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Security Sandbox Error Help
Quick question... If I'm developing a Flex app with php locally on my desktop, is there a way to avoid getting this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost/beta/SwebappsTest-debug/SwebappsTest.swf cannot access http://swebapps.com/beta/images-standard/buttons/audio_btn.png. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() at com.fusiox.ui::Reflection/drawReflection()[C:\Users\devteam\Documents\Flex Builder 3\SwebappsTest\com\fusiox\ui\Reflection.as:44] at Design::ButtonsPanel/___ButtonsPanel_Reflection1_enterFrame()[C:\Users\devteam\Documents\Flex Builder 3\SwebappsTest\Design\ButtonsPanel.mxml:219] What I'm doing is retrieving images from a mysql database on our web server and populating them in a tilelist on flex. However, every time I do I get the error above and I put a cross-domain policy file on the webroot of our server: // CROSS-DOMAIN POLICY XML FILE ?xml version=1.0? cross-domain-policy allow-access-from domain=*.swebapps.com/ /cross-domain-policy Any advice to avoid this error message running the app locally?
[flexcoders] Security Sandbox Error Help
Quick question... If I'm developing a Flex app with php locally on my desktop, is there a way to avoid getting this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:.. What I'm doing is retrieving images from a mysql database on our web server and populating them in a tilelist on flex. However, every time I do I get the error above and I put a cross-domain policy file on the webroot of our server: // CROSS-DOMAIN POLICY XML FILE ?xml version=1.0? cross-domain-policy allow-access-from domain=*.myDomainName.com/ /cross-domain-policy Any advice to avoid this error message running the app locally?
[flexcoders] Re: Has AdvancedDataGrid been removed from Flex 3.4
Btw: I would personally strongly recommend 3.5 over 3.4, some minor but important bug fixes --- In flexcoders@yahoogroups.com, Vatsala rashv...@... wrote: Got it to work. Thanks. Installed the data visualization components fully again and now it works. thanks vatsala --- In flexcoders@yahoogroups.com, tntomek tntomek@ wrote: Please do a quick google for Flex to see latest version and instructions for installing it. Since you got 3.4 you must have skipped the 'other' downloads. --- In flexcoders@yahoogroups.com, rashvi05 rashvi05@ wrote: Hi I have this strange problem. I have been using FlexBuilder version 3.0 and the Flex3.2 sdk since august to learn and practise Flex. I had used AdvancedDataGrid in on of my projects. In January I upgraded the compiler to Flex3.4, and when I build the project, I get this error - Type was not found or was not a compile-time constant:AdvancedDataGrid Also when I click Help - Product Details - Configuration Details it says *** Adobe Flex Builder 3: Flex Builder 3-Professional Edition - Educational Why is this? Does anyone else have the same problem?? Has this got anything to do with my flex builder version? Or has AdvancedDataGrid been removed from Flex3.4 (this sounds very strange though) ?? Thanks Vatsala
[flexcoders] Re: FLEX SDK Release Notes
Tehre are tons of change post, ususaly from dot to do. i.e 3.33.43.5 If you really want why not log into bug tracker and view fixes yourself. --- In flexcoders@yahoogroups.com, alexeoscar alexeos...@... wrote: Is there an online document at Adobe web site to show what has changed between different SDK Versions from 3.2 -- 3.5. I can not seem to find it.
Re: [flexcoders] Re: Custom ItemRenderer still not working...
I just installed the latest nightly-build for Flex 3.6 -- version 3.6.0.13443. THAT FIXED THE PROBLEM!!! Weird that 3.6.x would fix the problem, whereas 4.0.x didn't... And I still don't know where to get that 3.5.0.13209 or later that Alex Hauri talked about... Latest 3.5 build I can find is the 3.5a that I've already got... If someone could show me where to get 3.5.0.13209, I'd appreciate it. So -- I guess the only question I have left is this: Can I use 3.6 in a production build, or is it too beta for that? I'm reluctant to trust a nightly build to a production environment... Thanks, L.
[flexcoders] Will there be any changes in the current 3.x SDK to measure text correctly
This is a fundamental thing, right, measuring text? It shouldn't require some hacks, with timeouts to try to measure text after you change it. This is my biggest complaint, please. Fix text. Fix Text. Make it measure, give us internal access to numRows, or something and the internal textField, without having to extend text... please please, I beg of you... We ask that you do this? I just can't figure out for the life of me this is even this way. I have components that need to resize depending on the real-true height of their internal text component. Is there any proven solution to make this work correctly? Why oh why, is this the way it is? Please explain or point blame to another team. Off the soapbox, I apologize if I offended you, but it offends me that I can't with one line of code get the true height of my text. -Sincerely, Disgruntled
[flexcoders] Re: Best practices regarding XML to VO conversion
I'm interested in seeing your code. --- In flexcoders@yahoogroups.com, W.R. de Boer w...@... wrote: Hi Claudiu, I am using my custom unmarshaller class in combination with XML/E4X but I keep having a memory. Maybe I am just doing something? Maybe it's the use of a Vector-type in main VO object which stores child VO objects? Maybe I have to nullify the variables with vectors or arrays? I can put some code online on pastebin.com. If anyone is interested. Weyert de Boer
[flexcoders] NullPointer exceptions from ColdFusion Flex gateway
Hello, I've recently begun receiving NullPointerExceptions when using Flash Remoting to ColdFusion from a particular Flex app. While these exceptions appear to come from three specific method calls, they happen inconsistently, with no apparent pattern. Two almost simultaneous requests, with the same params sent to the same method, sometimes return a NullPointer exception from one request and the correct response from another. But sometimes, the two requests return correctly. The three methods in question have different signatures and return somewhat different types of data: an ArrayCollection of untyped objects (a ColdFusion query) in one case, an array of typed objects in two others. I have observed this both in CF9 (which seems now to use at least part of BlazeDS for Remoting) and CF8 (which does not). I've googled extensively, with no real revelations. If anyone here has any insight, or similar experiences - or at least suggest how I might being to track down the source of such an inconsistent issue - I'd really appreciate hearing. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
[flexcoders] Re: Security Sandbox Error Help
What I do is go to http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html and add the bin-debug folder to the list. --- In flexcoders@yahoogroups.com, s_hernandez01 s_hernande...@... wrote: Quick question... If I'm developing a Flex app with php locally on my desktop, is there a way to avoid getting this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:.. What I'm doing is retrieving images from a mysql database on our web server and populating them in a tilelist on flex. However, every time I do I get the error above and I put a cross-domain policy file on the webroot of our server: // CROSS-DOMAIN POLICY XML FILE ?xml version=1.0? cross-domain-policy allow-access-from domain=*.myDomainName.com/ /cross-domain-policy Any advice to avoid this error message running the app locally?
Re: [flexcoders] Will there be any changes in the current 3.x SDK to measure text correctly
File a bug or post a test case so we can understand what problem you are running into. On 2/9/10 11:46 AM, djhatrick djhatr...@yahoo.com wrote: This is a fundamental thing, right, measuring text? It shouldn't require some hacks, with timeouts to try to measure text after you change it. This is my biggest complaint, please. Fix text. Fix Text. Make it measure, give us internal access to numRows, or something and the internal textField, without having to extend text... please please, I beg of you... We ask that you do this? I just can't figure out for the life of me this is even this way. I have components that need to resize depending on the real-true height of their internal text component. Is there any proven solution to make this work correctly? Why oh why, is this the way it is? Please explain or point blame to another team. Off the soapbox, I apologize if I offended you, but it offends me that I can't with one line of code get the true height of my text. -Sincerely, Disgruntled -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: Custom ItemRenderer still not working...
I guess they changed the version from 3.5 to 3.6. What matters is the build #. 4.0 with a build in the 13000’s should also fix the problem. You can use 3.6 nightly but it isn’t supported and you can’t leverage the RSLs. Only release builds have signed RSLs. We don’t make a lot of changes to 3 so it is relatively stable. Depending on your delivery schedule you may be able to wait for 3.6. I don’t know the schedule off-hand though. On 2/9/10 11:47 AM, Laurence MacNeill lmacne...@comcast.net wrote: I just installed the latest nightly-build for Flex 3.6 -- version 3.6.0.13443. THAT FIXED THE PROBLEM!!! Weird that 3.6.x would fix the problem, whereas 4.0.x didn't... And I still don't know where to get that 3.5.0.13209 or later that Alex Hauri talked about... Latest 3.5 build I can find is the 3.5a that I've already got... If someone could show me where to get 3.5.0.13209, I'd appreciate it. So -- I guess the only question I have left is this: Can I use 3.6 in a production build, or is it too beta for that? I'm reluctant to trust a nightly build to a production environment... Thanks, L. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Flash 10.1 - When???
On 2/9/10, djhatrick wrote: When are the official releases for Flashbuilder Early Spring 2010 Flash 10.1 and Air 2.0. The first platforms somewhere this spring, then mobile from mid-year (Android) to probably 2011 (Windows Mobile). Jochem -- Jochem van Dieten http://jochem.vandieten.net/
[flexcoders] Re: Getting My HTML Thumbnail Gallery To Work Using Event.complete
Thank you very much Steve. That work's perfectly now. I never realised it would be that easy. I'm quite inexperienced when it comes to coding. If it's anything more than click=change something or other then it's beyond me at times ha. Just on another note. These images I'm trying to make in my final app will act as links to the sites in question within 9 different categories each with a few sites and the html window will be made non visible. I want to decrease loading times of the html window and the app itself as much as possible. If I use the same code for each categrory by using a html window for each categrory each loading images the way this one does would that take up too much loading time do you think especially on lower internet connections or would it be okay? Also is there any way of making the html components load faster in any way perhaps by making them load a low res version of some sort? Basically I'm looking for ideas to make this aspect of the application as quick in it's loading times as possible. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Your code seems a little roundabout for me. I have rewritten it but the functionality is still the same (And it works as you want)... ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=middle backgroundColor=white width=1024 height=768 mx:Script ![CDATA[ import mx.graphics.ImageSnapshot; private function takeSnapshot(event:Event):void { var imageBitmapData:BitmapData = ImageSnapshot.captureBitmapData(myhtml); switch(myhtml.location) { case http://abcnews.go.com/: abcnewsimage.source = new Bitmap(imageBitmapData); myhtml.location = http://news.yahoo.com/;; break; case http://news.yahoo.com/: yahoonewsimage.source = new Bitmap(imageBitmapData); myhtml.location = http://news.google.com/;; break; case http://news.google.com/: googlenewsimage.source = new Bitmap(imageBitmapData); break; } } ]] /mx:Script mx:HBox mx:Image id=abcnewsimage width=100 height=100/ mx:Image id=googlenewsimage width=100 height=100/ mx:Image id=yahoonewsimage width=100 height=100/ /mx:HBox mx:HTML id=myhtml location=http://abcnews.com/; complete=takeSnapshot(event) width=100% height=100% / /mx:WindowedApplication HTH Steve --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: At the moment I have an app which I can only describe as something that generates thumbnails of html pages (or at least it is meant to). The way this is achieved is by using a html component. Upon event complete of this component I have a function which creates a snapshot of the html component and makes it the source of an image there fore making that image a thumbnail of that particular site. I then want it to do the same for further sites but obviously using multiple hmtl components would be out of the question as it would greatly increase loading times (I've tried and it slows the application down majorly) so what I'm trying to do is set the 'complete' property of the 1 html component I've got so that when the first site is loaded i.e. event complete of the html component has been reached a snapshot of that site will be created and made as the source of my first thumbnail and then the location of the html component will change to the next site, a snapshot of that site will then be made upon event complete of the component and will be made the source of my second thumbnail and so on and so forth. I'm struggling to get this to work effectively but I think I'm going along the right lines. Here's my code so far. Can anyone please tell me how I can edit it so that this effect is achieved in a row the way I have described:- ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=middle backgroundColor=white width=1024 height=768 mx:Script ![CDATA[ import mx.graphics.ImageSnapshot; private function takeabcnewsSnapshot(abcnewssource:IBitmapDrawable):void { var abcnewsimageBitmapData:BitmapData = ImageSnapshot.captureBitmapData(abcnewssource); abcnewsimage.source = new Bitmap(abcnewsimageBitmapData); } private function takegooglenewsSnapshot(googlenewssource:IBitmapDrawable):void { var googlenewsimageBitmapData:BitmapData =
[flexcoders] LCDS Offline Synchronization
I want to determine if the following offline synchronization behaviour is by design or a result of some improper LCDS config or client code. Scenario: After committing a change to the offline cache, I see the commitRequire flag on the DataStore is set as true and I save the offline cache. Next, I close the app, start up my server and restart the app expect the offline data to by synchronized. On application restart one thing I noticed is that on initialization of the DataService and DataStore, the commitRequire is false even though the offline DataStore was previously required a commit. If I do a fill for data that was modified in offline mode, my success callback registered to the AsyncToken from the fill call is called twice. It seems one result of the fill is coming from the offline data cache and the other is from the server side data. After the fill call, the commitRequire flag of the DataStore is now set to be true and that is were I do a commit. Q. Is this expected? Does LCDS compare the fill results between the offline cache and the server data to determine if commitRequire is true? Should I blindly call commit once I leave offline mode and delete the offline cache? If I delete the offline cache from the filesystem, the callback from the fill is only called once. Ideally I want the callback from the fill to only be called once and to contain the synchronized results of the fill. Q. In looking at the LCDS dev guide is see the follow passage in Chapter 18: Advanced data handling: If there is a connection available after the local cache is loaded, the current reconnectPolicy property value is consulted to determine how a request for the current data will be made. If the reconnectPolicy property is set to IDENTITY, no request for remote data is made because it is assumed that the data is up-to-date. If the reconnectPolicy property is set to INSTANCE, a request for the remote data is made and the result of that fill is used to overwrite the current in-memory version. Where is the reconnectPolicy defined and do I need to change this? I apologize for the length of the post, I've tried to be as concise as possible.
[flexcoders] Re: Adobe technical support dropped for Flex 3!
Obviously someone from the support center has been given the wrong impression about what is going to happen to Flex Builder3.. That was the case. With this incident, Adobe score some negative points in our team that is evaluating our tool for our future RIA development. What if I had not raised my voice here? I just received an apolegetic email from Adobe Technical Support. Let's hope there is a better comunication internally at Adobe from now on. HP
[flexcoders] Problem with dealing with loads of XML data
Hi, In my application I created a panel full of TextInput controls to make it look like a excelsheet. I pushed my TextInputs Ids in Array while creation complete event. I assign data to respective TxtInput by looping though Array. Data is coming as XML, so its taking much time and got application slow. Any other approach, work around could be of some help. how can I make it faster?? Thanks, Shailendra
[flexcoders] Re: Embed pdf in Flex?
We tested succesfully iFrame under Mac (safari) and Windows (IE and Firefox) http://code.google.com/p/flex-iframe/ Although the component is meant to show mainly html pages, you can also embed pdfs but not to render pdf on the client side. We only found a limitation for using load indicator when pdf files are embeded as Acrobat pdf reader does not triger the load to the html page container (issue number 38 for iframe) http://code.google.com/p/flex-iframe/issues/detail?id=38 HP
Re: [flexcoders] LCDS Offline Synchronization
It sounds to me like you are just not getting that particular DataService connected before you do the fill. There is a DataService.connect method if I recall correctly that might help. I don't think you get commitRequired=true when the app is in a disconnected state. The fill will auto-connect before it runs so that would explain why it is initializing the data store. The reconnect policy setting is set by default from the server configuration. I think there is an api on the client which also sets it though, probably on the DataStore property of the DataService.. note that there is also a refresh operation on the DataService client which essentially does the same thing only manually. It sounds to me like when you are calling fill, it reconnects which then refreshes that fill as per the reconnect policy, then you do the fill again so it happens twice. If you just call connect, you can avoid that extra fill call altogether. Jeff On Tue, Feb 9, 2010 at 10:07 AM, Dennis dennis@gmail.com wrote: I want to determine if the following offline synchronization behaviour is by design or a result of some improper LCDS config or client code. Scenario: After committing a change to the offline cache, I see the commitRequire flag on the DataStore is set as true and I save the offline cache. Next, I close the app, start up my server and restart the app expect the offline data to by synchronized. On application restart one thing I noticed is that on initialization of the DataService and DataStore, the commitRequire is false even though the offline DataStore was previously required a commit. If I do a fill for data that was modified in offline mode, my success callback registered to the AsyncToken from the fill call is called twice. It seems one result of the fill is coming from the offline data cache and the other is from the server side data. After the fill call, the commitRequire flag of the DataStore is now set to be true and that is were I do a commit. Q. Is this expected? Does LCDS compare the fill results between the offline cache and the server data to determine if commitRequire is true? Should I blindly call commit once I leave offline mode and delete the offline cache? If I delete the offline cache from the filesystem, the callback from the fill is only called once. Ideally I want the callback from the fill to only be called once and to contain the synchronized results of the fill. Q. In looking at the LCDS dev guide is see the follow passage in Chapter 18: Advanced data handling: If there is a connection available after the local cache is loaded, the current reconnectPolicy property value is consulted to determine how a request for the current data will be made. If the reconnectPolicy property is set to IDENTITY, no request for remote data is made because it is assumed that the data is up-to-date. If the reconnectPolicy property is set to INSTANCE, a request for the remote data is made and the result of that fill is used to overwrite the current in-memory version. Where is the reconnectPolicy defined and do I need to change this? I apologize for the length of the post, I've tried to be as concise as possible.
Re: [SPAM] [flexcoders] Animating items in a tilelist when filtering arraycollection
hi guys any help?
[flexcoders] Re: flex ftp client with coldfusion
can this be done?
[flexcoders] Re: how to show a preloader (loading spinner) when loading images in a flex app.
Hi guys, has anyone tried this with an itemRenderer and 2 states? please help.
[flexcoders] Flex Project Hosting
Hi All! Do we need to purchase special hosting plans from any particular hosting company to host flex projects/ website OR we can go far any normal hosting plan e.g of Godaddy. As i personally host flash websites on simple godaddy hosting accounts. Now i wanna to know about Flex project hosting. -- With Regards Shabir Ahmad Gilkar Srinagar Kashmir JK Voice: +91 9419942501 email: shabirgil...@gmail.com URL: http://shabirgilkar.wordpress.com Skype: shabirgilkar
Re: [flexcoders] Best practices regarding XML to VO conversion
You can give a try. Probably somebody will figure it out after all. C From: W.R. de Boer w...@innerfuse.biz To: flexcoders@yahoogroups.com Sent: Tue, February 9, 2010 5:00:11 PM Subject: Re: [flexcoders] Best practices regarding XML to VO conversion Hi Claudiu, I am using my custom unmarshaller class in combination with XML/E4X but I keep having a memory. Maybe I am just doing something? Maybe it's the use of a Vector-type in main VO object which stores child VO objects? Maybe I have to nullify the variables with vectors or arrays? I can put some code online on pastebin.com. If anyone is interested. Weyert de Boer
Re: [flexcoders] Problem with dealing with loads of XML data
Tile list with TextInput as a renderer? C From: shail shail_l...@yahoo.com To: flexcoders@yahoogroups.com Sent: Tue, February 9, 2010 7:54:22 PM Subject: [flexcoders] Problem with dealing with loads of XML data Hi, In my application I created a panel full of TextInput controls to make it look like a excelsheet. I pushed my TextInputs Ids in Array while creation complete event. I assign data to respective TxtInput by looping though Array. Data is coming as XML, so its taking much time and got application slow. Any other approach, work around could be of some help. how can I make it faster?? Thanks, Shailendra