[flexcoders] Trace output from a flash 9 cs3 component in flex 3 ?
Hi, I am unable to get trace output from a custom flash 9 cs3 component that is made into a SWC. Is there someway to work around this so I can actually debug the component? - Austin
Re: {Disarmed} Re: [flexcoders] SWFLoader not scaling properly
This stretches the entire movie and makes it distort incorrectly. I need the content to scale correctly using scale 9, not stretching. - Austin John McCormack wrote: In the constructor try stage.scaleMode = StageScaleMode.EXACT_FIT; and in the Flex Navigator right click the project and choose properties, then ActionScript Compiler and in additional compiler arguments enter the size... -default-size 800 600 John - Original Message - From: Austin Kottke [EMAIL PROTECTED] mailto:austink%40scientology.net To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Tuesday, April 15, 2008 3:52 AM Subject: [flexcoders] SWFLoader not scaling properly Hi, Im trying to figure out how to make a SWF loader actually scale the child content it is loading. I've looked at various posts, but whatever I do there is no clear cut way to scale it's content so it is resizeable. It also does not resize it correctly when the SWF first loads. Any ideas? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] SWFLoader not scaling properly
Hi, Im trying to figure out how to make a SWF loader actually scale the child content it is loading. I've looked at various posts, but whatever I do there is no clear cut way to scale it's content so it is resizeable. It also does not resize it correctly when the SWF first loads. Any ideas?
[flexcoders] html in a button's label field? Using internal textfield...
Hi, I'm trying to put html text into a button. I've subclassed a button component, and tried to modify the internal textfield as in the docs it says that the textfield is the internal textfield that the label works with. I try: this.textField.text = this.category.getId(); this.textField.htmlText = this.category.getId(); And nothing happens. I do this.label = this.category.getId() and everything shows up fine. Anyone have a clue? Is the internalTextfield for a button not really affect the label of a button? - Austin
[flexcoders] Loading an SWF without adding it to a child
Hi, Im trying to just load in an SWF without having to immediately add the loader to the main stage. What happens is that I get an error immediately even using the example from the flex 3 docs. [SWF] C:\swf.swf- 681,227 bytes after decompression initHandler: [Event type=init bubbles=false cancelable=false eventPhase=2] httpStatusHandler: [HTTPStatusEvent type=httpStatus bubbles=false cancelable=false eventPhase=2 status=0] completeHandler: [Event type=complete bubbles=false cancelable=false eventPhase=2] [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference. Fault, UIComponent.as:5043 5043 // code goes here The complete handler has 0 code in it, but the movie dies anyway simply because the loader is not added to the main stage. Is it possible to just in an SWF without having a container? - Austin
[flexcoders] calling remoteobjects from flex builder
Is there a way to call remoteobjects from flexbuilder instead of having to deploy and view the site on localhost? Using the flex-config. Im using granite amf. When I call the service, the packets are completely blocked, even though its to a local service running on my machine. - austin
[flexcoders] Module Compiling Workflow - Making a module run like it's an application
Is there some way to get a module run so you can actually test a module independent of a main app? This seems like a really bad workflow if the only way to develop a module is to use the main app to view the nested module. What if one module is an application that you spend months of development on, only to be loaded in in the main app -- you can never test it then as a module? - Austin
[flexcoders] Binding to a subclass of flash_proxy
Hi, Here's what I'm trying to do. Load in an xml file, assign this to a settings singleton which extends flash_proxy and then bind to these properties. Essentially: public function setupXMLProxy( contentToProxy: XML ):void { logger.debug( setupXMLProxy() called. ) var content:XML = contentToProxy; for each( var node:XML in content.Text ) { logger.debug(node: + [EMAIL PROTECTED] + == + node); this[ [EMAIL PROTECTED] ] = node ; } } The singleton proxy now has a bunch of variabels that can be referenced like var myProp:String = LocaleMgr.getInstance().propertyFromXML Which retrieves the translations. This works. What doesnt work is binding to these properties from other mxml files. My binding method in the singleton is the following: public function bind( object:Object, propertyName:String, param:String = text ):void { var w:ChangeWatcher = ChangeWatcher.watch(LocaleMgr.getInstance(), propertyName, null, false); if (w != null) { var assign:Function = function(event:*):void { object[param] = w.getValue(); }; w.setHandler(assign); assign(null); } } Basically I took the code from BindingUtils and stuck it in my static instance. This works for a single property, but it does not work automatically if I assign a property to the static instance. There is no updating occurring unless I directly reset the binding which defeats the purpose. Anyone have any bright ideas on this? Austin
[flexcoders] Binding to a subclass of a proxy object
Hi, Here's what I'm trying to do. Load in an xml file, assign this to a settings singleton which extends flash_proxy and then bind to these properties. Essentially: public function setupXMLProxy( contentToProxy:XML ):void { logger.debug( setupXMLProxy() called. ) var content:XML = contentToProxy; for each( var node:XML in content.Text ) { logger.debug(node: + [EMAIL PROTECTED] + == + node); this[ [EMAIL PROTECTED] ] = node ; } } The singleton proxy now has a bunch of variabels that can be referenced like var myProp:String = LocaleMgr.getInstance().propertyFromXML Which retrieves the translations. This works. What doesnt work is binding to these properties from other mxml files. My binding method in the singleton is the following: public function bind( object:Object, propertyName:String, param:String = text ):void { var w:ChangeWatcher = ChangeWatcher.watch(LocaleMgr.getInstance(), propertyName, null, false); if (w != null) { var assign:Function = function(event:*):void { object[param] = w.getValue(); }; w.setHandler(assign); assign(null); } } Basically I took the code from BindingUtils and stuck it in my static instance. This works for a single property, but it does not work automatically if I assign a property to the static instance. There is no updating occurring unless I directly reset the binding which defeats the purpose. Anyone have any bright ideas on this? Austin Best, Austin
[flexcoders] Odd setinterval timer error
Hi, I'm passing some xml content through the externalinterface api and I am getting a very odd error. Flex parses the xml and I can get this output just fine. However, it seems a few milliseconds after that I get the following error: undefined at flash.utils::SetIntervalTimer/flash.utils:SetIntervalTimer::onTimer() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() Yet, Im not running any timer on the flex movie. Any ideas?
[flexcoders] Sending an SWF loader the current percentage of screen width the flex component uses
Hi, I have an SWFloader object that loads an SWF. I want to tell the SWF the percentage of screen realestate the parent container widget from flex is using. That way I can make the SWF scale itself. Currently the Stage.width from the loaded SWF represents the entire stage as opposed to getting the current percentage of its parent container. Anyone have ideas on this? Best, Austin
[flexcoders] Resizing text area
Hi, is there a way to have a mx:Text on top of an SWFLoader and as the mx:Text gets bigger in text size it pushes down the SWF loader and resizes the text control? Here is what I have so far: mx:VBox backgroundColor=#FF horizontalCenter=0 verticalCenter=0 width=100% mx:Text id=smalldescription height=100% width=100% mx:text The main text goes here... and could resize. /mx:text /mx:Text mx:SWFLoader id=loader source=loader.swf autoLoad=true scaleContent=true /mx:SWFLoader /mx:VBox It doesnt seem to be working though.
[flexcoders] Error message + yahoo
Hi, I'm trying to use flashinterface to communicate from flex to a flash 8 movie. Here is the code in a custom component: public function creationCompleteHandler( event:Event = null ):void { FlashInterface.publish(this, true); FlashInterface.register(demo, mainEditorLoader.content); } - When the class hits FlashInterface.publish I get this error: ReferenceError: Error #1069: Property parameters not found on course.ui.LeftCoursePanel and there is no default value. at flx.external::FlashInterface$/flx.external:FlashInterface::getId()[...\flexinterface\flx\external\FlashInterface.as:491] Anyone have a clue why this is?
[flexcoders] Scale 9 not applied to vboxes?
Hi, Im setting a scale 9 that is being set to a vbox. The vbox itself is not doing any scale 9 even though I have set the background image style to the the vbox. mx:VBox styleName=LeftPanel / .LeftPanel { backgroundImage: Embed(source=../img/leftPanelBg.gif, scaleGridLeft=29, scaleGridTop=26, scaleGridRight=270, scaleGridBottom=32); } The width of the vbox is not working correctly because it shows the background without scaling the image. What is the problem here?
Re: [flexcoders] Scale 9 not applied to vboxes?
I figured it out: For some reason backgroundImage compiles fine, but actually the right property is background-image. So I did .LeftPanel { background-image: Embed(source= ../img/leftPanelBg.gif, scaleGridLeft=29, scaleGridTop=26, scaleGridRight=270, scaleGridBottom=32); } and it worked great. Austin Kottke wrote: Hi, Im setting a scale 9 that is being set to a vbox. The vbox itself is not doing any scale 9 even though I have set the background image style to the the vbox. mx:VBox styleName=LeftPanel / .LeftPanel { backgroundImage: Embed(source=../img/leftPanelBg.gif, scaleGridLeft=29, scaleGridTop=26, scaleGridRight=270, scaleGridBottom=32); } The width of the vbox is not working correctly because it shows the background without scaling the image. What is the problem here?
[flexcoders] RichTextEditor - Customizing the look
Hi, does anyone have any idea how I could customize the richtexteditor component so that it looks the way I want it to? I want to call the bold/ital/underline text directly through the richtexteditor class without having to use the stock component's look and feel. Mainly just use the richtexteditor textarea and then use my own buttons to input and modify text with my own look. I've done a subclass of the richttexteditor class -- however I am completely unfamiliar with the component itself and how it binds the buttons to it. Unfortunately it's not very configurable. Best, Austin
Re: [flexcoders] RichTextEditor - Customizing the look
Thanks Andriy, Yea -- I've been browsing the source and it really looks like the core of the methods have to do with the method setTextStyles('bold', event.currentTarget.selected); -- so I could potentially just make the entire toolbar invisible and then make calls that directly set styles such as doBold() or doUnderline() and then I can position any amount of widgets I want, but have a single textarea which can have the same functionality. Thanks for the help - I think this will pan out well. Best, Austin Andriy Panas wrote: Hi Austin, Click F3 on mx:RichTextEditor (RTE component) tag in Flex Builder 2 and study its source code to better understand its behavior. You can skinn toolbar buttons with a new graphics easily and decorate RTE's container with new CSS styles. But if you'd like to have a complete control over the layouting of buttons controls for RTE component and its overall look, I would suggest to copy-paste all the code from mx:RichTextEditor into your own brand new RTE class and then feel free to modify it. On 23/10/2007, *Austin Kottke* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, does anyone have any idea how I could customize the richtexteditor component so that it looks the way I want it to? I want to call the bold/ital/underline text directly through the richtexteditor class without having to use the stock component's look and feel. Mainly just use the richtexteditor textarea and then use my own buttons to input and modify text with my own look. I've done a subclass of the richttexteditor class -- however I am completely unfamiliar with the component itself and how it binds the buttons to it. Unfortunately it's not very configurable. -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents
Ely, I find runtime MXML something that would be invaluable. It is something that if implemented could make developing in flex a lot more scaleable and integration with the server end would be a lot more feasible. (As in doing HTTPRequests where serverside MXML could be generated through Velocity/JSP and then given back to the ui) A lot of developers don't know a thing about flex, but can learn basic MXML for layout or simple scripting and implement basic server side operations. And if these are kept just as mxml it makes updates in the future easier. We can then just tell someone (edit the MXML) and you're done, instead of download the flex sdk, set your ant build, yada ya -- some aren't programmers, but MXML is very easy to learn. It's a lot more confrontable for a designer/layout guy to tackle. Anyway, runtime MXML would be something that would majorly increase scalability and integration with servers - similar to the Apache IIS mod for JSP, etc - the only problem is that it's just for Apache or IIS. Some run tomcat, resin, etc. But having it on the client end would eliminate this problem. Best, austin Ely Greenfield wrote: Austin et. al. -- There are a number of features of MXML that simply can't be replicated at runtime. Things like script blocks. Other features would be prohibitively difficult (arbitrary binding expressions, @Embed, mx:Component, among others). You could reduce MXML to a runtime-parsable subset, and I know various people have taken various approaches to this. The more you reduce it, the easier it would be to replicate...removing repeaters, implicit arrays, default properties, etc. would get you down to something that could be implemented in a reasonable amount of time. I'm curious...how many people would find runtime MXML to be important to them? Ely. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Doug McCune *Sent:* Thursday, May 17, 2007 12:47 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents Yeah, ummm, my advice would be ignore that article. That's one of the effects of having an article submission process that allows anyone to submit anything. I know the cookbook is supposed to be user generated and reviewed, but anyone from Adobe want to exercise a little editorial control? I wouldn't mind the hand of god going in there and selectively removing a little content... sometimes democracy needs a helping hand. On 5/17/07, *Daniel Freiman* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think they're just stating that the mx.modules package exists. The sentence We also know Flex2 knows how to read MXML at runtime because the compiler knows how to convert MXML into GUI Objects doesn't inspire confidence that they know what they're talking about. Since it's possible that they don't know what a compiler does, it's also possible they're just writing and compiling Modules and don't understand that they're doing it. Then again, that wouldn't explain what they're fighting with another company about earlier in the article. They claim what they're talking about is in the docs so I'd either search them or not worry about it. My guess is you'd be searching a long time for something that isn't there. It would be nice if someone could prove my guess wrong though. Dan Freiman nondocs http://nondocs.blogspot.com On 5/17/07, *Austin Kottke* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, There is an intriguing article in the flex cookbook on the adobe site about reading in MXML at runtime and using the XML object to create components at runtime. While I don't totally get how this works as there are no code samples, but very vague actually, but it states: Let's consider, for a moment, how Adobe might have chosen to leverage reuse within the Flex2 programming model. Assuming the Adobe engineers did not want to have to recreate the wheel in terms of how to make Flex2 able to load normal non-GUI XML I would surmise they chose to simply reuse whatever code they wrote that was able to read MXML into a way to read XML. As we know, MXML resembles XML rather closely. Heck, MXML is XML ! Yipee, now I can easily read MXML because it is essentially a form of XML. We also know Flex2 knows how to read MXML at runtime because the compiler knows how to convert MXML into GUI Objects. But what if we could trick Flex2 into dynamically loading MXML at runtime ? So my question, has anyone ever done this and how did they do it? I'm not talking about using the modules package to load in precompiled swfs. But loading in mxml and having it run after being loaded. Best, Austin -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail
Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents
Yea, I get it. It sounds really cool though -- I'd love to be able to see dynamically created MXML and not have it to be server side (Apache IIS mod). This would make flex's value a lot higher. I suppose that there is some class in the flex framework which does this however, converts MXML to objects and then it's ready. Has anyone ever used this or is it internal? Best, Austin Daniel Freiman wrote: I think they're just stating that the mx.modules package exists. The sentence We also know Flex2 knows how to read MXML at runtime because the compiler knows how to convert MXML into GUI Objects doesn't inspire confidence that they know what they're talking about. Since it's possible that they don't know what a compiler does, it's also possible they're just writing and compiling Modules and don't understand that they're doing it. Then again, that wouldn't explain what they're fighting with another company about earlier in the article. They claim what they're talking about is in the docs so I'd either search them or not worry about it. My guess is you'd be searching a long time for something that isn't there. It would be nice if someone could prove my guess wrong though. Dan Freiman nondocs http://nondocs.blogspot.com On 5/17/07, *Austin Kottke* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, There is an intriguing article in the flex cookbook on the adobe site about reading in MXML at runtime and using the XML object to create components at runtime. While I don't totally get how this works as there are no code samples, but very vague actually, but it states: Let's consider, for a moment, how Adobe might have chosen to leverage reuse within the Flex2 programming model. Assuming the Adobe engineers did not want to have to recreate the wheel in terms of how to make Flex2 able to load normal non-GUI XML I would surmise they chose to simply reuse whatever code they wrote that was able to read MXML into a way to read XML. As we know, MXML resembles XML rather closely. Heck, MXML is XML ! Yipee, now I can easily read MXML because it is essentially a form of XML. We also know Flex2 knows how to read MXML at runtime because the compiler knows how to convert MXML into GUI Objects. But what if we could trick Flex2 into dynamically loading MXML at runtime ? So my question, has anyone ever done this and how did they do it? I'm not talking about using the modules package to load in precompiled swfs. But loading in mxml and having it run after being loaded. Best, Austin -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links (Yahoo! ID required) mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents
Not exactly as it only works for Apache and IIS - no support for other servers such as tomcat, resin, etc. It's definitely in the ball park, but needs to be supported on other servers. If that could be worked out then runtime mxml wouldn't be a problem (depending on compile speed). The main thing I was thinking of is adding support similar to JSP/Velocity style flex apps so you can add in layout code without having to have someone know everything about programming (mainly layout code) so designer types can layout their canvas's, hboxes without having to know how to compile with the SDK. Best, Austin Giles Taylor wrote: Would this be what you are looking for? http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS Giles *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Austin Kottke *Sent:* 17 May 2007 21:09 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents Ely, I find runtime MXML something that would be invaluable. It is something that if implemented could make developing in flex a lot more scaleable and integration with the server end would be a lot more feasible. (As in doing HTTPRequests where serverside MXML could be generated through Velocity/JSP and then given back to the ui) A lot of developers don't know a thing about flex, but can learn basic MXML for layout or simple scripting and implement basic server side operations. And if these are kept just as mxml it makes updates in the future easier. We can then just tell someone (edit the MXML) and you're done, instead of download the flex sdk, set your ant build, yada ya -- some aren't programmers, but MXML is very easy to learn. It's a lot more confrontable for a designer/layout guy to tackle. Anyway, runtime MXML would be something that would majorly increase scalability and integration with servers - similar to the Apache IIS mod for JSP, etc - the only problem is that it's just for Apache or IIS. Some run tomcat, resin, etc. But having it on the client end would eliminate this problem. Best, austin Ely Greenfield wrote: Austin et. al. – There are a number of features of MXML that simply can’t be replicated at runtime. Things like script blocks. Other features would be prohibitively difficult (arbitrary binding expressions, @Embed, mx:Component, among others). You could reduce MXML to a runtime-parsable subset, and I know various people have taken various approaches to this. The more you reduce it, the easier it would be to replicate…removing repeaters, implicit arrays, default properties, etc. would get you down to something that could be implemented in a reasonable amount of time. I’m curious…how many people would find runtime MXML to be important to them? Ely. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Doug McCune *Sent:* Thursday, May 17, 2007 12:47 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents Yeah, ummm, my advice would be ignore that article. That's one of the effects of having an article submission process that allows anyone to submit anything. I know the cookbook is supposed to be user generated and reviewed, but anyone from Adobe want to exercise a little editorial control? I wouldn't mind the hand of god going in there and selectively removing a little content... sometimes democracy needs a helping hand. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents
Hi, There is an intriguing article in the flex cookbook on the adobe site about reading in MXML at runtime and using the XML object to create components at runtime. While I don't totally get how this works as there are no code samples, but very vague actually, but it states: Let’s consider, for a moment, how Adobe might have chosen to leverage reuse within the Flex2 programming model. Assuming the Adobe engineers did not want to have to recreate the wheel in terms of how to make Flex2 able to load normal non-GUI XML I would surmise they chose to simply reuse whatever code they wrote that was able to read MXML into a way to read XML. As we know, MXML resembles XML rather closely. Heck, MXML is XML ! Yipee, now I can easily read MXML because it is essentially a form of XML. We also know Flex2 knows how to read MXML at runtime because the compiler knows how to convert MXML into GUI Objects. But what if we could trick Flex2 into dynamically loading MXML at runtime ? So my question, has anyone ever done this and how did they do it? I'm not talking about using the modules package to load in precompiled swfs. But loading in mxml and having it run after being loaded. Best, Austin -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents
Ely, I find runtime MXML something that would be invaluable. It is something that if implemented could make developing in flex a lot more scaleable and integration with the server end would be a lot more feasible. (As in doing HTTPRequests where serverside MXML could be generated through Velocity/JSP and then given back to the ui) A lot of developers don't know a thing about flex, but can learn basic MXML for layout or simple scripting and implement basic server side operations. And if these are kept just as mxml it makes updates in the future easier. We can then just tell someone (edit the MXML) and you're done, instead of download the flex sdk, set your ant build, yada ya -- some aren't programmers, but MXML is very easy to learn. It's a lot more confrontable for a designer/layout guy to tackle. Anyway, runtime MXML would be something that would majorly increase scalability and integration with servers - similar to the Apache IIS mod for JSP, etc - the only problem is that it's just for Apache or IIS. Some run tomcat, resin, etc. But having it on the client end would eliminate this problem. Best, austin Ely Greenfield wrote: Austin et. al. – There are a number of features of MXML that simply can’t be replicated at runtime. Things like script blocks. Other features would be prohibitively difficult (arbitrary binding expressions, @Embed, mx:Component, among others). You could reduce MXML to a runtime-parsable subset, and I know various people have taken various approaches to this. The more you reduce it, the easier it would be to replicate…removing repeaters, implicit arrays, default properties, etc. would get you down to something that could be implemented in a reasonable amount of time. I’m curious…how many people would find runtime MXML to be important to them? Ely. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Doug McCune *Sent:* Thursday, May 17, 2007 12:47 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents Yeah, ummm, my advice would be ignore that article. That's one of the effects of having an article submission process that allows anyone to submit anything. I know the cookbook is supposed to be user generated and reviewed, but anyone from Adobe want to exercise a little editorial control? I wouldn't mind the hand of god going in there and selectively removing a little content... sometimes democracy needs a helping hand. On 5/17/07, *Daniel Freiman* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think they're just stating that the mx.modules package exists. The sentence We also know Flex2 knows how to read MXML at runtime because the compiler knows how to convert MXML into GUI Objects doesn't inspire confidence that they know what they're talking about. Since it's possible that they don't know what a compiler does, it's also possible they're just writing and compiling Modules and don't understand that they're doing it. Then again, that wouldn't explain what they're fighting with another company about earlier in the article. They claim what they're talking about is in the docs so I'd either search them or not worry about it. My guess is you'd be searching a long time for something that isn't there. It would be nice if someone could prove my guess wrong though. Dan Freiman nondocs http://nondocs.blogspot.com On 5/17/07, *Austin Kottke* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, There is an intriguing article in the flex cookbook on the adobe site about reading in MXML at runtime and using the XML object to create components at runtime. While I don't totally get how this works as there are no code samples, but very vague actually, but it states: Let's consider, for a moment, how Adobe might have chosen to leverage reuse within the Flex2 programming model. Assuming the Adobe engineers did not want to have to recreate the wheel in terms of how to make Flex2 able to load normal non-GUI XML I would surmise they chose to simply reuse whatever code they wrote that was able to read MXML into a way to read XML. As we know, MXML resembles XML rather closely. Heck, MXML is XML ! Yipee, now I can easily read MXML because it is essentially a form of XML. We also know Flex2 knows how to read MXML at runtime because the compiler knows how to convert MXML into GUI Objects. But what if we could trick Flex2 into dynamically loading MXML at runtime ? So my question, has anyone ever done this and how did they do it? I'm not talking about using the modules package to load in precompiled swfs. But loading in mxml and having it run after being loaded. Best, Austin -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail
Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents
Yea - I'm mainly just thinking it would be great to have some dynamic layout code that you could fire off to an html layout guy and he could use MXML for dynamic layout and positioning. This could create some awesome workflows I feel, because it would open up the editing to non-flex designers who know basic layout, HBOX, VBOX, etc. Best, Austin Paul J DeCoursey wrote: You can easily integrate a compile on demand system using the Flex SDK and Tomcat. The problem is the compilers are not very fast. I'm guessing that the Apache/IIS module does some caching so that compiles run faster because they don't have to reload large libraries each time. Once the compiler is opened up a little more you should be able to implement this kind of thing. Austin Kottke wrote: Ely, I find runtime MXML something that would be invaluable. It is something that if implemented could make developing in flex a lot more scaleable and integration with the server end would be a lot more feasible. (As in doing HTTPRequests where serverside MXML could be generated through Velocity/JSP and then given back to the ui) A lot of developers don't know a thing about flex, but can learn basic MXML for layout or simple scripting and implement basic server side operations. And if these are kept just as mxml it makes updates in the future easier. We can then just tell someone (edit the MXML) and you're done, instead of download the flex sdk, set your ant build, yada ya -- some aren't programmers, but MXML is very easy to learn. It's a lot more confrontable for a designer/layout guy to tackle. Anyway, runtime MXML would be something that would majorly increase scalability and integration with servers - similar to the Apache IIS mod for JSP, etc - the only problem is that it's just for Apache or IIS. Some run tomcat, resin, etc. But having it on the client end would eliminate this problem. Best, austin Ely Greenfield wrote: Austin et. al. – There are a number of features of MXML that simply can’t be replicated at runtime. Things like script blocks. Other features would be prohibitively difficult (arbitrary binding expressions, @Embed, mx:Component, among others). You could reduce MXML to a runtime-parsable subset, and I know various people have taken various approaches to this. The more you reduce it, the easier it would be to replicate…removing repeaters, implicit arrays, default properties, etc. would get you down to something that could be implemented in a reasonable amount of time. I’m curious…how many people would find runtime MXML to be important to them? Ely. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Doug McCune *Sent:* Thursday, May 17, 2007 12:47 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents Yeah, ummm, my advice would be ignore that article. That's one of the effects of having an article submission process that allows anyone to submit anything. I know the cookbook is supposed to be user generated and reviewed, but anyone from Adobe want to exercise a little editorial control? I wouldn't mind the hand of god going in there and selectively removing a little content... sometimes democracy needs a helping hand. On 5/17/07, *Daniel Freiman* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think they're just stating that the mx.modules package exists. The sentence We also know Flex2 knows how to read MXML at runtime because the compiler knows how to convert MXML into GUI Objects doesn't inspire confidence that they know what they're talking about. Since it's possible that they don't know what a compiler does, it's also possible they're just writing and compiling Modules and don't understand that they're doing it. Then again, that wouldn't explain what they're fighting with another company about earlier in the article. They claim what they're talking about is in the docs so I'd either search them or not worry about it. My guess is you'd be searching a long time for something that isn't there. It would be nice if someone could prove my guess wrong though. Dan Freiman nondocs http://nondocs.blogspot.com On 5/17/07, *Austin Kottke* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, There is an intriguing article in the flex cookbook on the adobe site about reading in MXML at runtime and using the XML object to create components at runtime. While I don't totally get how this works as there are no code samples, but very vague actually, but it states: Let's consider, for a moment, how Adobe might have chosen to leverage reuse within the Flex2 programming model. Assuming the Adobe engineers did not want to have to recreate the wheel in terms of how to make Flex2 able to load normal non-GUI XML I would surmise they chose to simply reuse whatever code they wrote
[flexcoders] Instantiating uncompiled MXML at runtime in flex
Anyone have any ideas on how to take an entire Panel that is just an xml file and then load this in flex 2 and then have it instantiate it? This is not a compiled SWF using the Modules package in flex, but just a simple xml file. I've done this with a Tree Control where I loaded in the xml and it generated the components at runtime, however I'm thinking of an entire set of code in MXML or XML that gets loaded in and immediately created. I know there is a Apache MXML server on labs, but I was thinking that this is done just in flex. Anyone have any experience in this?
[flexcoders] Flex layout in flash 9 cs3
What would it take to take some of the layout components such as HBOX and VBOX and use these in flash 9 cs3? Does this mean that the entire flex framework would need to be imported before compiling or is this a relatively small undertaking. Anyone every tried this?
[flexcoders] AMF Netconnection calls
Hi, I'm doing a remoting to call to a j2ee service. The service takes about a total of 15 seconds to run. The problem is the call is made, it executes the java call, but because the call is still processing there is no 'return' value to the remoting gateway so it gives me a Netconnection.call.failed status. Even though it successfully called the service. Any ideas? And then when the java call finally finishes and returns the status this doesnt show up in a responder object. There is no output as it seems like the connection stops waiting... Best, austin
[flexcoders] mx.flash.UIMovieClip - Building in flex?
Hi, I'm trying to find this class with the new flex/flash integration kit. Is this class available somewhere or is the only way to use it to manually compile a new SWC from flash 9 cs3 and then use this in flex? What happens if we try and load in a SWC at runtime? Best, Austin
[flexcoders] Sending complex objects through AMF3 to a server
Hi - is it possible to send an array of VOs over an AMF3 gateway to a server and have the server correctly parse this? I've noticed that only strings and ints are supported in the tests I'm doing. Is this true? Best, Austin
Re: [flexcoders] Sending complex objects through AMF3 to a server
Thanks Kevin, I've been unable to send a remoteclass TO a server, I've been able to receive remoteclasses and the binding works fine, sending is a different story. I'm not using FDS however, so it possibly might be a drawback in the server. Best, Austin Kevin wrote: yes. HOW depends a little on where you are going with it (Java or PHP or ??) but you use the [RemoteClass (alias=''some.server.class)] to map your AS VO to your server VO. With PHP, you will need to use the $_explicitType variable in your PHP classes. - Kevin On May 3, 2007, at 4:40 PM, Austin Kottke wrote: Hi - is it possible to send an array of VOs over an AMF3 gateway to a server and have the server correctly parse this? I've noticed that only strings and ints are supported in the tests I'm doing. Is this true? Best, Austin
Re: [flexcoders] Sending complex objects through AMF3 to a server
I'm using the red5 os java server. Best, Austin Kevin wrote: Are you using PHP or Java? I have been able to do it fine using AMFPHP. In fact with PHP 5 you can use type hinting to force method parameters to be a specific VO. I would have to look at the code to see why it is not working, but it should work fine by just sending the VO through as a parameter of the called service. That said, since PHP is not strictly typed, so sending typed objects through to remoting services are not all that meaningful (or useful) unless you are planning to enforce the limited type hinting of PHP 5. Either way, in PHP, you need to verify that you got what you were expecting. I have only used FDS with Java, so I can't say for certain that it works with RPC, however from what I understand, it should. - Kevin On May 3, 2007, at 7:56 PM, Austin Kottke wrote: Thanks Kevin, I've been unable to send a remoteclass TO a server, I've been able to receive remoteclasses and the binding works fine, sending is a different story. I'm not using FDS however, so it possibly might be a drawback in the server. Best, Austin Kevin wrote: yes. HOW depends a little on where you are going with it (Java or PHP or ??) but you use the [RemoteClass (alias=''some.server.class)] to map your AS VO to your server VO. With PHP, you will need to use the $_explicitType variable in your PHP classes. - Kevin On May 3, 2007, at 4:40 PM, Austin Kottke wrote: Hi - is it possible to send an array of VOs over an AMF3 gateway to a server and have the server correctly parse this? I've noticed that only strings and ints are supported in the tests I'm doing. Is this true? Best, Austin -- This message has been scanned for viruses and dangerous content by *MailScanner* http://www.mailscanner.info/, and is believed to be clean.
[flexcoders] Can't recompile app? Odd caching with flexbuilder.
Hi, I have a project which is being compiled in flex builder. I then come back to it today and try to recompile and whatever I change in the source it is not reflected in the changes. I do a clean all, I delete the previous bin directories SWFs and then rebuild it through flex builder - it makes the files but it still does not do any of the source code changes I've just made. I then delete the project and import the project again in eclipse, reboot, and I still get the same problem. It does not change the SWF. I clear the cache - same thing. I've had this before one other time. Anyone ever experience this? Austin
[flexcoders] Datagrid scrollbar lag
Hi. I've got a datagrid with about 60 rows and 30 columns. Each has a custom item renderer that extends a Canvas component. The scrollbar that appears is lagging majorly with this set. I've tried cacheasBitmap, Implementing different dataproviders such as XMLListCollection and other things to somewhat speed up the lag-also changing framerate. It seems that the scrollbar lag stays. Anyone have any ideas on this? Best, Austin
Re: [flexcoders] Datagrid scrollbar lag
Thanks E, I saw that post. I tried using a DataGridItemRenderer -- extending it and putting the core logic in validateNow. This is the default item renderer Its not a UIComponent. Is there some speed increase by using the uicomponent? I *still* get major lag on the scroll bar after 20 or so records. I then remove the item renderer and its better, but its still laggy. I'm on a dual core 2.8 p4 -- I wouldn't expect the datagrid to run this bad. Any other ideas? Best, Austin Alex Harui's blog suggests that extending Canvas in a DataGrid's ItemRenderer is probably not a good idea if you have a lot of visible cells, because of the overhead that comes with using a container (they do a lot behind the scenes that you might not really need). His recommendation is to extend UIComponent directly and programatically lay out your view of the item. e
[flexcoders] 2.01 Update
Is there an ETA of the new flex builder 2.01 update? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Getting active styles from StylesheetManager
Is there a way to get the ENTIRE list of css entries? Rather than having to getStyle(Name), but just the individual entry list. This is extremely simple in as2.0, but with flex 2 I cant figure it out. I just want to get the entire list of css style names when the app is binded to a mx:Style source=styles.css / entry. Any ideas? - Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.