Re: [flexcoders] FlexTasks: Compc for Flash Player 10
On Mon, Dec 22, 2008 at 3:50 PM, Tyler Kocheran rfkroc...@gmail.com wrote: I'm aware that I can do compc on commandline with FP10, but is it possible yet to do it in FlexTasks for Ant? I haven't looked at the Flex 4 SDK yet, I've just been getting nightly builds of 3. You should be able to use ant. I haven't done a compc using ant yet, but I have used an mxmlc using ant and they share the target-player flag. -- mxmlc debug=true file=${main.application} output=${main.application.debug.out} target-player=10.0.0 load-config filename=${flex.config.xml} / compiler.include-libraries dir=${alchemy.dir} append=true include name=lua-alchemy.swc / /compiler.include-libraries /mxmlc -- So try using target-player=10.0.0 for compc
Re: [flexcoders] FlexTasks: Compc for Flash Player 10
Add the following flag to target flash player 10 compc -target-player=10.0.0 [other options] Also recommend you make sure you are using the 3.2+ SDK $ which compc /Applications/Adobe Flex Builder 3/sdks/3.2.0/bin/compc --Robert On Sat, Dec 20, 2008 at 5:07 PM, Tyler Kocheran rfkroc...@gmail.com wrote: Is there a way to use compc to generate a SWC file targeting Flash Player 10? Google yields little results on the matter. -- And do this, knowing the time, that now it is high time to awake out of sleep; for now our salvation is nearer than when we first believed.
[flexcoders] Lua Alchemy v0.1a Released
Lua Alchemy is a port of the Lua programming language for ActionScript using Alchemy. Using v0.1a inside Flash/Flex you can create any ActionScript class available at runtime, call functions, get/set properties on ActionScript objects and use Lua functions as an ActionScript function (including event listeners). The project can be found here: http://code.google.com/p/lua-alchemy/ A demo can be found here: http://www.arcanearcade.com/Flex/LuaAlchemyDemoV.1a/index.html The next version will include syntax sugar so instead of calling as3.call(var, function, param) you could call var.function(param) and similar calls to make calling ActionScript code look the same as calling Lua code.
[flexcoders] AIR Relative URL Requests
I had a web based Flex app and I've extracted common code to use in an AIR app. The Web application makes HTTPService and source=XXX requests using relative paths to the web application like this: mx:HTTPService id=imagesXML showBusyCursor=true url=config/images.xml resultFormat=e4x result=onImagesLoaded(event) fault=onLoadFault(event, imagesXML.url)/ mx:Image source=images/thumbnail.png height=46 width=46 scaleContent=true horizontalAlign=center verticalAlign=middle/
[flexcoders] Re: AIR Relative URL Requests
Sorry about the sending without the complete question. The cat jumped on the keyboard and managed to hit the gmail code to send the mail. Anyway the question is this: Can I set the base URL for an AIR app so all relative requests for an HTTPService, Image, Movie, etc go to the given location? On Fri, May 23, 2008 at 9:50 AM, Robert Stehwien [EMAIL PROTECTED] wrote: I had a web based Flex app and I've extracted common code to use in an AIR app. The Web application makes HTTPService and source=XXX requests using relative paths to the web application like this: mx:HTTPService id=imagesXML showBusyCursor=true url=config/images.xml resultFormat=e4x result=onImagesLoaded(event) fault=onLoadFault(event, imagesXML.url)/ mx:Image source=images/thumbnail.png height=46 width=46 scaleContent=true horizontalAlign=center verticalAlign=middle/
Re: [flexcoders] CS3 to flex tutorials
Here is my list of links on the topic: https://admin.adobe.acrobat.com/_a300965365/p75214263/ http://www.webkitchen.be/2008/05/05/the-flash-and-flex-marriage/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ http://www.moock.org/blog/archives/000253.html http://weblogs.macromedia.com/pent/archives/2007/04/example_of_the.html http://www.flexcapacitor.com/flexcomponentkit/ On Mon, May 19, 2008 at 10:25 AM, Kenneth Sutherland [EMAIL PROTECTED] wrote: Anyone recommend some good tutorials for creating a flash component that I can export into flex and change its values from flex. I've followed the following example on http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/which was pretty helpful. I've managed to create a component using the above example that can change its state but I'm unsure as to how to create in flash changeable properties. Say for example you wish to create the above example from the link (for those that haven't looked at the link it creates a blue ball that expands and contracts depending on its state) but as well as changing its size say you wished to give it a dynamic colour, or similar that would be settable at run time. I've only just started to look at flash so if anyone could point me in the direction of some tutorials or tell me how it's done that would be great. Most of the examples I've looked at so far do not have dynamic properties or miss out the steps that an experienced flash dev would probably know like the back of their hand J, but the whole timeline thing is still a bit for foreign to me right now. Cheers. Kenneth Sutherland Technical Developer Realise Ltd 0131 476 7432 *www.realise.com* enlightened e-business solutions Disclaimer -- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. --
Re: [flexcoders] Strategies for reducing size of Flex SWF?
You can link the Flex framework as a runtime shared library (RSL). This creates a framework_xxx.swf and .swz file that contain the entire flex framework instead of including the components you use in your application. You application becomes smaller but the framework is pretty big. The advantage is flash players cache the framework so once someone loads that version of the framework, they never need it again. In Flex Builder you change the framework linkage to RSL in the Flex Builder Path | Library Path properties of the project. http://www.onflex.org/ted/2008/01/flex-3-framework-caching.php http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:Flex_3_RSLs#How_to_use_the_Flex_Framework_as_an_RSL On Thu, May 15, 2008 at 1:18 PM, [EMAIL PROTECTED] wrote: I'm building simple apps in Flex as I'm quite comfortable with the development environment compared with Flash. I've noticed that the simplest possible application – just an mx:Applicationmx:Canvas/mx:Canvas/mx:Application - weighs in around 148KB when exported as a release build. What, if any, strategies are available for optimizing the size of SWFs produced by Flex? Best regards, Roger
Re: [flexcoders] Re: Flash CS3 Component Creation
For dynamic libraries check out modules mx.modules.Module, mx.modules.ModuleBase, mx.modules.ModuleLoader, mx.modules.ModuleManager. Modules are like RSLs but don't have to be loaded when the application starts. On Sun, May 11, 2008 at 1:28 PM, swidnikk [EMAIL PROTECTED] wrote: Right, thanks. I'm familiar with that link by Peter Ent. He recommends using the SWC inside of another SWF file and then using SWFLoader in the main app to load in that SWF. Its me who posted the final comment there. Hi solution is inconvenient though, since for each Flash component I now have, 1. FLA file to get the SWC (plus 'useless' SWF) 2. A Flex project for each FLA file that includes the SWC and compiles to a SWF. 3. Main application that dynamically loads the SWF from step 2 I have about 50 flash components and only a subset are loaded at any moment... so now I need another 50 projects for step 2 above. I still don't really understand why the 'useless' SWF from step 1 doesn't work... --- In flexcoders@yahoogroups.com, Robert Stehwien [EMAIL PROTECTED] wrote: NP. Here is one more link (that is actually the end of a series of related articles by Peter Ent. http://weblogs.macromedia.com/pent/archives/2007/04/example_of_the.html On Fri, May 9, 2008 at 10:20 PM, nathanpdaniel [EMAIL PROTECTED] wrote: PS. Thanks! I've seen the first one (video) which is actually really good - but the rest - hadn't seen those! :D --- In flexcoders@yahoogroups.com, Robert Stehwien rstehwien@ wrote: Here is my collection of links on the subject: https://admin.adobe.acrobat.com/_a300965365/p75214263/ http://www.webkitchen.be/2008/05/05/the-flash-and-flex-marriage/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by- step/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ http://www.moock.org/blog/archives/000253.html On Fri, May 9, 2008 at 3:37 PM, nathanpdaniel ndaniel@ wrote: I'm looking for tutorials on how to use the Flex Component kit in Flash CS3 to create components. I've seen a few videos by Glenn R. from Adobe, and a few other Adobe mini tutorials but all of them (for the most part) say You can do this! with no real way to understand it (source code, etc.)... if anyone knows of anything out there - I'd love to see it! :D -Nathan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: URLRequest using local cache but I don't want it to.
Or use UIDs instead of random mx:Script ![CDATA[ import mx.utils.UIDUtil; /mx:Script mx:HTTPService id=imagesXML showBusyCursor=true url=config/images.xml?foolcache={UIDUtil.createUID()} resultFormat=e4x result=onImagesLoaded(event) fault=onLoadFault(event, imagesXML.url)/ On Sat, May 10, 2008 at 10:14 AM, Dmitri Girski [EMAIL PROTECTED] wrote: Hi Phil, Try this method: http://www.jabbypanda.com/blog/?p=16 Cheers! --- In flexcoders@yahoogroups.com, Phil Heinz [EMAIL PROTECTED] wrote: Hi everyone, I have a Flex 2 Loader component that I pass a URLRequest to the load method. We have an issue that the SWF we're trying to load via http sometimes comes up with a 304 error from IIS. The problem is, no data is returned and I don't get the SWF. I've tried inserting Pragma-no-cache and Cache-Control-no-cache as requestHeaders, but I can't seem to get around the problem. We're seeing that most loads work fine, but occasionally IIS will report 304 and I don't get the SWF. Any ideas? Thanks!!! Phil -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Flash CS3 Component Creation
NP. Here is one more link (that is actually the end of a series of related articles by Peter Ent. http://weblogs.macromedia.com/pent/archives/2007/04/example_of_the.html On Fri, May 9, 2008 at 10:20 PM, nathanpdaniel [EMAIL PROTECTED] wrote: PS. Thanks! I've seen the first one (video) which is actually really good - but the rest - hadn't seen those! :D --- In flexcoders@yahoogroups.com, Robert Stehwien [EMAIL PROTECTED] wrote: Here is my collection of links on the subject: https://admin.adobe.acrobat.com/_a300965365/p75214263/ http://www.webkitchen.be/2008/05/05/the-flash-and-flex-marriage/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by- step/http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ http://www.moock.org/blog/archives/000253.html On Fri, May 9, 2008 at 3:37 PM, nathanpdaniel [EMAIL PROTECTED] wrote: I'm looking for tutorials on how to use the Flex Component kit in Flash CS3 to create components. I've seen a few videos by Glenn R. from Adobe, and a few other Adobe mini tutorials but all of them (for the most part) say You can do this! with no real way to understand it (source code, etc.)... if anyone knows of anything out there - I'd love to see it! :D -Nathan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Flash CS3 Component Creation
Here is my collection of links on the subject: https://admin.adobe.acrobat.com/_a300965365/p75214263/ http://www.webkitchen.be/2008/05/05/the-flash-and-flex-marriage/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ http://www.moock.org/blog/archives/000253.html On Fri, May 9, 2008 at 3:37 PM, nathanpdaniel [EMAIL PROTECTED] wrote: I'm looking for tutorials on how to use the Flex Component kit in Flash CS3 to create components. I've seen a few videos by Glenn R. from Adobe, and a few other Adobe mini tutorials but all of them (for the most part) say You can do this! with no real way to understand it (source code, etc.)... if anyone knows of anything out there - I'd love to see it! :D -Nathan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Printing flex datagrid to PDF.
You can use BitmapData#draw() to draw any display object to a bitmap. But that would, I believe, only show you what is currently displayed. It might be a start. --Robert On Thu, May 8, 2008 at 11:48 AM, Hemkarna [EMAIL PROTECTED] wrote: Friends, Is it possible to save the print stream of a DataGrid, AdvanceDataGrid to bitmaps or vector objects and beam the array to ColdFusion to retreive a PDF Document? I'm trying not to write a flex data grid report and then re-write the same using ColdFusion Reports. Any assistance with the same is really appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Group Box
Raghu, No problem. The Panel title gives you the text at the top of the box and within the panel you can use any components or layouts. If you want something that looks a little different, you will need to play with the styles of the panel. --Robert On Thu, Mar 27, 2008 at 7:41 AM, raghu kumar varma nadimpalli [EMAIL PROTECTED] wrote: Thank you Robert for the response. The example you have provided draws a panel and within it, the label and checkbox are drawn. The groupBox will have Lined Box with some text on the upperLine of the Box. And within box we should be able to add some more components. The GroupBox need to be in the following manner. TODO || |test1 | |test2 | || - Thank you On Wed, Mar 26, 2008 at 3:38 PM, Robert Stehwien [EMAIL PROTECTED] wrote: The equivalent of a group box is a Panel in Flex. Here is a quick example mx:Panel title=Panel Label layout=vertical mx:Label text=TODO/ mx:CheckBox label=test/ /mx:Panel --Robert On Wed, Mar 26, 2008 at 11:32 AM, Raghu [EMAIL PROTECTED] wrote: Is there any possibility of having group box in flex? If possible can u please update how it can be done. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Group Box
The equivalent of a group box is a Panel in Flex. Here is a quick example mx:Panel title=Panel Label layout=vertical mx:Label text=TODO/ mx:CheckBox label=test/ /mx:Panel --Robert On Wed, Mar 26, 2008 at 11:32 AM, Raghu [EMAIL PROTECTED] wrote: Is there any possibility of having group box in flex? If possible can u please update how it can be done. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] AIR + Fles communication on the same machine.
Check out LocalConnection for your first problem, as for the second I know AIR cannot execute programs on the local filesystem. A potential solution to your second (and first question) is to run a webservice or raw tcp/ip server that AIR and Flex connect and make requests to do the work. There is also Merapi to connect Java and AIR on your desktop coming someday: http://adamflater.blogspot.com/2008/02/meet-merapi.html --Robert On Wed, Mar 26, 2008 at 1:47 PM, Nicolas Boulet-Lavoie [EMAIL PROTECTED] wrote: Hello, Is that possible to call a method which is in a AIR app running from a Flex app on the same machine? Ex: Flex App running on the browser call the method startSomething. AIR app catch this event then execute a file on the local file system. There is also a 2nd part to this question. Is that possible to execute a file (ex: .bat) from a AIR app? Thanks Nicolas -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Automate build for large apps?
Sorry for the terse reply, but try the following: * Ant (probably your best bet since you use nant) * http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks * http://code.google.com/p/flex-template/ * http://code.google.com/p/antennae/ * Rake * http://code.google.com/p/flexible-rails/ * http://theblogthatnoonereads.tunasoft.com/2007/04/29/building-flex-on-rails/ * http://www.railsenvy.com/2007/6/11/ruby-on-rails-rake-tutorial * Sprouts? http://www.projectsprouts.org/ I wrote a solution in Final Builder (the standard the people I worked for use) that looks at the Flex Builder .flexLibProperties and creates a command line build xml. The transforms were fairly simple like includeclasses = include-classes. --Robert On Tue, Mar 25, 2008 at 9:41 AM, toofah_gm [EMAIL PROTECTED] wrote: Does anyone have an answer for this? --- In flexcoders@yahoogroups.com, flexinator2 [EMAIL PROTECTED] wrote: We have a very large Flex2 application with several hundred classes and around a dozen RSL (swc files). We've been using the flex2 eclipse IDE to do builds but would like to automate it and throw it in our CruiseControl server. I'm using nant to perform the build. I've been using the command line compilers -- compc.exe to build the .swc files. I am using config xml files with the -load-config parameter. I don't see any other way to build .swc files without having to manually tell compc .exe which classes to include (among other things). Beyond this being tedious, every time a new class is added, removed or renamed, the hard coded build script will blow up or at least won't include what it should. Perhaps I'm missing something, but I didn't see any way to have the command line compilers read the already existing project files such as .actionScriptProperties and .flexLibProperties that already have all the information I need to build a .swc file. Now I could build my own executable that reads these project files and build new config xml files on the fly for compc. This way I can make a truly automated build that will read any changes made to the flex projects. Is there a better way to accomplish an automated build for large Flex2 apps? Thanks, Tim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: How do I set width to 100% in actionscript?
Yep, with percentHeight On Tue, Mar 25, 2008 at 4:51 PM, arieljake [EMAIL PROTECTED] wrote: Along these lines, can a resize effect with property heightTo be given a percent height? --- In flexcoders@yahoogroups.com, westlandc [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, luvfotography ygroups@ wrote: How do I set the width to 100% using actionscript?? It only allows a number - not a string!?! var newcanvas:Canvas = new Canvas(); newcanvas.width = 100%; 1067: Implicit coercion of a value of type String to an unrelated type Number. Use percentWidth -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] GIS and Flex
You can use the ESRI, yahoo, mapquest, google, etc map APIs. You can also read the ArcView Shape files and associated DBF files using this library and create your own components. http://code.google.com/p/vanrijkom-flashlibs/ I started with that library to create a heat-map component using maps. The problem with embedding or even downloading ArcView shape files is their size - even the US is over a meg. The problem is that shape files just store points and there are a great number of points. You can reduce the size by storing in your own format (a fixed width integer is half the size of a floating point number). I did that plus ran some map simplification algorithms to reduce the number of points and ended up getting even a world map down to under 100K. Sadly I cannot share the code (it was done for hire). On Fri, Mar 14, 2008 at 12:52 AM, kapil b [EMAIL PROTECTED] wrote: Hi All, Does anybody have idea how to implement gis(geographyical information system) in flex with the gis data in it. What kind of gis data format files the flex requires so that i can retrieve the data and display it in the UI. Thanks -- Now you can chat without downloading messenger. Click herehttp://in.rd.yahoo.com/tagline_webmessenger_5/*http://in.messenger.yahoo.com/webmessengerpromo.phpto know how.
Re: [flexcoders] Help with RegEx
For functions use a regular expression like: function[\s\S]*{[\s\S]*} This looks for function followed by zero or more of any character (including newlines), followed by {, followed by zero or more of any character (including newlines), followed by }. For classes replace function with class above. FYI: I use RegEx Buddy to help me with my regular expressions http://www.regexbuddy.com/ (I am in no way affiliated with the company, just like the product). I tested the function expression in that tool for JavaScript and it seemed to work even when nesting. What it wouldn't help you with is if you nested functions within functions (like when declaring a function object). But I don't have time to fiddle with that right now. --Robert On Thu, Feb 14, 2008 at 6:22 AM, marty.pitt [EMAIL PROTECTED] wrote: Hi Can someone please give me a hand on a RegEx? (I can't work these things out for the life of me). I'm basically trying to return nested groups inside delimeters. An example we're all famililar with is the simple package / class structure in Flex: package foo { class bar { function stuff { ... } } } Given the delimeters oof { and }, I want to be able to return: function stuff { ... } As well as class bar { function stuff { ... } } etc., up the chain. I currently have the following regex working: {\d*?\D*?} Which works fine without nesting. As soon as you introduce nested elements, it all gets a bit messy. any help would be greatly appreciated. Cheers Marty -- 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
[flexcoders] How to update UI during long operations
I've got a long operation that is updating the UI through data binding, but the UI doesn't update until the operation finishes. How can I relinquish enough control to the UI to update during long operations? Thanks, Robert
Re: [flexcoders] How to update UI during long operations
Thanks. I was afraid of that. Right now I'm using recursion for the solution. I can refactor my code so the recursive state is saved and control is returned to the UI. --Robert On 9/6/07, Tracy Spratt [EMAIL PROTECTED] wrote: You need to break the operation up into parts which is fairly straight forward if you process is/has a loop. Create an iterator function that processes a set number of items in the loop, starting from the value you keep in an instance variable. At the end of that function, update the instance variable with the ending index, then use callLater() to call another function. Have that function do any screen updates then call the iterator again if the index flag is less than the length of the loop. callLater() will let the UI update. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Robert Stehwien *Sent:* Thursday, September 06, 2007 1:32 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] How to update UI during long operations I've got a long operation that is updating the UI through data binding, but the UI doesn't update until the operation finishes. How can I relinquish enough control to the UI to update during long operations? Thanks, Robert