[flexcoders] Re: How can I overlay a UIComponent on top of my application?
Heh, well funny part Tracy is that in looking at my app, I have a ViewStack that is the child of the app, and it is what is driving the horizontal layout. The app is set to horizontal, but it is doing nothing (except for eating cycles laying out its one container). Anyway, I set the app to absolute, put the overlayed component to Application.application, and it's all good. And I was so wanting to have to defile SystemManager. :) Thanks --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: You could put a 100% HBox as the first child of the Application. Then you'd get your horizontal layout, plus have a place to put your explicitly positioned elements. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bithroop Sent: Thursday, December 06, 2007 5:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I overlay a UIComponent on top of my application? Hmm.. I might not be understanding what you're suggesting, but... I have the exact component that I want to overlay... really the question is what to addChild it to. Can I access the main displayContainer and if so how? My Application.application uses horizontal layout so it's not a candidate. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Blake Barrett BlakeB@ wrote: I'm not sure about this, but you could try capturing a bitmap on MouseOver (of every component) of event.target var bd : BitmapData (event.target); bd.draw (300, 300); var bmp : Bitmap ( bd ); then try adding that bitmap to the main displayContainer (the stage). I hope this works as a starting point. Blake From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of bithroop Sent: Thursday, December 06, 2007 2:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How can I overlay a UIComponent on top of my application? Trying to figure out the best way to do this... I have an image in my UI which is small. I want a larger version of it to draw, attached to the mouse cursor, when the user rolls over it. Kinda like a tooltip but moving along with the cursor. (Mixbook does this if you've ever seen it) I have it mostly working but my main issue is that I know I always want the zoomed version of the image to draw on top of the entire UI. These small images can be in any number of different types of containers, so I can't addChild the UIComponent to the small image or to its parent... needs to be something like a popup or tooltip. Peeked a bit at SystemManager for this since that's what PopupManager talks about... anyway, anyone have any insight on this? Should I make it a cursor?
[flexcoders] Re: How can I overlay a UIComponent on top of my application?
Hmm.. I might not be understanding what you're suggesting, but... I have the exact component that I want to overlay... really the question is what to addChild it to. Can I access the main displayContainer and if so how? My Application.application uses horizontal layout so it's not a candidate. --- In flexcoders@yahoogroups.com, Blake Barrett [EMAIL PROTECTED] wrote: I'm not sure about this, but you could try capturing a bitmap on MouseOver (of every component) of event.target var bd : BitmapData (event.target); bd.draw (300, 300); var bmp : Bitmap ( bd ); then try adding that bitmap to the main displayContainer (the stage). I hope this works as a starting point. Blake From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bithroop Sent: Thursday, December 06, 2007 2:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How can I overlay a UIComponent on top of my application? Trying to figure out the best way to do this... I have an image in my UI which is small. I want a larger version of it to draw, attached to the mouse cursor, when the user rolls over it. Kinda like a tooltip but moving along with the cursor. (Mixbook does this if you've ever seen it) I have it mostly working but my main issue is that I know I always want the zoomed version of the image to draw on top of the entire UI. These small images can be in any number of different types of containers, so I can't addChild the UIComponent to the small image or to its parent... needs to be something like a popup or tooltip. Peeked a bit at SystemManager for this since that's what PopupManager talks about... anyway, anyone have any insight on this? Should I make it a cursor?
[flexcoders] How can I overlay a UIComponent on top of my application?
Trying to figure out the best way to do this... I have an image in my UI which is small. I want a larger version of it to draw, attached to the mouse cursor, when the user rolls over it. Kinda like a tooltip but moving along with the cursor. (Mixbook does this if you've ever seen it) I have it mostly working but my main issue is that I know I always want the zoomed version of the image to draw on top of the entire UI. These small images can be in any number of different types of containers, so I can't addChild the UIComponent to the small image or to its parent... needs to be something like a popup or tooltip. Peeked a bit at SystemManager for this since that's what PopupManager talks about... anyway, anyone have any insight on this? Should I make it a cursor?
[flexcoders] Styling extended Flex Components... simple misunderstanding?
I think I'm not understanding something... My app has a bunch of .mxml classes that extend TitleWindow (singletons in a UI). I want them all to be styled the same EXCEPT for I want each one to have a custom background color. Here's how I'm attempting this... -begin external css file--- TitleWindow { borderAlpha: 0.9; borderThicknessLeft: 4; borderThicknessTop: 0; borderThicknessBottom: 16; borderThicknessRight: 4; roundedBottomCorners: false; headerHeight: 20; backgroundAlpha: 0.33; highlightAlphas: 0.29, 0.02; headerColors: #ff, #cc; footerColors: #e7e7e7, #c7c7c7; dropShadowEnabled: true; backgroundColor: #ff; } ExtendedTitleWindowA { backgroundColor: #ff; } ExtendedTitleWindowB { backgroundColor: #00ff00; } -end external css file--- So... this doesn't work. What is happening is that everything that extends TitleWindow looks the same and the custom backgroundColors are not taking. The css is linked via the top level application. Can someone set me straight? -b
[flexcoders] Re: Events and Non-Display Objects
Yeah that totally makes sense and looks like the proper way of doing things. Thanks Muzak -b --- In flexcoders@yahoogroups.com, Muzak [EMAIL PROTECTED] wrote: I think what you're looking for is a Singleton class that extends EventDispatcher which only purpose is to be able to add listeners to and dispatch events upon. package com.muzakdeezign.mvc.managers { import flash.events.EventDispatcher; public class SystemEventManager extends EventDispatcher { private static var __instance:SystemEventManager = null; public function SystemEventManager() { if(__instance != null) { throw new Error(Instance of SystemManager already exists. Use SystemManager.getInstance()); } } public static function getInstance():SystemEventManager { if(__instance == null ) { __instance = new SystemEventManager(); } return __instance; } } } //from anywhere in your app: import com.muzakdeezign.mvc.managers.SystemEventManager; SystemEventManager.getInstance().addEventListener(someEvent, someEventHandler); //and somewhere else in your app SystemEventManager.getInstance().dispatchEvent(new Event(someEvent)); Make sense? regards, Muzak - Original Message - From: bithroop [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, November 29, 2007 5:33 PM Subject: [flexcoders] Re: Events and Non-Display Objects Jehanzeb - first, thank you for the detailed response! I really appreciate it. In the code you provided, the CustomEventDispatcher was instantiated within the mx:Application object. So from what I've seen, yes Application will be able to hear CustomEventDispatcher's events. However, my sitation is more like: Application | |--ContainerC-ContainerD | |--ContainerA-Custom AS class not in display list-CustomEventDispatcher. And I want CustomEventDispatcher's event to be heard by Container D. Right now I have my listener on Application, and then Application is calling a method on ContainerC, which is then calling a method on ContainerD. This seems to be ugly and bad form.
[flexcoders] Re: Events and Non-Display Objects
Just a quick follow up... I hooked up Muzak's suggestion and that's exactly what I'm looking for. Thank you Muzak! -b --- In flexcoders@yahoogroups.com, bithroop [EMAIL PROTECTED] wrote: Yeah that totally makes sense and looks like the proper way of doing things. Thanks Muzak -b --- In flexcoders@yahoogroups.com, Muzak p.ginneberge@ wrote: I think what you're looking for is a Singleton class that extends EventDispatcher which only purpose is to be able to add listeners to and dispatch events upon. package com.muzakdeezign.mvc.managers { import flash.events.EventDispatcher; public class SystemEventManager extends EventDispatcher { private static var __instance:SystemEventManager = null; public function SystemEventManager() { if(__instance != null) { throw new Error(Instance of SystemManager already exists. Use SystemManager.getInstance()); } } public static function getInstance():SystemEventManager { if(__instance == null ) { __instance = new SystemEventManager(); } return __instance; } } } //from anywhere in your app: import com.muzakdeezign.mvc.managers.SystemEventManager; SystemEventManager.getInstance().addEventListener(someEvent, someEventHandler); //and somewhere else in your app SystemEventManager.getInstance().dispatchEvent(new Event(someEvent)); Make sense? regards, Muzak - Original Message - From: bithroop ben@ To: flexcoders@yahoogroups.com Sent: Thursday, November 29, 2007 5:33 PM Subject: [flexcoders] Re: Events and Non-Display Objects Jehanzeb - first, thank you for the detailed response! I really appreciate it. In the code you provided, the CustomEventDispatcher was instantiated within the mx:Application object. So from what I've seen, yes Application will be able to hear CustomEventDispatcher's events. However, my sitation is more like: Application | |--ContainerC-ContainerD | |--ContainerA-Custom AS class not in display list-CustomEventDispatcher. And I want CustomEventDispatcher's event to be heard by Container D. Right now I have my listener on Application, and then Application is calling a method on ContainerC, which is then calling a method on ContainerD. This seems to be ugly and bad form.
[flexcoders] Re: Events and Non-Display Objects
Jehanzeb - first, thank you for the detailed response! I really appreciate it. In the code you provided, the CustomEventDispatcher was instantiated within the mx:Application object. So from what I've seen, yes Application will be able to hear CustomEventDispatcher's events. However, my sitation is more like: Application | |--ContainerC-ContainerD | |--ContainerA-Custom AS class not in display list-CustomEventDispatcher. And I want CustomEventDispatcher's event to be heard by Container D. Right now I have my listener on Application, and then Application is calling a method on ContainerC, which is then calling a method on ContainerD. This seems to be ugly and bad form. So instead, will this work? (see below pseudocode) --- inside ContainerD addEventListener(testEvent, someHandler, true) //is capture needed? inside CustomEventDispatcher dispatchEvent(new Event(testEvent)) //is bubbling needed? I have a feeling there's something really simple I'm not getting. -b package myComponents { import flash.events.EventDispatcher; import flash.events.Event; import myComponents.events.CustomEvent; public class CustomEventDispatcher { public static const PRECHANGING:String = PreChanging; public static const CHANGED:String = Changed; private var itemName:String = null; private var eventDispatcher:EventDispatcher = new EventDispatcher(); public function get ItemName() : String { return this.itemName; } public function set ItemName(value:String) : void { //this.eventDispatcher.dispatchEvent(); this.eventDispatcher.dispatchEvent(new CustomEvent(CustomEventDispatcher.PRECHANGING, false, false, this.itemName)); this.itemName = value; this.eventDispatcher.dispatchEvent(new CustomEvent(CustomEventDispatcher.CHANGED, false, false, this.itemName)); } public function addEventListener(type:String, listener:Function) : void { this.eventDispatcher.addEventListener(type, listener); } public function reomveEventListener(type:String, listener:Function) : void { this.eventDispatcher.removeEventListener(type, listener); } } } package myComponents.events { import flash.events.Event; public class CustomEvent extends Event { private var itemName:String; /* public function CustomEvent(type:String, bubble:Boolean, cancelabl:Boolean) { this(type, bubble, cancelable, null); } */ public function CustomEvent(type:String, bubble:Boolean, cancelabl:Boolean, itemName:String) { super(type, bubble, cancelable); this.itemName = itemName; } public function get ItemName() : String { return this.itemName; } } } ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=this.OnAppCreationComplete(event); mx:Script ![CDATA[ import mx.utils.StringUtil; import mx.controls.Alert; import myComponents.events.CustomEvent; import myComponents.CustomEventDispatcher; private var customEventDispatcher:CustomEventDispatcher; private function OnAppCreationComplete(event:Event) : void { this.customEventDispatcher = new CustomEventDispatcher(); this.customEventDispatcher.ItemName = Hello World!; this.customEventDispatcher.addEventListener(CustomEventDispatcher.PRECHANGING, this.OnPreChanging); this.customEventDispatcher.addEventListener(CustomEventDispatcher.CHANGED, this.OnChanged); } private function OnPreChanging1(event:CustomEvent) : void { var message:String = Event Type [0]. ItemName: [1].; message = StringUtil.substitute(message, event.type, event.ItemName);
[flexcoders] Events and Non-Display Objects
General question here... I understand Event flow with objects in the display list. They flow either up (bubbling) or down (capture) between parent and child. Maybe an oversimplification but my question really is about how to handle events with objects that are not in the display list. How do you pass events from them? Like for instance, I've got this situation here... I have an MXML that is just an mx:Object. It's MXML because I'm defining some remoteObjects in it and that's just way more fun to do in MXML than in AS. So anyway, regardless, the methods inside are static and I don't want to draw the thing. It just needs to hang out and be available so I can make these remoting calls. So there's the rub. How can this MXML talk back to where it was called from? Can I use events for this or do I need to send a callback function? Any wisdom here would be awesome... this has been befuddling me for a while. -b
[flexcoders] Re: Events and Non-Display Objects
Thanks for the responses so far. I need to clarify what I'm asking I think. I realized after I wrote my post that since I had extended mx:object with MXML that I wouldn't be able to dispatch events from it. That really wasn't my issue though. Let's back up and say that I had extended EventDispatcher, or for that matter, something that _could_ be a display object but isn't in the display list, like mx:Canvas. What I'm really wondering is who can hear events dispatched from instances that aren't in the display list (have been instantiated but not addChild'd). Can any object at all? Can I direct who can hear them? My impression is that if an instance is not in a display list then it is effectively deaf and mute as far as events are concerned. This seems wrong, but I don't know how else it should work. --- In flexcoders@yahoogroups.com, Jehanzeb Musani [EMAIL PROTECTED] wrote: You can adopt the following two options to achieve your requirements. 1. Your MXML Object should Implement the IEventDispatcher interface and internally it creates an instance of EventDispathcer class and delegates calls to that instance. 2. If you dont want to use built-in event dispatcher and you want to define your own function definition, then you can defines an interface and all the listeners should implement that interface. Moreover, you should methods in your MXML Object to register and unregister those listeners and call the specific method of that interface on some condition. Gordon, I want to ask you a few questions regarding event dispatching mechanism of default EventDispatcher. 1. Does EventDispatcher calls the listeners synchronously or asynchronously? 2. Does the EventDispatcher make copies of the event object provided to EventDispatcher's dispatchEvent function when calling the listeners? Let say, I define 2 listeners for specific event type. The first listener modify some properties of the event object. Do the second listener get the modified one or the copy of the original one? --- Gordon Smith [EMAIL PROTECTED] wrote: Or your Object subclass could create an EventDispatcher instance which can dispatch events on its behalf: var eventDispatcher:EventDispatcher = new EventDispatcher(this); eventDispatcher.dispatchEvent(event); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, November 28, 2007 1:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Events and Non-Display Objects You can try extending EventDispatcher and dispatch events From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bithroop Sent: Wednesday, November 28, 2007 10:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Events and Non-Display Objects General question here... I understand Event flow with objects in the display list. They flow either up (bubbling) or down (capture) between parent and child. Maybe an oversimplification but my question really is about how to handle events with objects that are not in the display list. How do you pass events from them? Like for instance, I've got this situation here... I have an MXML that is just an mx:Object. It's MXML because I'm defining some remoteObjects in it and that's just way more fun to do in MXML than in AS. So anyway, regardless, the methods inside are static and I don't want to draw the thing. It just needs to hang out and be available so I can make these remoting calls. So there's the rub. How can this MXML talk back to where it was called from? Can I use events for this or do I need to send a callback function? Any wisdom here would be awesome... this has been befuddling me for a while. -b Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs
[flexcoders] htmlText resets formatting... why?
I'm having an issue that maybe someone has run into before. I've made a simple rich text editor which edits a model that has an htmlText property as a string. The model is bound to a textArea and the editor which sets the properties of a textRange derived from the selection on the textArea. The editor provides formatting controls but no typing area, and the textArea is just for typing text. So the binding looks like this Editor - Model - TextArea Anyway, what I'm seeing is that the first time I create some formatted htmlText, it all sets properly through the chain. The bug is where I then simply add or remove letters without changing any formatting. That causes all formatting to reset. However, if I alter the formatting in any way, it propagates through alright and all formatting is preserved. Seems like some flag is being set when formatting is changed, yet that flag is not set when it's just a text change. Does this ring a bell for anyone?
[flexcoders] Re: htmlText resets formatting... why?
So, to follow up with myself... I ended up fixing this by unhooking bidirectional binding and instead use a regular Event.CHANGE listener on the textArea. There was some wack binding that was getting fired off right around where UITextField's validateNow() method was getting called. Unhooking the bind and only having the textArea update the model when it is typed in made it work properly. --- In flexcoders@yahoogroups.com, bithroop [EMAIL PROTECTED] wrote: I'm having an issue that maybe someone has run into before. I've made a simple rich text editor which edits a model that has an htmlText property as a string. The model is bound to a textArea and the editor which sets the properties of a textRange derived from the selection on the textArea. The editor provides formatting controls but no typing area, and the textArea is just for typing text. So the binding looks like this Editor - Model - TextArea Anyway, what I'm seeing is that the first time I create some formatted htmlText, it all sets properly through the chain. The bug is where I then simply add or remove letters without changing any formatting. That causes all formatting to reset. However, if I alter the formatting in any way, it propagates through alright and all formatting is preserved. Seems like some flag is being set when formatting is changed, yet that flag is not set when it's just a text change. Does this ring a bell for anyone?
[flexcoders] Re: Capture Flex screen to e-mail...
Are you wanting to capture just the Flex part? Or also the browser rendered HTML part? --- In flexcoders@yahoogroups.com, aceoohay [EMAIL PROTECTED] wrote: In an application that I wrote years ago in ASP classic, I had a button on every page that would allow the user to e-mail the current page to someone. It would actually capture the innerHTML, and append it to an e-mail and send it. The purpose was to capture a snapshot of the data at the time the page was rendered. It was great for trouble shooting customer complaints because we could see what they saw at that particular time (thit was a 600 user DB app, and the data changed frequently). I would like to do something similar in Flex. Yes I know I can have the user do an Alt-Print-Screen, and paste it into word or paint, and send the image, but I was hoping for something more seamless. Something I coud put on each panel that the user could click, and it would popup a box that would ask where to e-mail it to. It would attach the current rendered panel to an e-mail as a jpg, pdf, png... I have the e-mail piece operational, but I haven't a clue where to start on the capture piece. Anybody have any good ideas? Paul
[flexcoders] Re: Event dispatching and receiving
Are you saying it works with Application.application? --- In flexcoders@yahoogroups.com, duncan mcmillan [EMAIL PROTECTED] wrote: Folks Maybe I'm interpreating all the docs wrong but, I have a Custom Class which is one of several View Classes as part of an MVC model I'm using. I have an associated Controller class. I want the Custom class to dispatch custom Event to the COntroller class, the Custom class is embedded somewhere in the Display list under a Base View Class. [Event(name=menuitemClicked, type=flash.events.Event)] Custom Class { private function onClick(event:Event) { var e:Event = new Event(menuitemClicked, true, false); dispatchEvent(e); Alert.show(Event Dispatched); } } In the Controller Class { public function init() { Application.application.addEventListener(menuitemClicked, menuitemClickHandler); } //This MVC EventHandler public function menuitemClickHandler(event:Event) { Alert.show(Event received by COntroller); } } I've tried not using Application.appication and still get nothing, what am I not understanding about receiving events from another Class. Cheers Duncan ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
[flexcoders] Re: ItemRenderer
If you set the dataField=name of sortable property in your columns like this: mx:columns mx:DataGridColumn headerText=Cards itemRenderer=com.card.CardItemRenderer dataField=name/ /mx:columns It will know what to sort by. --- In flexcoders@yahoogroups.com, jitendra jain [EMAIL PROTECTED] wrote: Hi guys, Iam using an itemRenderer in DataGridColumn. For some reasons the data is not sorted. Please help. Thanks, with regards, Jitendra - Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
[flexcoders] Debugging who changed data...
I have a property that is getting changed and I'm having a really hard time figuring out where it's happening and who is doing it. The debugger is walking me pretty far into the SDK and events are firing off and ultimately it's hard to tell. Anyone have any tricks for this?
[flexcoders] Resize Effect Plays Twice?
Here is a really simple example that is bringing up some buggy behavior. This little app will let the user flip between a few different trays. There is a resizeEffect on the ViewStack that holds the trays and a show and hide effect slides them. The resizeEffect is making the move effects play twice for some reason. If you disable it the tray move effects play just fine. Has anyone found a workaround for this? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundGradientAlphas=[1.0, 1.0] backgroundGradientColors=[#ADA4A4, #ADA4A4] mx:Move id=moveIn duration=1000 xTo=0 xFrom=-150/ mx:Move id=moveOut duration=1000 xTo=-150 xFrom=0/ mx:Resize id=resize duration=500 / mx:HBox x=75 y=45 width=100% horizontalGap=0 mx:Canvas id=topCanvas width=200 height=229 backgroundColor=#47818A /mx:Canvas mx:ViewStack id=stack height=229 resizeEffect=resize resizeToContent=true mx:Canvas showEffect=moveIn hideEffect=moveOut label=Canvas0 backgroundColor=#41E20F width=0 /mx:Canvas mx:Canvas showEffect=moveIn hideEffect=moveOut label=Canvas1 backgroundColor=#41E20F width=50 mx:Label x=10 y=186 text=1 fontSize=22/ /mx:Canvas mx:Canvas showEffect=moveIn hideEffect=moveOut label=Canvas2 backgroundColor=#CE0E0E width=150 mx:Label text=2 fontSize=22 right=10 bottom=10 color=#FF/ /mx:Canvas /mx:ViewStack mx:Canvas id=topCanvas0 width=66 height=229 backgroundColor=#FF3E3E/ /mx:HBox mx:RadioButtonGroup id=radiogroup1/ mx:RadioButton x=10 y=10 label=Off groupName=radiogroup1 click={stack.selectedIndex = 0}/ mx:RadioButton x=10 y=36 label=1 groupName=radiogroup1 click={stack.selectedIndex = 1}/ mx:RadioButton x=10 y=62 label=2 groupName=radiogroup1 click={stack.selectedIndex = 2}/ /mx:Application
[flexcoders] Disappearing content/Platform Differences...
I have been developing on an XP SP2 box and a Macbook, bouncing back and forth. Tonight I started having a problem where a remoting call was throwing an error on the PC but the Mac was fine. So I decided to grab my wife's laptop and see how the app did on hers. I was shocked and saddened to see that some functionality that works fine on the other two machines goes bad on hers. Specifically, content that I do a startDrag() on seemed to disappear. I have no idea what is going on, but in order to sleep tonight, I wanted to ask... a) Is this common in Flash land? I picked this platform because I thought I'd be able to avoid this. b) When you run into cases like this, what do you do? First thing that came to mind was to do a remote debugging session off of her computer. FWIW, her machine is a Dell Inspiron 640m. I tried updating the Intel gfx drivers, but no luck. Any insight would be great.
[flexcoders] When $height != height...
I've got a component called ItemContainer that extends UIComponent. Inside it has a TextArea. I want ItemContainer's height and width to update to match the height and width of the TextArea when the TextArea's are changed (I've got a resizer class that lets you drag a widget to change the width/height of the TextArea). What's happening is that the .width and .height of the ItemContainer are being set properly, but when I do a getBounds on that same ItemContainer the $height and $width from mx_internal are different. They are the same values as the previous time they were committed. I am not well versed in overriding updateDisplayList or commitProperties, so I'm wondering what order I need to do things in to make the internal $height and $width the same (ie, valid). This is also not an intra-frame ordering issue... the difference between $height and height persists until I manipulate it again which can be any number of frames later. Any thoughts on this would be great. -b
[flexcoders] Component rendering inconsistency once placed...
Are there any common issues to look for when facing this situation: I've made a new mxml component that is an arrangement of standard UI elements inside a Panel container. The panel renders fine on its own, but once it's placed inside another component or app, the layout goes bad. I've cleared all explicit widths and heights as far as I can tell, but I'm having trouble with this one. Any ideas? -b
[flexcoders] Re: Where to learn intermediate/advanced Flex?
I 100% agree with this. I am very much in the same camp as you, having just started with Flex and, well, most everything RIA related three months ago. But, I have a project I'm trying to get done so having goals which derive from that push my learning every day. So pick something to make and do it. Even if it sucks, you'll be better for it and your next project will benefit. --- In flexcoders@yahoogroups.com, Blake Barrett [EMAIL PROTECTED] wrote: Just start tackling projects. You can never be sure that you can't do something until you fail at it, until then you can do anything. Blake From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Neath Sent: Thursday, August 30, 2007 10:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Where to learn intermediate/advanced Flex? I feel like I'm coming to a point now where I get the basics of Flex. I've got the whole component architecture down, I know the basics of Actionscript. I can create my own components by extending UIComponent and implementing the proper interfaces. But I still feel like there's so much I have to learn: and I'm not sure where to look anymore. I've tried looking for books: but I honestly haven't found one that isn't either a complete beginners book, or isn't written for Flex 1/1.5. I've tried looking for online communities around Flex, but haven't found anything really at all. Any advice on where to look next? Or should I just start tackling projects and learn as I go? -Kyle
[flexcoders] Re: Image -shrinking and resizing
I think you'll want to set the scaleX and scaleY of the image based on the difference between the VBox's base size and its current size. Image has a facility to scale images down to fit, but not up, so this might be your best bet. --- In flexcoders@yahoogroups.com, Charu [EMAIL PROTECTED] wrote: Hello All, i am creating a component where one i have a vbox and under that i have an image. i have provided the faciltity to load image at runtime by specifing the url. one can also change it's height and width at runtime.Along with stretch options(by height,width,both) So can ne1 help me how to compress the image width or height according to the height of vbox. like if i specify stretch by height it should be stretched from it'e height... please help ...quite urgent