[flexcoders] Apple's XCode 5 requirement
Guys, I got a notice from Apple this week that all apps need to be built using XCode 5 and optimized for iOS7. I use FlashBuilder 4.7 and I've got the flex 4.6 SDK that came with it but I've upgraded the AIR SDK to 3.9 and compiled against that. Will that be enough to satisfy this requirement or will an upgraded version of FlashBuilder or compiler be needed? Thanks for any insights. -Jake
[flexcoders] Apple's XCode 5 requirement
Guys, I got a notice from Apple this week that all apps need to be built using XCode 5 and optimized for iOS7. I use FlashBuilder 4.7 and I've got the flex 4.6 SDK that came with it but I've upgraded the AIR SDK to 3.9 and compiled against that. Will that be enough to satisfy this requirement or will an upgraded version of FlashBuilder or compiler be needed? Thanks for any insights. -Jake
[flexcoders] Sprite Auto Align [1 Attachment]
Guys, I'm working on a project with a component that displays child sprites of different sites and allows the user to arrange them. The sprites are all rectangles of different sizes. What I'm trying to do is create an auto-align which will crunch the children down into the smallest possible arrangement. I'm wondering if anyone has heard of or has some kind of logic that would help with this. FYI, I'm not looking for a handout. I've already gone through 2 different iterations of the logic and each has a bug once in a while. Where I run into issues is when I have one really tall sprite and a bunch of shorter ones. I get things aligned in a single row and then create another row on top and start lining up the additional ones, but really what should happen is I should have the larger sprite have a rowspan like you can with html tables. I've attached an illustration from the app. The top 2 images is start and after the auto align. This works well when the sprites are about the same size. The 2nd row is what happens with a taller sprite and much smaller sprites, and finally below is what I would like to have happen but am having issues getting there. Any help would be awesome. Thanks! -Jake
Re: [flexcoders] Android/mobile question
Definitely not right. You just gotta keep in mind that that there are LOTS of sizes for android devices so your sizes should be percent based. CSS will work fine. I'm not sure what you're talking about with tables, assuming a flex grid or html table? With HTML, most everything uses CSS, with Flex, I use percentage based sizing for most items. -Jake On Thu, Nov 7, 2013 at 2:18 PM, Davidson, Jerry jerry.david...@illinois.gov wrote: If you build an application for the phone, do you have to use tables to position things or can you use CSS or is there a third method? I ask because I’m in a VB.Net class and the teacher said only tables will work and that doesn’t sound right to me. TIA
Re: [flexcoders] Re: Flex Mobile Apple Submission Issue
Gareth, Thanks for the tip. I'll update my environment. Does the image I drop in have to be a certain dimension or does it just look for the file name? -Jake - Sent from my Galaxy S4 On Jun 21, 2013 7:29 AM, GarethA lam...@gmail.com wrote: ** I came across this same issue myself recently. You will have to upgrade to at least AIR 3.7 SDK when compiling and drop an image directly in the root of your directory structure named default-5...@2x.png Mine is at the same level as my appname.xml file. Everything else should just work. I had been having issues with getting FB to look at the new AIR compiler (it points to my old SDK directory), so I had to move some stuff around when compiling, but that should be it. --- In flexcoders@yahoogroups.com, Jake Churchill reynacho@... wrote: Guys, I have a flex mobile app that has been on the appstore for a while and I was just trying to submit a revision to it when I got this automated response from apple: *iPhone 5 Optimization Requirement* - Your binary is not optimized for iPhone 5. As of May 1, all new iPhone apps and app updates submitted must support the 4-inch display on iPhone 5. All apps must include a launch image with the -568h size modifier immediately following the basename portion of the launch image's filename. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the iOS Human Interface Guidelines https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/TranslateApp/TranslateApp.html%23//apple_ref/doc/uid/TP40006556-CH10-SW8 and iOS App Programming Guide https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html%23//apple_ref/doc/uid/TP40007072-CH6-SW12 . The only iconds I have specified are the different icon sizes in the -app.xml file. Does anyone know how to fulfill this requirement using Flashbuilder? Thanks! -Jake
[flexcoders] Flex Mobile Apple Submission Issue
Guys, I have a flex mobile app that has been on the appstore for a while and I was just trying to submit a revision to it when I got this automated response from apple: *iPhone 5 Optimization Requirement* - Your binary is not optimized for iPhone 5. As of May 1, all new iPhone apps and app updates submitted must support the 4-inch display on iPhone 5. All apps must include a launch image with the -568h size modifier immediately following the basename portion of the launch image's filename. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the iOS Human Interface Guidelineshttps://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/TranslateApp/TranslateApp.html%23//apple_ref/doc/uid/TP40006556-CH10-SW8 and iOS App Programming Guidehttps://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html%23//apple_ref/doc/uid/TP40007072-CH6-SW12 . The only iconds I have specified are the different icon sizes in the -app.xml file. Does anyone know how to fulfill this requirement using Flashbuilder? Thanks! -Jake
[flexcoders] Apple Mobile App
Guys, I just submitted an update (bug fixes) to an iOS flex mobile app and I got this email back saying: *Missing Push Notification Entitlement* - Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements do not include the aps-environment entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the aps-environment entitlement. See Provisioning and Development in the Local and Push Notification Programming Guidehttps://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API. I am not intentionally adding anything and we are not doing any push notifications. I get this message when compiling with both flashbuilder 4.6 and 4.7. Here's the iPhone seciton of the app.xml file (company name changed for security): iPhone InfoAdditions![CDATA[ keyUIDeviceFamily/key array string1/string string2/string /array keyUIApplicationExitsOnSuspend/key false/ keyCFBundlePrimaryIcon/key dict keyCFBundleIconFiles/key array stringcom/company_name/assets/app_icons/icon_128.png/string /array keyUIPrerenderedIcon/key true/ /dict keyUIPrerenderedIcon/key true/ ]]/InfoAdditions requestedDisplayResolutionhigh/requestedDisplayResolution /iPhone Any help is very much appreciated. Thanks! -Jake
Re: [flexcoders] Flex programming issue
There's an itemRenderer and itemEditor. If you want to use the same, you say editable=true and there's another property rendererIsEditor=true (or might be editorIsRenderer - I always get it mixed up) Try that. -Jake On Fri, Mar 1, 2013 at 4:41 AM, devchetu devch...@yahoo.com wrote: ** I am developing flex based application struck in mid of project. I need professional help. I had one data grid in which one column I used item render for date field, but I do not have any idea how to make date field editable. For this i used editable = true but it doesn't work. i am looking for solution if any one have any idea pleas share.
[flexcoders] Re: Mobile App Entitlements
Anyone??? Anything??? On Mon, Feb 11, 2013 at 12:54 PM, Jake Churchill reyna...@gmail.com wrote: Guys, I have a mobile application that was created last year using FlashBuilder 4.6 (AIR 3.4). It's a pretty basic app, in that it just interacts with data from a server. There is one view that interacts with CameraRoll and the CameraUI, but that's it. The initial build of the app went through Apple's approval process successfully. I have since upgraded to FlashBuilder 4.7 and set it up to use the sdk with the AIR 3.4 (default is 3.1 I think). A bug was found in the app which required a simple test to see if an ArrayCollection existed, if not I created a blank one. I re-compiled and re-submitted the new .ipa and now Apple is coming back saying an Entitlement is missing: *Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the aps-environment entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the aps-environment entitlement. * I've been searching for solutions to this or other people with the same problem but have not found anything. I'm wondering if Flashbuilder 4.7 has a default entitlement somewhere that's being compiled into the application. I'm not sure that's the case because in the binary area in itunes connect, the entitlements section is as follows: *MY APP NAME* get-task-allow: false application-identifier: MY APP PACKAGE In the mean time, I've still got FlashBuilder 4.6 so I'm going to try to compile the app there and submit. However, if Apple is saying it appears the app registers with the Apple Push Notification service, I'm at a loss because we don't use that for anything. Any help is appreciated. Thanks! -Jake
Re: [flexcoders] Re: Mobile App Entitlements
No, Flashbuilder takes care of all this for you. It takes forever but it cross-compiles over to a native app. All you have to provide are the provisioning profile and cert files which I had and didn't change for what I'm talking about. This is an App Store distribution which is different than ad hoc (different provisioning profile). -Jake On Wed, Feb 13, 2013 at 9:30 AM, doug g doug31...@gmail.com wrote: ** Isnt it some UID that apple uses for its submission process? Im talking a little out of my depth here, but the one time I did this (for a class), it involved compiling the app as native XCode, then opening it in XCode and going through the entitlement process. Maybe look up how they do ad hoc distribution these days? Heres a link to get you started: http://stackoverflow.com/questions/12698506/how-can-i-add-an-entitlements-file-to-an-xcode-4-5-project On Wed, Feb 13, 2013 at 10:18 AM, Jake Churchill reyna...@gmail.comwrote: ** Anyone??? Anything??? On Mon, Feb 11, 2013 at 12:54 PM, Jake Churchill reyna...@gmail.comwrote: Guys, I have a mobile application that was created last year using FlashBuilder 4.6 (AIR 3.4). It's a pretty basic app, in that it just interacts with data from a server. There is one view that interacts with CameraRoll and the CameraUI, but that's it. The initial build of the app went through Apple's approval process successfully. I have since upgraded to FlashBuilder 4.7 and set it up to use the sdk with the AIR 3.4 (default is 3.1 I think). A bug was found in the app which required a simple test to see if an ArrayCollection existed, if not I created a blank one. I re-compiled and re-submitted the new .ipa and now Apple is coming back saying an Entitlement is missing: *Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the aps-environment entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the aps-environment entitlement. * I've been searching for solutions to this or other people with the same problem but have not found anything. I'm wondering if Flashbuilder 4.7 has a default entitlement somewhere that's being compiled into the application. I'm not sure that's the case because in the binary area in itunes connect, the entitlements section is as follows: *MY APP NAME* get-task-allow: false application-identifier: MY APP PACKAGE In the mean time, I've still got FlashBuilder 4.6 so I'm going to try to compile the app there and submit. However, if Apple is saying it appears the app registers with the Apple Push Notification service, I'm at a loss because we don't use that for anything. Any help is appreciated. Thanks! -Jake
[flexcoders] Mobile App Entitlements
Guys, I have a mobile application that was created last year using FlashBuilder 4.6 (AIR 3.4). It's a pretty basic app, in that it just interacts with data from a server. There is one view that interacts with CameraRoll and the CameraUI, but that's it. The initial build of the app went through Apple's approval process successfully. I have since upgraded to FlashBuilder 4.7 and set it up to use the sdk with the AIR 3.4 (default is 3.1 I think). A bug was found in the app which required a simple test to see if an ArrayCollection existed, if not I created a blank one. I re-compiled and re-submitted the new .ipa and now Apple is coming back saying an Entitlement is missing: *Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the aps-environment entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the aps-environment entitlement. * I've been searching for solutions to this or other people with the same problem but have not found anything. I'm wondering if Flashbuilder 4.7 has a default entitlement somewhere that's being compiled into the application. I'm not sure that's the case because in the binary area in itunes connect, the entitlements section is as follows: *MY APP NAME* get-task-allow: false application-identifier: MY APP PACKAGE In the mean time, I've still got FlashBuilder 4.6 so I'm going to try to compile the app there and submit. However, if Apple is saying it appears the app registers with the Apple Push Notification service, I'm at a loss because we don't use that for anything. Any help is appreciated. Thanks! -Jake
Re: [flexcoders] Flex Mobile Android 4 (ICS)
I found out what was happening. I had a global deactivate handler (I don't want this particular app running in the background). Apparently, this gets called by Android when switching orientation. The whole app de-activates, then re-activates in a new orientation. So, handling that, fixed my app disappearing issue. It was disappearing because I was killing it :) Thanks for talking this through. -Jake On Tue, Jul 3, 2012 at 6:11 AM, Nick Collins ndcoll...@gmail.com wrote: ** protected function view_resizeHandler(event:ResizeEvent):void { if (widthheight) this.currentState=landscape; else this.currentState=portrait; } On Tue, Jul 3, 2012 at 6:11 AM, Nick Collins ndcoll...@gmail.com wrote: actually listen for a RESIZE event on the view, then check if the width of the view is greater than the height. If it is, landscape, if not, portrait. On Fri, Jun 22, 2012 at 2:56 PM, Jake Churchill reyna...@gmail.comwrote: ** I got my hands on an android 3 tablet and the same thing happens there. I was also able to test on an android 2.3 phone and it does not happen there. So, anything in android 3 or 4 and orientation changes that I should be aware of? Thanks! -Jake On Fri, Jun 22, 2012 at 12:21 PM, Jake Churchill reyna...@gmail.comwrote: One other thing I tried. If I stop the autoOrient and manually flip my orientation via code, the same thing happens. Usually when an app stops in debug mode you get the [Unload SWF] trace line but I'm not getting that so it makes me think it's just suspending it? This is super frustrating though. -Jake On Fri, Jun 22, 2012 at 11:33 AM, Jake Churchill reyna...@gmail.comwrote: Let's compare really quick... I'm just listening for the orientationChange event and switching states in my view accordingly. (Code below) Is that basically how you handle it as well or are you doing something different? I'm adding this event listener: stage.addEventListener( StageOrientationEvent.ORIENTATION_CHANGE, handleOrientationChange ); and here's the handler: private function handleOrientationChange( event:StageOrientationEvent=null ):void { if( stage ) { if( stage.orientation == rotatedLeft || stage.orientation == rotatedRight ) currentState = landscape; else currentState = portrait; this.invalidateDisplayList(); } } -Jake On Fri, Jun 22, 2012 at 10:06 AM, Nick Collins ndcoll...@gmail.comwrote: ** I have been doing active development with Flex 4.6 on my HTC Inspire 4G (running IceColdSandwich/Android 4.0.4) with no such problems. The only problem I have had is that Flash Builder doesn't always see the device as still being in debugging mode, even though the device indicates that it is. Solved by simply disconnecting the USB cable, then reconnecting it. I have also been developing on my ASUS Transformer Prime tablet running ICS with no orientation issues. Nick On Thu, Jun 21, 2012 at 5:22 PM, Jake Churchill reyna...@gmail.comwrote: ** I'm in the middle of writing a flex mobile app and when I debug in the emulator it's fine but on my phone (Verizon Google Nexus) when I rotate to landscape it dies. If I start up in landscape, it's fine until I switch to portrait, then it dies. In either case, there is no error in the debug console. I'm using autoOrientstrue/autoOrients which. I don't have an iPhone so I haven't been able to test there yet but I'm curious if anyone else has seen this. I've written other mobile apps when I had a Galaxy S 1 and I had no issues there. Is there something else I need to do for ICS or is this a bug? Thanks! -Jake
Re: [flexcoders] MouseEvent over chart [1 Attachment]
Alex, I think I have figured out what is causing the mouse disruption. I have a background element where I display the symbol and the symbol description. Whenever I rollover that, it makes the mouse event's position freak out. If I set mouseChildren=false on the background elements, it fixes the problem. If I add mouseChildren=false to the chart, disables my mouse hover events on the annotation which I can't have. In my opinion, this is still a bug. I do not see why elements in the backgroundElements property would have mouse events on them in the first place. Let me know if you want me to file a bug. I have a sample project put together to illustrate this. Also, could you please tell me why I can't add children directly to the CartesianDataCanvas? It seems like that's where drawing should go. Please let me know about filing a bug for the background elements issue I described above. I attached my flex project file to this email in case you are interested in seeing what I'm seeing. The app loads with a chart and one line and a background element. Click anywhere to start drawing, click again to complete the line. Grab one end of the line and mouse down and move it around. When you run over the background element, it goes crazy. Thanks! -Jake On Fri, Jun 29, 2012 at 12:49 PM, Jake Churchill reyna...@gmail.com wrote: I'm using a microsoft wireless mouse on my windows machine and the built-in touchpad mouse on the macbook pro. I'll throw together a quick test app for comparison. If the problem still exists in the test app, I'll package it up as an FXP and AIR file and submit both with a bug report. Thanks! -Jake On Fri, Jun 29, 2012 at 12:47 PM, Alex Harui aha...@adobe.com wrote: ** Even if the target changed, the stageY should be continously increasing or decreasing. What kind of mouse are you using? Do you have the same one for both computers? I would try a real simple test app that just reports coordinates and see if has the same problem. If it does, that would be the test case to file with a bug report. -Alex On 6/29/12 7:47 AM, Jake Churchill reyna...@gmail.com wrote: Alex, I ended up commenting out any code that checks against previous mouse events y coordinates and compiled a new AIR file. I tested on my windows desktop as well as my macbook pro and I get the same result on both. If I move too quickly down, the y coordinates flip up top, then back down like what I showed you in my traces. Of course, with a compiled version, I can't stop execution to double check to see if the target is still the same but I assume that wouldn't change between a debug and release compile. Any other ideas? Should I file a bug for this? Thanks! -Jake On Fri, Jun 29, 2012 at 1:38 AM, Alex Harui aha...@adobe.com wrote: It is up to you. It would be annoying to code up a workaround when it is just some device or driver on your computer. On 6/28/12 4:04 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com wrote: This is an air app, so it's happening in adl. I can remove some checks and compile a final release and test if you want. - Sent from my Google Nexus - On Jun 28, 2012 5:15 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com wrote: Sorry, didn’t notice the StageY was changing as well. Does this happen on other machines, browsers, etc? On 6/28/12 2:21 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: No, it always stays the same. Here's what I have, a custom annotation called DrawingAnnotation which handles clicking, lines, etc. When a line is added it's drawn on the chart, but all references are stored in the annotation. For some reason I can't draw directly on the annotation. Anyway, the line has mouse events on it as well which allow it to be moved and selected and stuff. When the line receives mouse down, I add an event listener for mouse move to the system manager: systemManager.addEventListener( MouseEvent.MOUSE_MOVE, mouseMoveHandler ); which is where I am tracking the positions and stuff. I've added the the listener to the line itselt, the annotation canvas, etc. Always the same result. It always happens if I move the mouse too fast vertically. So, my workaround is to basically check the last mouse event against the current and if the y changes by more than 100 pixes, I count it an outlier and don't count that event. I'm sure there's a better workaround, but I'm not sure since I pretty much have to rely on the position given to me in the mouseEvent. Thanks! -Jake On Thu, Jun 28, 2012 at 1:34 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com http://aha...@adobe.com wrote: Print the target as well. The target is likely changing and thus, the coordinates local to that target. On 6/28/12 10:11 AM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http
Re: [flexcoders] MouseEvent over chart
Alex, I ended up commenting out any code that checks against previous mouse events y coordinates and compiled a new AIR file. I tested on my windows desktop as well as my macbook pro and I get the same result on both. If I move too quickly down, the y coordinates flip up top, then back down like what I showed you in my traces. Of course, with a compiled version, I can't stop execution to double check to see if the target is still the same but I assume that wouldn't change between a debug and release compile. Any other ideas? Should I file a bug for this? Thanks! -Jake On Fri, Jun 29, 2012 at 1:38 AM, Alex Harui aha...@adobe.com wrote: ** It is up to you. It would be annoying to code up a workaround when it is just some device or driver on your computer. On 6/28/12 4:04 PM, Jake Churchill reyna...@gmail.com wrote: This is an air app, so it's happening in adl. I can remove some checks and compile a final release and test if you want. - Sent from my Google Nexus - On Jun 28, 2012 5:15 PM, Alex Harui aha...@adobe.com wrote: Sorry, didn’t notice the StageY was changing as well. Does this happen on other machines, browsers, etc? On 6/28/12 2:21 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com wrote: No, it always stays the same. Here's what I have, a custom annotation called DrawingAnnotation which handles clicking, lines, etc. When a line is added it's drawn on the chart, but all references are stored in the annotation. For some reason I can't draw directly on the annotation. Anyway, the line has mouse events on it as well which allow it to be moved and selected and stuff. When the line receives mouse down, I add an event listener for mouse move to the system manager: systemManager.addEventListener( MouseEvent.MOUSE_MOVE, mouseMoveHandler ); which is where I am tracking the positions and stuff. I've added the the listener to the line itselt, the annotation canvas, etc. Always the same result. It always happens if I move the mouse too fast vertically. So, my workaround is to basically check the last mouse event against the current and if the y changes by more than 100 pixes, I count it an outlier and don't count that event. I'm sure there's a better workaround, but I'm not sure since I pretty much have to rely on the position given to me in the mouseEvent. Thanks! -Jake On Thu, Jun 28, 2012 at 1:34 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com wrote: Print the target as well. The target is likely changing and thus, the coordinates local to that target. On 6/28/12 10:11 AM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: Guys and Gals, I'm working on a charting app where we draw things over the chart (trend lines and stuff). The problem I'm running into is the mouse events are not consistent. For example, I'll be drawing and the mouse events come through with their Y position jumping up to the top, then back where it should be. In the example below, local is localX, localY and stage is stageX, stageY. In this example, I was dragging from somewhere in the middle basically straight down (a little to the left). Notice the Y values freak out and go way up to the top, then come back to where you'd expect them. This is following a mouse move event. Any clue what might be causing this? Traced Mouse Positions: MouseEvent (local): (350,213) MouseEvent (stage): (350,293) MouseEvent (local): (350,215) MouseEvent (stage): (350,295) MouseEvent (local): (349,4) MouseEvent (stage): (349,84) MouseEvent (local): (346,15) MouseEvent (stage): (346,95) MouseEvent (local): (346,228) MouseEvent (stage): (346,308) MouseEvent (local): (344,18) MouseEvent (stage): (344,98) MouseEvent (local): (344,234) MouseEvent (stage): (344,314) MouseEvent (local): (343,235) MouseEvent (stage): (343,315) MouseEvent (local): (343,236) MouseEvent (stage): (343,316) MouseEvent (local): (342,241) MouseEvent (stage): (342,321) MouseEvent (local): (341,32) MouseEvent (stage): (341,112) MouseEvent (local): (341,248) MouseEvent (stage): (341,328) MouseEvent (local): (339,259) MouseEvent (stage): (339,339) MouseEvent (local): (338,261) MouseEvent (stage): (338,341) Thanks! -Jake -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] MouseEvent over chart
I'm using a microsoft wireless mouse on my windows machine and the built-in touchpad mouse on the macbook pro. I'll throw together a quick test app for comparison. If the problem still exists in the test app, I'll package it up as an FXP and AIR file and submit both with a bug report. Thanks! -Jake On Fri, Jun 29, 2012 at 12:47 PM, Alex Harui aha...@adobe.com wrote: ** Even if the target changed, the stageY should be continously increasing or decreasing. What kind of mouse are you using? Do you have the same one for both computers? I would try a real simple test app that just reports coordinates and see if has the same problem. If it does, that would be the test case to file with a bug report. -Alex On 6/29/12 7:47 AM, Jake Churchill reyna...@gmail.com wrote: Alex, I ended up commenting out any code that checks against previous mouse events y coordinates and compiled a new AIR file. I tested on my windows desktop as well as my macbook pro and I get the same result on both. If I move too quickly down, the y coordinates flip up top, then back down like what I showed you in my traces. Of course, with a compiled version, I can't stop execution to double check to see if the target is still the same but I assume that wouldn't change between a debug and release compile. Any other ideas? Should I file a bug for this? Thanks! -Jake On Fri, Jun 29, 2012 at 1:38 AM, Alex Harui aha...@adobe.com wrote: It is up to you. It would be annoying to code up a workaround when it is just some device or driver on your computer. On 6/28/12 4:04 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com wrote: This is an air app, so it's happening in adl. I can remove some checks and compile a final release and test if you want. - Sent from my Google Nexus - On Jun 28, 2012 5:15 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com wrote: Sorry, didn’t notice the StageY was changing as well. Does this happen on other machines, browsers, etc? On 6/28/12 2:21 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: No, it always stays the same. Here's what I have, a custom annotation called DrawingAnnotation which handles clicking, lines, etc. When a line is added it's drawn on the chart, but all references are stored in the annotation. For some reason I can't draw directly on the annotation. Anyway, the line has mouse events on it as well which allow it to be moved and selected and stuff. When the line receives mouse down, I add an event listener for mouse move to the system manager: systemManager.addEventListener( MouseEvent.MOUSE_MOVE, mouseMoveHandler ); which is where I am tracking the positions and stuff. I've added the the listener to the line itselt, the annotation canvas, etc. Always the same result. It always happens if I move the mouse too fast vertically. So, my workaround is to basically check the last mouse event against the current and if the y changes by more than 100 pixes, I count it an outlier and don't count that event. I'm sure there's a better workaround, but I'm not sure since I pretty much have to rely on the position given to me in the mouseEvent. Thanks! -Jake On Thu, Jun 28, 2012 at 1:34 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com http://aha...@adobe.com wrote: Print the target as well. The target is likely changing and thus, the coordinates local to that target. On 6/28/12 10:11 AM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: Guys and Gals, I'm working on a charting app where we draw things over the chart (trend lines and stuff). The problem I'm running into is the mouse events are not consistent. For example, I'll be drawing and the mouse events come through with their Y position jumping up to the top, then back where it should be. In the example below, local is localX, localY and stage is stageX, stageY. In this example, I was dragging from somewhere in the middle basically straight down (a little to the left). Notice the Y values freak out and go way up to the top, then come back to where you'd expect them. This is following a mouse move event. Any clue what might be causing this? Traced Mouse Positions: MouseEvent (local): (350,213) MouseEvent (stage): (350,293) MouseEvent (local): (350,215) MouseEvent (stage): (350,295) MouseEvent (local): (349,4) MouseEvent (stage): (349,84) MouseEvent (local): (346,15) MouseEvent (stage): (346,95) MouseEvent (local): (346,228) MouseEvent (stage): (346,308) MouseEvent (local): (344,18) MouseEvent (stage): (344,98) MouseEvent (local): (344,234) MouseEvent (stage): (344,314) MouseEvent (local): (343,235) MouseEvent (stage): (343,315) MouseEvent (local): (343,236) MouseEvent (stage): (343,316
[flexcoders] MouseEvent over chart
Guys and Gals, I'm working on a charting app where we draw things over the chart (trend lines and stuff). The problem I'm running into is the mouse events are not consistent. For example, I'll be drawing and the mouse events come through with their Y position jumping up to the top, then back where it should be. In the example below, local is localX, localY and stage is stageX, stageY. In this example, I was dragging from somewhere in the middle basically straight down (a little to the left). Notice the Y values freak out and go way up to the top, then come back to where you'd expect them. This is following a mouse move event. Any clue what might be causing this? Traced Mouse Positions: MouseEvent (local): (350,213) MouseEvent (stage): (350,293) MouseEvent (local): (350,215) MouseEvent (stage): (350,295) MouseEvent (local): (349,4) MouseEvent (stage): (349,84) MouseEvent (local): (346,15) MouseEvent (stage): (346,95) MouseEvent (local): (346,228) MouseEvent (stage): (346,308) MouseEvent (local): (344,18) MouseEvent (stage): (344,98) MouseEvent (local): (344,234) MouseEvent (stage): (344,314) MouseEvent (local): (343,235) MouseEvent (stage): (343,315) MouseEvent (local): (343,236) MouseEvent (stage): (343,316) MouseEvent (local): (342,241) MouseEvent (stage): (342,321) MouseEvent (local): (341,32) MouseEvent (stage): (341,112) MouseEvent (local): (341,248) MouseEvent (stage): (341,328) MouseEvent (local): (339,259) MouseEvent (stage): (339,339) MouseEvent (local): (338,261) MouseEvent (stage): (338,341) Thanks! -Jake
Re: [flexcoders] MouseEvent over chart
No, it always stays the same. Here's what I have, a custom annotation called DrawingAnnotation which handles clicking, lines, etc. When a line is added it's drawn on the chart, but all references are stored in the annotation. For some reason I can't draw directly on the annotation. Anyway, the line has mouse events on it as well which allow it to be moved and selected and stuff. When the line receives mouse down, I add an event listener for mouse move to the system manager: systemManager.addEventListener( MouseEvent.MOUSE_MOVE, mouseMoveHandler ); which is where I am tracking the positions and stuff. I've added the the listener to the line itselt, the annotation canvas, etc. Always the same result. It always happens if I move the mouse too fast vertically. So, my workaround is to basically check the last mouse event against the current and if the y changes by more than 100 pixes, I count it an outlier and don't count that event. I'm sure there's a better workaround, but I'm not sure since I pretty much have to rely on the position given to me in the mouseEvent. Thanks! -Jake On Thu, Jun 28, 2012 at 1:34 PM, Alex Harui aha...@adobe.com wrote: ** Print the target as well. The target is likely changing and thus, the coordinates local to that target. On 6/28/12 10:11 AM, Jake Churchill reyna...@gmail.com wrote: Guys and Gals, I'm working on a charting app where we draw things over the chart (trend lines and stuff). The problem I'm running into is the mouse events are not consistent. For example, I'll be drawing and the mouse events come through with their Y position jumping up to the top, then back where it should be. In the example below, local is localX, localY and stage is stageX, stageY. In this example, I was dragging from somewhere in the middle basically straight down (a little to the left). Notice the Y values freak out and go way up to the top, then come back to where you'd expect them. This is following a mouse move event. Any clue what might be causing this? Traced Mouse Positions: MouseEvent (local): (350,213) MouseEvent (stage): (350,293) MouseEvent (local): (350,215) MouseEvent (stage): (350,295) MouseEvent (local): (349,4) MouseEvent (stage): (349,84) MouseEvent (local): (346,15) MouseEvent (stage): (346,95) MouseEvent (local): (346,228) MouseEvent (stage): (346,308) MouseEvent (local): (344,18) MouseEvent (stage): (344,98) MouseEvent (local): (344,234) MouseEvent (stage): (344,314) MouseEvent (local): (343,235) MouseEvent (stage): (343,315) MouseEvent (local): (343,236) MouseEvent (stage): (343,316) MouseEvent (local): (342,241) MouseEvent (stage): (342,321) MouseEvent (local): (341,32) MouseEvent (stage): (341,112) MouseEvent (local): (341,248) MouseEvent (stage): (341,328) MouseEvent (local): (339,259) MouseEvent (stage): (339,339) MouseEvent (local): (338,261) MouseEvent (stage): (338,341) Thanks! -Jake -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] MouseEvent over chart
This is an air app, so it's happening in adl. I can remove some checks and compile a final release and test if you want. - Sent from my Google Nexus - On Jun 28, 2012 5:15 PM, Alex Harui aha...@adobe.com wrote: ** Sorry, didn’t notice the StageY was changing as well. Does this happen on other machines, browsers, etc? On 6/28/12 2:21 PM, Jake Churchill reyna...@gmail.com wrote: No, it always stays the same. Here's what I have, a custom annotation called DrawingAnnotation which handles clicking, lines, etc. When a line is added it's drawn on the chart, but all references are stored in the annotation. For some reason I can't draw directly on the annotation. Anyway, the line has mouse events on it as well which allow it to be moved and selected and stuff. When the line receives mouse down, I add an event listener for mouse move to the system manager: systemManager.addEventListener( MouseEvent.MOUSE_MOVE, mouseMoveHandler ); which is where I am tracking the positions and stuff. I've added the the listener to the line itselt, the annotation canvas, etc. Always the same result. It always happens if I move the mouse too fast vertically. So, my workaround is to basically check the last mouse event against the current and if the y changes by more than 100 pixes, I count it an outlier and don't count that event. I'm sure there's a better workaround, but I'm not sure since I pretty much have to rely on the position given to me in the mouseEvent. Thanks! -Jake On Thu, Jun 28, 2012 at 1:34 PM, Alex Harui aha...@adobe.com wrote: Print the target as well. The target is likely changing and thus, the coordinates local to that target. On 6/28/12 10:11 AM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com wrote: Guys and Gals, I'm working on a charting app where we draw things over the chart (trend lines and stuff). The problem I'm running into is the mouse events are not consistent. For example, I'll be drawing and the mouse events come through with their Y position jumping up to the top, then back where it should be. In the example below, local is localX, localY and stage is stageX, stageY. In this example, I was dragging from somewhere in the middle basically straight down (a little to the left). Notice the Y values freak out and go way up to the top, then come back to where you'd expect them. This is following a mouse move event. Any clue what might be causing this? Traced Mouse Positions: MouseEvent (local): (350,213) MouseEvent (stage): (350,293) MouseEvent (local): (350,215) MouseEvent (stage): (350,295) MouseEvent (local): (349,4) MouseEvent (stage): (349,84) MouseEvent (local): (346,15) MouseEvent (stage): (346,95) MouseEvent (local): (346,228) MouseEvent (stage): (346,308) MouseEvent (local): (344,18) MouseEvent (stage): (344,98) MouseEvent (local): (344,234) MouseEvent (stage): (344,314) MouseEvent (local): (343,235) MouseEvent (stage): (343,315) MouseEvent (local): (343,236) MouseEvent (stage): (343,316) MouseEvent (local): (342,241) MouseEvent (stage): (342,321) MouseEvent (local): (341,32) MouseEvent (stage): (341,112) MouseEvent (local): (341,248) MouseEvent (stage): (341,328) MouseEvent (local): (339,259) MouseEvent (stage): (339,339) MouseEvent (local): (338,261) MouseEvent (stage): (338,341) Thanks! -Jake -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Flex Mobile Android 4 (ICS)
Let's compare really quick... I'm just listening for the orientationChange event and switching states in my view accordingly. (Code below) Is that basically how you handle it as well or are you doing something different? I'm adding this event listener: stage.addEventListener( StageOrientationEvent.ORIENTATION_CHANGE, handleOrientationChange ); and here's the handler: private function handleOrientationChange( event:StageOrientationEvent=null ):void { if( stage ) { if( stage.orientation == rotatedLeft || stage.orientation == rotatedRight ) currentState = landscape; else currentState = portrait; this.invalidateDisplayList(); } } -Jake On Fri, Jun 22, 2012 at 10:06 AM, Nick Collins ndcoll...@gmail.com wrote: ** I have been doing active development with Flex 4.6 on my HTC Inspire 4G (running IceColdSandwich/Android 4.0.4) with no such problems. The only problem I have had is that Flash Builder doesn't always see the device as still being in debugging mode, even though the device indicates that it is. Solved by simply disconnecting the USB cable, then reconnecting it. I have also been developing on my ASUS Transformer Prime tablet running ICS with no orientation issues. Nick On Thu, Jun 21, 2012 at 5:22 PM, Jake Churchill reyna...@gmail.comwrote: ** I'm in the middle of writing a flex mobile app and when I debug in the emulator it's fine but on my phone (Verizon Google Nexus) when I rotate to landscape it dies. If I start up in landscape, it's fine until I switch to portrait, then it dies. In either case, there is no error in the debug console. I'm using autoOrientstrue/autoOrients which. I don't have an iPhone so I haven't been able to test there yet but I'm curious if anyone else has seen this. I've written other mobile apps when I had a Galaxy S 1 and I had no issues there. Is there something else I need to do for ICS or is this a bug? Thanks! -Jake
Re: [flexcoders] Flex Mobile Android 4 (ICS)
One other thing I tried. If I stop the autoOrient and manually flip my orientation via code, the same thing happens. Usually when an app stops in debug mode you get the [Unload SWF] trace line but I'm not getting that so it makes me think it's just suspending it? This is super frustrating though. -Jake On Fri, Jun 22, 2012 at 11:33 AM, Jake Churchill reyna...@gmail.com wrote: Let's compare really quick... I'm just listening for the orientationChange event and switching states in my view accordingly. (Code below) Is that basically how you handle it as well or are you doing something different? I'm adding this event listener: stage.addEventListener( StageOrientationEvent.ORIENTATION_CHANGE, handleOrientationChange ); and here's the handler: private function handleOrientationChange( event:StageOrientationEvent=null ):void { if( stage ) { if( stage.orientation == rotatedLeft || stage.orientation == rotatedRight ) currentState = landscape; else currentState = portrait; this.invalidateDisplayList(); } } -Jake On Fri, Jun 22, 2012 at 10:06 AM, Nick Collins ndcoll...@gmail.comwrote: ** I have been doing active development with Flex 4.6 on my HTC Inspire 4G (running IceColdSandwich/Android 4.0.4) with no such problems. The only problem I have had is that Flash Builder doesn't always see the device as still being in debugging mode, even though the device indicates that it is. Solved by simply disconnecting the USB cable, then reconnecting it. I have also been developing on my ASUS Transformer Prime tablet running ICS with no orientation issues. Nick On Thu, Jun 21, 2012 at 5:22 PM, Jake Churchill reyna...@gmail.comwrote: ** I'm in the middle of writing a flex mobile app and when I debug in the emulator it's fine but on my phone (Verizon Google Nexus) when I rotate to landscape it dies. If I start up in landscape, it's fine until I switch to portrait, then it dies. In either case, there is no error in the debug console. I'm using autoOrientstrue/autoOrients which. I don't have an iPhone so I haven't been able to test there yet but I'm curious if anyone else has seen this. I've written other mobile apps when I had a Galaxy S 1 and I had no issues there. Is there something else I need to do for ICS or is this a bug? Thanks! -Jake
Re: [flexcoders] Flex Mobile Android 4 (ICS)
I got my hands on an android 3 tablet and the same thing happens there. I was also able to test on an android 2.3 phone and it does not happen there. So, anything in android 3 or 4 and orientation changes that I should be aware of? Thanks! -Jake On Fri, Jun 22, 2012 at 12:21 PM, Jake Churchill reyna...@gmail.com wrote: One other thing I tried. If I stop the autoOrient and manually flip my orientation via code, the same thing happens. Usually when an app stops in debug mode you get the [Unload SWF] trace line but I'm not getting that so it makes me think it's just suspending it? This is super frustrating though. -Jake On Fri, Jun 22, 2012 at 11:33 AM, Jake Churchill reyna...@gmail.comwrote: Let's compare really quick... I'm just listening for the orientationChange event and switching states in my view accordingly. (Code below) Is that basically how you handle it as well or are you doing something different? I'm adding this event listener: stage.addEventListener( StageOrientationEvent.ORIENTATION_CHANGE, handleOrientationChange ); and here's the handler: private function handleOrientationChange( event:StageOrientationEvent=null ):void { if( stage ) { if( stage.orientation == rotatedLeft || stage.orientation == rotatedRight ) currentState = landscape; else currentState = portrait; this.invalidateDisplayList(); } } -Jake On Fri, Jun 22, 2012 at 10:06 AM, Nick Collins ndcoll...@gmail.comwrote: ** I have been doing active development with Flex 4.6 on my HTC Inspire 4G (running IceColdSandwich/Android 4.0.4) with no such problems. The only problem I have had is that Flash Builder doesn't always see the device as still being in debugging mode, even though the device indicates that it is. Solved by simply disconnecting the USB cable, then reconnecting it. I have also been developing on my ASUS Transformer Prime tablet running ICS with no orientation issues. Nick On Thu, Jun 21, 2012 at 5:22 PM, Jake Churchill reyna...@gmail.comwrote: ** I'm in the middle of writing a flex mobile app and when I debug in the emulator it's fine but on my phone (Verizon Google Nexus) when I rotate to landscape it dies. If I start up in landscape, it's fine until I switch to portrait, then it dies. In either case, there is no error in the debug console. I'm using autoOrientstrue/autoOrients which. I don't have an iPhone so I haven't been able to test there yet but I'm curious if anyone else has seen this. I've written other mobile apps when I had a Galaxy S 1 and I had no issues there. Is there something else I need to do for ICS or is this a bug? Thanks! -Jake
[flexcoders] Flex Mobile Android 4 (ICS)
I'm in the middle of writing a flex mobile app and when I debug in the emulator it's fine but on my phone (Verizon Google Nexus) when I rotate to landscape it dies. If I start up in landscape, it's fine until I switch to portrait, then it dies. In either case, there is no error in the debug console. I'm using autoOrientstrue/autoOrients which. I don't have an iPhone so I haven't been able to test there yet but I'm curious if anyone else has seen this. I've written other mobile apps when I had a Galaxy S 1 and I had no issues there. Is there something else I need to do for ICS or is this a bug? Thanks! -Jake
Re: [flexcoders] Rendering Freezes
Alex, Is there a way to keep the app from being idle when in the background? When do you anticipate a fix for this? Thanks! -Jake On Thu, Apr 5, 2012 at 6:08 PM, Alex Harui aha...@adobe.com wrote: ** Sounds like a bug in the idle management in AIR. They’ve been trying different things to reduce CPU usage when “idle”. If you are getting mouse events, check the targets to see if they make sense. A popup overlay would likely change the target. Or just dump the display list on a mouse event and see if it makes sense. On 4/5/12 8:52 AM, Jake Churchill reyna...@gmail.com wrote: Alex, It appears there is a bug for this: https://bugbase.adobe.com/index.cfm?event=bugid=3155398 I set handlers on enterFrame and exitFrame on the chart component as well as a one of it's parents (the main display container) and they fire constantly (several times per second). This continues after the freeze. I also added mouse and keyboard event handlers and they also fire just find when the app is frozen. Everything seems to work fine except for the rendering. I have tried running this in the debugger and profiler and I cannot ever get the app to freeze there. I've let it run overnight and still no freeze. With the production app running in AIR it'll freeze after around 10 minutes pretty consistently. This is why I've been using this Monster Debugger, so I could grab debug traces on the production app without relying on flashbuilder. Regarding the idea that this is popup related... I have popups inside the windows using Alert components, some that use custom components and PopupManager and I have some global popups that open new native windows with information inside. All 3 function just fine and do not cause the app to freeze. The app seems to freeze more if I just let it run in the background. If I play around with it a lot, it'll take a lot longer to freeze. Thanks! -Jake On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com wrote: Did you check bugbase.adobe.com http://bugbase.adobe.com to see if this is a known issue? If you set enterFrame and exitFrame event handlers, do they get called? If so, how often? How about mouse or keyboard event? Does the profiler continue to work? What does it say is running? On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com wrote: Windows for now. I haven't been able to duplicate issue on a mac but it doesn't mean it's not there. I have not altered the renderMode so it should be running auto. CPU runs between 0 and about 8% depending on how much data is coming down the line (socket connection). Memory spikes as high as 180MB but runs consistent around 25MB in the profiler. In task manager, I usually see around 120MB. If I leave the chart open all day then there's a ton of data and I'll see it up around 180MB. But, that's equal or less than a single tab in firefox so it should be fine. The nativeWindow I'm working with still responds. I can maximize/minimize, but can't resize it. The nativeMenu, however, is dead as well as all content inside the window. As I said, I have a global error handler which traces out stuff in Monster Debugger as well as logs stuff to a file on my desktop and I don't get any info either way. I'm tracing out every data object that I get over the socket as well as every chart update event and the main content area's update event. They continue to respond. It's like everything is there, but there's a block on the app visually. Thanks for your help! -Jake On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com wrote: Mac and Win? Different GPU configs? What does memory and CPU for the process look like? On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: Alex, It's intermittent, but routinely happens after the app has been open for 10-15 minutes. But, it's not EVERY time. I've tied in Monster Debugger and I can see after the freeze that updates, data and certain component lifecycle events that I'm looking at are still firing, just no visual. About half the time, I just get a snapshot frozen where the last update happened, and sometimes the screen is completely white. -Jake On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com http://aha...@adobe.com wrote: Is it intermittent or can you reproduce it at will? On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: Coders: I posted an issue regarding the update to AIR 3.2 recently but I now have more information. The app appears to freeze but I've plugged in some debugging tools and network monitors and I have been able to find out that the rendering of the app freezes, but the app itself
Re: [flexcoders] Rendering Freezes
So, any suggestions on a possible workaround to try? Currently, we have the clients reverted back to AIR 3.1 and it's working fine but they have to constantly deny the update. I'm considering bundling the app w/ AIR 3.1 using that Captive Runtime but I really don't want to do that either. Please let me know if you think of anything. Thanks! -Jake On Mon, Apr 9, 2012 at 11:08 AM, Alex Harui aha...@adobe.com wrote: ** Well, we don’t have confirmation that there is a bug in idle management. But if that was the cause, I don’t think there is a way to keep yourself from becoming “idle”. I’m just recalling the kinds of issues that came up when they started idle management a few years back. Google “Adobe AIR idle” for a review. On 4/9/12 8:08 AM, Jake Churchill reyna...@gmail.com wrote: Alex, Is there a way to keep the app from being idle when in the background? When do you anticipate a fix for this? Thanks! -Jake On Thu, Apr 5, 2012 at 6:08 PM, Alex Harui aha...@adobe.com wrote: Sounds like a bug in the idle management in AIR. They’ve been trying different things to reduce CPU usage when “idle”. If you are getting mouse events, check the targets to see if they make sense. A popup overlay would likely change the target. Or just dump the display list on a mouse event and see if it makes sense. On 4/5/12 8:52 AM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com wrote: Alex, It appears there is a bug for this: https://bugbase.adobe.com/index.cfm?event=bugid=3155398 I set handlers on enterFrame and exitFrame on the chart component as well as a one of it's parents (the main display container) and they fire constantly (several times per second). This continues after the freeze. I also added mouse and keyboard event handlers and they also fire just find when the app is frozen. Everything seems to work fine except for the rendering. I have tried running this in the debugger and profiler and I cannot ever get the app to freeze there. I've let it run overnight and still no freeze. With the production app running in AIR it'll freeze after around 10 minutes pretty consistently. This is why I've been using this Monster Debugger, so I could grab debug traces on the production app without relying on flashbuilder. Regarding the idea that this is popup related... I have popups inside the windows using Alert components, some that use custom components and PopupManager and I have some global popups that open new native windows with information inside. All 3 function just fine and do not cause the app to freeze. The app seems to freeze more if I just let it run in the background. If I play around with it a lot, it'll take a lot longer to freeze. Thanks! -Jake On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com wrote: Did you check bugbase.adobe.com http://bugbase.adobe.com http://bugbase.adobe.com to see if this is a known issue? If you set enterFrame and exitFrame event handlers, do they get called? If so, how often? How about mouse or keyboard event? Does the profiler continue to work? What does it say is running? On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: Windows for now. I haven't been able to duplicate issue on a mac but it doesn't mean it's not there. I have not altered the renderMode so it should be running auto. CPU runs between 0 and about 8% depending on how much data is coming down the line (socket connection). Memory spikes as high as 180MB but runs consistent around 25MB in the profiler. In task manager, I usually see around 120MB. If I leave the chart open all day then there's a ton of data and I'll see it up around 180MB. But, that's equal or less than a single tab in firefox so it should be fine. The nativeWindow I'm working with still responds. I can maximize/minimize, but can't resize it. The nativeMenu, however, is dead as well as all content inside the window. As I said, I have a global error handler which traces out stuff in Monster Debugger as well as logs stuff to a file on my desktop and I don't get any info either way. I'm tracing out every data object that I get over the socket as well as every chart update event and the main content area's update event. They continue to respond. It's like everything is there, but there's a block on the app visually. Thanks for your help! -Jake On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com http://aha...@adobe.com wrote: Mac and Win? Different GPU configs? What does memory and CPU for the process look like? On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: Alex, It's intermittent, but routinely happens after the app has been open
Re: [flexcoders] Rendering Freezes
Yes, based on one of the posts I saw, adding a small image to the display list once in a while. I basically did this every time data was received over the socket (and removed it as well) and still froze the same. Maybe I'll try keeping some kind of data related ticker or something. Thanks! -Jake On Mon, Apr 9, 2012 at 1:15 PM, Alex Harui aha...@adobe.com wrote: ** Did you try keeping some sort of screen updating going all of the time? Current time, a news feed, something like that? On 4/9/12 9:52 AM, Jake Churchill reyna...@gmail.com wrote: So, any suggestions on a possible workaround to try? Currently, we have the clients reverted back to AIR 3.1 and it's working fine but they have to constantly deny the update. I'm considering bundling the app w/ AIR 3.1 using that Captive Runtime but I really don't want to do that either. Please let me know if you think of anything. Thanks! -Jake On Mon, Apr 9, 2012 at 11:08 AM, Alex Harui aha...@adobe.com wrote: Well, we don’t have confirmation that there is a bug in idle management. But if that was the cause, I don’t think there is a way to keep yourself from becoming “idle”. I’m just recalling the kinds of issues that came up when they started idle management a few years back. Google “Adobe AIR idle” for a review. On 4/9/12 8:08 AM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com wrote: Alex, Is there a way to keep the app from being idle when in the background? When do you anticipate a fix for this? Thanks! -Jake On Thu, Apr 5, 2012 at 6:08 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com wrote: Sounds like a bug in the idle management in AIR. They’ve been trying different things to reduce CPU usage when “idle”. If you are getting mouse events, check the targets to see if they make sense. A popup overlay would likely change the target. Or just dump the display list on a mouse event and see if it makes sense. On 4/5/12 8:52 AM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: Alex, It appears there is a bug for this: https://bugbase.adobe.com/index.cfm?event=bugid=3155398 I set handlers on enterFrame and exitFrame on the chart component as well as a one of it's parents (the main display container) and they fire constantly (several times per second). This continues after the freeze. I also added mouse and keyboard event handlers and they also fire just find when the app is frozen. Everything seems to work fine except for the rendering. I have tried running this in the debugger and profiler and I cannot ever get the app to freeze there. I've let it run overnight and still no freeze. With the production app running in AIR it'll freeze after around 10 minutes pretty consistently. This is why I've been using this Monster Debugger, so I could grab debug traces on the production app without relying on flashbuilder. Regarding the idea that this is popup related... I have popups inside the windows using Alert components, some that use custom components and PopupManager and I have some global popups that open new native windows with information inside. All 3 function just fine and do not cause the app to freeze. The app seems to freeze more if I just let it run in the background. If I play around with it a lot, it'll take a lot longer to freeze. Thanks! -Jake On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com http://aha...@adobe.com wrote: Did you check bugbase.adobe.com http://bugbase.adobe.com http://bugbase.adobe.com http://bugbase.adobe.com to see if this is a known issue? If you set enterFrame and exitFrame event handlers, do they get called? If so, how often? How about mouse or keyboard event? Does the profiler continue to work? What does it say is running? On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: Windows for now. I haven't been able to duplicate issue on a mac but it doesn't mean it's not there. I have not altered the renderMode so it should be running auto. CPU runs between 0 and about 8% depending on how much data is coming down the line (socket connection). Memory spikes as high as 180MB but runs consistent around 25MB in the profiler. In task manager, I usually see around 120MB. If I leave the chart open all day then there's a ton of data and I'll see it up around 180MB. But, that's equal or less than a single tab in firefox so it should be fine. The nativeWindow I'm working with still responds. I can maximize/minimize, but can't resize it. The nativeMenu, however, is dead as well as all content inside the window. As I said, I have a global error handler which traces out stuff in Monster Debugger as well as logs stuff to a file on my desktop and I don't get any info
Re: [flexcoders] Rendering Freezes
Alex, It appears there is a bug for this: https://bugbase.adobe.com/index.cfm?event=bugid=3155398 I set handlers on enterFrame and exitFrame on the chart component as well as a one of it's parents (the main display container) and they fire constantly (several times per second). This continues after the freeze. I also added mouse and keyboard event handlers and they also fire just find when the app is frozen. Everything seems to work fine except for the rendering. I have tried running this in the debugger and profiler and I cannot ever get the app to freeze there. I've let it run overnight and still no freeze. With the production app running in AIR it'll freeze after around 10 minutes pretty consistently. This is why I've been using this Monster Debugger, so I could grab debug traces on the production app without relying on flashbuilder. Regarding the idea that this is popup related... I have popups inside the windows using Alert components, some that use custom components and PopupManager and I have some global popups that open new native windows with information inside. All 3 function just fine and do not cause the app to freeze. The app seems to freeze more if I just let it run in the background. If I play around with it a lot, it'll take a lot longer to freeze. Thanks! -Jake On Wed, Apr 4, 2012 at 10:42 PM, Alex Harui aha...@adobe.com wrote: ** Did you check bugbase.adobe.com to see if this is a known issue? If you set enterFrame and exitFrame event handlers, do they get called? If so, how often? How about mouse or keyboard event? Does the profiler continue to work? What does it say is running? On 4/4/12 7:17 PM, Jake Churchill reyna...@gmail.com wrote: Windows for now. I haven't been able to duplicate issue on a mac but it doesn't mean it's not there. I have not altered the renderMode so it should be running auto. CPU runs between 0 and about 8% depending on how much data is coming down the line (socket connection). Memory spikes as high as 180MB but runs consistent around 25MB in the profiler. In task manager, I usually see around 120MB. If I leave the chart open all day then there's a ton of data and I'll see it up around 180MB. But, that's equal or less than a single tab in firefox so it should be fine. The nativeWindow I'm working with still responds. I can maximize/minimize, but can't resize it. The nativeMenu, however, is dead as well as all content inside the window. As I said, I have a global error handler which traces out stuff in Monster Debugger as well as logs stuff to a file on my desktop and I don't get any info either way. I'm tracing out every data object that I get over the socket as well as every chart update event and the main content area's update event. They continue to respond. It's like everything is there, but there's a block on the app visually. Thanks for your help! -Jake On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com wrote: Mac and Win? Different GPU configs? What does memory and CPU for the process look like? On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com wrote: Alex, It's intermittent, but routinely happens after the app has been open for 10-15 minutes. But, it's not EVERY time. I've tied in Monster Debugger and I can see after the freeze that updates, data and certain component lifecycle events that I'm looking at are still firing, just no visual. About half the time, I just get a snapshot frozen where the last update happened, and sometimes the screen is completely white. -Jake On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com wrote: Is it intermittent or can you reproduce it at will? On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com http://reyna...@gmail.com wrote: Coders: I posted an issue regarding the update to AIR 3.2 recently but I now have more information. The app appears to freeze but I've plugged in some debugging tools and network monitors and I have been able to find out that the rendering of the app freezes, but the app itself continues to run. Data continues to fly in, update and render events continue to fire on the components in question. Focus appears to be acknowledged as well. I've messed with a global error handler but I'm not seeing any errors being thrown. The basic app structure is this: Main app opens a login screen, after successful login, the main app hides itself and opens up 1-3 windows, all of which manage their own data/events, etc. I've been debugging events at the main app level as well as windows and I'm getting feedback from both at the appropriate times. I've seen an issue on an ipad app that freezes mid animation and the workaround was to add something else to the display list. I coded in a workaround like that which adds a small transparent image to the display list
[flexcoders] Rendering Freezes
Coders: I posted an issue regarding the update to AIR 3.2 recently but I now have more information. The app appears to freeze but I've plugged in some debugging tools and network monitors and I have been able to find out that the rendering of the app freezes, but the app itself continues to run. Data continues to fly in, update and render events continue to fire on the components in question. Focus appears to be acknowledged as well. I've messed with a global error handler but I'm not seeing any errors being thrown. The basic app structure is this: Main app opens a login screen, after successful login, the main app hides itself and opens up 1-3 windows, all of which manage their own data/events, etc. I've been debugging events at the main app level as well as windows and I'm getting feedback from both at the appropriate times. I've seen an issue on an ipad app that freezes mid animation and the workaround was to add something else to the display list. I coded in a workaround like that which adds a small transparent image to the display list of components as well as the window's stage and still nothing. I REALLY REALLY need some kind of help here. I've been searching for 3 days without any luck of the problem even being acknowledged other than the one ipad game source. Here's that blog post again: http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/ Please please help me out if you can. Thanks! -Jake Churchill
Re: [flexcoders] Rendering Freezes
Alex, It's intermittent, but routinely happens after the app has been open for 10-15 minutes. But, it's not EVERY time. I've tied in Monster Debugger and I can see after the freeze that updates, data and certain component lifecycle events that I'm looking at are still firing, just no visual. About half the time, I just get a snapshot frozen where the last update happened, and sometimes the screen is completely white. -Jake On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com wrote: ** Is it intermittent or can you reproduce it at will? On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com wrote: Coders: I posted an issue regarding the update to AIR 3.2 recently but I now have more information. The app appears to freeze but I've plugged in some debugging tools and network monitors and I have been able to find out that the rendering of the app freezes, but the app itself continues to run. Data continues to fly in, update and render events continue to fire on the components in question. Focus appears to be acknowledged as well. I've messed with a global error handler but I'm not seeing any errors being thrown. The basic app structure is this: Main app opens a login screen, after successful login, the main app hides itself and opens up 1-3 windows, all of which manage their own data/events, etc. I've been debugging events at the main app level as well as windows and I'm getting feedback from both at the appropriate times. I've seen an issue on an ipad app that freezes mid animation and the workaround was to add something else to the display list. I coded in a workaround like that which adds a small transparent image to the display list of components as well as the window's stage and still nothing. I REALLY REALLY need some kind of help here. I've been searching for 3 days without any luck of the problem even being acknowledged other than the one ipad game source. Here's that blog post again: http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/ Please please help me out if you can. Thanks! -Jake Churchill -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Rendering Freezes
Windows for now. I haven't been able to duplicate issue on a mac but it doesn't mean it's not there. I have not altered the renderMode so it should be running auto. CPU runs between 0 and about 8% depending on how much data is coming down the line (socket connection). Memory spikes as high as 180MB but runs consistent around 25MB in the profiler. In task manager, I usually see around 120MB. If I leave the chart open all day then there's a ton of data and I'll see it up around 180MB. But, that's equal or less than a single tab in firefox so it should be fine. The nativeWindow I'm working with still responds. I can maximize/minimize, but can't resize it. The nativeMenu, however, is dead as well as all content inside the window. As I said, I have a global error handler which traces out stuff in Monster Debugger as well as logs stuff to a file on my desktop and I don't get any info either way. I'm tracing out every data object that I get over the socket as well as every chart update event and the main content area's update event. They continue to respond. It's like everything is there, but there's a block on the app visually. Thanks for your help! -Jake On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui aha...@adobe.com wrote: ** Mac and Win? Different GPU configs? What does memory and CPU for the process look like? On 4/4/12 2:37 PM, Jake Churchill reyna...@gmail.com wrote: Alex, It's intermittent, but routinely happens after the app has been open for 10-15 minutes. But, it's not EVERY time. I've tied in Monster Debugger and I can see after the freeze that updates, data and certain component lifecycle events that I'm looking at are still firing, just no visual. About half the time, I just get a snapshot frozen where the last update happened, and sometimes the screen is completely white. -Jake On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui aha...@adobe.com wrote: Is it intermittent or can you reproduce it at will? On 4/4/12 12:32 PM, Jake Churchill reyna...@gmail.com http://reyna...@gmail.com wrote: Coders: I posted an issue regarding the update to AIR 3.2 recently but I now have more information. The app appears to freeze but I've plugged in some debugging tools and network monitors and I have been able to find out that the rendering of the app freezes, but the app itself continues to run. Data continues to fly in, update and render events continue to fire on the components in question. Focus appears to be acknowledged as well. I've messed with a global error handler but I'm not seeing any errors being thrown. The basic app structure is this: Main app opens a login screen, after successful login, the main app hides itself and opens up 1-3 windows, all of which manage their own data/events, etc. I've been debugging events at the main app level as well as windows and I'm getting feedback from both at the appropriate times. I've seen an issue on an ipad app that freezes mid animation and the workaround was to add something else to the display list. I coded in a workaround like that which adds a small transparent image to the display list of components as well as the window's stage and still nothing. I REALLY REALLY need some kind of help here. I've been searching for 3 days without any luck of the problem even being acknowledged other than the one ipad game source. Here's that blog post again: http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/ Please please help me out if you can. Thanks! -Jake Churchill -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
[flexcoders] AIR 3.2 Update Breaks My App
Good morning community, I have an AIR app developed under the 3.1 SDK which is used for displaying real-time charting data. It's not overly complex, just a socket connection receiving data and updating chart data providers. The app has been released for about a month and all has been great. However, with the update to AIR 3.2, we are now experiencing freezing issues where the rendering just stops. I quick google search pulled up this: http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/ This example is in mobile, but it seems to be the same problem. Is anyone aware of a fix for this or at the minimum, a workaround? Or what can I even look for event wise to watch for this problem happening so I can try to gracefully recover? Thanks for any help! -Jake
[flexcoders] Flex/AIR Developer Needed
Flex Coders: CF Webtools (http://www.cfwebtools.com) is looking to hire an additional Flex/AIR developer. I normally take care of that kind of thing for them but there is additional work coming through that requires more than just one person. The position is based in Omaha, NE but remote candidates are being considered if they end up being a really good fit. Initially, the person hired would be working on a re-write of a stock charting application going from delayed data to streaming data. The existing app is a Flex 2/3 app and will be converted to an Flex 4 AIR app and socket connections. Skills required for this are as follows: *Required Skills / Experience:* - Flex 3 and Flex 4 experience - Flex 4 Skinning experience - Flex Charting/Data Visualization Experience - Experience with Stock Data - Experience with some kind of standard Flex framework (i.e. Cairngorm, Mate, Swiz) - Experience with Subversion *Additionally requested Experience:* - Experience with Sockets would be very useful (i.e. chat room experience - language specifics are not relevant) - Hudson - ColdFusion or .NET - Flex 4.5 Mobile CF Webtools is primarily a ColdFusion shop with Flex/AIR work and some mobile work here and there. The primary project for this position will be the stock application listed above, but other projects will most-likely contain some coding outside of the Flex/AIR world. If you are interested in this position or know someone who fits the bill, please send your resume/cover letter and standard information to j...@cfwebtools.com. -- *Jake Churchill Sr. Web Application Developer* *CF Webtools* You Dream It... We Build It. http://www.cfwebtools.com/ 11204 Davenport, Suite 100 Omaha, Nebraska 68154 O: 402.408.3733 x103 E: j...@cfwebtools.com Skype: jakechurchill
Re: [flexcoders] Cairngorm 2.2.1 with Flex 4
I recommend Swiz Sent from my Droid On Sep 5, 2010 7:14 AM, claudiu ursica the_bran...@yahoo.com wrote: Cairngorm 2.x is not officially supported anymore by Adobe. You'd be better of trying to move towards the Parsley framework (w/o) Cairngorm 3 libs. Or you can try a relatively new kid on the block Robotlegs. C -- *From:* pritesh_mics pbhaw...@deloitte.com *To:* flexcoders@yahoogroups.com *Sent:* Sun, September 5, 2010 12:30:56 PM *Subject:* [flexcoders] Cairngorm 2.2.1 with Flex 4 Hi All, I am using Cairngorm 2.2.1 with Flax-4, m getting an runtime error: TypeError: Error #...
Re: [flexcoders] Slow connection to a server
Try using Swiz. There is a delegate helper class that allows you to timeout the async request for a certain amount of time. As long as you are sequencing your events correctly and taking advantage of binding, you shouldn't have to worry about slow connections. If someone is on a slow connection, you'll want to worry most about your swf size -Jake Sent from my Droid On Sep 2, 2010 10:28 AM, Christophe christophe_jacque...@yahoo.fr wrote: Hello, How to have a slow speed connection with localhost, to simulate the real slow speed connection to a server ? Thank you, Christophe
Re: [flexcoders] HTTPService not updating...
It might be getting cached. nbsp;Try adding a timestamp to the end of the url (ie url/myfile.xml?timestamp={currentTimeStamp} ). Before you all the .send() method, reset the timestamp variable to the current time. nbsp; -Jake -- Sent from my Palm Pre On Aug 17, 2010 6:23 PM, Laurence lt;lmacne...@comcast.netgt; wrote: nbsp; Ok. I have the following HTTP Service declared: lt;mx:HTTPService id=reportDataRPC url=reports/xml/{_reportInfo.fileName}.xml result=rdHandler(event); fault=rpcFaultHandler(event);/gt; In the init() function (which is called when the 'show' event happens, because the page it's on happens to be part of a ViewStack) I have the following line: reportDataRPC.send(); This loads the data from the .xml file and in the rdHandler function lets me put that data into my various ArrayCollections and whatnot... That's working fine... At least, the FIRST time... Every subsequent time, the result-set is exactly the same as the first time -- even if the .xml file it's reading has changed in the interim. If I completely shut-down the program and re-load it, then I finally get the new .xml file in there. So, how do I get it to give me a complete refresh of the data? I've tried calling 'reportDataRPC.clearResult()' and 'reportDataRPC.disconnect()' after storing the data in my ArrayCollections, but that didn't seem to do anything at all... I'm at a complete loss -- it's totally unacceptable to not be able to get the new data when the underlying .xml file changes. Can someone point me in the right direction? Thanks, Laurence MacNeill Mableton, Georgia, USA
Re: [flexcoders] Checking that multiple events have been dispatched
Set variables somewhere that you can look at prior to dispatching the next event. nbsp;If they haven't, set a timer and check again. nbsp;Or, you a chain them in the handling of the events. -- Sent from my Palm Pre On Aug 15, 2010 10:21 AM, chenyang3 lt;chenya...@hotmail.comgt; wrote: nbsp; Hi, in my application I need to ensure that 2 (or more) events have happened before I can do something else. Basically I have 2 objects each being attached to an event listener. How do I check that both events have been dispatched? Do I have to use Timer/Enterframe events or loops to constantly checking or is there a good practice for doing this kind of things? Thanks in advance. Regards, Yang
[flexcoders] Charting Line Segments
I've run into an issue that for the life of me I can't seem to figure out. I've been working on this same problem for days and I keep hitting a wall. I have a Cartesian chart with several LineSeries and a PlotSeries. The vertical axis is numeric and the horizontal is a category axis. The value of the category axis is dates (category is used to avoid gaps for weekends because data is stock related and only exists on trading days). Every series has it's own dataprovider but the data is all similar. It looks similar to this: DATEVALUE: Date VALUE: numeric value PERCENTCHANGE: numeric value I have a custom line segment renderer for all line series. An example I'm looking at right now deals with several months of data. There are 105 data points in the data provider and therefore, 105 line segments passed to the set data() method in the line segment renderer. *Here's the issue:* There is one line that only gets 104 line segments. The data shows 105 data points in the same format as all the other lines but somewhere down the line a segment is being removed. I've gone over and over the data and the date values for the horizontal category axis are all the same for every line and always 105 values as I said. Can anyone think of why one line might not be giving me the last segment? FYI, this is a flex 2 app and for several reasons, I cannot change that right now. Any help anyone can give will be useful (especially since this code is not open sourced and I cannot really dig into see what is going on behind the charting scenes). Thanks! -Jake
Re: [flexcoders] Charting Line Segments
I haven't isolated just that series. I'll try that. I was however, trying to figure out which methods to override to see that. Do you know which method to override to see the line segments? I overrode updateData and that seems to set the data but it looks correct. The rendered data cache has all the elements of the data provider. -Jake On Mon, Jun 28, 2010 at 3:32 PM, Brendan Meutzner bmeutz...@gmail.comwrote: Which LineSeries is affected? Have you isolated the line series on its own (don't add/load the others) and does it still occur? Have you tried creating a sub class from LineSeries and overriding the appropriate functions inside of it to try and trace out how each segment is loading? Brendan On Mon, Jun 28, 2010 at 3:18 PM, Jake Churchill reyna...@gmail.comwrote: I've run into an issue that for the life of me I can't seem to figure out. I've been working on this same problem for days and I keep hitting a wall. I have a Cartesian chart with several LineSeries and a PlotSeries. The vertical axis is numeric and the horizontal is a category axis. The value of the category axis is dates (category is used to avoid gaps for weekends because data is stock related and only exists on trading days). Every series has it's own dataprovider but the data is all similar. It looks similar to this: DATEVALUE: Date VALUE: numeric value PERCENTCHANGE: numeric value I have a custom line segment renderer for all line series. An example I'm looking at right now deals with several months of data. There are 105 data points in the data provider and therefore, 105 line segments passed to the set data() method in the line segment renderer. *Here's the issue:* There is one line that only gets 104 line segments. The data shows 105 data points in the same format as all the other lines but somewhere down the line a segment is being removed. I've gone over and over the data and the date values for the horizontal category axis are all the same for every line and always 105 values as I said. Can anyone think of why one line might not be giving me the last segment? FYI, this is a flex 2 app and for several reasons, I cannot change that right now. Any help anyone can give will be useful (especially since this code is not open sourced and I cannot really dig into see what is going on behind the charting scenes). Thanks! -Jake
Re: [flexcoders] Charting Line Segments
I can't override getAllDataPoints. I see that in Flex 3 but not 2. I assume that changed. When I isolated that series, I saw everything which made me search the data a bit more and there is a date/time generated by the server for the datevalue... The date was the same but the time was different for the last data point of this series only. This caused the category to be different and the point didn't show up. I missed it when looking over the thousands of data points. Stupid error, but thanks for the debugging tip. It's fixed now. -Jake On Mon, Jun 28, 2010 at 3:53 PM, Brendan Meutzner bmeutz...@gmail.comwrote: Hmmm... at runtime, have you inspected getAllDataPoints? Does the first (or last) line segment simply not show up? Does the hit data point still trigger if you mouse over the approximate area where it should be rendering? I'm curious to hear your results from isolating the line series and seeing what that renders like. Brendan On Mon, Jun 28, 2010 at 3:37 PM, Jake Churchill reyna...@gmail.comwrote: I haven't isolated just that series. I'll try that. I was however, trying to figure out which methods to override to see that. Do you know which method to override to see the line segments? I overrode updateData and that seems to set the data but it looks correct. The rendered data cache has all the elements of the data provider. -Jake On Mon, Jun 28, 2010 at 3:32 PM, Brendan Meutzner bmeutz...@gmail.comwrote: Which LineSeries is affected? Have you isolated the line series on its own (don't add/load the others) and does it still occur? Have you tried creating a sub class from LineSeries and overriding the appropriate functions inside of it to try and trace out how each segment is loading? Brendan On Mon, Jun 28, 2010 at 3:18 PM, Jake Churchill reyna...@gmail.comwrote: I've run into an issue that for the life of me I can't seem to figure out. I've been working on this same problem for days and I keep hitting a wall. I have a Cartesian chart with several LineSeries and a PlotSeries. The vertical axis is numeric and the horizontal is a category axis. The value of the category axis is dates (category is used to avoid gaps for weekends because data is stock related and only exists on trading days). Every series has it's own dataprovider but the data is all similar. It looks similar to this: DATEVALUE: Date VALUE: numeric value PERCENTCHANGE: numeric value I have a custom line segment renderer for all line series. An example I'm looking at right now deals with several months of data. There are 105 data points in the data provider and therefore, 105 line segments passed to the set data() method in the line segment renderer. *Here's the issue:* There is one line that only gets 104 line segments. The data shows 105 data points in the same format as all the other lines but somewhere down the line a segment is being removed. I've gone over and over the data and the date values for the horizontal category axis are all the same for every line and always 105 values as I said. Can anyone think of why one line might not be giving me the last segment? FYI, this is a flex 2 app and for several reasons, I cannot change that right now. Any help anyone can give will be useful (especially since this code is not open sourced and I cannot really dig into see what is going on behind the charting scenes). Thanks! -Jake
Re: [flexcoders] draw an arc
I've seen it done before where the arc is not technically smooth but it's a bunch of connected straight lines in very short increments (like 4 lines per degree). The math is a total pain. If you end up doing something like that, get ready to re-learn geometry and trigonometry. Flex 4 has motionpath animations but I think they are straight line only. However, you might be able to us that to your advantage to constantly change the x/y of some object to mimic a curve. Good luck On Wed, May 26, 2010 at 12:52 PM, Mark mark.pusat...@yahoo.com wrote: I need to draw an animated arc in Flex. So I have 2 points and the arc needs to draw over a period of about 1.5 seconds or so. I can't even find a good demo for Flash, let alone Flex. Does anyone know how to go about doing this? Thanks, Mark
Re: [flexcoders] The Flex DOM?
It's kind of like a DOM. It's just a hierarchical relationship of components and controls. On Mon, May 24, 2010 at 4:01 PM, Nick Middleweek n...@middleweek.co.ukwrote: Hi, Might be a silly one but Flex doesn't have a DOM does it... or does it? I'm pretty sure I've seen a debugger app that shows a hierachical view starting from the Application level and displays all the containers and objects within. Thanks, Nick
Re: [flexcoders] Simple Flex 3 Question.
all UI Components have a tooltip property. It probably had something to do with the bars being too narrow for the font. On Thu, Apr 22, 2010 at 7:16 AM, johnvid john...@rocketmail.com wrote: Last noght I had tooltips everywhere(without coding them on everything), on every tab linkbar...then I changed something and now its back to normal. Does anyone know whats happened, if its anything to do with button mode,focus, or something else? or because my tab link bars where to narrow for the size of font??? ANyone know of some setting to get this back? Cheers for the Help. johnvid
Re: [flexcoders] Cairngorm/ Command/ AdvancedDataGrid.expandChildrenOf() ?
Download cairgorm extensions. nbsp;It has classes called Callbacks which basically notifies the view after a command has finished. nbsp;It's perfect for this situation. -Jake -- Sent from my Palm Prē On Apr 18, 2010 1:02 PM, Nick Middleweek lt;n...@middleweek.co.ukgt; wrote: nbsp; Hi, I'm working on a cairngorm flex app and have been told to put all business logic inside the CG Command. At the end of the CG Command, I need to get the ADG to expand it's grouping nodes for a particular node. What is the correct way of solving this problem because from my Command, I can't 'see' the view. Should I update the model from the Command and have a ChangeWatcher on the view to run the AdvancedDataGrid.expandChildrenOf() code? Is there a right and wrong way of solving this? Thanks, Nick
Re: [flexcoders] Cairngorm/ Command/ AdvancedDataGrid.expandChildrenOf() ?
Wel, just tell them it's an upgraded version of the cairngorm SWC. nbsp;You can just replace the SWC in the project and it'd be all good -Jake -- Sent from my Palm Prē On Apr 18, 2010 1:46 PM, Nick Middleweek lt;n...@middleweek.co.ukgt; wrote: nbsp; Hi Jake, Thanks for the info... I know this sounds crazy but because of project/ company politics we have extreem difficulty getting 3rd party libraries on the project. Are there any preferred alternative ways? Cheers, Nick On 18 April 2010 19:11, Jake Churchill lt;reyna...@gmail.comgt; wrote: nbsp; Download cairgorm extensions. nbsp;It has classes called Callbacks which basically notifies the view after a command has finished. nbsp;It's perfect for this situation. -Jake -- Sent from my Palm Prē On Apr 18, 2010 1:02 PM, Nick Middleweek lt;n...@middleweek.co.ukgt; wrote: nbsp; Hi, I'm working on a cairngorm flex app and have been told to put all business logic inside the CG Command. At the end of the CG Command, I need to get the ADG to expand it's grouping nodes for a particular node. What is the correct way of solving this problem because from my Command, I can't 'see' the view. Should I update the model from the Command and have a ChangeWatcher on the view to run the AdvancedDataGrid.expandChildrenOf() code? Is there a right and wrong way of solving this? Thanks, Nick
Re: [flexcoders] Performance feedback PLEASE
70 fps Intel Core 2 Duo @ 3Ghz flash player version 10,0,45,2 On Fri, Apr 9, 2010 at 8:27 AM, Robert VanCuren Jr robert.vancuren...@gmail.com wrote: 53 fps Intel Core 2 Duo T9400 @ 2.53GHz Flash player version 10,1,51,95 On Fri, Apr 9, 2010 at 4:51 AM, Allan Pichler dreamc...@gmail.com wrote: I was wondering if anyone could take a quick glance at my AS3 3d renderer http://api.pluton.webhouse.dk/pool3d/pool3d.html and reply what FPS they get on their gear. If you could also provide your CPU info that would be extremely helpful. For the curious the engine sports the following features: Subpixel positioning (1/4 pixel on both x y) Antialiasing Ambient light Specular light Best regards and have a wonderful day! *Allan Pichler* RIA Architect - ColdFusion/Flex/Ajax/UI Email: dreamc...@gmail.com Phone DK: +45 22 68 08 88 Phone US: +1 (415) 683 0313 Skype:apichler Yahoo:allan_pichler Facebook: www.facebook.com/apichler LinkedIn: www.linkedin.com/in/apichler
[flexcoders] RemoteClass Metadata
I am working on a Flex/.NET project using webOrb and we are going to use webOrb to auto-generate the value objects but the packaging is quite different between the server and the client. I want to use the RemoteClass aliasing in Flex but I'm not sure about the packaging differences. My question is if the server's bean is packaged like this: com.domain.app.beans.MyObject, can I put the VO in com.domain.differentAppName.vo.MyObject? Or do I HAVE to put it at com.domain.app.beans.MyObject in the Flex project as well? Thanks! -Jake
Re: [flexcoders] Flash Builder 4 dog-slow while editing MXML files
I have seen this too. I'm on a Windows 2.6GHz machine with 4GB ram and Windows 7 and it's way slower than FB3 on the same machine. My actionscript is slower as well. It has something to do with matching text instances I think but I haven't figured out how to turn it off yet. If anyone knows, I'd love to hear. Thanks! -Jake On Tue, Apr 6, 2010 at 1:14 PM, ettorepasquini ettorepasqu...@yahoo.comwrote: I am using the Flash Builder 4 on a Macbook Pro 2.4Ghz (pretty fast machine) and I noticed that the code editor has gotten extremely slow when editing MXML files. Slow as in 1-character-per-second slow. It's irritating and unusable. Slowness increases with the number of components in the MXML file. Even files with just a few components show a noticeable lag while typing. Anybody else is experiencing this behavior? I tried disabling everything I could in the prefs to no avail. What can I do to improve responsiveness?
Re: [flexcoders] Re-Compiling MXML with Flex 4 (Before I Used Flex 3.X)
I'm pretty sure 1 and 3 can both be accomplished by setting the theme property on the application to halo which used to be the default. Now the default is spark which is the visual change and I believe the backgroundGradient is no longer applicable there but still is on halo. -Jake On Fri, Mar 26, 2010 at 2:44 PM, Angelo Anolin angelo_ano...@yahoo.comwrote: I am in the process of re-compiling some of the MXML files I have done using Flex 4 from Flex 3. So far, some of my source codes have compiled properly, and most of them simply trigger an error when it comes to the backgroundGradientColors of the application container. Other than that, I am amazed at the size of the compiled SWF (using flex 3.X, my SWF size was around 400KB) while using Flex 4.0, the SWF got to around 50KB which is a remarkable improvement. BTW, I am simply using the command line compiler in order to generate the SWF file. Anyway, I have some few questions as I further perform the re-compilation. 1. Since I (and my users) are already quite happy with the unstyled visual look of the SWF when compiled using Flex 3.X, using Flex 4, the look comes a little different. Is there a certain way that I could possibly insert in the command line to retain the old look for my compiled SWF applications? Or would I need to apply some CSS and styling so as to retain the previous look of the application? 2. Previously, the datagrid did not wrap the text in the column width. In Flex 4, it seems to automatically wrap with regards to the width of the column. Is there a way to prevent this? 3. I'd like to retain the backgroundGradient property but at a loss on how to work around this using the latest Flex compiler. Any suggestions? I am sure I would have further questions, knowing that I have basically started porting some source to be compiled with the latest Flex version. Thanks. Regards, Angelo
[flexcoders] Framework Choice
I have been tasked with architecting a large application for a company a friend of mine works at. I will also do some of the coding and act as a mentor, teaching people on staff the ins and outs of Flex. In the past, I've always used Cairngorm and Cairngorm w/ UM Extensions for a framework. I wrote a very basic app w/ Mate once just to learn it and I didn't really like it. So, my question to everyone here is what Framework would you chose? Keep in mind, the people I'll be working with are relatively new to flex and the application is going to end up being quite large. Down the road it will likely have an AIR counterpart. We might use modules but for now I'm staying away from that because it adds another layer of complexity that in the initial stages is not needed. My thoughts on this are that Cairngorm would be easier to learn for them and they had talked about brining more people on in the future for this project. If that's the case, it would likely be easier to find people familiar with Cairngorm than some of the alternatives. But, I don't want to rule out any of the alternatives if they might actually be a better choice. Opinions please. Thanks! -Jake Churchill
Re: [flexcoders] Re: Framework Choice
I have never written an app using modules. I understand the logic behind it, I've just never had the need. Is there anything regarding modules that I should know before starting? On Wed, Mar 24, 2010 at 10:27 AM, valdhor valdhorli...@embarqmail.comwrote: I have an extremely large enterprise application (24 modules and counting) that does not use any framework. If you can discipline yourself in the way you organize your code, I don't really see the need for a framework. It just adds complexity in my view. I would recommend starting with modules if you see the need may be coming later on. I started with a monolithic app while I was learning Flex and had to change over to modules six months in. That was no fun I can tell you. Now that each part is in a module it makes it much easier for other team members to modify the code. It is also a lot easier to follow the logic. I would also recommend a versioning system - we use Subversion. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reyna...@... wrote: I have been tasked with architecting a large application for a company a friend of mine works at. I will also do some of the coding and act as a mentor, teaching people on staff the ins and outs of Flex. In the past, I've always used Cairngorm and Cairngorm w/ UM Extensions for a framework. I wrote a very basic app w/ Mate once just to learn it and I didn't really like it. So, my question to everyone here is what Framework would you chose? Keep in mind, the people I'll be working with are relatively new to flex and the application is going to end up being quite large. Down the road it will likely have an AIR counterpart. We might use modules but for now I'm staying away from that because it adds another layer of complexity that in the initial stages is not needed. My thoughts on this are that Cairngorm would be easier to learn for them and they had talked about brining more people on in the future for this project. If that's the case, it would likely be easier to find people familiar with Cairngorm than some of the alternatives. But, I don't want to rule out any of the alternatives if they might actually be a better choice. Opinions please. Thanks! -Jake Churchill
Re: [flexcoders] Do you need to uninstall Flex Builder 3 before installing Flash Builder 4??
I was told by Adobe prior to buying FB4 that FB4 will install a new separate instance so they should be able to coexist. On Wed, Mar 24, 2010 at 11:59 AM, fred44455 fred44...@yahoo.com wrote: Or can they coexist together?
Re: [flexcoders] Arrows for TabNavigator
Add an event listener for the keyDown event and do event.preventDefault(); event.stopPropagation(); event.stopImmediatePropagation();. That should take care of it as long as you catch it before it gets anywhere. If that doesn't work, you'll need to extend tabNavigator in a custom component and manage the events there. According to the source, if you capture override the keyDownHandler() method, you should be able to accomplish this. -Jake On Fri, Mar 19, 2010 at 12:15 PM, Christophe christophe_jacque...@yahoo.frwrote: Hello, How to cancel the left and right arrow event for a TabNavigator ? Thank you, Christophe,
Re: [flexcoders] Please tell me if this is a good way to learn AS3??
If you want to learn AS3, first learn syntax. Since you know Java I assume this is not a problem because it's almost the same. Then, focus on learning the framework (what classes are available, etc). Finally, dig into the component lifecycle. This is the hardest but is important to know how components live in order to build your custom components in a way that integrates perfectly into the core. I agree, don't just copy java. Use tutorials and definitely take advantage of anything that is open source. Seeing how others did something will help you overcome a lot of hurdles. -Jake On Wed, Mar 3, 2010 at 1:52 PM, primo411 primo...@gmail.com wrote: IMHO this is a bad idea. Every language has its specificities. As3 and Java do not achieve the same goals. Why don't you just stick with tutorials, documentation, and learn the language and its best practices from the start ? This should keep you busy for a while. Then you can start making parallels between as3 and Java. 2010/3/3 fred44455 fred44...@yahoo.com I have find limited examples on AS3 therefore I am using a lot of Java programs and pretty much switching them into the AS3 language and run them and it seems to work. From your expertise is it a good way to learn AS3? (Of course I am making changes as Java is similar to AS3 but not identical)
Re: [flexcoders] Re: Dynamically create a Value Object...
You could probably try having a base VO for all the properties that you know will be there and include a single property in the VO which would be either a Dictionary or a generic object used as an associative array to handle all your custom properties. Then just populate the VO like you normally would and when it comes to extra properties, throw them in that one extra VO property. You'd have to have some kind of parsing method on both ends but I'd think this would work without too much trouble. -Jake On Tue, Mar 2, 2010 at 3:21 PM, Laurence lmacne...@comcast.net wrote: We're using an SQL database with a ColdFusion intermediary between the Flex app and the database... I've used XML files to configure a couple of the components -- give the user the option to change the layout of a component, for example, by modifying the contents of a config.xml file, that sort of thing... But I don't see us replacing our database with a bunch of XML files... (Or maybe I completely misunderstood your reply, which is quite possible...) I was hoping that there might be a way to get the program to modify its VOs by reading from an XML file what fields I want the VO to store... But honestly, I don't care where that info is stored... I just need to figure out how to dynamically modify a VO (and have ColdFusion realize that the VO has been changed by the Flex app) so I can deal with databases that have had fields added or changed without having to re-compile the entire program every time... And then, of course, how to reference these dynamically-modified VOs in my program. Thanks, L. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Hi Laurence, I'm pretty new to Flex so there might be reasons to stick with Value Objects that I'm unaware of but you can definitely read and write XML and generate forms, layouts, etc on the fly based on the XML contents. I've used E4X to query XML data that I've sucked in from an HTTP call, modified the XML using E4X and pinged it back up to the HTTP server to save the XML data for later use. Hope that helps... Cheers, Nick -- http://blog.middleweek.co.uk/ On 2 March 2010 19:19, Laurence lmacne...@... wrote: The program that I'm working on is for a company that does registrations for conventions and trade-shows. Different clients want different information stored for each show. Most of the information is the same from show-to-show, but every show has certain customizations that need to be done. The way they're doing it now is by going into the source code of their program and modifying it that way. We could do the same thing with our Flex app, but I'm trying like heck to avoid that... The problem I'm running into is the Flex Value Objects -- they pretty much have to be compiled into the .SWF file, which means we're stuck modifying source-code and re-compiling for each individual show. Not the solution we want. Is there a way to dynamically create and/or modify Value Objects so they can be changed without re-compiling the .SWF file? So that if a particular client wants stuff tracked that a different client doesn't want tracked, we don't have to create a generic version of our database that has all these extra fields in it, which most clients don't need? As it stands right now, the Value Objects force us to make every database for every show exactly the same -- unless we modify the Value Objects for each individual show and re-compile a separate .SWF file for that show... If there were a way to write, say, an .XML file that the program could read and modify itself accordingly for each show, that would be brilliant. Is there a way to do that? Thanks, Laurence MacNeill Mableton, Georgia, USA
Re: [flexcoders] Photo gallery
Here's an example from adobe. http://examples.adobe.com/flex2/inproduct/sdk/photoviewer/PhotoViewer.html right click and view the source. There will be a link to download all source code. On Fri, Feb 19, 2010 at 9:30 AM, Juan jj101...@yahoo.com wrote: How to created a picture gallery With thumbnails on the felf side an the picture shows on the right ! Some links and advice ! Sent from my iPhone
Re: [flexcoders] Collapsible Panel
just make your layout then look at animateProperty. You can build one of those from scratch in about 10 minutes. 2010/2/19 Jose adriano Alves alves.jadri...@gmail.com Hello, I need a collpsible panel, like ExtJS Panel [1]. It´s been hard to find one... I am a newbee yet in Flex and I use Adobe Flash Builder 4. [1] http://www.extjs.com/deploy/dev/examples/layout/complex.html Take a look at West and East Side Panels. -- Att. José Adriano Alves Analista de Sistemas - Móveis Gazin. Cel..: +55 44 8802 3994 Fone: + 55 44 3663 8000 - 2319 Mail: alves.jadri...@gazin.com.br MSN: jose.adri...@gazin.com.br Este e-mail, seu conteúdo e seus anexos estão sujeitos à privilégio de comunicação podendo este documento incluir informação confidencial e de propriedade restrita da GAZIN e apenas pode ser lido por aqueles a qual o mesmo tenha sido endereçado. Se você recebeu essa mensagem de e-mail indevidamente, por favor avise-nos imediatamente. Quaisquer dados, opiniões ou informações expressadas neste e-mail pertencem ao seu remetente e não necessariamente coincidem com aquelas da GAZIN, são de exclusiva responsabilidade do signatário. Este documento não pode ser reproduzido, copiado, distribuído, publicado ou modificado por terceiros, sem a prévia autorização por escrito da GAZIN. Antes de imprimir pense em seu compromisso com o Meio Ambiente
Re: [flexcoders] Re: Why most Flex Developer job ads ask now for Knowledge in Java??
I think the server technology experience part of the requirements are usually cut and paste. But if you have a large system already built in Java and they want to integrate some Flex UI stuff into the mix, they probably want someone who at least understands how the backend works. If the company gets 2 applicants, one with just flex and one with flex and java experience, which do you think they'll pick? More food for thought :) On Wed, Feb 17, 2010 at 9:53 AM, djhatrick djhatr...@yahoo.com wrote: Don't you think those requirements are cut and paste? Being a good flex developer with experience in other structured languages is good, but usually isn't a deal-breaker, I mean really, are you going to be crafting a backend unit and doing all the ui too? If you are, well more power to you, I find the flex/air sandbox enough work to keep my nose out of most of the backend, on big projects anyway. Food for thought. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, fred44455 fred44...@... wrote: Since this year you don't seems to be able to find a Job Offer in Flex without the requirement: Knowledge in Java, JEE2 etc.. required( Most job ads in Dice.com) Is that mean that now not only I need to learn Flex but also Java to be able to find a Flex Developer job??
Re: [flexcoders] HTTPService return times Air vs Flash
I've been told that Firefox limits the amount of processor power that the flash player plugin is allowed to use. That may be your problem. Perhaps it also limits network usage/bandwidth. I can't confirm this is true but your results seem to point that direction. FYI, FF 3.6 was recently released. Maybe try that to see if they have done anything under the hood to help flash performance. -Jake On Thu, Feb 11, 2010 at 11:08 AM, Lee Jenkins l...@datatrakpos.com wrote: Lee Jenkins wrote: Lee Jenkins wrote: Web based flex applications seem to take magnitudes longer to return a result than do Air based application. I've tried with HTTPService and URLLoader components and it is the same. I've created one small air application and one small web based flex app identical. Air app is almost instantaneous while the web page based app (Firefox) takes noticeably longer. My guess is that browser mechanics (security, etc) is the culprit. Any suggestions or comments? I take this back. My mistake and should have checked it before posting, but the truth is that Air applications run from the IDE are magnitudes faster that web page based flex app run from the IDE. When testing response times with the COMPILED web based flex app OUTSIDE of the IDE, the difference was noticeable, but negligent. OK, I'll get my head screwed on right today sometime. It appears that its Firefox (3.5.7) that causes the delay. Two test applications with exactly the same code. One is deployed to AIR and the other to a basic webpage, letting FlexBuilder create the html page, etc. SWF running directly in flash player: - Little to no difference, fast AIR app (either in debug mode or not): - Little to no difference, fast SWF running in Internet Explorer 8.0: - Little to no difference, fast FireFox 3.5.7 - Noticeably slower. Everything including server is running local on my computer (3 Gigs of RAM, Vista 32bit) and just to be sure, I disabled all add-ins and plug-ins for Firefox and the result is consistently the same. Using either a URLLoader or HTTPService to pull down xml, Firefox takes a while longer to send the request to the server, once the URLLoader or HTTPService sends methods have been called, than the other methods mentioned above. The server application is my own Delphi/FreePascal based server so I could set a break point on the socket creation line to see exactly when the server received the request from the flex application. With Firefox (as opposed to Air application, Internet Explorer or running the naked swf file in Flash Player) the time it takes for the server to get the request is significantly longer (1.5 secs on average subjective speed) thus providing an overall and significantly longer delay to process the request from click to response. -- Warm Regards, Lee
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
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
Re: [flexcoders] Flex write xml file in server?
Flex can only talk to the client machine. You NEED a server language if you want anything done on the server. On Mon, Feb 8, 2010 at 11:25 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: No. -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of markflex2007 Sent: Monday, February 08, 2010 12:24 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Flex write xml file in server? Do you think if that is possible? I want to only use Flex not other server languages. Thanks Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Flex Chart Horizontal Axis
I agree. Adding a 2nd series (LineSeries) would be the easiest. You just have to fake the dataprovider so it draws the line how you want it. Also, instead of a BarChart you need to change it to a CartesianChart to mix and match different types of series. On Tue, Nov 24, 2009 at 9:52 AM, invertedspear invertedsp...@yahoo.comwrote: I don't remember how to do it, but when I had to do this a couple years ago I found it easier to add a line series to the chart where I wanted it than to add a single gridline. Maybe that's a route you can explore until someone comes up with something better :-) ~Mike --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, jch92592 jch92...@... wrote: I have a Flex Bar Chart that I would like to add *one* grid line to at a specific location on the horizontal axis. I have tried using the verticalChangeCount with mixed results. This grid line will be provided to indicate a goal for a KPI. Any suggestions? Thank you, JCH
Re: [flexcoders] Re: LineSeries
Yes, that is possible but you have to remember that each image you display will be a subsequent request to the web server. If you embed the image, you embed it once and use it a bunch of times without subsequent requests. On Tue, Nov 17, 2009 at 12:54 PM, Vivian Richard kanps...@gmail.com wrote: Is it possible to do it with out embedding the image? Just creating am iamge and then pointing the source of the image to the image component. Instead Embedding all the images. On Tue, Nov 17, 2009 at 10:07 AM, turbo_vb timh...@aol.com wrote: Just read your last post a little more. To add an Image control, first create a var: private var myImage:Image; Then in createChildren(): override protected function createChildren():void { super.createChildren(); if ( !myImage ) { myImage = new Image(); addChild( myImage ); } } -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, turbo_vb timh...@... wrote: Ok 2 things, better to change the image in the set data method and then invalidateDisplayList(); because updateDisplayList gets called a lot more frequently than than the data changes. And for the image, add an Image control to the UIComponent itemRenderer in createChildren. (remember to setActualSize and position in updateDisplayList). Then when the data changes, inspect it and change the source of the image to one of several embedded image classes in the itemRenderer. Something like: [Embed(source=../assets/butterfly.gif)] public var myButterfly:Class; [Embed(source=../assets/grassHopper.gif)] public var myGrassHopper:Class; public function set data(value:Object):void { // perform conditional logic here // don't know your code, so psuedo if ( butterfly ) { myImage.source = myButterfly; } if ( grasshopper ) { myImage.source = myGrasshopper; } super.invalidateDisplayList(); } -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Vivian Richard kanpsack@ wrote: Thanks for the reply. I got the logic part. In updateDisplayList I get the data like data.item.type = spider or bee or butterfly . so depending on the type I want to show the image of the insects. But the problem is since this itemrenderer inherits UIComponent, I cannot or do not know how to add an image on it. On Tue, Nov 17, 2009 at 9:28 AM, turbo_vb TimHoff@ wrote: Thanks Vivian, For the plot chart, you can do the same type of thing, except with more images, with an itemRenderer. Just like the way you can change icons, or images, in a List itemRenderer, the same can be done with a chart. In the last sample, you can see how to inspect the data; to determine which image class to display. This next http://www.timothyhoff.com/projects/ChartLabeledRendererSample/srcview/index.html Sample http://www.timothyhoff.com/projects/ChartLabeledRendererSample/ChartLabeledRendererSample.html shows how you can use an itemRenderer that extends UIComponent. This is a little different than creating an itemRenderer that extends ProgrammaticSkin, as it gives you a lot more flexibility. Between the two samples, you might be able to come up with a solution. If you get stuck, please feel free to reach out. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Vivian Richard kanpsack@ wrote: Liked your example. Sleek!!! By the way I am trying to write an itemrenderer for plot chart. Depending on the value of the plot item I want to show different icons in the plotted spot. These is an example of plot chart where you can embed an image but in that way you can only put same image in one series. Here is the link: http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_12.html The butterfly example - I am talking about. On Mon, Nov 16, 2009 at 3:02 PM, turbo_vb TimHoff@ wrote: Cool, yeah I should have said custom lineSegmentRenderer. -TH --- In flexcoders@yahoogroups.comflexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Jake Churchill reynacho@ wrote: THANK YOU. I have seen this before and I've been looking for it forever. The stinking chart components are all in the dataviz SWC and I couldn't get past a null error I was getting. On Mon, Nov 16, 2009 at 4:43 PM, turbo_vb TimHoff@ wrote: Sorry bout that, let's try it again: Sample http://www.timothyhoff.com/projects/LineRendererSample/LineRendererSample.html -TH --- In flexcoders@yahoogroups.comflexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Jake Churchill reynacho@ wrote
Re: [flexcoders] Re: LineSeries
I'm not sure what happens in memory but I have an application with a PlotSeries and every time the trend switches to either positive or negative I have to display a green or red arrow (around 10-15 times on an average chart) and when I was monitoring it during development I was able to see each request to the server. You could cache the images with a Dictionary object (google cached itemRenderers for example code). I would suggest using the source pointed to the server at first and if you see any lag, then you can embed the images or try some kind of caching On Tue, Nov 17, 2009 at 1:03 PM, Vivian Richard kanps...@gmail.com wrote: Got your point - very clearly. But Every time a point is rendered, does it mean that for each point all the images will be attached with the app. I mean is there a possibility that these images will be duplicated? On Tue, Nov 17, 2009 at 10:57 AM, Jake Churchill reyna...@gmail.comwrote: Yes, that is possible but you have to remember that each image you display will be a subsequent request to the web server. If you embed the image, you embed it once and use it a bunch of times without subsequent requests. On Tue, Nov 17, 2009 at 12:54 PM, Vivian Richard kanps...@gmail.comwrote: Is it possible to do it with out embedding the image? Just creating am iamge and then pointing the source of the image to the image component. Instead Embedding all the images. On Tue, Nov 17, 2009 at 10:07 AM, turbo_vb timh...@aol.com wrote: Just read your last post a little more. To add an Image control, first create a var: private var myImage:Image; Then in createChildren(): override protected function createChildren():void { super.createChildren(); if ( !myImage ) { myImage = new Image(); addChild( myImage ); } } -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, turbo_vb timh...@... wrote: Ok 2 things, better to change the image in the set data method and then invalidateDisplayList(); because updateDisplayList gets called a lot more frequently than than the data changes. And for the image, add an Image control to the UIComponent itemRenderer in createChildren. (remember to setActualSize and position in updateDisplayList). Then when the data changes, inspect it and change the source of the image to one of several embedded image classes in the itemRenderer. Something like: [Embed(source=../assets/butterfly.gif)] public var myButterfly:Class; [Embed(source=../assets/grassHopper.gif)] public var myGrassHopper:Class; public function set data(value:Object):void { // perform conditional logic here // don't know your code, so psuedo if ( butterfly ) { myImage.source = myButterfly; } if ( grasshopper ) { myImage.source = myGrasshopper; } super.invalidateDisplayList(); } -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Vivian Richard kanpsack@ wrote: Thanks for the reply. I got the logic part. In updateDisplayList I get the data like data.item.type = spider or bee or butterfly . so depending on the type I want to show the image of the insects. But the problem is since this itemrenderer inherits UIComponent, I cannot or do not know how to add an image on it. On Tue, Nov 17, 2009 at 9:28 AM, turbo_vb TimHoff@ wrote: Thanks Vivian, For the plot chart, you can do the same type of thing, except with more images, with an itemRenderer. Just like the way you can change icons, or images, in a List itemRenderer, the same can be done with a chart. In the last sample, you can see how to inspect the data; to determine which image class to display. This next http://www.timothyhoff.com/projects/ChartLabeledRendererSample/srcview/index.html Sample http://www.timothyhoff.com/projects/ChartLabeledRendererSample/ChartLabeledRendererSample.html shows how you can use an itemRenderer that extends UIComponent. This is a little different than creating an itemRenderer that extends ProgrammaticSkin, as it gives you a lot more flexibility. Between the two samples, you might be able to come up with a solution. If you get stuck, please feel free to reach out. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Vivian Richard kanpsack@ wrote: Liked your example. Sleek!!! By the way I am trying to write an itemrenderer for plot chart. Depending on the value of the plot item I want to show different icons in the plotted spot. These is an example of plot chart where you can embed an image but in that way you can only put same image in one series. Here is the link: http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_12.html The butterfly example - I am talking about. On Mon, Nov 16, 2009 at 3
Re: [flexcoders] Re: LineSeries
yeah, or if you know flash you can embed them all into an FLA or create another SWF and just embed them all once. That usually ends up being a compile time thing for me though. On Tue, Nov 17, 2009 at 1:07 PM, turbo_vb timh...@aol.com wrote: I usually use a separate class for embeddedAssets; that would be referenced by the itemRenderer. That way, you have a central place to manage the assets and you don't risk duplication. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Vivian Richard kanps...@... wrote: Got your point - very clearly. But Every time a point is rendered, does it mean that for each point all the images will be attached with the app. I mean is there a possibility that these images will be duplicated? On Tue, Nov 17, 2009 at 10:57 AM, Jake Churchill reyna...@... wrote: Yes, that is possible but you have to remember that each image you display will be a subsequent request to the web server. If you embed the image, you embed it once and use it a bunch of times without subsequent requests. On Tue, Nov 17, 2009 at 12:54 PM, Vivian Richard kanps...@...wrote: Is it possible to do it with out embedding the image? Just creating am iamge and then pointing the source of the image to the image component. Instead Embedding all the images. On Tue, Nov 17, 2009 at 10:07 AM, turbo_vb timh...@... wrote: Just read your last post a little more. To add an Image control, first create a var: private var myImage:Image; Then in createChildren(): override protected function createChildren():void { super.createChildren(); if ( !myImage ) { myImage = new Image(); addChild( myImage ); } } -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, turbo_vb TimHoff@ wrote: Ok 2 things, better to change the image in the set data method and then invalidateDisplayList(); because updateDisplayList gets called a lot more frequently than than the data changes. And for the image, add an Image control to the UIComponent itemRenderer in createChildren. (remember to setActualSize and position in updateDisplayList). Then when the data changes, inspect it and change the source of the image to one of several embedded image classes in the itemRenderer. Something like: [Embed(source=../assets/butterfly.gif)] public var myButterfly:Class; [Embed(source=../assets/grassHopper.gif)] public var myGrassHopper:Class; public function set data(value:Object):void { // perform conditional logic here // don't know your code, so psuedo if ( butterfly ) { myImage.source = myButterfly; } if ( grasshopper ) { myImage.source = myGrasshopper; } super.invalidateDisplayList(); } -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Vivian Richard kanpsack@ wrote: Thanks for the reply. I got the logic part. In updateDisplayList I get the data like data.item.type = spider or bee or butterfly . so depending on the type I want to show the image of the insects. But the problem is since this itemrenderer inherits UIComponent, I cannot or do not know how to add an image on it. On Tue, Nov 17, 2009 at 9:28 AM, turbo_vb TimHoff@ wrote: Thanks Vivian, For the plot chart, you can do the same type of thing, except with more images, with an itemRenderer. Just like the way you can change icons, or images, in a List itemRenderer, the same can be done with a chart. In the last sample, you can see how to inspect the data; to determine which image class to display. This next http://www.timothyhoff.com/projects/ChartLabeledRendererSample/srcview/index.html Sample http://www.timothyhoff.com/projects/ChartLabeledRendererSample/ChartLabeledRendererSample.html shows how you can use an itemRenderer that extends UIComponent. This is a little different than creating an itemRenderer that extends ProgrammaticSkin, as it gives you a lot more flexibility. Between the two samples, you might be able to come up with a solution. If you get stuck, please feel free to reach out. -TH --- In flexcoders@yahoogroups.comflexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Vivian Richard kanpsack@ wrote: Liked your example. Sleek!!! By the way I am trying to write an itemrenderer for plot chart. Depending on the value of the plot item I want to show different icons in the plotted spot. These is an example of plot chart where you can embed an image
[flexcoders] LineSeries
I'm struggling with how to hide a section of a LineSeries. Does anyone have any pointers or links to point me in the right direction? Thanks! -Jake
Re: [flexcoders] Re: LineSeries
I've been trying something like this but item renders and actual segments of the line seem to be drawn separately. By the way, your link doesn't work. On Mon, Nov 16, 2009 at 3:35 PM, turbo_vb timh...@aol.com wrote: Hi Jake, You could do it with a custom itemRenderer and control the alpha or actual drawing; based on a data property. Here's a custom renderer sample to get you started: Colored Line Chart Samplehttp://www.flashcomguru.com/index.cfm/2009/11/11/pdf-for-flex-devs -TH --- In flexcoders@yahoogroups.com, Jake Churchill reyna...@... wrote: I'm struggling with how to hide a section of a LineSeries. Does anyone have any pointers or links to point me in the right direction? Thanks! -Jake
Re: [flexcoders] Re: LineSeries
THANK YOU. I have seen this before and I've been looking for it forever. The stinking chart components are all in the dataviz SWC and I couldn't get past a null error I was getting. On Mon, Nov 16, 2009 at 4:43 PM, turbo_vb timh...@aol.com wrote: Sorry bout that, let's try it again: Samplehttp://www.timothyhoff.com/projects/LineRendererSample/LineRendererSample.html -TH --- In flexcoders@yahoogroups.com, Jake Churchill reyna...@... wrote: I've been trying something like this but item renders and actual segments of the line seem to be drawn separately. By the way, your link doesn't work. On Mon, Nov 16, 2009 at 3:35 PM, turbo_vb timh...@... wrote: Hi Jake, You could do it with a custom itemRenderer and control the alpha or actual drawing; based on a data property. Here's a custom renderer sample to get you started: Colored Line Chart Sample http://www.flashcomguru.com/index.cfm/2009/11/11/pdf-for-flex-devs -TH --- In flexcoders@yahoogroups.com, Jake Churchill reynacho@ wrote: I'm struggling with how to hide a section of a LineSeries. Does anyone have any pointers or links to point me in the right direction? Thanks! -Jake
Re: [flexcoders] Re: LineSeries
Yeah, I knew what you meant. On Mon, Nov 16, 2009 at 5:02 PM, turbo_vb timh...@aol.com wrote: Cool, yeah I should have said custom lineSegmentRenderer. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reyna...@... wrote: THANK YOU. I have seen this before and I've been looking for it forever. The stinking chart components are all in the dataviz SWC and I couldn't get past a null error I was getting. On Mon, Nov 16, 2009 at 4:43 PM, turbo_vb timh...@... wrote: Sorry bout that, let's try it again: Sample http://www.timothyhoff.com/projects/LineRendererSample/LineRendererSample.html -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reynacho@ wrote: I've been trying something like this but item renders and actual segments of the line seem to be drawn separately. By the way, your link doesn't work. On Mon, Nov 16, 2009 at 3:35 PM, turbo_vb TimHoff@ wrote: Hi Jake, You could do it with a custom itemRenderer and control the alpha or actual drawing; based on a data property. Here's a custom renderer sample to get you started: Colored Line Chart Sample http://www.flashcomguru.com/index.cfm/2009/11/11/pdf-for-flex-devs -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reynacho@ wrote: I'm struggling with how to hide a section of a LineSeries. Does anyone have any pointers or links to point me in the right direction? Thanks! -Jake
Re: [flexcoders] Water Marker Issue(urgent)
Did the app originate from FB2? I had that issue and it's because FB2 had a separate licence for charting. If you have FB3 Pro you can get the 2nd license for free through Adobe -- Sent from my Palm Prē Shashi wrote: Hi, I am using flexbuilder3. I have got a licensed version of it. I have built a chart,and running the application in eclipse. But there is a water marker in it. I tried to give the license in the flex-config.xml, but when i run my application,it says ERROR : UNKNOWN Configuration VARIABLE Licenses' Can anybody help me. Thanks.
Re: [flexcoders] Re: LineSeries.showDataEffect - MXML vs. AS3 - bug?
The same thing happens if you are trying to align components inside a canvas using right/left/top/bottom. In mxml it's fine but you have to use setStyle in AS. I think it just has to do with whether the property was set up as a Style or a Property in the main component. In MXML, you get to them the same way but in AS they are separate (due to the component lifecycle) On Thu, Oct 29, 2009 at 2:36 PM, jmerrill_2001 jason.merr...@bankofamerica.com wrote: Right after I posted this, I found a workaround: myLineSeries.setStyle('showDataEffect', 'myEffect'); But it still bothers me myLineSeries.showDataEffect = myEffect does not work - isn't that a bug? This is the kind of thing that can be really frustrating when you move back and forth between MXML and Actionscript. How does anyone learn these little rules that say, showDataEffect is a style that has to be set, not a property you can set directly. Anyone have any insight on this? Jason
Re: [flexcoders] Getting rid of the Scrollbar in the List Item
set horizontalScrollPolicy=off in your renderer On Tue, Oct 27, 2009 at 12:11 AM, steveb805 quantumcheese...@gmail.comwrote: After a marathon Google-fest/Adobe Help Site search, I have not been able to figure out how an elegant, best-practice, or any other way to get rid of the horizontal scroll bar that appears when some text doesn't fit into an Item. You probably have been through this before, but I'll show you the image of my List control: http://www.lucidrhino.com/images/list_image.JPG Should I simply, in my custom ItemRenderer, just check the length of that field (which is data.description) and simply truncate it to some short arbitrary length ? Sounds the most straightforward way. Thanks, Steve
Re: [flexcoders] Highlighting a Chart Collumn?
You can create a custom line renderer and change the color of the line for the section selected. Check out this sampler for ideas: http://demo.quietlyscheming.com/ChartSampler/app.html On Mon, Oct 26, 2009 at 10:29 AM, jmerrill_2001 jason.merr...@bankofamerica.com wrote: Is there a way to highlight either an entire y axis in a line chart collumn based on a value, or at least, a single data point in the line chart? For example, I have a line chart and a datagrid below it. I'd like to highlight a collumn in the line chart based on a matching value in what the user selected in the datagrid. So, if say, they selected an item in the datagrid which contained a value of SP3, I'd like to highlight somehow visually the entire vertical Y collumn in my line chart maked as SP3 (or at least the matching points int the horizontal lines that intersect it). I've googled this and checked the docs to death and haven't figured out a way to do this. Thanks, Jason Merrill Bank of America
Re: [flexcoders] Re: Highlighting a Chart Collumn?
The files are generally named based on the example that you click on, ie styles would be in the styles package, etc. On Mon, Oct 26, 2009 at 10:57 AM, jmerrill_2001 jason.merr...@bankofamerica.com wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reyna...@... wrote: You can create a custom line renderer and change the color of the line for the section selected. Check out this sampler for ideas: http://demo.quietlyscheming.com/ChartSampler/app.html Great thanks - that gets me going in the right direction, however, digging through all that example sourcecode is like finding a needle in the haystack. I did find some itemRenderer code, but not quite sure if it was the right one, and also not sure how to make the highlight I draw appear on a specific place in the chart based on the collum name. Anything you can point me to? Thanks, much appreciated.
Re: [flexcoders] ArrayCollection of VO's Memory Leak??
Where do you go to see that? All I can see is the number of instances an object has and the memory those instances take up? On Fri, Oct 23, 2009 at 1:10 AM, Alex Harui aha...@adobe.com wrote: The profiler should be able to show you who is still referencing the objects. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Jake Churchill *Sent:* Thursday, October 22, 2009 10:57 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] ArrayCollection of VO's Memory Leak?? Hi all, I have a charting application where I have an ArrayCollection of VO's. The chart has several series, each looking at one property in the VO. There are several controls that when changed, require a re-calculation of the VO's in the ArrayCollection. Before I do the re-calculation, I call .removeAll() on the ArrayCollection and re-populate it with new VO's. When I run the profiler, my VO instances grow with each re-calculation. So, why doesn't the garbage collector take care of the objects that got removed from the ArrayCollection? How can I fix this? Please help. Thanks! -Jake
Re: [flexcoders] Re: Question?? Best method for plotting a Moving Average
We do the same thing. See this screen shot: http://www.reynacho.com/wp-content/uploads/2009/05/cse-charting.jpg There's a lot more than just a moving average and bollinger bands there but those are parts of it. In order to get this data, we first tapped into a feed which you have to pay good money for. I believe we are using NxCore which I think is a DTN product. You might look into that but I know there are others as well. For the data, we pass data into a java library called ta-lib: http://ta-lib.org/ It has methods for moving averages, deviations, etc. We found that the calculations for our app were simply too intense to be done on the client. But, we have 5-7 years worth of data that we are looking at for calculations so you might not run into the same bottleneck we had -Jake On Fri, Oct 23, 2009 at 11:49 AM, cjsteury2 cra...@steury.com wrote: answer.net SQL database through Web services call to Flex.../answer... would like to create a new Array based on existing Array of Ticker data.. So I need to create a new Array Collection then loop through and add the date from the Tickers Array Collection along with the Moving 20 day average of the Close Price... THEN ( I have not mentioned this ) What I REALLY want is a Standard Deviation Calcuation against the Moving Average to plot Upper and Lower Bollinger Bands Here's my initial guesstimate at building the new 20 Day Moving Average Array Collection from the Existing Array_Tickers ArrayCollection [Bindable] public var Array_BBands:ArrayCollection; (new mov avg Ac) public function bld_Array_BBands():void { Array_BBands = new ArrayCollection; for (var i:int=0;iArray_Tickers.length;i++) \\ loop through existing Array_Tickers { Array_BBands.addItem(Array_Tickers.getItemat(i).date); if (i=20) \\ start at 20th row - as Moving Avg is 20 day { var mavg_tick:Int = 0; \\ create variable to hold Moving Average mvag_tick = Array_Tickers.getItemAt(i).close.valueof(); \\ need to pick up the date of the Array_Tickers mvag_tick += Array_Tickers.getItemAt(i-1).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-2).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-3).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-4).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-5).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-6).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-7).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-8).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-9).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-10).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-11).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-12).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-13).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-14).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-15).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-16).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-17).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-18).close.valueof(); mvag_tick += Array_Tickers.getItemAt(i-19).close.valueof(); var mavg:Int = (mavg_tick/20); Array_BBands.addItem(mavg); } } } If that works ( and I have no idea if it will ) then I need to get the Standard Deviation calcualted somehow. Because the Formula for what I really want as previously stated is The Bollinger Bands formular or (MA+K*sigma) Moving Average (20 period) + or - depending if it's upper or lower (2 * sigma) Sigma is the Standard Deviation, and I am fairly certain that actionscript does not calculate the Standard Deviation, so I'll need to do that somehow and I have no idea how to do that... This is a lot for me, and I don't expect you or others have the answers but I need to get the Std Deviation caclulated from the Mean Value above and this is how to do that... http://en.wikipedia.org/wiki/Standard_Deviation I am not sure exactly the best way to proceed, but if anyone has a suggestions... I guess I would take the difference of each number in the series above form the mean, divide the sum of the numbers by the count (20) and take the square root. It's a brain teaser and I am working on it a piece at a time. If anyone has a shortcut I'd take it. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, jc_bad28 jc_ba...@... wrote: How are you receiving your price data to plot? Price feed? Static file? What you could do is create a function to loop through the array and perform the moving average calculation and add the result as an extra column in the array. Are you plotting the full historic price data set? If so, your MA will begin at the nth bar where n is your MA period setting. eg.. a 20 day MA won't start until the 20th day into the data set. If you're using a static dataset, you could do the calculation in Excel and then save the entire datset as XML and just bring
Re: [flexcoders] ArrayCollection of VO's Memory Leak??
Ah, for anyone else curious, you have to take a memory snapshot before this will work On Fri, Oct 23, 2009 at 3:06 PM, Alex Harui aha...@adobe.com wrote: Double click on the object and it should show you all references to that object. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Jake Churchill *Sent:* Friday, October 23, 2009 9:30 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] ArrayCollection of VO's Memory Leak?? Where do you go to see that? All I can see is the number of instances an object has and the memory those instances take up? On Fri, Oct 23, 2009 at 1:10 AM, Alex Harui aha...@adobe.com wrote: The profiler should be able to show you who is still referencing the objects. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Jake Churchill *Sent:* Thursday, October 22, 2009 10:57 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] ArrayCollection of VO's Memory Leak?? Hi all, I have a charting application where I have an ArrayCollection of VO's. The chart has several series, each looking at one property in the VO. There are several controls that when changed, require a re-calculation of the VO's in the ArrayCollection. Before I do the re-calculation, I call .removeAll() on the ArrayCollection and re-populate it with new VO's. When I run the profiler, my VO instances grow with each re-calculation. So, why doesn't the garbage collector take care of the objects that got removed from the ArrayCollection? How can I fix this? Please help. Thanks! -Jake
Re: [flexcoders] Flex AIR app: How to determine Operating System at run-time
Look at Capabilities. It has an os property. http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#os -Jake On Thu, Oct 22, 2009 at 10:15 AM, Tracy Spratt tr...@nts3rd.com wrote: We are creating an app that will run in an embedded linux environment, but are developing under windows. There are several functions we want to enable or disable based on whether we are running under windows or under linux. I have an init file parameter that lets me handle this, but we seem to often forget to set that param every time we publish. Is there anyway a runtime Flex AIR application can determine its host operating system? runtimeVersion and sandboxType do not seem to give me what I want. Tracy Spratt, Lariat Services, development services available
Re: [flexcoders] Flex AIR app: How to determine Operating System at run-time
my bad, os is only for in browser. look at the version property: http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#version -Jake On Thu, Oct 22, 2009 at 10:20 AM, Jake Churchill reyna...@gmail.com wrote: Look at Capabilities. It has an os property. http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#os -Jake On Thu, Oct 22, 2009 at 10:15 AM, Tracy Spratt tr...@nts3rd.com wrote: We are creating an app that will run in an embedded linux environment, but are developing under windows. There are several functions we want to enable or disable based on whether we are running under windows or under linux. I have an init file parameter that lets me handle this, but we seem to often forget to set that param every time we publish. Is there anyway a runtime Flex AIR application can determine its host operating system? runtimeVersion and sandboxType do not seem to give me what I want. Tracy Spratt, Lariat Services, development services available
[flexcoders] ArrayCollection of VO's Memory Leak??
Hi all, I have a charting application where I have an ArrayCollection of VO's. The chart has several series, each looking at one property in the VO. There are several controls that when changed, require a re-calculation of the VO's in the ArrayCollection. Before I do the re-calculation, I call .removeAll() on the ArrayCollection and re-populate it with new VO's. When I run the profiler, my VO instances grow with each re-calculation. So, why doesn't the garbage collector take care of the objects that got removed from the ArrayCollection? How can I fix this? Please help. Thanks! -Jake
Re: [flexcoders] Flex 3: AIR Local Database
I've had many thousand records before and SQLite performed just fine. The only limitation I found was with datatypes which is easily overcome in most cases. I can't comment about the rest. On Thu, Oct 22, 2009 at 5:28 PM, jwc_wensan jwcaldw...@zingit.com wrote: In all the articles I have read and some examples, it only talks about using SQLite as the database on the users' PC/Mac. Is that the only database that can be used locally? Can that database handle a large-scale commercial AIR app with tens of thousands of records? Also, since the AIR app is installed on the users PC/Mac, is there any reason to use mx:Modules? If the user needs/requires that data remain local, is AIR the best solution? Does Flex 4 solve any issues? Thoughts, options, suggestions? Thanks in advance, Jack
Re: [flexcoders] Security question
crossdomain.xml policy files On Fri, Oct 9, 2009 at 2:07 PM, Christophe christophe_jacque...@yahoo.frwrote: Hello, What is the protection against the use of my swf application on another website by a hacker with a copy of the swf file ? Thank you, Christophe,
RE: [flexcoders] Key Return for button
defaultButton Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Christophe Sent: Wednesday, October 07, 2009 8:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Key Return for button Hello, I have a button on a page of a flex application. I want that a press on the key Return has the same effect as a click on the button. How to do that ? Thank you, Christophe, No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.420 / Virus Database: 270.14.4/2417 - Release Date: 10/06/09 06:50:00
RE: [flexcoders] Send a file by Email
Use backend technology such as ColdFusion, .NET, PHP, etc. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Christophe Sent: Friday, October 02, 2009 10:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Send a file by Email Hello, How to send a joined file with an email from a flex application ? Thank you, Christopher,
RE: [flexcoders] flex on a cfm page
I do it all the time and yes, just password protect the CFM template and the server will protect your SWF. If you are being SUPER secure, you might want to code a login form for both or share sessions or something like that but in general, this is fine. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of nstokes142 Sent: Monday, September 28, 2009 1:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] flex on a cfm page I am sure that this is so basic a question that I am almost embaressed to ask but here goes . . I have a site I have built with Coldfusion. The site is password protected and uses a cfm routine to grant access to the site. I want to add a flex app on this site. I want this app to be password protected like the other pages on the site but I dont want to code a seperate log in for the flex app. Is it kosher to wrap the flex app in a cfm wrapper instead of the default html wrapper that the flex page lives on? How would you guys handle this sort of scenario? (Where the flex app is not the main app on a site) No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.113/2400 - Release Date: 09/28/09 05:51:00
RE: [flexcoders] Change Application width and height at runtime
You have to also change the width and height of the embedded SWF. You are probably just changing the stage's width and height. To do this you have to call an external javascript function using ExternalInterface. It's a very simple task, just google that and you'll find a million examples. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of superabe superabe Sent: Monday, September 28, 2009 5:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Change Application width and height at runtime Hi, I'd like to change the width and height of the top level Application object in my Flex app, at runtime. However the usual attempts to do this simple task do not seem to work. Binding does not work, changing width and height on any of the lifecycle events does not work Anybody know how to achieve this ? TIA - superabe
RE: [flexcoders] Re: How to stop a button click from changing focus
Look into the PopupManager.createPopup method http://livedocs.adobe.com/flex/3/langref/mx/managers/PopUpManager.html There is a modal attribute which is false by default. I believe if you set that to true, you'll get your desired result. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Thursday, September 24, 2009 9:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to stop a button click from changing focus Disable the application? Application.application.enabled = false; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , reflexactions reflexacti...@... wrote: If I have a popup window which has focus and I then click a button that is in the application main form the SystemManager's mouseDown handler automatically activates the main app and deactivates the popup. How can I stop that from happening. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2392 - Release Date: 09/24/09 05:52:00
RE: [flexcoders] SDK 3.2 upgrade to 3.4 issue
Thanks for the info. I was just upgrading to stay current, no particular reason so I'll hang back on 3.3 for a while until 3.5 is released. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jim Cheng Sent: Tuesday, September 22, 2009 5:14 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] SDK 3.2 upgrade to 3.4 issue Yup, something did change for the worse in 3.4 in a show-stopping way. There's a relatively easy workaround for this, just add your own listeners to HTTPService directly and those will only get called once (as opposed to the responder). Try the 3.x branch on opensource.adobe.com if you've brave, or stick with 3.3 for the time being if you can afford to wait for them to roll out the next official build. Here's the bug: http://bugs.adobe.com/jira/browse/SDK-22883 Jim Cheng EffectiveUI Jake Churchill wrote: I just installed the 3.4 SDK (previously was using 3.2). I have a project which uses Cairngorm. I switch the project to the new compiler version and re-build without any errors. However, whenever I run the project, all my events get dispatched once (I'm breaking the code all over to verify) but the result handler in the commands get hit twice. Did something change regarding event dispatching, AsyncTokens, etc that would cause this? FYI, switching back to 3.2 and re-building makes the code run just fine again. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62 079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] AreaSeries LinearGradient Fill [1 Attachment]
Here's a stumper for anyone out there (*cough* Alex). I've got a CartesianChart with an AreaSeries that has an areaFill defined as a LinearGradient (code below). An example of this kind of styling can be seen online at http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_07 .html almost all the way to the bottom of the page. My question is this. Why does the Gradient only happen between the max and min values in the dataProvider in that particular series? Look at the link and specifically, look at the yellow AreaSeries. The gradientEntries are set to 0, .33 and .66 for ratio but you can see that ratio is only applied between the min/max data points, not the minimum of the chart and the max of the chart. This is even more evident in my attachment (a screen shot of what I'm working on). The majority of the area is under the minimum value in the dataProvider so the gradient is almost non-existent (I don't have ratio's applied as you can see in the code below so it should be .5) So, hopefully I've explained my situation enough to get my point across. Can anyone explain why this is or point me in a direction to fix this in order to get a full gradient? Thanks! CODE: mx:AreaSeries id = floorSeries showDataEffect= {seriesEffect} displayName = Floor form = step yField = floor xField = historyDt mx:areaStroke mx:Stroke id= floorStroke weight = {this.getStyle('floorStrokeWeight')} alpha = {Number(ArrayCollection(this.getStyle('floorAlphas')).getItemAt(0))} color = {uint(ArrayCollection(this.getStyle('floorColors')).getItemAt(0))} / /mx:areaStroke mx:areaFill mx:LinearGradient id= floorFill angle = 90 mx:entries mx:GradientEntry id=floorFillEntry1 color={uint(ArrayCollection(this.getStyle('floorColors')).getItemAt(0))} alpha={uint(ArrayCollection(this.getStyle('floorAlphas')).getItemAt(0))} / mx:GradientEntry id=floorFillEntry2 color={uint(ArrayCollection(this.getStyle('floorColors')).getItemAt(1))} alpha={uint(ArrayCollection(this.getStyle('floorAlphas')).getItemAt(1))} / /mx:entries /mx:LinearGradient /mx:areaFill /mx:AreaSeries Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
[flexcoders] SDK 3.2 upgrade to 3.4 issue
I just installed the 3.4 SDK (previously was using 3.2). I have a project which uses Cairngorm. I switch the project to the new compiler version and re-build without any errors. However, whenever I run the project, all my events get dispatched once (I'm breaking the code all over to verify) but the result handler in the commands get hit twice. Did something change regarding event dispatching, AsyncTokens, etc that would cause this? FYI, switching back to 3.2 and re-building makes the code run just fine again. Thanks! Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
RE: [flexcoders] How to add files when exporting air application
Include them in the root of your package and when your app runs, check for them in the install directory. If they are not there, move them there. Here's some code that I use to do this with an included DB file in an AIR app: try { var dbSeed:File = File.applicationDirectory.resolvePath(ModelLocator.DATABASE_FILE_NAME); var dbPerm:File = new File(ModelLocator.DATABASE_PATH+File.separator+ModelLocator.DATABASE_FILE_NA ME); if( !dbPerm.exists ) { trace(dbPerm File did NOT exist); dbSeed.copyTo(dbPerm); } else { trace(dbPerm File DID exist); // this overwrites the file no matter whether it exists or not //dbPerm.deleteFile(); //dbSeed.copyTo(dbPerm); } } catch( err:Error ) { trace( [FileCopyError]: + err.message ); } Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of reflexactions Sent: Wednesday, September 16, 2009 7:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to add files when exporting air application If I want to add swf modules or a compiled css file that are all extern (ie there is no explicit reference to them in the actual application code) and will be loaded at run time to an AIR package how do I do it? Just to clarify, I can run the app just fine at the moment so long as I manually copy the swfs to the app install folder after installation, so this isnt a question of how to make the app run with run time loaded modules, its about how to get them into the .air file so they get installed initially. Thanks
RE: [flexcoders] Re: How to add files when exporting air application
I'm not sure on that but it may be correct. The model variables I references in the code below were set as follows in my app: public static constDATABASE_PATH : String= File.applicationStorageDirectory.nativePath; public static constDATABASE_FILE_NAME: String= 'stats.db'; the application storage directory by default (on XP) is C:\Documents and Settings\USER_NAME\Application Data\APPLICATION_NAME That's where I reference all my extra files out of. I would think this would still work with modules, wouldn't it? Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of reflexactions Sent: Wednesday, September 16, 2009 8:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to add files when exporting air application Thanks, However I understood that for security reasons AIR apps are prevented from writing to the application installation directory? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jake Churchill j...@... wrote: Include them in the root of your package and when your app runs, check for them in the install directory. If they are not there, move them there. Here's some code that I use to do this with an included DB file in an AIR app: try { var dbSeed:File = File.applicationDirectory.resolvePath(ModelLocator.DATABASE_FILE_NAME); var dbPerm:File = new File(ModelLocator.DATABASE_PATH+File.separator+ModelLocator.DATABASE_FILE_NA ME); if( !dbPerm.exists ) { trace(dbPerm File did NOT exist); dbSeed.copyTo(dbPerm); } else { trace(dbPerm File DID exist); // this overwrites the file no matter whether it exists or not //dbPerm.deleteFile(); //dbSeed.copyTo(dbPerm); } } catch( err:Error ) { trace( [FileCopyError]: + err.message ); } Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of reflexactions Sent: Wednesday, September 16, 2009 7:11 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How to add files when exporting air application If I want to add swf modules or a compiled css file that are all extern (ie there is no explicit reference to them in the actual application code) and will be loaded at run time to an AIR package how do I do it? Just to clarify, I can run the app just fine at the moment so long as I manually copy the swfs to the app install folder after installation, so this isnt a question of how to make the app run with run time loaded modules, its about how to get them into the .air file so they get installed initially. Thanks No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.99/2372 - Release Date: 09/16/09 05:51:00
RE: [flexcoders] Found the problem! Re: Don't understand how to use deferred instantiation
I believe this is where you need to change the creationPolicy on the component. Someone posted a link to that yesterday Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of biosmonkey Sent: Tuesday, September 15, 2009 9:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Found the problem! Re: Don't understand how to use deferred instantiation OK, I believe I have found the cause of the problem. The problem happens when I add a viewstack that is part of a container being added to a state with mx:AddChild If I set up a sample app with a tab navigator and three canvases, each tracing preinit, init, and creationComplete then I get this: Canvas 1 preinit Canvas 2 preinit Canvas 3 preinit Canvas 1 init Canvas 1 creationComplete This is as expected. If however, I use states (create a new state, add the tabnavigator to the state with AddChild, then activate the state) I get this: Canvas 1 preinit Canvas 1 init Canvas 2 preinit Canvas 2 init Canvas 3 preinit Canvas 3 init Canvas 1 creationComplete Canvas 2 creationComplete Canvas 3 creationComplete This is the problem! The application is driven by states (init, login, and runtime) and each state draws the gui by adding a vbox container with the gui inside it. ALL of my viewstack containers are getting initialized because of creationComplete firing! How do I make navigator deferred instantiation work with states? No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.96/2369 - Release Date: 09/15/09 05:59:00
RE: [flexcoders] accessing Array created in Private function?
Store the array in a bindable variable inside the class instead of in the function Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tex_learning_flex Sent: Tuesday, September 15, 2009 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] accessing Array created in Private function? I created an array within a private function. I now need to access that array for an item renderer. How can I access this array? (I know it's obvious that I'm really a newbie!) thanks, Tex No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.96/2369 - Release Date: 09/15/09 05:59:00
RE: [flexcoders] Don't understand how to use deferred instantiation
Yes, a viewstack loads everything when the app loads. If you don't want that, I think you need to use states instead Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of biosmonkey Sent: Monday, September 14, 2009 1:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Don't understand how to use deferred instantiation I am having trouble understanding how to use deferred instantiation. I have a project with a viewstack, and the viewstack has a lot of canvas containers for different pages that are activated according to user selection on a menubar. Each page inside the canvas is actually one or two components. The problem is that each of these components has some custom code attached to the creationComplete event that loads external string files. What I am seeing is that all containers and the components are initializing when the application loads, and all string files are being loaded, regardless of the current viewstack view. This is creating a serious performance problem. To test the child controls, I added some alerts inside the page components as well (such as a label) that are attached to creationComplete and addedToStage. Both events are firing when the app loads, for all viewstack containers. I don't understand this. What exactly is being deferred? Do all components/child components/controls go through the initialization process and fire creationComplete, regardless of whether they are visible? Can someone please enlighten me on how to use this correctly? No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.96/2369 - Release Date: 09/14/09 05:51:00
RE: [flexcoders] Don't understand how to use deferred instantiation
Yeah, I always forget that you can change this. I think I meant the other way around. ViewStacks wait on everything, but other components (like Navigators) load everything up front. I think some of them extend the ViewStack don't they? Anyway, good information. Thanks for pointing out my backwards logic J Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wesley Acheson Sent: Monday, September 14, 2009 3:23 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Don't understand how to use deferred instantiation http://livedocs.adobe.com/flex/3/html/help.html?content=layoutperformance_05 .html Have you tried setting the creation policy? Jake It says on the above page that viewStack defers child creation by default. Regards, Wesley Acheson On Mon, Sep 14, 2009 at 9:17 PM, Jake Churchill j...@cfwebtools.com wrote: Yes, a viewstack loads everything when the app loads. If you don't want that, I think you need to use states instead Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of biosmonkey Sent: Monday, September 14, 2009 1:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Don't understand how to use deferred instantiation I am having trouble understanding how to use deferred instantiation. I have a project with a viewstack, and the viewstack has a lot of canvas containers for different pages that are activated according to user selection on a menubar. Each page inside the canvas is actually one or two components. The problem is that each of these components has some custom code attached to the creationComplete event that loads external string files. What I am seeing is that all containers and the components are initializing when the application loads, and all string files are being loaded, regardless of the current viewstack view. This is creating a serious performance problem. To test the child controls, I added some alerts inside the page components as well (such as a label) that are attached to creationComplete and addedToStage. Both events are firing when the app loads, for all viewstack containers. I don't understand this. What exactly is being deferred? Do all components/child components/controls go through the initialization process and fire creationComplete, regardless of whether they are visible? Can someone please enlighten me on how to use this correctly? No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.96/2369 - Release Date: 09/14/09 05:51:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.96/2369 - Release Date: 09/14/09 05:51:00
[flexcoders] Coldfusion inside Flex
Here's a cool video from adobe on using ColdFusion functionality in flex without actually writing any ColdFusion services: http://tv.adobe.com/watch/tech-talk-with-ryan-stewart/sneak-peek-of-proxy-ta gs-in-coldfusion-9/ Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
RE: [flexcoders] RE: creationcomplete firing when a component is disabled
You can't see GlobalVars because it's a Singleton. Models are often used that way. Try var g:GlobalVars = GlobalVars.instance; I do that a lot when using a Model and when I'm done debugging, I remove it. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Scott Sent: Tuesday, September 01, 2009 5:36 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] RE: creationcomplete firing when a component is disabled Ok, it's been one of those days. Perhaps I shouldn't program when I'm ill. I finally figured out what the heck was going on and want to post this in case someone else runs into it. I'm building an Air application that connected to a CF server. I created a process to pull an XML file with the server information to set up the remote object. This file was populated into the GlobalVars. The problem was the first screen initialized (including the remote object call) before the XML file was read. I stumbled on the answer by accident when I went to see what was in the GlobalVars.instance.strServer variable. Incidentally, why doesn't the debugger see this variable? If I do the following: Private var strTemp:string; strTemp = GlobalVars.instance.strServer I can then watch the variable in the debugger. Anyway, I set the original variable to [Bindable] and my problem went away. It was then I realized that the remote object with the endpoint variable was initialized in a non-configured state. GRR. Thanks for your help anyway, Alex. I learned something new about overloading variables in flex which I'm sure will come in handy later on. Scott _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Scott Sent: Tuesday, September 01, 2009 4:20 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] RE: creationcomplete firing when a component is disabled Yeah, that got me next. I had to add in the event into the init(evt::Event):void. With all the work, I've got the same issue. It's trying to initialize the remoteobject before it has the required information provided after the login. _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Tuesday, September 01, 2009 4:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] RE: creationcomplete firing when a component is disabled I assume you mis-typed the first one? There are too many )'s. The params to addEventListener take a method reference, not a call to a method, so addEventListener(bLoggedInChagned, init) is correct. Do you have a function init()? Is it in the same file as this code? Otherwise, you'll need to make it public and get access to it. BTW, the init() must now take an event as its parameter public function init(event:Event):void { // call webservice or something like that } Alex Harui Flex SDK Developer Adobe http://www.adobe.com/ Systems Inc. Blog: http://blogs.adobe.com/aharui -- This message has been scanned for viruses and dangerous content by http://www.mailscanner.info/ MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by http://www.mailscanner.info/ MailScanner, and is believed to be clean.
RE: [flexcoders] Line and area chart on the same coordinate system?
Use a Cartesian chart with a Line Series and Area Series Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of |Mirko Sent: Thursday, August 27, 2009 8:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Line and area chart on the same coordinate system? Hi, What i would like to do is display both area and line chart on the same graph with same coordinate axis but not sure if that's possible and how to do it. I googled a bit but couldn't find any useful example so if someone can give me few hints or maybe provide an example i would really appreciate it? Thanks in advance, Best regards -- View this message in context: http://www.nabble.com/Line-and-area-chart-on-the-same-coordinate-system--tp2 5167662p25167662.html Sent from the FlexCoders mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.67/2326 - Release Date: 08/25/09 18:07:00
RE: [flexcoders] Mx:VBOX
Set an ID on your VBox (call it vboxID) and call this: vboxID.invalidateDisplayList(); Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ram ramesh Sent: Wednesday, August 19, 2009 1:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Mx:VBOX Hi How to Refresh the MX:VBOX after some condition check I want to refresh the VBOX. PLease help me for this. Thanks Ramesh No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.61/2313 - Release Date: 08/19/09 06:03:00
RE: [flexcoders] Event Best Practices
Look at adding event metadata. If you add an event called myCustomEvent in the metadata and dispatch it from the inner component, you are able to handle it from the outer component like this: mx:app mx:customComponent / mx:customComponent / /mx:customComponent myCustomEvent=handleMyCustomEvent(event) / /mx:app That's the easy way to do it. If you have multiple levels of nesting, I've found it easiest to use a Model Singleton that extends EventDispatcher and dispatch the events and listen to the events through the model. That's the more complicated way to handle it. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jdizowat Sent: Friday, August 14, 2009 10:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Event Best Practices Super Noob Question Incoming - So if I my application looks like the following - mx:app mx:customComponent mx:customComponent / /mx:customComponent /mx:app That deepest custom component dispatches an event and I would like that event to make it to the application level. Is that even normal to have components that nested? Thanks for any insight, Jason No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.56/2302 - Release Date: 08/14/09 06:10:00