Aligining a panel
Hello I want show a panel that is centered in my application, but not sure how to do it, basically i have created a seprate .mxml file that displays some data which i need to vertically and horizontaly align to center, even though i have provided both the attributes in the panel component i am still not able to achive the desired functionality any help/sample would be appreciated. horizontalAlign=center verticalAlign=middle info.mxml mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml; width=300 height=150 dropShadow=true horizontalAlign=center panelBorderStyle=roundCorners verticalAlign=middle title=Sign In blah /mx:Panel Thanks Arjun
Re: [flexcoders] Is System.security.loadPolicyFile() one shot onl y?
Matt, Thanks for the suggestion. We were actually trying to connect through an XMLSocket, so there wasn't any way to change the policy file. I ran some more experiments which indicate that it's not possible to load a policy file from an http connection and then use and XMLSocket (unless the connection is the default http://localhost:80/crossdomain.xml). It does seem, however, that you can attempt to load a policy file on a nonstandard port and directory, fail, try a different file in the same location, succeed, then open an HTTP request to the same port and directory. We don't have any pressing need to have the Java app initiate communication with the Flex app (if the need arises, we can poll), and we don't really care whether we communicate using HTTP or XML, so this solution will suffice. Thanks again. Alex On Mon, 28 Feb 2005 18:16:38 -0800, Matt Chotin [EMAIL PROTECTED] wrote: Any chance you could create copies of the policy file and just iterate through? When you fail to load the first time wait a few seconds and try loading the next policy file. Not sure why loadPolicyFile won't try the same file again, but this might be a cheap workaround. Matt From: Alex Cruikshank [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 3:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is System.security.loadPolicyFile() one shot only? We are trying to get our flex application to communicate with a Java Web Start application by starting a socket listener in the Java app and connecting to it with a XMLSocket in the Flex app. Connections to localhost aren't permitted by default by the flash player, so we're using System.security.loadPolicyFile() to load a cross-domain policy served by the Java app before connecting. This works great in our tests, so long as the Java app is started and listening before the Flex app tries to load the policy file. If the app is unavailable the connection fails (as expected), but there appears to be no way to reset the connection once the Java app is up and running without reloading the Flex app. Subsequent calls to System.security.loadPolicyFile() don't correct the problem. Since the Flex app is responsible for starting the Java app and has no way of knowing when it's initialized, this situation is unacceptable. Does anyone on the list know if this is a feature of the Flash player's sandbox, or is there a way to try the policy file again? If not, has anyone worked out a method of communicating with a non-Flash application (other than an applet) on the client machine? I greatly appreciate any insight or references you can provide. Thanks, Alex Cruikshank Carbon Five Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Aligining a panel
Hi Arjun, You need to provide those attributes to Panel's container. For example, if your Panel is in Application container, you can set Application's horizontalAlign=true (defualt) verticalAlign=true.. ###info.mxml### mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=appInit() verticalAlign=middle mx:Script ![CDATA[ function appInit() { } ]] /mx:Script mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml; width=300 height=150 dropShadow=true horizontalAlign=center panelBorderStyle=roundCorners verticalAlign=middle title=Sign In /mx:Panel /mx:Application Hope that helps... -abdul -Original Message- From: Arjun [mailto:[EMAIL PROTECTED] Sent: Saturday, March 05, 2005 5:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Aligining a panel Hello I want show a panel that is centered in my application, but not sure how to do it, basically i have created a seprate .mxml file that displays some data which i need to vertically and horizontaly align to center, even though i have provided both the attributes in the panel component i am still not able to achive the desired functionality any help/sample would be appreciated. horizontalAlign=center verticalAlign=middle info.mxml mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml; width=300 height=150 dropShadow=true horizontalAlign=center panelBorderStyle=roundCorners verticalAlign=middle title=Sign In blah /mx:Panel Thanks Arjun Yahoo! Groups Links
[flexcoders] How personalize panel contener
Hi, i want personalize the panel contener I don't want the rounded corner, and the blue in the background ? How i do it ? y exemple : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Style titlePanelDemo { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #00CC33; background-color:#CC; font-style:italic; font-weight:bold; border-cap-color:#FF6600; background-color:#66CC99; border-style:dotted; border-color:#66; border-cap-color:#33CC00; } areaPanelDemo { background-color:#CC; border-cap-color:#00; border-color:#33CC66; border-style:solid; } controllerPanelDemo{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight:bold; color: #FF; } /mx:Style mx:Panel id=demoPanel title=Panel demo width=200 height=100% titleStyleDeclaration=titlePanelDemo styleName=areaPanelDemo mx:ControlBar height=50 styleName=controllerPanelDemo mx:Label text=Texte / /mx:ControlBar /mx:Panel /mx:Application
Flex setup
Hi, I am experimenting with flex and have an application that will be requesting for services (HTTP Service) from a J2EE application. I would prefer not to bundle the flex jars, filters etc in the EAR I provide to the client. My understanding is that I can compile flex files into SWF. Is this correct ? Do I need any of the flex related files to be bundled with the EAR if I precompile the application as a SWF ?
RE: [flexcoders] Flex setup
Hi, Yes you can pre-compile the Flex UI into a SWF, but you will still need to have everything under WEB-INF/flex folder in order for the UI to work. You cannot simply compile the SWF and give it away, its against the Flex "Terms and Conditions" or whatever you call it. Within your EAR, youwill have your WAR and its contents will look something like this: WAR folder myui.mxml WEB-INF/ web.xml flex/ (all files for flex here) If you want to know how to precompile, read the following: http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?href=""> Jimmy Gianninas Software Developer - Optimal Payments Inc. From: viraf_bankwalla [mailto:[EMAIL PROTECTED] Sent: Saturday, March 05, 2005 1:30 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex setup Hi,I am experimenting with flex and have an application that will be requesting for services (HTTP Service) from a J2EE application. I would prefer not to bundle the flex jars, filters etc in the EAR I provide to the client.My understanding is that I can compile flex files into SWF. Is this correct ?Do I need any of the flex related files to be bundled with the EAR if I precompile the application as a SWF ?
TreeGrid Version 2
I just finished some big fixes to the TreeGrid component I have been working on. Check it out at: http://www.cayambe.com/plog/index.php?op=ViewArticlearticleId=6blogId=1 Please let me know if you find any bugs or have ideas for improvement. Thanks. -James
Drag and drop image?
Hello, all. I'm familiar with general flex layout and such, and am just now getting into the scripting of it. I understand that certain data controls have a dragEnabled attribute, and I'm wondering how best to replicate this drag and drop behavior on an mx:Image / control. Thoughts? In flash, I'd know exactly what I'm doing, but so far everything in flash that'd do this doesn't work in flex. thanks! Kevin Conboy Lead UI Engineer / Office Dullard SpireMedia® Inspired Technology. Inspired Results. vox: 303.620.9974 ext 316 fax: 303.629.6385 [EMAIL PROTECTED] www.spiremedia.com
MXML Schema validation
Does anyone know whether the MXML Schema that comes with Flex 1.5 really can be used for validation? Xerces is telling me that the mx:operation tag isn't allowed to have a name attribute. The Flex documentation clearly states the opposite is true and the tag would be pretty useless without it, so what is it that's going wrong? Xerces or the Schema? I've had a quick look at the schema myself, but my eyes started to glaze over by the time I got to about line 5000. Spike -- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org