[flexcoders] Re: http request issue on linux
I've traced this further and the problem is that the id property of the flex application is null on linux but populated on as expected on Windows and Mac. the actual code is slightly different to what I posted below. it should read: params.module = application.id The module parameter is the one with the null value. The SDK version is 3.4 any ideas? Tony --- In flexcoders@yahoogroups.com, ynotob t...@... wrote: I have the following http service defined mx:HTTPService id=httpListUser url={listUserUrl} method=POST fault=listUserFaultHandler(event); resultFormat=e4x result=listUserHandler(event) / I call it with the following code: var params:Object = new Object(); params.request = action.list.user; params.email = txtEmail.text; params.boson = new Date().getMilliseconds() // Added to prevent the result from being cached. httpListUser.send(params); This works fine on the server side when the flex application is run in a windows and a mac client but it failing when being run on a linux client. On the server side the request parameter comes through as null. The linux version of the flash player is 10r42.
Re: [flexcoders] IE6 + SSL + Flex
Hi Julian There aren't any flaws in what I'm saying. You're not required to follow my advice, though. :-) People get told they need to upgrade or install new software all the time so I don't agree that this is a situation we have to mutely accept. IE is a crappy piece of software. It has been the subject of numerous exploits. Why would any sensible corporate IT manager want to mandate the use of IE when there are alternatives that are faster, more secure and that better support standards? Hey, but no-one ever got sacked for buying IBM (or installing IE) right? ;-) For the record, I mostly develop apps that are for the general public, so I work to support all browsers. I still make a point of recommending the use of browsers other than IE when the opportunity arises though... Anyway, glad you found a workaround. Guy PS, you could also try serving your swf via http and only doing your data calls via https. On 29/12/2009, at 12:27 PM, Julian Alexander wrote: Dear Guy, While I generally see you're point, there are a few flaws in what you're saying: 1. Try saying that to a corporate executive who is expecting your software to work in his existing infrastructure and see how far you get. 2. It is a problem in all version of IE anyway, so if you used the garbage known as IE 8 you'd still be in the same boat. 3. It's solved anyway by hacking the hell out of the headers when it's IE 6 :) (will be posted somewhere online once I've got the solution 100%). -Julian From: Guy Morton g...@alchemy.com.au To: flexcoders@yahoogroups.com Sent: Mon, December 28, 2009 5:03:44 PM Subject: Re: [flexcoders] IE6 + SSL + Flex Yes. Drop support for IE6. It has very little market share these days and is about the worst browser out there. Use a little browser detection javascript to tell users of IE6 it's time to update to something that isn't so crappy. Firefox, Google Chrome and Safari are all far better browsers than any version of IE. If developers stopped tying themselves in knots trying to work around all IE's faults and instead encouraged everyone to install one of the aforementioned browsers we'd soon see many of these sorts of problems go away and we could concentrate instead on actually developing content. Guy On 29/12/2009, at 2:37 AM, Julian Alexander wrote: Dear Venkat, Thanks for the direction, but unfortunately that just made it worse.. Any other ideas? -Julian From: venkateswarlu naidu contactvenku@ yahoo.co. in To: flexcoders@yahoogroups.com Sent: Sat, December 26, 2009 10:43:39 PM Subject: Re: [flexcoders] IE6 + SSL + Flex If your SWF is not loading in IE6 + SSL + Flex combination, then try setting http-proxy-caching-of-cookies in app server configuration file (like weblogic.xml) Thanks Regards,Venkat. From: wb...@ymail. com wb...@ymail. com To: flexcod...@yahoogro ups.com Sent: Sat, 26 December, 2009 7:54:57 PM Subject: [flexcoders] IE6 + SSL + Flex Dear All, Having a bit of a rough time over here with getting IE6 + flex + ssl to play nicely together. Everything works except that after the app has loaded once, if you go to a different URL and then go back it fails on loading, and unfortunately in my case this is a common scenario. If anyone is knowledgeable about this PLEASE (UL) let me know as I've been banging my head against the wall on this one for weeks on and off and now I have a bit of a deadline to meet and this is the primary stop. Thanks in advance, Julian The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
Re: [Spam] RE: [Spam] RE: [flexcoders] Using Cairngorm and how to display a Popup from aCommand
Hello, thanks for your reply... The event is being dispatched from a Command but I'm using HTTP Service and AsyncToken to call a Web Service. I think my problem would be getting the function ref from the delegate to the responder Command as they are de-linked if that makes sense... Cheers, Nick 2009/12/25 Vaibhav Seth vaibhav.s...@live.com Hi, Thanks for the appreciation. Yups you have got it right. But in you statement: then I have the problem of getting that function reference over into the 2nd CairngormEvent, which isn't created and fired until the Web Service responder is called I think you are talking about dispatching an event from the command or Sequence Command type of thing. For that scenario, you can pass on that function reference to the the 2nd Cairngorm Event also. You can keep that parameter in the Event also. So that you always does not need to worry about it. And Function reference is in terms of instance of the command. If your command gets fired again before it returns you the result for the last executed method, even then you are safe. Keeping the view reference in the model have pros and cons. I will not prefer that way, simply because it breaks the encapsulation, view gets publicly exposed as the Model is a singleton class. But there is no hard and fast rule as well.. :) Thanks, Vaibhav Seth. [image: i'm] EMAILING FOR THE GREATER GOOD Join mehttp://im.live.com/Messenger/IM/Home/?source=EML_WLHM_GreaterGood -- To: flexcoders@yahoogroups.com From: n...@middleweek.co.uk Date: Tue, 22 Dec 2009 16:03:43 + Subject: Re: [Spam] RE: [flexcoders] Using Cairngorm and how to display a Popup from aCommand Nice post and thanks for replying... I understand your first solution, I think it's similar to a ChangeWatcher approach... but I'm a bit lost with the 2nd approach... In my circumstance, I have a button in my view that fires a Flash CLICK event, the view-mediator Handles it and fires a CairngormEvent, which invokes a CairngormCommand to call a Web Service to fetch some data. The data is loaded asynchronously and passed into a new CairngormEvent which then fires a CairngormCommand, this Command unpacks the data and if it's all gravy, it will update the model and the fetched data is displayed on the current View. If the data contains Fault event info then I need to show a custom PopUp component... I think, you're 2nd solution is storing a private or public function from inside the View on the CairngormEvent that is fired to reference it later... If I've got that right, then I have the problem of getting that function reference over into the 2nd CairngormEvent, which isn't created and fired until the Web Service responder is called... Which I believe is completely detached from the original CairngormEvent/ Command. I guess I could put the function ref on the model as a central repository but I could also just stick a reference to the View on the model and use that reference in the CairngormCommand and call PopUpManager.createPopup... What are your thoughts cause I'm a bit lost :) Cheers, nick 2009/12/21 Vaibhav Seth vaibhav.s...@live.com hi, Well that's a good question for the starters. Please go through my below blog. Hope you will get some thing out from there. http://groups.adobe.com/posts/ffa987b8a4 Thanks, Vaibhav Seth.
[flexcoders] Re: rewriting a function using prototype?
I see. Thanks! - Mitch --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: I've used this in this pasta bit more verbose but does the trick. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=createJunk() mx:Script ![CDATA[ import mx.controls.Alert; public static function createJunk():void { var j:junk1 = new junk1(); // style 1 outputs base f1 j.f1(); // style 2 outputs base f1 j[f1](); // ooops, have a bug in base f1, reassign it! j.dF1 = function():void{trace(junk1 f1 override);}; // override f1 outputs junk1 f1 override j[f1](); } ]] /mx:Script /mx:Application package { public class junk1 { import mx.controls.Alert; public var dF1:Function = realf1; public function f1():void { dF1(); } private function realf1():void{ trace(base f1); } } } --- In flexcoders@yahoogroups.com, mitchgrrt mitch_gart@ wrote: In the generated classes there's a hierarchy. The one with the function I want to override is a base class of another class. If I extend and override, the other classes in the hierarchy won't get my fix. --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: How about extending the Ant generated classes and overriding the function? Paul
[flexcoders] disable printing and copying of images in a adobe flex 3
Hi, I want to make the website such that the print option is disabled and the the copy feature is as much as possible unavailable. How can i do this?
[flexcoders] SpringGraph EdgeLable
Hello Friends, I am working with SpringGraph Component. I have to display EdgeLable for the graph. I have created the EdgeLable by using the interface IEdgeRenderer. But the problem is that EdgeLable are getting duplicated. can anyone help me to fix this problem. Thanks Sudesh
RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069
Hi again. I wrote the follow (as you did the same). var aPanel:Panel = new Panel(); aPanel.width=100;aPanel.height=50; aPanel.setStyle(bottom,30); aPanel.setStyle(right,30); addChild(aPanel); but the panel is not anchored. What it is wrong here? Please send me your code where the constraints are working. Also I found that current stage doesn't know the event RESIZE or it doesn't resized J, I don't know this detail. With other words, the follow Listener's registration is not triggered. addEventListener(flash.events.Event.RESIZE,listenerCurrentStageOnResize); On the other hand. the Application is Resized and the follow Listener's registration has effect. Application(Application.application).addEventListener(flash.events.Event.RES IZE,ListenerAppOnResize); dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Monday, December 28, 2009 3:12 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 I just added a panel component to that example (via AS) and constrained it with a bottom and right styles, and it positions correctly. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Sunday, December 27, 2009 7:44 PM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Constraints should work in a application parent container. Are you certain that the application is resizing correctly? Set up a onResize listener for debugging purposes and make sure it is getting fired on browser resize. If it is, and constraints are still not woking, then you can use that listener to reposition you component. Here is an example that positions a popup component on application resize, it should help if you need to go the manual route. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Sunday, December 27, 2009 2:57 PM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hi The layout it is absolute. the Application(Application.application).layout.toString() returns absolute. I think the better way is to anchor my component manually L Share your thoughts. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, December 23, 2009 5:49 PM To: flexcoders@yahoogroups.com Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 You are clear that constraint based layout requires a Canvas or application or panel with absolute layout? Either extend one of those for your component, or size and position your child component manually. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Monday, December 21, 2009 2:10 PM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hello to all Can anybody else help on this topic??? Any other suggestion how to anchor an UIComponent object? dennis From: dennis [mailto:den...@anel.cc] Sent: Saturday, December 19, 2009 12:12 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hi Tracy. I hope you are ok. I do the follow: var d:PanelGradient=new PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2 *1.5); d.setStyle(right,10); d.setStyle(bottom,10); addChild(d); In the above code, setting the right and bottom, I expect, in case of resizing the browser, the PanelGrandient must be kept anchored in the right bottom corner. What I do wrong? p.s. The PanelGradient extends the UIComponent and in real is a container of a Shape with a matrix. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Saturday, November 28, 2009 12:24 AM To: flexcoders@yahoogroups.com Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 The constraints are
Re: [Spam] [flexcoders] Re: remove expand option from tree node?
Excellent find, I needed this as well... :) 2009/12/29 MicC chigwel...@yahoo.com got it! Embedded isBranch=false into the xml very cool. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, MicC chigwel...@... wrote: The xml file on which the tree is based goes many nodes deep. I need to disable the expand option/icon from most of the 3rd level nodes and all of the 4th level nodes. I was hoping for a nodeExpand=false attribute that I could loop through the tree and apply but cannot find one. TIA, Mic.
[flexcoders] Network Topology Diagrams
Hi, I got a requiremnt to display newtwork diagrmas. These diagrams should be created dynamically by loading data from the database. I have looked into some 3rd party frameworks like, ILOG Elixir, y files etc, but none of them was giving me a solution. Any bidy cna suggest how to implemnt this. thanks vin
[flexcoders] Re: rewriting a function using prototype?
Thats neat. --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: I've used this in this pasta bit more verbose but does the trick. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=createJunk() mx:Script ![CDATA[ import mx.controls.Alert; public static function createJunk():void { var j:junk1 = new junk1(); // style 1 outputs base f1 j.f1(); // style 2 outputs base f1 j[f1](); // ooops, have a bug in base f1, reassign it! j.dF1 = function():void{trace(junk1 f1 override);}; // override f1 outputs junk1 f1 override j[f1](); } ]] /mx:Script /mx:Application package { public class junk1 { import mx.controls.Alert; public var dF1:Function = realf1; public function f1():void { dF1(); } private function realf1():void{ trace(base f1); } } } --- In flexcoders@yahoogroups.com, mitchgrrt mitch_gart@ wrote: In the generated classes there's a hierarchy. The one with the function I want to override is a base class of another class. If I extend and override, the other classes in the hierarchy won't get my fix. --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: How about extending the Ant generated classes and overriding the function? Paul
[flexcoders] Re: Adding a custom UI component as a panel titleIcon.
Alternatively it would be nice if I could extend the Panel class to allow me to add click events to the title area at the top, but I can't find any way of making that public so I can do it outside of my custom class, any ideas on exposing that protected property? Thanks --- In flexcoders@yahoogroups.com, invertedspear invertedsp...@... wrote: This should be easy but I'm kind of a newbie. The concept of this seems easy, but I'm having trouble getting it right and can't find anything to help me on this. I have a panel I need to perform a drag and drop operation on, but I only want to perform that if the user mouses down on a particular area of the panel. I can add an Icon to the panel by doing this: ** [Embed(/img/icon.png)] [Bindable] public var dragIcon:Class; newPanel.titleIcon = dragIcon; ** But what I really want to add is a box, which I can then add my listeners to for the drag and mouse down like I do on some canvases created in actionscript like so: ** var tempBox:Box = new Box; tempBox.x=0; tempBox.y=0; tempBox.width = 20; tempBox.height = 44; tempBox.setStyle(horizontalAlign,center); tempBox.setStyle(verticalAlign,middle); tempBox.addEventListener(MouseEvent.ROLL_OVER,over); tempBox.addEventListener(MouseEvent.ROLL_OUT,out); tempBox.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownAnswer); var tempImg:Image = new Image(); tempImg.source = grabbableItem; tempBox.addChild(tempImg); myCanvas.addChild(tempBox); ** So what do I need to do to use that tempBox and turn it into a class to be used as my panels titleIcon?
[flexcoders] change slideer look?
Hi, I have a slider that is like following: mx:HSlider id=radius width=300 minimum=0.5 maximum=5 tickColor=0x323232 snapInterval=0.5 tickInterval=0.5 dataTipPrecision=1 labels=['0.5mile','5miles'] liveDragging=true / I want to only let it to choose value 0.5,1,2,3,4,5. My question is how to make ticks for 1.5,2.5,3.5,4.5 not to display so we can not select that values. Thanks for help Marks
[flexcoders] Re: Adding a custom UI component as a panel titleIcon.
That's exactly what you should do. To get around the the titleBar add the box to rawChildren. http://dougr.net/?p=160 http://dougr.net/?p=160 -TH --- In flexcoders@yahoogroups.com, invertedspear invertedsp...@... wrote: Alternatively it would be nice if I could extend the Panel class to allow me to add click events to the title area at the top, but I can't find any way of making that public so I can do it outside of my custom class, any ideas on exposing that protected property? Thanks --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: This should be easy but I'm kind of a newbie. The concept of this seems easy, but I'm having trouble getting it right and can't find anything to help me on this. I have a panel I need to perform a drag and drop operation on, but I only want to perform that if the user mouses down on a particular area of the panel. I can add an Icon to the panel by doing this: ** [Embed(/img/icon.png)] [Bindable] public var dragIcon:Class; newPanel.titleIcon = dragIcon; ** But what I really want to add is a box, which I can then add my listeners to for the drag and mouse down like I do on some canvases created in actionscript like so: ** var tempBox:Box = new Box; tempBox.x=0; tempBox.y=0; tempBox.width = 20; tempBox.height = 44; tempBox.setStyle(horizontalAlign,center); tempBox.setStyle(verticalAlign,middle); tempBox.addEventListener(MouseEvent.ROLL_OVER,over); tempBox.addEventListener(MouseEvent.ROLL_OUT,out); tempBox.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownAnswer); var tempImg:Image = new Image(); tempImg.source = grabbableItem; tempBox.addChild(tempImg); myCanvas.addChild(tempBox); ** So what do I need to do to use that tempBox and turn it into a class to be used as my panels titleIcon?
[flexcoders] Re: change slideer look?
Using the tickValues property will help you a little. -TH --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Hi, I have a slider that is like following: mx:HSlider id=radius width=300 minimum=0.5 maximum=5 tickColor=0x323232 snapInterval=0.5 tickInterval=0.5 dataTipPrecision=1 labels=['0.5mile','5miles'] liveDragging=true / I want to only let it to choose value 0.5,1,2,3,4,5. My question is how to make ticks for 1.5,2.5,3.5,4.5 not to display so we can not select that values. Thanks for help Marks
[flexcoders] Re: Adding a custom UI component as a panel titleIcon.
Thanks, would you mind giving me at least a little pseudo code of how to do that? I'm completely lost when it comes to extending classes --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: That's exactly what you should do. To get around the the titleBar add the box to rawChildren. http://dougr.net/?p=160 http://dougr.net/?p=160 -TH
[flexcoders] Re: flex 4 skins + presentation model
I handled this by creating a private var in the component like: private var _listDataProviderWatcher:ChangeWatcher; Then, in partAdded, I: _listDataProviderWatcher = BindingUtils.bindProperty(myPart,dataProvider,this,[presentationModel,listData]); Then, in partRemoved, I: _listDataProviderWatcher.unwatch(); Just FYI. --- In flexcoders@yahoogroups.com, Ariel J arielj...@... wrote: Can anyone suggest how to merge these? The issue is that the presenation model is not necessarily available when the skin parts are added in partAdded() which is where skin parts tend to be integrated. Does it involve a lot of BindingUtils? How are people doing this?
[flexcoders] Re: Adding a custom UI component as a panel titleIcon.
I am adding the box but now it's covering up the normal title text of the panel. Any quick fix for that (I'm just adding space to the front of the text for the time being)? --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: That's exactly what you should do. To get around the the titleBar add the box to rawChildren. http://dougr.net/?p=160 http://dougr.net/?p=160 -TH --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: Alternatively it would be nice if I could extend the Panel class to allow me to add click events to the title area at the top, but I can't find any way of making that public so I can do it outside of my custom class, any ideas on exposing that protected property? Thanks --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: This should be easy but I'm kind of a newbie. The concept of this seems easy, but I'm having trouble getting it right and can't find anything to help me on this. I have a panel I need to perform a drag and drop operation on, but I only want to perform that if the user mouses down on a particular area of the panel. I can add an Icon to the panel by doing this: ** [Embed(/img/icon.png)] [Bindable] public var dragIcon:Class; newPanel.titleIcon = dragIcon; ** But what I really want to add is a box, which I can then add my listeners to for the drag and mouse down like I do on some canvases created in actionscript like so: ** var tempBox:Box = new Box; tempBox.x=0; tempBox.y=0; tempBox.width = 20; tempBox.height = 44; tempBox.setStyle(horizontalAlign,center); tempBox.setStyle(verticalAlign,middle); tempBox.addEventListener(MouseEvent.ROLL_OVER,over); tempBox.addEventListener(MouseEvent.ROLL_OUT,out); tempBox.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownAnswer); var tempImg:Image = new Image(); tempImg.source = grabbableItem; tempBox.addChild(tempImg); myCanvas.addChild(tempBox); ** So what do I need to do to use that tempBox and turn it into a class to be used as my panels titleIcon?
[flexcoders] Re: Adding a custom UI component as a panel titleIcon.
In updateDispayList() position the box: tempBox.move( unscaledWidth - tempBox.width - 10, ( unscaledHeight / 2 ) - ( tempBox.height / 2 ) ); This would put it on the right side of the header, minus 10 pixels. -TH --- In flexcoders@yahoogroups.com, invertedspear invertedsp...@... wrote: I am adding the box but now it's covering up the normal title text of the panel. Any quick fix for that (I'm just adding space to the front of the text for the time being)? --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: That's exactly what you should do. To get around the the titleBar add the box to rawChildren. http://dougr.net/?p=160 http://dougr.net/?p=160 -TH --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: Alternatively it would be nice if I could extend the Panel class to allow me to add click events to the title area at the top, but I can't find any way of making that public so I can do it outside of my custom class, any ideas on exposing that protected property? Thanks --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: This should be easy but I'm kind of a newbie. The concept of this seems easy, but I'm having trouble getting it right and can't find anything to help me on this. I have a panel I need to perform a drag and drop operation on, but I only want to perform that if the user mouses down on a particular area of the panel. I can add an Icon to the panel by doing this: ** [Embed(/img/icon.png)] [Bindable] public var dragIcon:Class; newPanel.titleIcon = dragIcon; ** But what I really want to add is a box, which I can then add my listeners to for the drag and mouse down like I do on some canvases created in actionscript like so: ** var tempBox:Box = new Box; tempBox.x=0; tempBox.y=0; tempBox.width = 20; tempBox.height = 44; tempBox.setStyle(horizontalAlign,center); tempBox.setStyle(verticalAlign,middle); tempBox.addEventListener(MouseEvent.ROLL_OVER,over); tempBox.addEventListener(MouseEvent.ROLL_OUT,out); tempBox.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownAnswer); var tempImg:Image = new Image(); tempImg.source = grabbableItem; tempBox.addChild(tempImg); myCanvas.addChild(tempBox); ** So what do I need to do to use that tempBox and turn it into a class to be used as my panels titleIcon?
[flexcoders] Re: Adding a custom UI component as a panel titleIcon.
I may not be able to sell that to the project manager. Anyway to keep it on the left without covering the title? Thanks, you've helped a lot so far. --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: In updateDispayList() position the box: tempBox.move( unscaledWidth - tempBox.width - 10, ( unscaledHeight / 2 ) - ( tempBox.height / 2 ) ); This would put it on the right side of the header, minus 10 pixels. -TH --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: I am adding the box but now it's covering up the normal title text of the panel. Any quick fix for that (I'm just adding space to the front of the text for the time being)? --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: That's exactly what you should do. To get around the the titleBar add the box to rawChildren. http://dougr.net/?p=160 http://dougr.net/?p=160 -TH --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: Alternatively it would be nice if I could extend the Panel class to allow me to add click events to the title area at the top, but I can't find any way of making that public so I can do it outside of my custom class, any ideas on exposing that protected property? Thanks --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: This should be easy but I'm kind of a newbie. The concept of this seems easy, but I'm having trouble getting it right and can't find anything to help me on this. I have a panel I need to perform a drag and drop operation on, but I only want to perform that if the user mouses down on a particular area of the panel. I can add an Icon to the panel by doing this: ** [Embed(/img/icon.png)] [Bindable] public var dragIcon:Class; newPanel.titleIcon = dragIcon; ** But what I really want to add is a box, which I can then add my listeners to for the drag and mouse down like I do on some canvases created in actionscript like so: ** var tempBox:Box = new Box; tempBox.x=0; tempBox.y=0; tempBox.width = 20; tempBox.height = 44; tempBox.setStyle(horizontalAlign,center); tempBox.setStyle(verticalAlign,middle); tempBox.addEventListener(MouseEvent.ROLL_OVER,over); tempBox.addEventListener(MouseEvent.ROLL_OUT,out); tempBox.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownAnswer); var tempImg:Image = new Image(); tempImg.source = grabbableItem; tempBox.addChild(tempImg); myCanvas.addChild(tempBox); ** So what do I need to do to use that tempBox and turn it into a class to be used as my panels titleIcon?
[flexcoders] Re: Adding a custom UI component as a panel titleIcon.
Ok, an easy way would be to add paddingLeft to the titleStyleName, or try to move the titleTextField in updateDisplayList(); -TH --- In flexcoders@yahoogroups.com, invertedspear invertedsp...@... wrote: I may not be able to sell that to the project manager. Anyway to keep it on the left without covering the title? Thanks, you've helped a lot so far. --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: In updateDispayList() position the box: tempBox.move( unscaledWidth - tempBox.width - 10, ( unscaledHeight / 2 ) - ( tempBox.height / 2 ) ); This would put it on the right side of the header, minus 10 pixels. -TH --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: I am adding the box but now it's covering up the normal title text of the panel. Any quick fix for that (I'm just adding space to the front of the text for the time being)? --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: That's exactly what you should do. To get around the the titleBar add the box to rawChildren. http://dougr.net/?p=160 http://dougr.net/?p=160 -TH --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: Alternatively it would be nice if I could extend the Panel class to allow me to add click events to the title area at the top, but I can't find any way of making that public so I can do it outside of my custom class, any ideas on exposing that protected property? Thanks --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote: This should be easy but I'm kind of a newbie. The concept of this seems easy, but I'm having trouble getting it right and can't find anything to help me on this. I have a panel I need to perform a drag and drop operation on, but I only want to perform that if the user mouses down on a particular area of the panel. I can add an Icon to the panel by doing this: ** [Embed(/img/icon.png)] [Bindable] public var dragIcon:Class; newPanel.titleIcon = dragIcon; ** But what I really want to add is a box, which I can then add my listeners to for the drag and mouse down like I do on some canvases created in actionscript like so: ** var tempBox:Box = new Box; tempBox.x=0; tempBox.y=0; tempBox.width = 20; tempBox.height = 44; tempBox.setStyle(horizontalAlign,center); tempBox.setStyle(verticalAlign,middle); tempBox.addEventListener(MouseEvent.ROLL_OVER,over); tempBox.addEventListener(MouseEvent.ROLL_OUT,out); tempBox.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownAnswer); var tempImg:Image = new Image(); tempImg.source = grabbableItem; tempBox.addChild(tempImg); myCanvas.addChild(tempBox); ** So what do I need to do to use that tempBox and turn it into a class to be used as my panels titleIcon?
Re: [flexcoders] Network Topology Diagrams
Check out KapLabs diagrammer - that I think would be your best bet. -Julian From: vin.flex vin.f...@yahoo.com To: flexcoders@yahoogroups.com Sent: Tue, December 29, 2009 12:59:09 PM Subject: [flexcoders] Network Topology Diagrams Hi, I got a requiremnt to display newtwork diagrmas. These diagrams should be created dynamically by loading data from the database. I have looked into some 3rd party frameworks like, ILOG Elixir, y files etc, but none of them was giving me a solution. Any bidy cna suggest how to implemnt this. thanks vin
[flexcoders] AIR with Oracle
Hi friends, Can we establish a connection to Oracle from AIR application? Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/