[flexcoders] Use StyleManager.setStyleDeclaration to set button skins in Flex
Hello all, I am trying to load an swf file which has button skins as images (In the library of the swf file i have given export properties which is 'TickMark') and set the skin of a flex button using StyleManager.setStyleDeclaration. I am getting errors like 'Argument count mismatch on TickMark(). Expected 2, got 0.' This is what i am trying to do: private function init():void { loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,styleSWFLoaded); loader.load(new URLRequest(styles.swf),new LoaderContext(false,ApplicationDomain.currentDomain)); } private function createStyle(styleName:String):void { var style:CSSStyleDeclaration = new CSSStyleDeclaration(styleName); var cls:Class = ApplicationDomain.currentDomain.getDefinition(Tick) as Class; style.setStyle(upSkin,cls); } } StyleManager.setStyleDeclaration(.buttonme,style,true); } When I apply this new style 'buttonme' to a button i am getting below error: ArgumentError: Error #1063: Argument count mismatch on TickMark(). Expected 2, got 0. Not sure why is this happening, and strange thing is, when I embed the same swf file it works, like below: [Embed(source=styles.swf, symbol=Tick)] private var GraphicClass:Class; If I use the class GraphicClass in setStyleDeclaration, it works... but basically I want it dynamically. Or there are other easy methods to skin (image) a flex button dynamically?
[flexcoders] Re: Adobe technical support dropped for Flex 3!
Hi all, A apologetic reply email from Adobe technical support acknowledging a mistake, shows healthy reflexes and is the right thing they 've done. But I don't think this incident is characteristic of only a certain company. These globalised economic crisis days I expect we will see more of this. And it's a sad thing... so, let's develop some RIAs instead. LOL Thanks George --- In flexcoders@yahoogroups.com, hpatino.rm hpat...@... wrote: 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
Re: [flexcoders] Matching colors between Photoshop and Flash/Flex
Hey Charlie, Without looking at the PSD I'm guessing your Photoshop is using CMYK or Lab Color (both common for print). It is virtually impossible to get a true conversion from CMYK but Photoshop does a pretty good job. But in any case you need to convert the Photoshop file to RGB before trying to match with Flash. Go Image Mode RGB Color. Also make sure Image Mode 8 Bits/Channel is checked. -- RuneImp On Wed, Sep 30, 2009 at 5:02 PM, Charlie Hubbard charlie.hubb...@gmail.com wrote: So I'm having some trouble matching colors between Photoshop and Flash. As I understand Flash is sRGB, and I believe my photoshop file is sRGB (not totally sure). However, obviously something is off because the colors aren't matching. I can't seem to find any information about matching Flex and Photoshop colors. I'm seeing problems with the hex values I pick up from the interface as well as an image I export. So what's the secret sauce? I'm sure this is simple, but I'm new to this matching color junk. Thanks Charlie
[flexcoders] Re: how to show a preloader (loading spinner) when loading images in a flex app.
disregard it, i finally got it to work using states and the complete event of the image control.
[flexcoders] Re: Getting My HTML Thumbnail Gallery To Work Using Event.complete
Unfortunately, you have no real control over how long a site takes to load. There are a huge number of factors that can affect that. If it were me, I would try to cache these images on a server. ie. when one person has loaded site X, send the thumbnail to the server and put an entry into the database. Then on subsequent accesses, you can check if that site is already in the database and if it isn't, load up that site. I would probably add the date and time into the database so I could do a refresh every three months or so. --- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote: 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.
Re: [SPAM] [flexcoders] Animating items in a tilelist when filtering arraycollection
Could you provide a small application including some data? I find it much easier to see a problem if I can run it myself. --- In flexcoders@yahoogroups.com, ZIONIST stinas...@... wrote: hi guys any help?
[flexcoders] Re: Problem with dealing with loads of XML data
I would have used a datagrid with editing turned on. --- In flexcoders@yahoogroups.com, shail shail_l...@... wrote: 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: flex ftp client with coldfusion
I would say yes as it was done for an older version of AIR. You would use flash.net.socket. These sites should give you a start... http://onflash.org/ted/2007/05/flexftp-ftp-client-in-flex-using.php http://maliboo.pl/projects/FlexFTP/ Note: Don't come back and say you can't get this stuff to work. It was created back in 2007 so you will need to use the code as a basis for a new application. There will be much debugging to do. --- In flexcoders@yahoogroups.com, ZIONIST stinas...@... wrote: can this be done?
[flexcoders] Re: Flex Project Hosting
It depends on what you are going to use for your data gateway. Generally Flex apps are data driven. If, on the other hand, you do not need data access then flex compiles to a standard Flash SWF file which can be hosted anywhere. --- In flexcoders@yahoogroups.com, Shabir Gilkar shabirgil...@... wrote: 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...@... URL: http://shabirgilkar.wordpress.com Skype: shabirgilkar
[flexcoders] best place to make feature requests
Where's the best place to make feature requests for FlashBuilder? Thanks
[flexcoders] Re: Security Sandbox Error Help
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: 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. I haven't personally tried this, but this may work as well. http://www.twitlonger.com/show/4quee
[flexcoders] Flex call javascript
I use the Flex function to call javascript function mx:Script ![CDATA[ import flash.external.*; private function callJS():void{ var s:String; if (ExternalInterface.available) { var wrapperFunction:String = jsPrint; s = ExternalInterface.call(wrapperFunction,'a'); } } ]] /mx:Script But I get following error SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file:///C:/jsTest/jsTest.swf cannot access file:///C:/jsTest/index.html. why this happens,how to fix it. Thanks Mark
[flexcoders] Re: Will there be any changes in the current 3.x SDK to measure text correctly
--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... 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. At least part of the problem is that the List based components set explicitWidth rather than width, and explicitWidth in UIComponent doesn't call any of the invalidation methods, so sometimes itemRenderers can't tell text objects inside them how wide they are, which makes text sizes wonky inside renderers. For a rundown on how this works, check out http://www.insideria.com/2009/12/handling-delayed-instantiation-1.html -Amy
Re: [flexcoders] Flex call javascript
http://curtismorley.com/2008/11/01/actionscript-security-error-2060-security-sandbox-violation/ HTH C From: markflex2007 markflex2...@yahoo.com To: flexcoders@yahoogroups.com Sent: Wed, February 10, 2010 5:15:30 PM Subject: [flexcoders] Flex call javascript I use the Flex function to call javascript function mx:Script ![CDATA[ import flash.external. *; private function callJS():void{ var s:String; if (ExternalInterface. available) { var wrapperFunction: String = jsPrint; s = ExternalInterface. call(wrapperFunc tion,'a') ; } } ]] /mx:Script But I get following error SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file:///C:/jsTest/ jsTest.swf cannot access file:///C:/jsTest/ index.html. why this happens,how to fix it. Thanks Mark
[flexcoders] Category Series in Bubble Series (Bubble Chart)
Hello, Does anyone know if it's possible to have a bubble chart use a category series? I simply want a bubble chart that uses a numeric value for the radius, but that uses strings (categories) for the X and y Axis. Thanks in advance.
[flexcoders] The distant cousin AIR...
My apologies in advance...I realize this is a Flex forum but the Adobe AIR forum over at http://forums.adobe.com/community/labs/air2?view=discussions doesn't have the expertise that exists here. There doesn't seem to be any Adobe AIR Engineers monitoring the forum too well either. Hear that Alex? I am trying to install AIR 2 Beta 2 on OSX 10.6.2 and get the error below. I've tried lots of creative things that you will probably recommend and have the same result. Before I file a defect with Adobe, anybody have any ideas on how to work around this issue? An error occurred while installing Adobe AIR. Installation may not be allowed by your administrator. Please contact your administrator. This is the command line output with not really very helpful error messages... 2010-02-08 18:39:42.216 Adobe AIR Installer[15285:903] Performing runtime install 2010-02-08 18:39:42.307 Adobe AIR Installer[15285:903] UI SWF load is complete 2010-02-08 18:39:42.511 Adobe AIR Installer[15285:903] UI initialized 2010-02-08 18:39:42.524 Adobe AIR Installer[15285:903] starting user confirmation 2010-02-08 18:39:42.527 Adobe AIR Installer[15285:903] Version of this installer: 2.0.0.11670 2010-02-08 18:39:42.528 Adobe AIR Installer[15285:903] Installed version: 1.5.3.9120 2010-02-08 18:39:42.529 Adobe AIR Installer[15285:903] Installation type: patchNewer 2010-02-08 18:39:44.688 Adobe AIR Installer[15285:903] starting elevated install 2010-02-08 18:39:45.066 Adobe AIR Installer[15304:e07] performing an elevated runtime install 2010-02-08 18:39:45.127 Adobe AIR Installer[15304:e07] UI SWF load is complete 2010-02-08 18:39:45.128 Adobe AIR Installer[15304:e07] starting install 2010-02-08 18:39:45.129 Adobe AIR Installer[15304:e07] Scheduling runtime installation operations 2010-02-08 18:39:45.133 Adobe AIR Installer[15304:e07] Beginning runtime installation 2010-02-08 18:39:45.162 Adobe AIR Installer[15304:e07] Beginning install 2010-02-08 18:39:45.166 Adobe AIR Installer[15304:e07] Copying /Library/Frameworks/Adobe AIR.framework to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp0/te mp 2010-02-08 18:39:48.113 Adobe AIR Installer[15304:e07] Deleting /Library/Frameworks/Adobe AIR.framework 2010-02-08 18:39:48.205 Adobe AIR Installer[15304:e07] Copying /Users/jfinnigan/Desktop/AAI.app/Contents/Frameworks/Adobe AIR.framework to /Library/Frameworks/Adobe AIR.framework 2010-02-08 18:39:50.097 Adobe AIR Installer[15304:e07] Copying /Applications/Utilities/Adobe AIR Uninstaller.app to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp1/te mp 2010-02-08 18:39:53.142 Adobe AIR Installer[15304:e07] Deleting /Applications/Utilities/Adobe AIR Uninstaller.app 2010-02-08 18:39:53.220 Adobe AIR Installer[15304:e07] Copying /Users/jfinnigan/Desktop/AAI.app to /Applications/Utilities/Adobe AIR Uninstaller.app 2010-02-08 18:39:55.338 Adobe AIR Installer[15304:e07] Copying /Applications/Utilities/Adobe AIR Uninstaller.app/Contents/Frameworks/Adobe AIR.framework/Versions/Current/Adobe AIR Application Installer.app to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp2/te mp 2010-02-08 18:39:55.389 Adobe AIR Installer[15304:e07] Deleting /Applications/Utilities/Adobe AIR Uninstaller.app/Contents/Frameworks/Adobe AIR.framework/Versions/Current/Adobe AIR Application Installer.app 2010-02-08 18:39:55.398 Adobe AIR Installer[15304:e07] Copying /Users/jfinnigan/Desktop/AAI.app to /Library/Frameworks/Adobe AIR.framework/Versions/Current/Resources/Adobe AIR Updater.app 2010-02-08 18:39:57.529 Adobe AIR Installer[15304:e07] Copying /Library/Frameworks/Adobe AIR.framework/Versions/Current/Resources/Adobe AIR Updater.app/Contents/Frameworks to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp3/te mp 2010-02-08 18:39:59.463 Adobe AIR Installer[15304:e07] Deleting /Library/Frameworks/Adobe AIR.framework/Versions/Current/Resources/Adobe AIR Updater.app/Contents/Frameworks 2010-02-08 18:39:59.550 Adobe AIR Installer[15304:e07] Copying /Applications/Utilities/Adobe AIR Application Installer.app to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp4/te mp 2010-02-08 18:39:59.583 Adobe AIR Installer[15304:e07] Deleting /Applications/Utilities/Adobe AIR Application Installer.app 2010-02-08 18:39:59.587 Adobe AIR Installer[15304:e07] Copying /Users/jfinnigan/Desktop/AAI.app/Contents/Frameworks/Adobe AIR.framework/Versions/Current/Adobe AIR Application Installer.app to /Applications/Utilities/Adobe AIR Application Installer.app 2010-02-08 18:39:59.645 Adobe AIR Installer[15304:e07] Registering /Applications/Utilities/Adobe AIR Application Installer.app/Contents/Info.plist 2010-02-08 18:39:59.647 Adobe AIR Installer[15304:e07] Copying /Applications/Utilities/Adobe AIR Application Installer.app/Contents/Info.plist to
[flexcoders] Re: FLEX SDK Release Notes
Hmm, I guess I can do that, but I don't understand why someone needs to go all the trouble just to extract the release notes off the bug tracking system. Are they confidential ? Maybe, Adobe does not want them being seen by Steve Jobs ;-) ? --- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: 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 alexeoscar@ 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.
[flexcoders] Re: Flex Project Hosting
If your host can send a .SWF file to the client's browser, you can run a simple Flex program. If you want the program to do anything useful, like storing data on the server, for example, the host needs to offer back-end support for ColdFusion, and some sort of SQL database. There are many other back-ends that will work also (besides ColdFusion), but I'm not knowledgeable enough to list them all here... Someone else, I'm sure, will have that info. Laurence MacNeill Mableton, Georgia, USA --- In flexcoders@yahoogroups.com, Shabir Gilkar shabirgil...@... wrote: 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...@... URL: http://shabirgilkar.wordpress.com Skype: shabirgilkar
[flexcoders] Re: FLEX SDK Release Notes
:) Here is an example of 3.5 someone took. Usually around every release someone post this anyways, most people don't read these things and if they really want to bug tracker is most flexible way to get exactly the changes they need. http://shigeru-nakagaki.com/index.cfm/2009/12/31/20091231-the-fixed-bug-list-of-Flex350 --- In flexcoders@yahoogroups.com, alexeoscar alexeos...@... wrote: Hmm, I guess I can do that, but I don't understand why someone needs to go all the trouble just to extract the release notes off the bug tracking system. Are they confidential ? Maybe, Adobe does not want them being seen by Steve Jobs ;-) ? --- In flexcoders@yahoogroups.com, tntomek tntomek@ wrote: 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 alexeoscar@ 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] Use StyleManager.setStyleDeclaration to set button skins in Flex
Sounds like those classes have constructor arguments. On 2/10/10 12:36 AM, vipinck vipi...@gmail.com wrote: Hello all, I am trying to load an swf file which has button skins as images (In the library of the swf file i have given export properties which is 'TickMark') and set the skin of a flex button using StyleManager.setStyleDeclaration. I am getting errors like 'Argument count mismatch on TickMark(). Expected 2, got 0.' This is what i am trying to do: private function init():void { loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,styleSWFLoaded); loader.load(new URLRequest(styles.swf),new LoaderContext(false,ApplicationDomain.currentDomain)); } private function createStyle(styleName:String):void { var style:CSSStyleDeclaration = new CSSStyleDeclaration(styleName); var cls:Class = ApplicationDomain.currentDomain.getDefinition(Tick) as Class; style.setStyle(upSkin,cls); } } StyleManager.setStyleDeclaration(.buttonme,style,true); } When I apply this new style 'buttonme' to a button i am getting below error: ArgumentError: Error #1063: Argument count mismatch on TickMark(). Expected 2, got 0. Not sure why is this happening, and strange thing is, when I embed the same swf file it works, like below: [Embed(source=styles.swf, symbol=Tick)] private var GraphicClass:Class; If I use the class GraphicClass in setStyleDeclaration, it works... but basically I want it dynamically. Or there are other easy methods to skin (image) a flex button dynamically? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: Flex Project Hosting
As Laurence said, any normal hosting providers can host your swf file (Flex after all throws a SWF file). Flex/ Flash CS4 are just IDEs both finally build a swf file only. Flex builder is just a name to differentiate the IDEs. So normally any hosting providers can host your swf files. There are number of ways to connect your flex/flash applications with the Database...Say if you are using Java as the back end, use Blaze DS, Web ORB to connect Database, For PHP there is AMFPHP, ZendAMF etc. Or using XML and Http Services we can achieve the same task with any programming language. Regards Dev --- On Wed, 10/2/10, Laurence lmacne...@comcast.net wrote: From: Laurence lmacne...@comcast.net Subject: [flexcoders] Re: Flex Project Hosting To: flexcoders@yahoogroups.com Date: Wednesday, 10 February, 2010, 5:36 PM If your host can send a .SWF file to the client's browser, you can run a simple Flex program. If you want the program to do anything useful, like storing data on the server, for example, the host needs to offer back-end support for ColdFusion, and some sort of SQL database. There are many other back-ends that will work also (besides ColdFusion), but I'm not knowledgeable enough to list them all here... Someone else, I'm sure, will have that info. Laurence MacNeill Mableton, Georgia, USA --- In flexcod...@yahoogro ups.com, Shabir Gilkar shabirgilkar@ ... wrote: 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: shabirgilkar@ ... URL: http://shabirgilkar .wordpress. com Skype: shabirgilkar The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
[flexcoders] Re: The distant cousin AIR...
Hi James, I don't have the answer to your issue, but in case you weren't aware of it, another good resource for AIR questions is the AirTight group on Google groups. A number of Adobe folks are there and they respond quickly. http://groups.google.com/group/air-tight/web/rules-and-information hth, Bob --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: My apologies in advance...I realize this is a Flex forum but the Adobe AIR forum over at http://forums.adobe.com/community/labs/air2?view=discussions doesn't have the expertise that exists here. There doesn't seem to be any Adobe AIR Engineers monitoring the forum too well either. Hear that Alex? I am trying to install AIR 2 Beta 2 on OSX 10.6.2 and get the error below. I've tried lots of creative things that you will probably recommend and have the same result. Before I file a defect with Adobe, anybody have any ideas on how to work around this issue? An error occurred while installing Adobe AIR. Installation may not be allowed by your administrator. Please contact your administrator. This is the command line output with not really very helpful error messages... 2010-02-08 18:39:42.216 Adobe AIR Installer[15285:903] Performing runtime install 2010-02-08 18:39:42.307 Adobe AIR Installer[15285:903] UI SWF load is complete 2010-02-08 18:39:42.511 Adobe AIR Installer[15285:903] UI initialized 2010-02-08 18:39:42.524 Adobe AIR Installer[15285:903] starting user confirmation 2010-02-08 18:39:42.527 Adobe AIR Installer[15285:903] Version of this installer: 2.0.0.11670 2010-02-08 18:39:42.528 Adobe AIR Installer[15285:903] Installed version: 1.5.3.9120 2010-02-08 18:39:42.529 Adobe AIR Installer[15285:903] Installation type: patchNewer 2010-02-08 18:39:44.688 Adobe AIR Installer[15285:903] starting elevated install 2010-02-08 18:39:45.066 Adobe AIR Installer[15304:e07] performing an elevated runtime install 2010-02-08 18:39:45.127 Adobe AIR Installer[15304:e07] UI SWF load is complete 2010-02-08 18:39:45.128 Adobe AIR Installer[15304:e07] starting install 2010-02-08 18:39:45.129 Adobe AIR Installer[15304:e07] Scheduling runtime installation operations 2010-02-08 18:39:45.133 Adobe AIR Installer[15304:e07] Beginning runtime installation 2010-02-08 18:39:45.162 Adobe AIR Installer[15304:e07] Beginning install 2010-02-08 18:39:45.166 Adobe AIR Installer[15304:e07] Copying /Library/Frameworks/Adobe AIR.framework to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp0/te mp 2010-02-08 18:39:48.113 Adobe AIR Installer[15304:e07] Deleting /Library/Frameworks/Adobe AIR.framework 2010-02-08 18:39:48.205 Adobe AIR Installer[15304:e07] Copying /Users/jfinnigan/Desktop/AAI.app/Contents/Frameworks/Adobe AIR.framework to /Library/Frameworks/Adobe AIR.framework 2010-02-08 18:39:50.097 Adobe AIR Installer[15304:e07] Copying /Applications/Utilities/Adobe AIR Uninstaller.app to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp1/te mp 2010-02-08 18:39:53.142 Adobe AIR Installer[15304:e07] Deleting /Applications/Utilities/Adobe AIR Uninstaller.app 2010-02-08 18:39:53.220 Adobe AIR Installer[15304:e07] Copying /Users/jfinnigan/Desktop/AAI.app to /Applications/Utilities/Adobe AIR Uninstaller.app 2010-02-08 18:39:55.338 Adobe AIR Installer[15304:e07] Copying /Applications/Utilities/Adobe AIR Uninstaller.app/Contents/Frameworks/Adobe AIR.framework/Versions/Current/Adobe AIR Application Installer.app to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp2/te mp 2010-02-08 18:39:55.389 Adobe AIR Installer[15304:e07] Deleting /Applications/Utilities/Adobe AIR Uninstaller.app/Contents/Frameworks/Adobe AIR.framework/Versions/Current/Adobe AIR Application Installer.app 2010-02-08 18:39:55.398 Adobe AIR Installer[15304:e07] Copying /Users/jfinnigan/Desktop/AAI.app to /Library/Frameworks/Adobe AIR.framework/Versions/Current/Resources/Adobe AIR Updater.app 2010-02-08 18:39:57.529 Adobe AIR Installer[15304:e07] Copying /Library/Frameworks/Adobe AIR.framework/Versions/Current/Resources/Adobe AIR Updater.app/Contents/Frameworks to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp3/te mp 2010-02-08 18:39:59.463 Adobe AIR Installer[15304:e07] Deleting /Library/Frameworks/Adobe AIR.framework/Versions/Current/Resources/Adobe AIR Updater.app/Contents/Frameworks 2010-02-08 18:39:59.550 Adobe AIR Installer[15304:e07] Copying /Applications/Utilities/Adobe AIR Application Installer.app to /private/var/folders/zz/zzzivhrRnAmviuee+++/TemporaryItems/FlashTmp4/te mp 2010-02-08 18:39:59.583 Adobe AIR Installer[15304:e07] Deleting /Applications/Utilities/Adobe AIR Application Installer.app 2010-02-08 18:39:59.587 Adobe AIR Installer[15304:e07] Copying /Users/jfinnigan/Desktop/AAI.app/Contents/Frameworks/Adobe
[flexcoders] TileList performance
Are there any TileList optimization tips? Performance seems slow and choppy even with a small number of images and a fast machine. I would like to utilize this component but the client is currently dissatisfied with it's performance. Do better performing solutions exist (that also utilize the Flex Framework? Thank you, Philip
RE: [SPAM] [flexcoders] Re: Problem with dealing with loads of XML data
Me too. Plus, be aware that with a large number of renderers visible on screen at once (spreadsheet for example) there is a significant performance issue with XML items as compared to a VO item with strongly typed properties. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Wednesday, February 10, 2010 8:56 AM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Re: Problem with dealing with loads of XML data I would have used a datagrid with editing turned on. --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, shail shail_l...@... wrote: 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
RE: [SPAM] Re: [flexcoders] Re: Flex Project Hosting
I have used GoDaddy to host a large data-deriven app, using their hosted sql server and it works very well. I do not have anything in production hosted, though. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Vasudev Sent: Wednesday, February 10, 2010 12:58 PM To: flexcoders@yahoogroups.com Subject: [SPAM] Re: [flexcoders] Re: Flex Project Hosting As Laurence said, any normal hosting providers can host your swf file (Flex after all throws a SWF file). Flex/ Flash CS4 are just IDEs both finally build a swf file only. Flex builder is just a name to differentiate the IDEs. So normally any hosting providers can host your swf files. There are number of ways to connect your flex/flash applications with the Database...Say if you are using Java as the back end, use Blaze DS, Web ORB to connect Database, For PHP there is AMFPHP, ZendAMF etc. Or using XML and Http Services we can achieve the same task with any programming language. Regards Dev --- On Wed, 10/2/10, Laurence lmacne...@comcast.net wrote: From: Laurence lmacne...@comcast.net Subject: [flexcoders] Re: Flex Project Hosting To: flexcod...@yahoogroups..com Date: Wednesday, 10 February, 2010, 5:36 PM If your host can send a .SWF file to the client's browser, you can run a simple Flex program. If you want the program to do anything useful, like storing data on the server, for example, the host needs to offer back-end support for ColdFusion, and some sort of SQL database. There are many other back-ends that will work also (besides ColdFusion), but I'm not knowledgeable enough to list them all here... Someone else, I'm sure, will have that info. Laurence MacNeill Mableton, Georgia, USA --- In flexcod...@yahoogro http://in.mc951.mail.yahoo.com/mc/compose?to=flexcoders%40yahoogroups.com ups.com, Shabir Gilkar shabirgilkar@ ... wrote: 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: shabirgilkar@ ... URL: http://shabirgilkar http://shabirgilkar.wordpress.com/ .wordpress. com Skype: shabirgilkar _ Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://in.rd.yahoo.com/tagline_ie8_new/*http:/downloads.yahoo.com/in/intern etexplorer/ .
re[flexcoders] move an empty row in datagrid
Hi All, For example i have a datagrid of student info. student name, class, payment, ... if a row contains only student name, other columns data is empty, i don't want to show this row. How can i do it? thanks C. -- View this message in context: http://old.nabble.com/remove-an-%22empty%22-row-in-datagrid-tp27536815p27536815.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: re[flexcoders] move an empty row in datagrid
On 10/02/2010 20:37, coder3 wrote: Hi All, For example i have a datagrid of student info. student name, class, payment, ... if a row contains only student name, other columns data is empty, i don't want to show this row. How can i do it? thanks C. Try using filters on underlying dataProvider (ArrayCollection.filterFunction for example).
[flexcoders] CROSS-DOMAIN POLICY HELP PLEASE!!!
Hey does anyone know why I get this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost/beta/Test-debug/Test.swf cannot access http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() I have the xml file crossdomain.xml on the root of my webserver: ?xml version=1.0? cross-domain-policy allow-access-from domain=www.MyDomainName.com/ /cross-domain-policy but when I run the app locally I always get this error. All I'm doing is trying to retreive images from my database. What more do I need to do? Thanks Sal
Re: [flexcoders] CROSS-DOMAIN POLICY HELP PLEASE!!!
Looks like you are trying to access MyDomainName.com but your policy is set for www.MyDomainName.com. Those are treated as separate domains even though they are only sub domains. On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 s_hernande...@yahoo.comwrote: Hey does anyone know why I get this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost/beta/Test-debug/Test.swf cannot access http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() I have the xml file crossdomain.xml on the root of my webserver: ?xml version=1.0? cross-domain-policy allow-access-from domain=www.MyDomainName.com/ /cross-domain-policy but when I run the app locally I always get this error. All I'm doing is trying to retreive images from my database. What more do I need to do? Thanks Sal
[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
I guess my question would be why would it give me a security sandbox error when I'm running the app locally, wouldn't the sandbox error be executed when you have your app on a webserver with no crossdomain.xml on the server you're trying to access? --- In flexcoders@yahoogroups.com, Jake Churchill reyna...@... wrote: Looks like you are trying to access MyDomainName.com but your policy is set for www.MyDomainName.com. Those are treated as separate domains even though they are only sub domains. On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 s_hernande...@...wrote: Hey does anyone know why I get this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost/beta/Test-debug/Test.swf cannot access http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() I have the xml file crossdomain.xml on the root of my webserver: ?xml version=1.0? cross-domain-policy allow-access-from domain=www.MyDomainName.com/ /cross-domain-policy but when I run the app locally I always get this error. All I'm doing is trying to retreive images from my database. What more do I need to do? Thanks Sal
[flexcoders] Hslider lables not located on right ticks
I want to show labels on HSlider,but they are located on incorrect tick. mx:HSlider id=hsViewminimum=100 maximum=1 width=100% value=500 visible=true tickValues =[100, 500, 1000, 5000, 1 ] labels=[100 ,500,1000, 5000, 1 ] x=0 y=13 / Please let me know how to fix this. Thanks Mk
Re: [flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
try manually loading the policy file: import flash.system.Security; ... Security.loadPolicyFile(“http://domainname.com/crossdomain.xml“); On Wed, Feb 10, 2010 at 3:06 PM, s_hernandez01 s_hernande...@yahoo.comwrote: I guess my question would be why would it give me a security sandbox error when I'm running the app locally, wouldn't the sandbox error be executed when you have your app on a webserver with no crossdomain.xml on the server you're trying to access? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reyna...@... wrote: Looks like you are trying to access MyDomainName.com but your policy is set for www.MyDomainName.com. Those are treated as separate domains even though they are only sub domains. On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 s_hernande...@...wrote: Hey does anyone know why I get this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost/beta/Test-debug/Test.swf cannot access http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() I have the xml file crossdomain.xml on the root of my webserver: ?xml version=1.0? cross-domain-policy allow-access-from domain=www.MyDomainName.com/ /cross-domain-policy but when I run the app locally I always get this error. All I'm doing is trying to retreive images from my database. What more do I need to do? Thanks Sal
[flexcoders] Re: LCDS Offline Synchronization
Thanks Jeff for the prompt response, coincidentally a few hours after writing this post, I managed to solve my problem by doing pretty much what you said. Making an explict call to connect after the datastore and dataservices are initialized correctly updated the commitRequired flag. I had thought that setting autoConnect to true would do the resync but I guess an explicit connect is required. Thanks again. Dennis --- In flexcoders@yahoogroups.com, Jeffrey Vroom j...@... wrote: 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@... 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.
[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
Yeah I thought of that too, but no success :( The Flex Project is setup with a PHP application server type. It's like if Flash Player is saying hey this domain does not have access to get these images but the thing is I'm not calling them from domain to domain, I'm calling them locally to a domain. It's really frustrating. Any other solutions? --- In flexcoders@yahoogroups.com, Jake Churchill reyna...@... wrote: try manually loading the policy file: import flash.system.Security; ... Security.loadPolicyFile(http://domainname.com/crossdomain.xml;); On Wed, Feb 10, 2010 at 3:06 PM, s_hernandez01 s_hernande...@...wrote: I guess my question would be why would it give me a security sandbox error when I'm running the app locally, wouldn't the sandbox error be executed when you have your app on a webserver with no crossdomain.xml on the server you're trying to access? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reynacho@ wrote: Looks like you are trying to access MyDomainName.com but your policy is set for www.MyDomainName.com. Those are treated as separate domains even though they are only sub domains. On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 s_hernandez01@wrote: Hey does anyone know why I get this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost/beta/Test-debug/Test.swf cannot access http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() I have the xml file crossdomain.xml on the root of my webserver: ?xml version=1.0? cross-domain-policy allow-access-from domain=www.MyDomainName.com/ /cross-domain-policy but when I run the app locally I always get this error. All I'm doing is trying to retreive images from my database. What more do I need to do? Thanks Sal
[flexcoders] Flex Out Of Memory Errors
I keep getting a flex out of memory error to do with java heap space every time I run an app which is very big as it's 15,000 lines of code long and contains over 50 embedded png images but the solutions I've been sugegested/tried so far don't work and the error persists every time I try to save the app. It is an air application. Can anyone explain the steps I need to take to address this problem as I'm totally stuck with it and can't even run the application in question because of it. I'm on Vista and according to flex I'm running 'JSEclipse' if that makes a difference. I'm not sure if I need to provide any more information on my system/software to fix this problem but if I do please ask Thanks.
[flexcoders] LCDS Deleting offline data cache
If a user deletes the offline cache of an Air app then starts up the app in offline mode what is the expected behaviour results from a fill request? On my local setup, the callbacks bound to the token from my fill request are not called and the app waits indefinitely. I expect an empty fill result list similar to what would happen when you make a offline request that was never cached. I could write some custom code to return empty lists when the sqllite db file does not exist, but i'm thinking there is a nicer and built in way of doing this. Any suggestions? Dennis
Re: [flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
http://localhost is considered as a domain. If you want it to work, launch it directly from your Flash Builder. It will create a rule for the folder containing the swf in order to bypass the security. On 10/02/2010 22:54, s_hernandez01 wrote: Yeah I thought of that too, but no success :( The Flex Project is setup with a PHP application server type. It's like if Flash Player is saying hey this domain does not have access to get these images but the thing is I'm not calling them from domain to domain, I'm calling them locally to a domain. It's really frustrating. Any other solutions? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jake Churchill reyna...@... wrote: try manually loading the policy file: import flash.system.Security; ... Security.loadPolicyFile(http://domainname.com/crossdomain.xml http://domainname.com/crossdomain.xml); On Wed, Feb 10, 2010 at 3:06 PM, s_hernandez01 s_hernande...@...wrote: I guess my question would be why would it give me a security sandbox error when I'm running the app locally, wouldn't the sandbox error be executed when you have your app on a webserver with no crossdomain.xml on the server you're trying to access? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reynacho@ wrote: Looks like you are trying to access MyDomainName.com but your policy is set for www.MyDomainName.com. Those are treated as separate domains even though they are only sub domains. On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 s_hernandez01@wrote: Hey does anyone know why I get this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost/beta/Test-debug/Test.swf http://localhost/beta/Test-debug/Test.swf cannot access http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() I have the xml file crossdomain.xml on the root of my webserver: ?xml version=1.0? cross-domain-policy allow-access-from domain=www.MyDomainName.com/ /cross-domain-policy but when I run the app locally I always get this error. All I'm doing is trying to retreive images from my database. What more do I need to do? Thanks Sal
[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
Well, I'm using Flex 3 and the sandbox error pops up when I run it from Flex. --- In flexcoders@yahoogroups.com, Adnan Doric astrona...@... wrote: http://localhost is considered as a domain. If you want it to work, launch it directly from your Flash Builder. It will create a rule for the folder containing the swf in order to bypass the security. On 10/02/2010 22:54, s_hernandez01 wrote: Yeah I thought of that too, but no success :( The Flex Project is setup with a PHP application server type. It's like if Flash Player is saying hey this domain does not have access to get these images but the thing is I'm not calling them from domain to domain, I'm calling them locally to a domain. It's really frustrating. Any other solutions? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jake Churchill reynacho@ wrote: try manually loading the policy file: import flash.system.Security; ... Security.loadPolicyFile(http://domainname.com/crossdomain.xml http://domainname.com/crossdomain.xml); On Wed, Feb 10, 2010 at 3:06 PM, s_hernandez01 s_hernandez01@wrote: I guess my question would be why would it give me a security sandbox error when I'm running the app locally, wouldn't the sandbox error be executed when you have your app on a webserver with no crossdomain.xml on the server you're trying to access? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reynacho@ wrote: Looks like you are trying to access MyDomainName.com but your policy is set for www.MyDomainName.com. Those are treated as separate domains even though they are only sub domains. On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 s_hernandez01@wrote: Hey does anyone know why I get this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost/beta/Test-debug/Test.swf http://localhost/beta/Test-debug/Test.swf cannot access http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() I have the xml file crossdomain.xml on the root of my webserver: ?xml version=1.0? cross-domain-policy allow-access-from domain=www.MyDomainName.com/ /cross-domain-policy but when I run the app locally I always get this error. All I'm doing is trying to retreive images from my database. What more do I need to do? Thanks Sal
Re: [flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
On 10/02/2010 23:14, s_hernandez01 wrote: Well, I'm using Flex 3 and the sandbox error pops up when I run it from Flex. URL should be file:///something if you want it to work. You can also try to put a * in your crossdomain.xml and start from there if it works.
[flexcoders] ExternalInterface : debugging, DOM, Export Release Build
My browser-deployed Flex app, built in FB4, is using the ExternalInterface. The Flex app gets some search terms from the user, goes out to a webservice for some data, and then pushes some html markup out to a DIV in the HTML document using the ExternalInterface.call() method. I send the content across the bridge as a parameter to javascript function that appends a child to the target DIV. Nice and simple with the EI. However, I have a couple of questions about the logistics of developing this sort of application in FlashBuilder. When Export Release Build is chosen from the Project menu in FB4, it destroys and recreates the HTML deployment wrapper for the SWF. Is there any way for the developer to provide an HTML document template to FB, marked up with comments/metadata tags, such that only the Adobe browser-sniffing code and SWF-embed code gets overwritten but the rest of the HTML document (the user-portion) remains intact? Also, is it possible to set up a project in FB4 that uses the ExternalInterface, where you can step through code in the debugger and also see pushed content being rendered in the HTML document hosting the SWF? In debug mode it seems not possible to work with your actual HTML host document and its javascript functions-- or am I missing something obvious? I am pretty new to FB and that could easily be the case. Finally, will future versions of the ExternalInterface expose the DOM of the hosting document via ActionScript object wrappers? Thanks
[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
Yup tried that and no luck either. I even tried using Security.loadPolicyFile(http://www.MyDomainName.com/crossdomain.xml;); to push it to the flash player since I put the * in the cross domain and still keep getting the error. --- In flexcoders@yahoogroups.com, Adnan Doric astrona...@... wrote: On 10/02/2010 23:14, s_hernandez01 wrote: Well, I'm using Flex 3 and the sandbox error pops up when I run it from Flex. URL should be file:///something if you want it to work. You can also try to put a * in your crossdomain.xml and start from there if it works.
[flexcoders] Re: Flex Out Of Memory Errors
Google JVM options for your flexbuilder.ini file. Something like -Xms1024 --- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote: I keep getting a flex out of memory error to do with java heap space every time I run an app which is very big as it's 15,000 lines of code long and contains over 50 embedded png images but the solutions I've been sugegested/tried so far don't work and the error persists every time I try to save the app. It is an air application. Can anyone explain the steps I need to take to address this problem as I'm totally stuck with it and can't even run the application in question because of it. I'm on Vista and according to flex I'm running 'JSEclipse' if that makes a difference. I'm not sure if I need to provide any more information on my system/software to fix this problem but if I do please ask Thanks.
Re: [flexcoders] LCDS Deleting offline data cache
I've been away from the code a while and so can't remember exactly but one thing you'd have to do to get that to work is to compile in your services-config.xml into your client app. The offline data store contains the names of the data services id properties, associations etc. when the application does not have it compiled into directly. Without that info, LCDS does not know what destinations are there, the id properties etc. and so cannot even initialize without any data. When you use the new hibernate assembler, it's default behavior is to generate the id properties and associations (the stuff that you'd normally put into services config.xml manually) from hibernate's configuration which means it just is not available to the compiler. it's always downloaded at connect time and LCDS is not really working until that happens. As I recall, there is supposed to be some event or error or something that is thrown when this happens so that you could catch that and at least report that they need to connect. Turning on the debug log on the client would be the quickest way to see what is happening. There is probably a way you could hack the ServicesConfig.xml static property to avoid this altogether - i.e. just set it to some hard-coded string that you squirrel away from a system which did initialize itself properly. Just make sure to set it before you try to initialize the data service and it will act like it was compiled in. Jeff On Wed, Feb 10, 2010 at 1:56 PM, Dennis dennis@gmail.com wrote: If a user deletes the offline cache of an Air app then starts up the app in offline mode what is the expected behaviour results from a fill request? On my local setup, the callbacks bound to the token from my fill request are not called and the app waits indefinitely. I expect an empty fill result list similar to what would happen when you make a offline request that was never cached. I could write some custom code to return empty lists when the sqllite db file does not exist, but i'm thinking there is a nicer and built in way of doing this. Any suggestions? Dennis
Re: [flexcoders] TileList performance
Use the performance profiler to see where things are taking too much time. Make sure your images are tuned to their display size and embed them if you know what they are going to be. On 2/10/10 11:31 AM, method_air loudj...@hotmail.com wrote: Are there any TileList optimization tips? Performance seems slow and choppy even with a small number of images and a fast machine. I would like to utilize this component but the client is currently dissatisfied with it's performance. Do better performing solutions exist (that also utilize the Flex Framework? Thank you, Philip -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Limited Heap Space Problem
Ok I've managed to find the file which controls the heap space which Flex Builder allows called the FlexBuilder.ini file in Computer/C/ProgramFiles(86)/Adobe/Flex Builder 3/ but the problem is I can't raise the xms and xmx attributes above 512 as when I try to start Flex I get the message Unable to load the java virtual machine and then a window comes up with a message of JVM terminted. Exit code=1 But if I leave both values at 512 it works fine but I get an out of memory error whenever I run a big application I've made. This is why I wanted to increase them to 1024 like I have done with the perm sizes to solve this out of memory error. Does anyone know why this is happening? My system is quite new and has 2gb of RAM. The contents of my flexbuilder.ini file are:- -vmargs -Xms512m -Xmx512m -XX:MaxPermSize=1024m -XX:PermSize=1024m -Djava.net.preferIPv4Stack=true
RE: [flexcoders] TileList performance
Thanks. We realized we were using massive images (and resizing), performance has increased substantially with the correct image size. To: flexcoders@yahoogroups.com From: aha...@adobe.com Date: Wed, 10 Feb 2010 14:50:25 -0800 Subject: Re: [flexcoders] TileList performance Use the performance profiler to see where things are taking too much time. Make sure your images are tuned to their display size and embed them if you know what they are going to be. On 2/10/10 11:31 AM, method_air loudj...@hotmail.com wrote: Are there any TileList optimization tips? Performance seems slow and choppy even with a small number of images and a fast machine. I would like to utilize this component but the client is currently dissatisfied with it's performance. Do better performing solutions exist (that also utilize the Flex Framework? Thank you, Philip -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui _ We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/
[flexcoders] How do create two different charts?
Hi All, Has anyone done creating two different types of charts in the same scale? I need to draw a stacked area chart and a line chart on the same chart area. But I don't know how to do that. Can someone give some advice? Or some examples? Thanks so much for any advance or suggestion. Pat.
Re: [flexcoders] How do create two different charts?
Quick answer, and I may not have time to follow up with more detail . You can have different series types within the same chart definition. In other words, an mx:ColumnSeries element doesn't have to be inside an mx:ColumnChart element. So just use an mx:CartesianChart (I believe that's what it's called) and add the series you need. Of course, the devil's in the details, but that might get you started. On Wed, Feb 10, 2010 at 4:47 PM, Patricia Han flex...@yahoo.com wrote: Hi All, Has anyone done creating two different types of charts in the same scale? I need to draw a stacked area chart and a line chart on the same chart area. But I don't know how to do that. Can someone give some advice? Or some examples? Thanks so much for any advance or suggestion. Pat.
Re: [flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
Timing is important, and so is configuration. If you launch the app via file:// then you need the put the folder in the FlashPlayerTrust file(s). If you are launching the app via http:// then you need a crossdomain.xml file on the root of www.MyDomainName.com and make sure it gets loaded before the request for the image. I’ve never bothered to figure out when you have to use a LoaderContext and when the player will automatically look for crossdomain.xml. It might be documented in the security whitepapers on the Adobe sight On 2/10/10 2:36 PM, s_hernandez01 s_hernande...@yahoo.com wrote: Yup tried that and no luck either. I even tried using Security.loadPolicyFile(http://www.MyDomainName.com/crossdomain.xml;); to push it to the flash player since I put the * in the cross domain and still keep getting the error. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Adnan Doric astrona...@... wrote: On 10/02/2010 23:14, s_hernandez01 wrote: Well, I'm using Flex 3 and the sandbox error pops up when I run it from Flex. URL should be file:///something if you want it to work. You can also try to put a * in your crossdomain.xml and start from there if it works. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] TileList performance
Also, if you are scrolling, images will get reloaded and a caching image component like SuperImage can help smooth things out. On 2/10/10 4:03 PM, Philip Smith loudj...@hotmail.com wrote: Thanks. We realized we were using massive images (and resizing), performance has increased substantially with the correct image size. To: flexcoders@yahoogroups.com From: aha...@adobe.com Date: Wed, 10 Feb 2010 14:50:25 -0800 Subject: Re: [flexcoders] TileList performance Use the performance profiler to see where things are taking too much time. Make sure your images are tuned to their display size and embed them if you know what they are going to be. On 2/10/10 11:31 AM, method_air loudj...@hotmail.com http://hotmail.com wrote: Are there any TileList optimization tips? Performance seems slow and choppy even with a small number of images and a fast machine. I would like to utilize this component but the client is currently dissatisfied with it's performance. Do better performing solutions exist (that also utilize the Flex Framework? Thank you, Philip -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Limited Heap Space Problem
Well, first of all, I'd try to find another way of allowing users to view your 50 .PNG files, without embedding them in your code. That'll free up a TON of memory. (It's why Hard Drives were invented. GRIN) Maybe load them into memory from a folder, as they're needed, rather than embedding them all? Through a little experimentation, I've found that you CAN increase the Xms and Xmx variables to 1024m, if your -XX:MaxPermSize is 512m or less. (And obviously the -XX:PermSize must be equal to or less than -XX:MaxPermSize.) Also, each thread you're running will use a stack -- if the stack size is too big, that will limit the number of threads you can run. So maybe the default stack size is too large for your particular app? Try adding an -Xss1204k to the .ini file and see if that changes anything... Best of luck. --- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote: Ok I've managed to find the file which controls the heap space which Flex Builder allows called the FlexBuilder.ini file in Computer/C/ProgramFiles(86)/Adobe/Flex Builder 3/ but the problem is I can't raise the xms and xmx attributes above 512 as when I try to start Flex I get the message Unable to load the java virtual machine and then a window comes up with a message of JVM terminted. Exit code=1 But if I leave both values at 512 it works fine but I get an out of memory error whenever I run a big application I've made. This is why I wanted to increase them to 1024 like I have done with the perm sizes to solve this out of memory error. Does anyone know why this is happening? My system is quite new and has 2gb of RAM. The contents of my flexbuilder.ini file are:- -vmargs -Xms512m -Xmx512m -XX:MaxPermSize=1024m -XX:PermSize=1024m -Djava.net.preferIPv4Stack=true
[flexcoders] A security question...
So, let's say I have a mx:RemoteObject in my program... I want it to communicate with the server via SSL, or some other method whereby the credit-card numbers it sends to-and-from the server are encrypted. Here's how it's structured currently: mx:RemoteObject id=roPaymentInfo destination=ColdFusion showBusyCursor=true source={'cfcs.dao.PaymentsDAO'} mx:method name=getPayments result=roGetPaymentsResultHandler(event) fault=roFaultHandler(event)/ mx:method name=addPayment result=roAddPaymentResultHandler(event) fault=roFaultHandler(event)/ /mx:RemoteObject Do I have to make my entire program secure via an https:// in the URL, or is there a way to encrypt just that one mx:RemoteObject? If there is a way to secure just the one object, how is that done? Thanks, Laurence MacNeill Mableton, Georgia, USA
Re: [flexcoders] A security question...
The best thing you have to do is you should encrypt it in client side before it is passed to webservice (whatever it is, https or http) because man in middle attack can tap your creditcard information before it is passed to webservice. Reinhart --- On Wed, 2/10/10, Laurence lmacne...@comcast.net wrote: From: Laurence lmacne...@comcast.net Subject: [flexcoders] A security question... To: flexcoders@yahoogroups.com Date: Wednesday, February 10, 2010, 6:18 PM So, let's say I have a mx:RemoteObject in my program... I want it to communicate with the server via SSL, or some other method whereby the credit-card numbers it sends to-and-from the server are encrypted. Here's how it's structured currently: mx:RemoteObject id=roPaymentInfo destination= ColdFusion showBusyCursor= true source={'cfcs. dao.PaymentsDAO' } mx:method name=getPayments result=roGetPaymen tsResultHandler( event) fault=roFaultHandl er(event) / mx:method name=addPayment result=roAddPaymen tResultHandler( event) fault=roFaultHandl er(event) / /mx:RemoteObject Do I have to make my entire program secure via an https:// in the URL, or is there a way to encrypt just that one mx:RemoteObject ? If there is a way to secure just the one object, how is that done? Thanks, Laurence MacNeill Mableton, Georgia, USA
Re: [SPAM] Re: [flexcoders] Re: Flex Project Hosting
Hi all! Thanks for your kind reply!!! Basically i have simple Political website, In which i want to publish there daily press releases and photos videos, i want to have MySQL as my data base and connect thru MAMP. Or you can suggest me what is the simple and easy for me as i am beginner in Flex. On Thu, Feb 11, 2010 at 1:03 AM, Tracy Spratt tr...@nts3rd.com wrote: I have used GoDaddy to host a large data-deriven app, using their hosted sql server and it works very well. I do not have anything in production hosted, though. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Vasudev *Sent:* Wednesday, February 10, 2010 12:58 PM *To:* flexcoders@yahoogroups.com *Subject:* [SPAM] Re: [flexcoders] Re: Flex Project Hosting As Laurence said, any normal hosting providers can host your swf file (Flex after all throws a SWF file). Flex/ Flash CS4 are just IDEs both finally build a swf file only. Flex builder is just a name to differentiate the IDEs. So normally any hosting providers can host your swf files. There are number of ways to connect your flex/flash applications with the Database...Say if you are using Java as the back end, use Blaze DS, Web ORB to connect Database, For PHP there is AMFPHP, ZendAMF etc. Or using XML and Http Services we can achieve the same task with any programming language. Regards Dev --- On *Wed, 10/2/10, Laurence lmacne...@comcast.net* wrote: From: Laurence lmacne...@comcast.net Subject: [flexcoders] Re: Flex Project Hosting To: flexcod...@yahoogroups..com Date: Wednesday, 10 February, 2010, 5:36 PM If your host can send a .SWF file to the client's browser, you can run a simple Flex program. If you want the program to do anything useful, like storing data on the server, for example, the host needs to offer back-end support for ColdFusion, and some sort of SQL database. There are many other back-ends that will work also (besides ColdFusion), but I'm not knowledgeable enough to list them all here... Someone else, I'm sure, will have that info. Laurence MacNeill Mableton, Georgia, USA --- In flexcod...@yahoogro ups.comhttp://in.mc951.mail.yahoo.com/mc/compose?to=flexcoders%40yahoogroups.com, Shabir Gilkar shabirgilkar@ ... wrote: 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: shabirgilkar@ ... URL: http://shabirgilkar .wordpress. comhttp://shabirgilkar.wordpress.com/ Skype: shabirgilkar -- Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!http://in.rd.yahoo.com/tagline_ie8_new/*http:/downloads.yahoo.com/in/internetexplorer/ . -- With Regards Shabir Ahmad Gilkar Srinagar Kashmir JK Voice: +91 9419942501 email: shabirgil...@gmail.com URL: http://shabirgilkar.wordpress.com Skype: shabirgilkar
[flexcoders] Re: A security question...
Well, I guess that begs the question -- is there an easy way to encrypt something in Flex? Like ColdFusion's encrypt() function? Does Flex have something like that built-in? L. --- In flexcoders@yahoogroups.com, Booking Heaven booking2hea...@... wrote: The best thing you have to do is you should encrypt it in client side before it is passed to webservice (whatever it is, https or http) because man in middle attack can tap your creditcard information before it is passed to webservice. Reinhart --- On Wed, 2/10/10, Laurence lmacne...@... wrote: From: Laurence lmacne...@... Subject: [flexcoders] A security question... To: flexcoders@yahoogroups.com Date: Wednesday, February 10, 2010, 6:18 PM Â So, let's say I have a mx:RemoteObject in my program... I want it to communicate with the server via SSL, or some other method whereby the credit-card numbers it sends to-and-from the server are encrypted. Here's how it's structured currently: mx:RemoteObject id=roPaymentInfo destination= ColdFusion showBusyCursor= true source={'cfcs. dao.PaymentsDAO' } mx:method name=getPayments result=roGetPaymen tsResultHandler( event) fault=roFaultHandl er(event) / mx:method name=addPayment result=roAddPaymen tResultHandler( event) fault=roFaultHandl er(event) / /mx:RemoteObject Do I have to make my entire program secure via an https:// in the URL, or is there a way to encrypt just that one mx:RemoteObject ? If there is a way to secure just the one object, how is that done? Thanks, Laurence MacNeill Mableton, Georgia, USA
[flexcoders] Future Of Flex Developers?
Hi Guys, I don't know whether this is the right place to ask question like this or not. I am working on Flex from last couple of years and as far as current market requirements, It seems that the demand of flex developers is quite high. But still I want to know from all of you the answer to this question which will I guess help lot of confused minds. Also If got time please go through the link and answer this question: http://www.surveymonkey.com/s/JNW6MQL Thanks Regards, Pravin Uttarwar
Re: [flexcoders] Future Of Flex Developers?
LoL - just 1 Question to this poll ? Wonder wheres that's gonna take u? Anyways now that i have voted - where can i see the statistics of this poll? On Thu, Feb 11, 2010 at 11:29 AM, p...@vin Uttarwar pravinuttar...@gmail.comwrote: Hi Guys,
Re: [flexcoders] Re: A security question...
Use this lib to encrypt and decrypt in Flex / Air http://code.google.com/p/as3crypto/ Reinhart --- On Wed, 2/10/10, Laurence lmacne...@comcast.net wrote: From: Laurence lmacne...@comcast.net Subject: [flexcoders] Re: A security question... To: flexcoders@yahoogroups.com Date: Wednesday, February 10, 2010, 9:32 PM Well, I guess that begs the question -- is there an easy way to encrypt something in Flex? Like ColdFusion's encrypt() function? Does Flex have something like that built-in? L. --- In flexcod...@yahoogro ups.com, Booking Heaven booking2heaven@ ... wrote: The best thing you have to do is you should encrypt it in client side before it is passed to webservice (whatever it is, https or http) because man in middle attack can tap your creditcard information before it is passed to webservice. Reinhart --- On Wed, 2/10/10, Laurence lmacne...@. .. wrote: From: Laurence lmacne...@. .. Subject: [flexcoders] A security question... To: flexcod...@yahoogro ups.com Date: Wednesday, February 10, 2010, 6:18 PM Â So, let's say I have a mx:RemoteObject in my program... I want it to communicate with the server via SSL, or some other method whereby the credit-card numbers it sends to-and-from the server are encrypted. Here's how it's structured currently: mx:RemoteObject id=roPaymentInfo destination= ColdFusion showBusyCursor= true source={'cfcs. dao.PaymentsDAO' } mx:method name=getPayments result=roGetPaymen tsResultHandler( event) fault=roFaultHandl er(event) / mx:method name=addPayment result=roAddPaymen tResultHandler( event) fault=roFaultHandl er(event) / /mx:RemoteObject Do I have to make my entire program secure via an https:// in the URL, or is there a way to encrypt just that one mx:RemoteObject ? If there is a way to secure just the one object, how is that done? Thanks, Laurence MacNeill Mableton, Georgia, USA
Re: [SPAM] [flexcoders] Animating items in a tilelist when filtering arraycollection
okay this is exactly what am doing. i have an arraycollection(dataAr) that is populated by data from a database. i have a multiple filter function that i use to filter the arraycollection(dataAr) and each time its filtered i refresh it. i then assign the filtered arraycollection(dataAr) to a new arraycollection(copydataAr), which i use as the dataprovider for the tilelist. here is a snippet of the code. [Bindable] private var dataAr:ArrayCollection = new ArrayCollection; public function displayResult(event:ResultEvent):void{ dataAr = new ArrayCollection((event.result as ArrayCollection).source); } private function filterGrid():void{ dataAr.filterFunction=myFilterFunction; dataAr.refresh(); } private function myFilterFunction(item:Object): Boolean{ return(item.city == selectedCity || selectedCity == All) (item.location == selectedLocation || selectedLocation == All) (item.bedrooms = selectedbdrm || selectedbdrm == -- Choose One --) (item.bathrooms = selectedbathrm || selectedbathrm == -- Choose One --) (item.category == category.selectedValue) (!garageSelected || item.garages) (!tileflrSelected || item.tile_floor) (!hardwoodflrSelected || item.hardwood_floor) (!laminateflrSelected || item.laminate_floor) (!balconySelected || item.balcony) (!yardSelected || item.backyard) (!closetSelected || item.closets) (!poolSelected || item.pool); } private var selectedCity : String = All; private var selectedLocation : String = All; private var selectedValue: Boolean; private var selectedbdrm : String = -- Choose One --; private var selectedbathrm : String = -- Choose One --; private var poolSelected: Boolean = false; private var yardSelected: Boolean = false; private var closetSelected: Boolean = false; private var garageSelected: Boolean = false; private var tileflrSelected: Boolean = false; private var hardwoodflrSelected: Boolean = false; private var laminateflrSelected: Boolean = false; private var balconySelected: Boolean = false; private function cityChangeHandler(event:Event):void{ if( city_cb.selectedItem != null ) selectedCity = city_cb.selectedLabel; filterGrid(); currentState = ''; } private function locationChangeHandler(event:Event):void{ if( lct_cb.selectedItem != null ) selectedLocation = lct_cb.selectedLabel; filterGrid(); currentState = ''; } private function bedroomChangeHandler(event:Event):void{ if( room_cb.selectedItem != null ) selectedbdrm = room_cb.selectedLabel; filterGrid(); currentState = ''; } private function bathroomChangeHandler(event:Event):void{ if( bath_cb.selectedItem != null ) selectedbathrm = bath_cb.selectedLabel; filterGrid(); currentState = ''; } private function categoryChangeHandler(event:Event):void{ if(category.selectedValue != null) selectedValue = category.selectedValue; filterGrid(); currentState = ''; vidz.player.stop(); } private function poolFilter():void{ poolSelected = pool_ckb.selected; filterGrid(); currentState = ''; } private function yardFilter():void{ yardSelected = yard_ckb.selected; filterGrid(); currentState = ''; } private function closetFilter():void{ closetSelected = closet_ckb.selected; filterGrid(); currentState = ''; } private function garageFilter():void{ garageSelected = garage_ckb.selected; filterGrid(); currentState = ''; } private function tileflrFilter():void{ tileflrSelected = floor_tiles.selected; filterGrid(); currentState = ''; } private function hardwoodflrFilter():void{ hardwoodflrSelected = hardwood_floors.selected; filterGrid(); currentState = ''; } private function laminateflrFilter():void{ laminateflrSelected = laminate_floors.selected; filterGrid(); currentState = ''; } private function
Re: [flexcoders] Re: Limited Heap Space Problem
I don't know much about Flex Builder, but I've seen this happen before with lots of java programs. I think you might be actually setting the heap size to something like 512 bytes, and therefore java doesn't have enough ram to load itself. If Flex Builder doesn't bend to your will, might I suggest using something like Hellfire so you can compile outside of flex: http://stopcoding.wordpress.com/ FCSH is also an option. Peace C On Wed, Feb 10, 2010 at 6:19 PM, Laurence lmacne...@comcast.net wrote: Well, first of all, I'd try to find another way of allowing users to view your 50 .PNG files, without embedding them in your code. That'll free up a TON of memory. (It's why Hard Drives were invented. GRIN) Maybe load them into memory from a folder, as they're needed, rather than embedding them all? Through a little experimentation, I've found that you CAN increase the Xms and Xmx variables to 1024m, if your -XX:MaxPermSize is 512m or less. (And obviously the -XX:PermSize must be equal to or less than -XX:MaxPermSize.) Also, each thread you're running will use a stack -- if the stack size is too big, that will limit the number of threads you can run. So maybe the default stack size is too large for your particular app? Try adding an -Xss1204k to the .ini file and see if that changes anything... Best of luck. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, James garymoorcroft_...@... wrote: Ok I've managed to find the file which controls the heap space which Flex Builder allows called the FlexBuilder.ini file in Computer/C/ProgramFiles(86)/Adobe/Flex Builder 3/ but the problem is I can't raise the xms and xmx attributes above 512 as when I try to start Flex I get the message Unable to load the java virtual machine and then a window comes up with a message of JVM terminted. Exit code=1 But if I leave both values at 512 it works fine but I get an out of memory error whenever I run a big application I've made. This is why I wanted to increase them to 1024 like I have done with the perm sizes to solve this out of memory error. Does anyone know why this is happening? My system is quite new and has 2gb of RAM. The contents of my flexbuilder.ini file are:- -vmargs -Xms512m -Xmx512m -XX:MaxPermSize=1024m -XX:PermSize=1024m -Djava.net.preferIPv4Stack=true