[flexcoders] Re:Imagepicker
Just go back to page 1 of the article you reference and the link to the flex sample files is there.
[flexcoders] Re: Anyway to speed up draw reflection and reduce cpu usage?
If it's a reflection bitmap of a static image of some sort, why not just create the new image with reflection once, and store the bitmap in the dictionary. Every new image you get, create the image with reflection, stick it in the dictionary with the image name as the key and use grab it whenever you need it in a view. --Danny
[flexcoders] Re: snapshots of TabNavigator tabs
Thanks Vijay, Tim, I definitely had two issues. Tim nailed one in that I was adding the existing child object to the new view and therefore removing it from the old because I copied a reference. I'm still struggling with the capture part. I think I need a bit of clarification on your suggestions Vijay. I think I followed your instructions. Because updateDisplayList() is protected, I had to expose it by extending the component to provide a public method to pass the unscaled width and height to, then calling the internal updateDisplayList, passing it the size properties received in the public method. I have a tab navigator with canvas children for each tab. In the canvas child I have and HBox barchart container and inside the container, I have the barchart object. The HBox supports a protected updateDisplayList() method, but the BarChart object does not. Based on your advice I stepped through each tab child canvas, got a reference to the extended HBox container, forced an updateDisplayList on the extended HBox with the unscaled size of the BarChart child in the container. I didn't actually set the child selected index of each tab which in theory would force it to be visible, but I think your advice said I didn't have to. I just got the references to the containers by myTabNav.getChildAt(i).myHBoxContainer, then did an updateDisplayList, then did my cloning, put the clone in an array in the model, supplied the tile list with the array.and voila.still only the first tab container. Did I force the updateDisplay on the right object? Thanks for your help on this, Danny
[flexcoders] Re: Importing SWC Files in FLEX
Hey Anuj, People tend to respond more to questions that have enough info to get to the root of the problem such as coding issues. This one is more of a system issue and perhaps I'm still missing some info because I don't understand exactly what you're trying to do, and it's tough to post your environment. (I'm still feeling a bit jilted that nobody answered my question some time ago about browser scrollbars ;-) You SHOULDN'T be able to look at swc file in the browser. You should be able to add the swc to the lib path of your project and then have access to those components (those inside the swc) in the design view in the custom folder. If you have added it, and can see the components in the custom tab of the design view then perhaps there is something wrong with your swc? I would suggest getting a well known swc, say flexlib.swc, and adding it to your lib path, and trying to use some elements from it. If that works okay, then look to your swc as the problem. Where did you get the swc? What type of component in the swc are you trying to use? Do you get build errors when you use any symbol or component? If it's a visual component, are you sure it should be visible in the application view you put it in? --Danny
[flexcoders] Re: Importing SWC Files in FLEX
Hi Anuj, You can try Import/FlexBuilder/Artwork and point to a swf or swc? Or..you can add a swc to your project by adding the swc to your project properties build path. (use project/properties/FlexBuild Path and open the Library path tab, then add swc.) Not sure what environment you have set up or exactly what you're doing, or trying to do, but try that, or review the docs again. --Danny
[flexcoders] Re: Scaling Child Images
Hard to tell without a snippet of your code, but I have an implementation with a base Canvas which holds other Canvas layers and when I apply my scaling to the base Canvas, those canvases within the base Canvas scale as well. I don't, however, tie my base Canvas scaling to the scaling of the application window or browser window, so my shapes within my canvases stay the same size as I drag scale my application window. If you have not tried already, you may wish to put those line shapes and markers in a Canvas contained within that map Canvas (the one with the black and brown border) since your map canvas appears to have scaling tied to the application container working properly. I'm not a fan of heavy duty layering of containers but in my case it conceptually and architecturally made sense. Hope that helps, --Danny