Re: [flexcoders] Flash 9 Stage size - 2880 x 2880 limitation
Thanks guys ... ! I am still waiting to get my CS3, so I wasn't able to test yet. Alex Harui wrote: That is correct +/-8191 pixels. 2880 is bitmap max *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Claus Wahlers *Sent:* Friday, April 20, 2007 8:56 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flash 9 Stage size - 2880 x 2880 limitation Daniel Wabyick wrote: I have a friend creating a huge wall-display project with a screen resolution of around 3600 x 3600 pixels. So, he should be able to create an app that's 1800x1800, and then simply go fullscreen which will scale Flash to the needed res (what you were saying). Afaik, the max stage size in Flash Player 9 is -8192 - +8192 (ish). Afaik, the max bitmap size is 2880x2880. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ http://wahlers.com.br/claus/blog/
[flexcoders] Flash 9 Stage size - 2880 x 2880 limitation
Does anyone know offhand if Flash 9 still has the 2880 x 2880 stage size limitation? I know that the bitmap related classes still have that limitation. Thanks! -Daniel
Re: [flexcoders] Flash 9 Stage size - 2880 x 2880 limitation
I have a friend creating a huge wall-display project with a screen resolution of around 3600 x 3600 pixels. So, he should be able to create an app that's 1800x1800, and then simply go fullscreen which will scale Flash to the needed res (what you were saying). Igor Costa wrote: Still have the same size limitation. Who need's more? if fullscreen it's enabled to fp9? the file FP9 IDE limitation i'ts for work only . On 4/20/07, * Daniel Wabyick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Does anyone know offhand if Flash 9 still has the 2880 x 2880 stage size limitation? I know that the bitmap related classes still have that limitation. Thanks! -Daniel -- Igor Costa www.igorcosta.org http://www.igorcosta.org www.igorcosta.com http://www.igorcosta.com skype: igorpcosta
[flexcoders] EnhancedButtonSkin release
Hey all ... Just wanted to let you know I released an improved version of the halo button skin, providing for much finer control over gradient colors and individual corner radii. It should be useful I posted a little blog article introducing it in more detail, and also created a mini style explorer so that you can test it out. http://www.wabysabi.com/blog/2007/04/13/flex-enhancedbuttonskin-component-released/ I would be happy to release it through the Flexlib project as well. Cheers, -Daniel
Re: [flexcoders] Changing corner radii on a button
Hey Troy, I created a EnhancedButtonSkin that handles non-symmetric corner radii, as well as arbitrary number of color values in the gradient. Its not ready for public distribution, but contact me off the list and I'll send you the code. Cheers, -Daniel Troy Gilbert wrote: It would seem like it should be very straightforward to have a button where you could specify the corner radius for each corner, and I believe you could do this in Flex 1.5, but it doesn't appear that I can do this in Flex 2 without sticking in a new skin for the button... and on first impression, I'd need to stick in several skins (for each of its states). Am I missing something? Interestingly, I can specify different corner radii for the button's *focus rect* but not for the button... not sure why I'd want to do one and not the other... Troy.
Re: [flexcoders] Modules at 360Flex conference
Hi Roger, Could you clarify a little bit more about the 'cross-swf font access problem?' I think there are a number of developers who have tried to get that working, but haven't been able to get things completely working. Thanks, -Daniel Roger Gonzalez wrote: What is the issue with smaller swf output file sizes? If you use link-report and load-externs, you can optimize swf size for both the modules and the main app without any issues. Just out of curiosity, have you filed any bugs regarding the other issues you've encountered? (Cross-SWF font access is a problem at the player level, but the other stuff is all fixable.) -rg *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Bjorn Schultheiss *Sent:* Wednesday, March 07, 2007 7:00 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Modules at 360Flex conference Shaun, Smaller Swf output file sizes, Module support within the mx framework, Module support within Cairngorm, Issues with Viewstacks and Binding, Embedding Fonts, I think there are a couple more as well. Bjorn On 08/03/2007, at 1:11 PM, shaun wrote: Bjorn Schultheiss wrote: Hey Alex, After your experience with modules do you believe it was the correct decision to include it in 2.01 as opposed to waiting for 3.0? ! Over here we just refactored away from modules to the mon! olithic ria because of outstanding issues.. What are the outstanding issues? cheers, - shaun
[flexcoders] Label component - problem with truncateToFit
Hi, While I have managed to get ... to work in a number of situations, for some reason the text in the label is not truncating as expected. Does anyone know how to get the textfields to truncate properly? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:HDividedBox width=300 mx:VBox width=100% height=100 borderStyle=solid horizontalScrollPolicy=off mx:Label text=test truncate / /mx:VBox mx:VBox width=100% height=100 borderStyle=solid horizontalScrollPolicy=off mx:Label text=test truncate truncateToFit=true / /mx:VBox /mx:HDividedBox /mx:Application Thanks, -Daniel
[flexcoders] Label component - problem with truncateToFit
Ah, found an answer. truncateToFit doesn't work with percentWidth, or when not specifying a width. The following works: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:HDividedBox width=300 mx:VBox id=b1 width=100% height=100 borderStyle=solid horizontalScrollPolicy=off mx:Label text=test truncate width={ b1.width } / /mx:VBox mx:VBox id=b2 width=100% height=100 borderStyle=solid horizontalScrollPolicy=off mx:Label text=test truncate truncateToFit=true width={ b2.width } / /mx:VBox /mx:HDividedBox /mx:Application While I have managed to get ... to work in a number of situations, for some reason the text in the label is not truncating as expected. Does anyone know how to get the textfields to truncate properly? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:HDividedBox width=300 mx:VBox width=100% height=100 borderStyle=solid horizontalScrollPolicy=off mx:Label text=test truncate / /mx:VBox mx:VBox width=100% height=100 borderStyle=solid horizontalScrollPolicy=off mx:Label text=test truncate truncateToFit=true / /mx:VBox /mx:HDividedBox /mx:Application
[flexcoders] turn off reuse of list item renderers
I am having some problems with a focus issue in a 'refreshing list' due to the recycling of list item renderers. Is there any way to turn the recycling of list item renderers off? That would definitely resolve my issue. Thanks, -Daniel
Re: [flexcoders] Flex Builder 2.0.1 Eclipse Plugin Issues
Not positive, but I don't think Eclipse 2.0.1 is officially supported in 3.1 You may need 3.2. -D Rich Tretola wrote: I upgraded my Flex Builder 2 plugin on Eclipse today (Eclipse 3.1 on Win XP) to 2.0.1 and I am now getting an error when trying to open any of my projects which were defined as java projects. Here is the error: A problem occurred while opening this project. Try quitting and restarting the application. If the problem persists, you may be using an unsupported project version, or your project files may be corrupted. If I accept the dialog, I can edit the MXML and AS files within the MXML and ActionScript editors however I do not get any code hints. Has anyone else seen this issue? Rich
[flexcoders] Onscreen keyboard
I am working on an onscreen keyboard for a touchscreen Flex application. Building out the UI should be simple, but I am wondering if anyone has ideas on the best way to 'plug in' to the normal Flash key event system. I know I can get the current focused object via focusManager.getFocus(), but I am uncertain as to the best way to 'simulate' the keyboard. I can create KeyboardEvents, but how do I dispatch them so that the appropriate components are listening? Thanks, -Daniel
Re: [flexcoders] Onscreen keyboard
Thanks Jim. Using automation as a base is a very good idea. TextFieldAutomationHelper seems like the key. It may be a bit more heavy-handed then I need for this application, but I haven't decided which way to go yet. Thanks again ... Jim Cheng wrote: Daniel Wabyick wrote: I am working on an onscreen keyboard for a touchscreen Flex application. Building out the UI should be simple, but I am wondering if anyone has ideas on the best way to 'plug in' to the normal Flash key event system. I know I can get the current focused object via focusManager.getFocus(), but I am uncertain as to the best way to 'simulate' the keyboard. I can create KeyboardEvents, but how do I dispatch them so that the appropriate components are listening? First, get the Flex 2.0.1 updater if you haven't already. The new Flex Automation framework source code that's enclosed in it will make all the difference between a couple hours of work versus pulling your hair out in frustration for weeks on end. For components not based on TextField objects, it's trivial--call the dispatchEvent() method on the currently focused component with script-instantiated KeyboardEvent instances. That's how Flex Automation does it. You can see for yourself if you have the Flex 2.0.1 update installed. Just dig framework source directory and check out line 272 of: mx/automation/delegates/core/UIComponentAutomationImpl.as TextFields are trickier. To get correctly emulated behavior, you need to both emulate the original keystroke plus do some text manipulation, since not all of it's behavior is mediated through the script-accessible keyboard events. Aside from dispatching the event, you'll also need to set the selection to the next position and then replace the selected text with the character specified by your virtual keyboard for regular keystrokes, while special characters like enter, delete, backspace and such require some custom handling. Again, the automation classes show you exactly how to do this, see the replayAutomatableEvent method (lines 270-436) of: mx/automation/delegates/TextFieldAutomationHelper.as That should be sufficient for most text entry situations. If you need more even advanced event emulation, you should probably consider using Flex Automation. Having tried and failed to do much of the same thing using ActionScript 2 in the past, I must say that the automation framework is truly a lifesaver when it comes to such skulduggery. While automation is primarily intended for interaction logging and automated replay for testing purposes, it can also be exploited to simulate all manner of user interactions in non-standard ways (such as your virtual on-screen keyboard). While the Mercury QTP plugin is needed for out-of-the-box testing with Mercury, you don't actually need to download the plugin installer (and shell out for a commercial FDS license) to get access to and make use of Flex Automation proper for your own purposes. To hook into Flex Automation yourself, you'll need to write your own custom adapter classes implementing the IAutomationManager and IAutomationObjectHelper interfaces and connect these to whatever floats your boat (perhaps a server back-end, a built-in debugging dialog, or maybe even a future version of John Grden's XRay targeting Flex and ActionScript 3). This shouldn't be too hard for a seasoned Flex developer familiar with the rest of the existing framework--I've managed to make a good bit of headway into writing a few test classes that integrate with the Flex Automation framework after a weekend's worth of hacking. Unfortunately though, there's currently very little in terms of existing examples or documentation to help you find your way around in there. Hopefully, Adobe might remedy this in the near future (hint, hint). Jim Cheng effectiveUI
Re: [flexcoders] new application comments/reviews welcome
Very cool app. A usability comment - Its not so great having to scroll down through so many choices to get to the 'Next' / 'Back' arrows. I would prefer if they were always visible. Another alternative is to make the app resize on height based on the browser window size. Good work ... -D Rich Tretola wrote: Please take a moment if you can to check out my new application and post comments on the blog post below if possible: http://everythingflex.wordpress.com/2007/01/24/announcing-ringdesignonlinecom-flex-2/ http://everythingflex.wordpress.com/2007/01/24/announcing-ringdesignonlinecom-flex-2/ Rich
Re: [flexcoders] Holy crap, Flex 3.0 is going to be at 360Flex
Whoah, wait for the world to catch up to Flex 2! ;-) I will definitely be in attendance at 360Flex ! -D lar.drolet wrote: http://www.powersdk.com/ted/ http://www.powersdk.com/ted/ I am only now getting into version 2.0.1 with mild success, feel as if I have not touched on all that can be done, far from it. Now I am really glad I signed up for that conference, be nice to see what Adobe has planned. Any guesses as to what more they could add? Some of my guesses: More components Better modularity More/better support for Apollo The article did say it will be released when the Flash 9 player hits 90% penetration, so that may be before the end of the year I guess. Bring it on! LD
Re: [flexcoders] Config Flex Builder 2.0.1 posting HTTP instead of local file
I think you want to set Project Properties - Flex Build Path - Output folder URL and that will be used when running/launching your app. seng ung wrote: Every time, I selected Run button to excute Index.mxml. Flex Builder 2.01 will excute to my local file. For example, in any Broswer, it shows file:///C:/Flex_FrameWork/Emp/bin/Index.html file:///C:/Flex_FrameWork/Emp/bin/Index.html. Is there anyway that I can config my Flex Builder 2.01 to Run as a localhost instead of local file as the following : http://Localhost/_Flex_FrameWork/Emp/bin/Index.html_ http://Localhost/Flex_FrameWork/Emp/bin/Index.html Never Miss an Email Stay connected with Yahoo! Mail on your mobile. Get started! http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/services?promote=mail
Re: [flexcoders] AS3 code obfuscators
Thanks for the info I agree that that code obfuscation is of low worth, especially if you keep sensitive code to the server. Nevertheless the client asked for it, so I thought I would investigate a bit. Best, -Daniel Jim Cheng wrote: Daniel Wabyick wrote: Does anyone know of any AS3 code obfuscators out there? I don't know of any publicly available obfuscators. But, given the fact that Adobe has contributed the source code for the AS3 virtual machine to the the Mozilla community as the Tamarin project, it would not be very difficult for one to be written. Be forewarned, however, there is already a basic AS3 decompiler written in AS3 available with the sources, and in them lie myriad starting points for writing bytecode analysis programs in both C++ and AS3 (or any other language of your choice, if you care to do the porting). See: http://www.mozilla.org/projects/tamarin/ http://www.mozilla.org/projects/tamarin/ http://www.5etdemi.com/blog/archives/2007/01/as3-decompiler/ http://www.5etdemi.com/blog/archives/2007/01/as3-decompiler/ Like others have already mentioned, you're best off keeping your highly sensitive code tightly secured on the server-side. That is to say, you really shouldn't implement trade secrets or sensitive financial data encryption algorithms in a SWF. But if you want to make your latest Flex-based game a little bit harder to steal or cheat at, obfuscation might at best deter casual thievery and create more busy work for the truly dedicated. That being said, there are still quite a few very interesting things that can now be done given that we've got the Tamarin source code. ;) Jim
[flexcoders] AS3 code obfuscators
Does anyone know of any AS3 code obfuscators out there? Thanks, -D
Re: [flexcoders] Embed statement and relative paths
Relative paths, strangely, are relative to the *file* that you are embedding assets in. So what I assume is that you are embedding in an MXML or CSS file some ways down in your project hierarchy. My solution to this was to create an EmbedRegistry class which is the sole location of embed statements throughout my (medium sized) project. /** Truncated version of the Embed registry. **/ public class EmbedRegistry { [Embed(source='../../../../assets/static_assets.swf', symbol='scene_icon')] public static const sceneIcon : Class; [Embed(source='../../../../assets/static_assets.swf', symbol='presentation_icon')] public static const presentationIcon : Class; } Then, I can use the classes like such: mx:Button icon={ EmbedRegistry.sceneIcon } / Hope that helps! -D Janis Radins wrote: Ignore previous message, accidentally pressed Send button to early So the problem is: I've stumbled upon problem that appears when I try to Embed some assets in class Flex doesnt accept relative paths. Somehow I thought it should threat project root as root path for any embedding but it seems it doesnt. Guess I tried everything and only full path starting from C:/ worked. Is this normal behavior or this is bug? Janis
Re: [flexcoders] Re: Embed statement and relative paths
I swear that didn't work in 2.0 ... Thanks for the tip! ben.clinkinbeard wrote: Beginning the embed path with a slash is interpreted as the root of your project. [Embed(source='/assets/static_assets.swf', symbol='scene_icon')] HTH, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Janis Radins [EMAIL PROTECTED] wrote: Ignore previous message, accidentally pressed Send button to early So the problem is: I've stumbled upon problem that appears when I try to Embed some assets in class Flex doesnt accept relative paths. Somehow I thought it should threat project root as root path for any embedding but it seems it doesnt. Guess I tried everything and only full path starting from C:/ worked. Is this normal behavior or this is bug? Janis
Re: [flexcoders] source code management and FlexBuilder
I have had some luck with this by setting up Linked Resources ( Windows - Preferences -General - Workspace - Linked Resources ), and then using these paths in my Flex Project source path For example, create a Linked Resource MYPROJECT_SDK, and then add it to the Flex project source Path: ${MYPROJECT_SDK}. This will allow you to check in .project files with no relative paths. Hope this helps! -D Douglas Knudsen wrote: Ok, we are using CVS to store our code base, ANT to push builds. yeehaw! But its a PITA to share code! I can't get a whole team of developers to use exactly the same path for their workspace and exactly the same path for Flex SDK, etc. FB uses absolute paths in its project config files. Anyone work around this any yet unsuccessfully? -- Douglas Knudsen http://www.cubicleman.com http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Code behind- do you use it?
I highly recommend it as well. As a simple example, I might want to enhance the List component to autoscroll to the selected item upon selection. Simply create a class 'AutoscrollList.as' that you can then use that class in your MXML ui:AutoscrollList /. (code included below) Like others, I don't use it when I add one or two UI centric functions to a UI class. Cheers, -D package ui { import mx.controls.List; public class AutoscrollList extends ExtendedList { override public function set selectedIndex( value:int ):void { super.selectedIndex = value; scrollToSelected(); } override public function set selectedItem( value:Object ):void { super.selectedItem = value; scrollToSelected(); } override public function set dataProvider( value:Object ) : void { super.dataProvider = value; scrollToSelected(); } public function scrollToSelected() : void { // TRICKY: Delay the invocation to avoid redraw bugs starting in 2.0.1 if ( selectedIndex = 0 ) { callLater( scrollToIndex, [ selectedIndex ] ); } //this.scrollToIndex( selectedIndex ); } } } ben.clinkinbeard wrote: I am undecided as to whether or not I want to use the code behind method for my MXML files and figured I would see what others are doing. I am currently just using Script blocks at the top of my files to do event handling, initialization, etc but some of them are getting pretty big. So what are others doing? No AS in your MXML files, no code behind, a mixture of the two? Thanks, Ben
Re: [flexcoders] Code behind- do you use it?
Good poont. The example I gave is not exactly describing code-behind. I would use the ui:AutoscrollList / within another VBox (e.g), not as a top element. Nevertheless, I do use code-behinds (using an Actionscript class as the top element of an MXML component) at times, but usually more as an abstract class where I expect there to be multiple subclasses, not as a code-behind for a single class. Cheers, -D Ralf Bokelberg wrote: From an OOP point of view, would you really create a subclass just to divide the code into smaller pieces? I guess no. Imho it's better practice to extract real classes/objects from mxml files, if possible. Cheers, Ralf. On 1/16/07, *Daniel Wabyick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I highly recommend it as well. As a simple example, I might want to enhance the List component to autoscroll to the selected item upon selection. Simply create a class 'AutoscrollList.as' that you can then use that class in your MXML ui:AutoscrollList /. (code included below) Like others, I don't use it when I add one or two UI centric functions to a UI class. Cheers, -D package ui { import mx.controls.List; public class AutoscrollList extends ExtendedList { override public function set selectedIndex( value:int ):void { super.selectedIndex = value; scrollToSelected(); } override public function set selectedItem( value:Object ):void { super.selectedItem = value; scrollToSelected(); } override public function set dataProvider( value:Object ) : void { super.dataProvider = value; scrollToSelected(); } public function scrollToSelected() : void { // TRICKY: Delay the invocation to avoid redraw bugs starting in 2.0.1 if ( selectedIndex = 0 ) { callLater( scrollToIndex, [ selectedIndex ] ); } //this.scrollToIndex( selectedIndex ); } } } ben.clinkinbeard wrote: I am undecided as to whether or not I want to use the code behind method for my MXML files and figured I would see what others are doing. I am currently just using Script blocks at the top of my files to do event handling, initialization, etc but some of them are getting pretty big. So what are others doing? No AS in your MXML files, no code behind, a mixture of the two? Thanks, Ben -- Ralf Bokelberg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
Re: [flexcoders] Compile sizes of swf file getting bigger and bigger
Make sure your swf files / extensions are marked as binary in CVS. It could be that its checking it in as ascii, which might explain the file size increase. patricklemiuex wrote: Any body notice the size of their swf files increasing after committing to a cvs server. I am having an issue where my swf file went from 490 to 1.7 meg. To fix this I have to check out my project into a new workspace. This happens every time I commit. Thanks, Patrick
Re: [flexcoders] Slow building after 2.0.1 update
I have also experienced a slow-down, as well as new instability when the same source code is opened in multiple projects. It seems to help if you close one of the projects you are working on. In general, I have found the 2.0.1 IDE to be less stable than 2.0, and I am consdering switching back to 2.0, and just using the 2.0.1 framework code. Allen Riddle wrote: Has anybody experienced a massive slowdown in building in the IDE? I have a data services project that compiles on the server, but when it builds in FlexBuilder, it has slowed down a ton. Anybody know why? Thanks. **Allen Riddle** Sofware Development x3217
Re: [flexcoders] Re: Erratic behavior when modifying an item of filtered ArrayCollection
Hi Ben, I had similar problems using filters on ArrayCollections and lists. Some really weird rendering issues happened, and I basically manually implemented filters (e.g myCollection.removeAll(), myCollection.addItem( item1 ), myCollection,addItem( item 2)). This played nicely with binding. I believe I filed bugs against this in 2.0, but I can't fully recall. Did this change at all in 2.0.1 ? Cheers, -D ben.clinkinbeard wrote: Hi Dimitrios, Thanks for the reply. I am not sure exactly when/where you were suggesting I apply the sort, but even if that fixed the issue I don't know how usable a solution it would be. Since the collection is being displayed in a DataGrid, it may have already been sorted in various ways and I need to preserve the existing order. Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Try applying a sort function to the ArrayCollection, maybe that will solve your problem. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of ben.clinkinbeard Sent: Wednesday, January 03, 2007 5:05 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Erratic behavior when modifying an item of filtered ArrayCollection Hello, I have a DataGrid displaying an ArrayCollection, and one column using a CheckBox as the itemRenderer. I am properly overriding the data method in the renderer and updating an underlying property of the item that is clicked. The problem is that when there is a filterFunction applied to the ArrayCollection, updating that underlying property causes erratic behavior in the DataGrid, such as the reordering of rows. If there is no filter applied or I comment out the line that actually updates the row's value there are no issues, so its definitely related to the updating of the data. Even stranger is the fact that not every row seems to trigger the reordering. Clicking on the CheckBox in the first or last row in the DataGrid always causes the problem, but with rows in the middle the problem isn't as consistent. Anyone have any idea what is going on or how to avoid this? Thanks, Ben -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] 2.0.1 bug - Cutting text in the MXML editor with code folding on causes redraw issues.
I just ran into a bug with the MXML editor when code folding is on. Just filed the bug, but I thought I would send this out to see if a) others have the issue, b) there appears to be a workaround. The bug occurs when cutting text in the MXML editor. To reproduce: 1) Create a new mxml app: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:VBox mx:HBox /mx:VBox /mx:Application 2) Select the following: xmlns:mx=http://www.adobe.com/2006/mxml; 3) Hit CTRL-X. Note that the 1st and 5th line of text disappear. The good news is that turning off code folding appears to fix the problem. I am on a new install of Flex 2.0.1, Eclipse 3.2 on Windows XP. Other plugins include Callisto and the Spring IDE component. Would be curious if others can reproduce. -D
[flexcoders] 2.01 bug - Bug cutting text in the MXML editor with code folding on.
I just ran into a bug with the MXML editor when code folding is on. Just filed the bug, but I thought I would send this out to see if a) others have the issue, b) there appears to be a workaround. The bug occurs when cutting text in the MXML editor. To reproduce: 1) Create a new mxml app: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:VBox mx:HBox /mx:VBox /mx:Application 2) Select the following: xmlns:mx=http://www.adobe.com/2006/mxml; 3) Hit CTRL-X. Note that the 1st and 5th line of text disappear. The good news is that turning off code folding appears to fix the problem. I am on a new install of Flex 2.0.1, Eclipse 3.2 on Windows XP. Other plugins include Callisto and the Spring IDE component. Would be curious if others can reproduce. -D
[flexcoders] NetConnection - AMF0 bug when using object references ?
I have been porting an AS2 application built against an OpenAMF back-end to Flex 2, and have been using NetConnection with ObjectEncoding.AMF0. All was going well, but I recently hit a bug where FP9 seemed to misinterpret object/array references when deserializing the Remoting data. I am pretty sure this is not an OpenAMF bug, as the AS1/AS2 AVM deserializes the data correctly. Is this by any chance a known issue? Thanks, -Daniel
[flexcoders] Bug with List when variableRowHeights = true
I am experiencing a bug with the List component when using variableRowHeights=true . The bug occurs when the first item in the list is very big. Basically, the list 'blows out' its minimum height unnecessarily to the point where you lose the bottom scroll arrow. The following example demonstrates this ... I did already file a bug for this, but I am hoping there is a workaround for now. Thanks, -Daniel ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ // An array of heights with a big first element (broken) private var heights1 : Array = [400, 60, 90, 43, 50, 69, 80, 90, 90 ]; // An array of heights with a small first element (works) private var heights2 : Array = [40, 60, 90, 43, 500, 69, 80, 90, 90 ]; // Set this to heights2 to experience working behavior private var dp : Array = heights1; ]] /mx:Script mx:HBox height=400 verticalScrollPolicy=off mx:List dataProvider={ dp } columnWidth=260 variableRowHeight=true height=100% mx:itemRenderer mx:Component mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=left backgroundColor=#99 verticalAlign=top width=100% borderColor=White borderStyle=solid height={ Number(data) } mx:Button label=Button width=230 height=25 / /mx:VBox /mx:Component /mx:itemRenderer /mx:List /mx:HBox /mx:Application
[flexcoders] Binding behavior changes between 9,0,16 and 9,0,28
Has anyone noticed any behavior changes between 9,0,16 and 9,0,28? In a fairly large-scale project, I have noticed one or two instances of a binding getting broken in 9,0,28. I have not been able to create an easily reproducable test case. The particular issue was using a button within a custom IDropInListItemRenderer implementor, for what its issue. Anyone have any clues as to what may have changed to cause this issue? Thanks, -Daniel
Re: [flexcoders] Re: Cairngorm's Anaemic Domain Model
You may also want to read up on the executeBindings() and executeChildBindings() functions ... You may be able to call that on initialization and get your binding to fire. Lachlan Cotter wrote: The valueCommit event fires when the control is changed programmatically. Docs sa also on user interaction, but I'd verify this first. Tracy *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dmitry Kochetov *Sent:* Wednesday, December 06, 2006 6:24 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Combo box selectedlabel problem. Hello, Try to dispatch event from your combo manually, like myCombo.dispatchEvent( new Event( Event.CHANGE ) ); haravallabhan wrote: Hi all I want to set the initial value of a combo box to the first item when the application loads and load another component according to the item selected. The functionality works when I use a change action in the combo box.That is it works when I manually change the item of the combobox. But it is not working when the application is loading. That is the event is not listening when the application loads. Examples I have say 5 items select Code,1,2,3,4. So the default vaue will be select code.A alue for 1 will show an apple image in another a componentand so on. When I manually change to the value 2 the image changes and when I change to 1 the image is changed to apple. I want the application to start with the initial value of the combo box set to 1. So that the initial image will be apple.Though the combo box is set to 1 there is no image shown. Only when I do it manually it shows up. Can any one help on this regard. Thanks in Advance Hara -- Feсi quod potui, faciant meliora potentes -- 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] (was) Styling in Flex is officially ridiculous -- New button skin
One thing this discussion proves is how difficult it is to create a button flex that provides enough flexibility for the average developer. I don't think the border is the only limitation. Here are a few other limitations with the default button skin: - Selected states only support a single fill color. - Corner radii cannot be specified individually (although the FocusSkin somehow supports this) There are probably others. Perhaps it would be worth aggregating these requirements, and then create a community supported Flex skin repository? I would definitely be willing to help with this. Thoughts? Michael Schmalle wrote: something that I feel needs to be addressed in order to improve the Flex framework. I think that is all you had to say in your original post. As far as me, along with the line above... what do we do? We know this isn't going to be changed in the near future. So, we as 'advanced and complicated developers' create a solution from a problem and blog about it. Peace, Mike On 11/30/06, *ben.clinkinbeard * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I must say, I really don't understand how I am being offensive. If you took issue with my hypothetical new developer conversation, well, you shouldn't. I was merely trying to point out that your solution is a complex one, and requiring these types of workarounds does not encourage the very important drive towards Flex adoption by new developers. I was also very clear to state that I have immense respect for Adobe, and did not call them 'teh suck' or anything similar. I am trying to draw attention to something that I feel needs to be addressed in order to improve the Flex framework. I think EECOLOR summed up my thoughts pretty well by pointing out that lots of other things are done with getStyle() and it sure would have been nice to make border one of those things. Roger, thanks for the XP theme link, I had not seen that before. Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: EDIT :: In a way, the Button does have a borderStyle, it's the button's name property. supposed to be In a way, the ButtonSkin class does have a borderStyle, it's the button skin's name property assigned in the Button class. Peace, Mike On 11/30/06, Michael Schmalle [EMAIL PROTECTED] wrote: the border style In a way, the Button does have a borderStyle, it's the button's name property. Back in Flash, they used borderStyle in the Button but, in Flex2 to they changed it to switch on the buttons name. Anyway, I will write a skin class and put it on my blog. That will be my contribution to the 'new' devs that I 'wasn't' talking to. :) PS, I have heard plenty of people bitch about the HaloBorders class to but, hey unfortunately beginners in ALL of life do not have access to those things experience gives. Peace, Mike On 11/30/06, EECOLOR [EMAIL PROTECTED] wrote: I have to agree with the dude, that its tough to say something like that to a new person at flex. However, i was thinking the other comments were correct, and that if you wanted the the button to look something else, you'd have to use another skin. However, is you want to change the border from color, you change the 'borderColor' style, if you want to change the fill colors, you change 'fillColors'. At the top of updateDisplayList within the ButtonSkin class you see this code: // User-defined styles. var borderColor:uint = getStyle(borderColor); var cornerRadius:Number = getStyle(cornerRadius); var fillAlphas:Array = getStyle(fillAlphas); var fillColors:Array = getStyle(fillColors); StyleManager.getColorNames(fillColors); var highlightAlphas:Array = getStyle(highlightAlphas); var themeColor:uint = getStyle(themeColor); It would have been nice indeed to have the border style thingy in it. Instead of bitching about the fact that Adobe did not put it in (we all forget something eventually) i'd recommend you to write a class that has that border style thingy in it and then share it with us so we can all use that skin. Greetz Erik -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by
Re: [flexcoders] Re: Styling in Flex is officially ridiculous
One other thing, the little elves hiding behind the Adobe wish form are amazing responsive. When I make a bug / feature request, I usually get a verification or clarification email within a few days. Pretty good stuff. Gordon Smith wrote: The only thing that annoyed me about Ben's complaint was the hyperbole of his subject line, Styling in Flex is officially ridiculous. (My own not-so-humble opinion is that Flex's use of CSS styles is pretty cool.) I agree with him that it would be nice if ButtonSkin were more styleable. More importantly, we need to hear about the cases where developers think Flex makes something too difficult, because he's right that it's the only way to get mass adoption. That doesn't mean our team will address every one of them, due to competing priorities and judgments about how many other developers are likely to have the same complaint. (I'm not aware of many requests for borderless buttons before Ben's.) But if we don't know about your pain points, we aren't likely to make them go away. - Gordon *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *ben.clinkinbeard *Sent:* Thursday, November 30, 2006 6:29 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Styling in Flex is officially ridiculous I must say, I really don't understand how I am being offensive. If you took issue with my hypothetical new developer conversation, well, you shouldn't. I was merely trying to point out that your solution is a complex one, and requiring these types of workarounds does not encourage the very important drive towards Flex adoption by new developers. I was also very clear to state that I have immense respect for Adobe, and did not call them 'teh suck' or anything similar. I am trying to draw attention to something that I feel needs to be addressed in order to improve the Flex framework. I think EECOLOR summed up my thoughts pretty well by pointing out that lots of other things are done with getStyle() and it sure would have been nice to make border one of those things. Roger, thanks for the XP theme link, I had not seen that before. Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: EDIT :: In a way, the Button does have a borderStyle, it's the button's name property. supposed to be In a way, the ButtonSkin class does have a borderStyle, it's the button skin's name property assigned in the Button class. Peace, Mike On 11/30/06, Michael Schmalle [EMAIL PROTECTED] wrote: the border style In a way, the Button does have a borderStyle, it's the button's name property. Back in Flash, they used borderStyle in the Button but, in Flex2 to they changed it to switch on the buttons name. Anyway, I will write a skin class and put it on my blog. That will be my contribution to the 'new' devs that I 'wasn't' talking to. :) PS, I have heard plenty of people bitch about the HaloBorders class to but, hey unfortunately beginners in ALL of life do not have access to those things experience gives. Peace, Mike On 11/30/06, EECOLOR [EMAIL PROTECTED] wrote: I have to agree with the dude, that its tough to say something like that to a new person at flex. However, i was thinking the other comments were correct, and that if you wanted the the button to look something else, you'd have to use another skin. However, is you want to change the border from color, you change the 'borderColor' style, if you want to change the fill colors, you change 'fillColors'. At the top of updateDisplayList within the ButtonSkin class you see this code: // User-defined styles. var borderColor:uint = getStyle(borderColor); var cornerRadius:Number = getStyle(cornerRadius); var fillAlphas:Array = getStyle(fillAlphas); var fillColors:Array = getStyle(fillColors); StyleManager.getColorNames(fillColors); var highlightAlphas:Array = getStyle(highlightAlphas); var themeColor:uint = getStyle(themeColor); It would have been nice indeed to have the border style thingy in it. Instead of bitching about the fact that Adobe did not put it in (we all forget something eventually) i'd recommend you to write a class that has that border style thingy in it and then share it with us so we can all use that skin. Greetz Erik -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components
[flexcoders] To Adobe - new release improvements??
Hey Adobe guys, Is it possible for you to address some of the major (or non-major) improvements in the coming Flex release? In particular, I am keen to know if there were significant improvements made to Flexbuilder itself. Stuff like increased compiler performance, ease of use with relative paths, etc would be of interest to me. A close second would be roughly the number of bugs fixed in the actually Flex UI framework. As my project continues to grow, I am definitely getting antsy for a new release! Thanks, -Daniel
Re: [flexcoders] WebService in Firefox not working properly
You may want to check which point versions of the Flash Player you are running. It appears the latest for Firefox is 9,0,28. Its a longshot, but worth checking. Cheers, -D Daniel wrote: Im using a very simple Cairngorm example found in Internet. I attached it to a Web Service that I generated in Java (which is working perfectly) Surprisingly when I run my application in Firefox, it just doesn't work but in Internet Explorer works just fine. The error Im getting is the following: TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo. at com.adobe.cairngorm.samples.addcontact.business::Services/__addcontactService_fault() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractService/dispatchEvent() at mx.rpc.soap.mxml::WebService/dispatchEvent() at mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlFaultHandler http://www.adobe.com/2006/flex/mx/internal::wsdlFaultHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.soap::WSDLParser/dispatchEvent() at mx.rpc.soap::WSDLParser/::dispatchFault() at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpFaultHandler http://www.adobe.com/2006/flex/mx/internal::httpFaultHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at ::DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() I really need some opinions on this issue. If anyone needs the code please mail me and I'll be glad to send it back. Thanks in advance.
Re: [flexcoders] Runtime CSS support
That is very cool, but not quite what I am looking for. We are creating a product where end-users may not have Flex, but we want them to be able to edit a CSS style sheet to update our application. It wouldn't be that hard to create a parsing utility that looks up CSS values and overrides them, but I assume this code is available somewhere. Perhaps some MX2004/AS2 code that could be ported ... Thanks, -Daniel Joan Lafferty wrote: To be more specific, in the next update of Flex (which should be soon), there will be the ability to compile a css file into a swf file. These swf files will then be loaded and unloaded at runtime through some new APIs of the StyleManager. We don’t want you spending too much time on a problem that will be easily solved in a short amount of time. Joan *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Gordon Smith *Sent:* Tuesday, November 14, 2006 7:04 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Runtime CSS support Adobe MIGHT release something soon which MIGHT be of interest to you on this topic. But don't quote me. - Gordon *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Wabyick *Sent:* Tuesday, November 14, 2006 3:24 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Runtime CSS support I am in need of the ability to read a CSS file in at runtime and modify existing compile-time CSS declarations. Does anyone know of some code that I could leverage to create this functionality? Thanks, -Daniel -- 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] Re: Binding scroll position to the selected index
I don't see a selectedItemChanged event ... I only see a change event, and that only gets fired when a user manually clicks and changes an item. Michael Schmalle wrote: Hi, Have you tried the selectedItemChanged event from the list? Just write a handler and do what Tim said, maybe that would work. Peace, Mike On 10/12/06, *Daniel Wabyick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ah, that was a good idea, but it doesn't work in my case. The list is being filtered and the selectedItem is being set via other code. Thus the need to bind to selectedItem, as the change handler won't be called. I should be able to whip something up fairly easily via a subclass ... -D Tim Hoff wrote: Hi Daniel, On a click or change event you could use this: myList.scrollToIndex(myList.selectedIndex); -TH --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% mailto:flexcoders%2540yahoogroups.com http://40yahoogroups.com, Daniel Wabyick [EMAIL PROTECTED] wrote: I would like to configure a List class so that it will automatically scroll to show the selected item whenever the selected index/item changes. I can't see anyway to bind that using the standard List class, and it seems like I will have to subclass it in order to work. Am I missing an easier solution? Thanks, -D -- What goes up, does come down. -- 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] Re: Flex 2 - WARNING: Cannot set header. Response already committed.
While I don't have Websphere experience, this sounds suspiciously like an error message that happens when a servlet or filter tries to set an HTTP response header for a response that has already been written to. I would inspect your web-app configuration and make sure you don't have any extra servlet filters on the Flex servlets. That's my best guess at least. -Daniel Tom Ruggles wrote: Hi Libby, We are unaware of any cases of Flex causing this warning. What are you doing when it occurs? Thanks, Tom Ruggles FDS QA --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Libby [EMAIL PROTECTED] wrote: I just installed Flex 2 on WebSphere 6. While doing the lessons in the introductory tutorial, I keep see the message above in the server log. Has anyone else see this, what does it mean, and how do I get rid of it? Thanks, Libby -- 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] Binding scroll position to the selected index
I would like to configure a List class so that it will automatically scroll to show the selected item whenever the selected index/item changes. I can't see anyway to bind that using the standard List class, and it seems like I will have to subclass it in order to work. Am I missing an easier solution? Thanks, -D -- 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] Re: Binding scroll position to the selected index
Ah, that was a good idea, but it doesn't work in my case. The list is being filtered and the selectedItem is being set via other code. Thus the need to bind to selectedItem, as the change handler won't be called. I should be able to whip something up fairly easily via a subclass ... -D Tim Hoff wrote: Hi Daniel, On a click or change event you could use this: myList.scrollToIndex(myList.selectedIndex); -TH --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Daniel Wabyick [EMAIL PROTECTED] wrote: I would like to configure a List class so that it will automatically scroll to show the selected item whenever the selected index/item changes. I can't see anyway to bind that using the standard List class, and it seems like I will have to subclass it in order to work. Am I missing an easier solution? Thanks, -D -- 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] Re: Binding scroll position to the selected index
So, I got both the valueCommit and the Observe / tag to work when manually setting list.selectedIndex, but not the list.selectedItem property. You can check out either version ... For those without the Observe / tag, just remove those two ... They appear to be functionally equivalent in this case. ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* xmlns:ac=com.adobe.ac.* mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var dp : ArrayCollection = new ArrayCollection( [{ name:test1 }, { name:test2 }, { name:test3 }, { name:test4 }, { name:test5 }, { name:test6 }, { name:test7 }, { name:test8 }, { name:test9 }] ); ]] /mx:Script mx:NumericStepper id=stepper minimum=1 maximum=10 / mx:List id=scrollList selectedIndex={ stepper.value } dataProvider={ dp } width=150 valueCommit={ scrollList.scrollToIndex( scrollList.selectedIndex ) } labelField=name/ !--mx:List id=scrollList selectedItem={ dp.getItemAt( stepper.value ) } dataProvider={ dp } width=150 valueCommit={ scrollList.scrollToIndex( scrollList.selectedIndex ) } labelField=name/ -- mx:List id=scrollList2 selectedIndex={ stepper.value } dataProvider={ dp } width=150 labelField=name / !--mx:List id=scrollList2 selectedItem={ dp.getItemAt( stepper.value ) } dataProvider={ dp } width=150 labelField=name /-- ac:Observe source={ scrollList2.selectedIndex } handler={ function() : void { scrollList2.scrollToIndex( scrollList2.selectedIndex ) } } / mx:Button click={ scrollList.selectedIndex = 10; scrollList2.selectedIndex = 10 } label=Scroll to end / /mx:Application Tracy Spratt wrote: Did you try the commitValue event? Tracy *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Tim Hoff *Sent:* Thursday, October 12, 2006 6:23 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Binding scroll position to the selected index Ok, subclass yes. Or, you could watch for the change of the selectedIndex with the Observe tag. Alex Uhlmann has a good article here: http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.cfm#more http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.cfm#more -TH --- In flexcoders@yahoogroups.com, Daniel Wabyick [EMAIL PROTECTED] wrote: Ah, that was a good idea, but it doesn't work in my case. The list is being filtered and the selectedItem is being set via other code. Thus the need to bind to selectedItem, as the change handler won't be called. I should be able to whip something up fairly easily via a subclass ... -D Tim Hoff wrote: Hi Daniel, On a click or change event you could use this: myList.scrollToIndex(myList.selectedIndex); -TH --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Daniel Wabyick daniel@ wrote: I would like to configure a List class so that it will automatically scroll to show the selected item whenever the selected index/item changes. I can't see anyway to bind that using the standard List class, and it seems like I will have to subclass it in order to work. Am I missing an easier solution? Thanks, -D -- 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] Conditional Login inside curly braces for binding
Hi Peter (and all) ... I finally got around to checking out your proposed method, and unfortunately it does not work. It seems to interpret anything within a CDATA block as a string. Here is what I tried, and it does not work. mx:Label mx:doubleClickEnabled![CDATA[{ true true }]]/mx:doubleClickEnabled /mx:Label I also tried the following ... without luck: mx:Label mx:doubleClickEnabled{ ![CDATA[ true true ]] }/mx:doubleClickEnabled /mx:Label So it seems the only way to get this to work is to use entities: mx:doubleClickEnabled{ true amp;amp; true }/mx:doubleClickEnabled Peter Hall wrote: mx:Button mx:enabled![CDATA[{checkA == something checkB == somethingElse}]/mx:enabled /mx:Button Peter On 10/2/06, Daniel Wabyick [EMAIL PROTECTED] mailto:daniel%40wabysabi.com wrote: Ran into the same thing. Its that '' is an entity in XML. So you can use: enabled={checkA == something amp;amp; checkB == somethingElse} -- 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] Relative paths in IDE compiler args
Thanks gents. Adding an extra ../ worked. I have my main source folder in a src directory off the project root, so this makes sense it worked. Adobe - this seems kind of strange behavior. Was it intentional? I would think the project root makes sense as the root for the compiler. In any case, a documentation section on relative paths would be very useful, unless its already there and I missed it. Dirk Eismann wrote: yep, same works for -source-path (and probably all other compiler flags as well) Dirk. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Paul Spitzer Sent: Monday, October 09, 2006 8:42 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Relative paths in IDE compiler args Hey Daniel, I've definitely had the same problem. I found that for the -load-config flag I had to climb up a directory ../ to get to my project root... so I had something like... -load-config+=../build/project-config.xml. I'm not entirely sure but I think it was relative to my main source directory which was in an as3 directory. I still can't get the -link-report flag to work with a relative path however. Daniel Wabyick wrote: How do relative paths work in the IDE compiler arguments? In particular, what is the directory running from? For example, I would like to include a namespace manifest XML file that is outside of my project path. I should be able to use -namespace http://www.mynamespace.com/ http://www.mynamespace.com/ ../myotherproject/namespace_manifest.xml, but I have to use an absolute path to get it to work. Additionally, I can't seem to include linked folders in as source paths. I need to use absolute paths for those as well. Anyone had success with this? Thanks, -Daniel -- 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 -- 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] Switching View States - Destroying Resources
Is there some way to have objects that were added using mx:AddChild / completely destroyed instead of just removed from the DisplayList? The reason for this is that my added panels are bound into a data model and may end up performing computationally expensive tasks when they aren't visible. Ideally I would like to completely destroy the component. Is this possible with the current API, or does it require some fancy footwork? Thanks, -Daniel -- 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://standraise.corp.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://standraise.corp.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] Switching View States - Destroying Resources
Will do. Matt Chotin wrote: Can you please file this as an enhancement at http://www.adobe.com/go/wish http://www.adobe.com/go/wish? An engineer said that you should be able to get close by setting the target to null and the instanceCreated property (which is mx_internal) to false when you’re leaving the state. I haven’t experimented, not quite sure what needs to be done actually J Matt *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Paul Spitzer *Sent:* Monday, October 09, 2006 1:29 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Switching View States - Destroying Resources Hey Daniel, I posted about this a while back. See my post States - add/remove vs create/destroy. I didn't hear a peep from anyone. I'm not sure if it's something that is natively supported by the framework. I don't think so, but I could be wrong. The closest thing I found was the creationPolicy property. Setting that to NONE will get you about an eighth of the way there. I started to write TransientAddChild and TransientRemoveChild classes that extend their mx counterparts, AddChild and RemoveChild but I aborted mission halfway through and chose not to deal with it at this point -- for better or worse. I definitely still think it is a valid concern and would like to eventually have a solution. best, Paul Daniel Wabyick wrote: Is there some way to have objects that were added using mx:AddChild / completely destroyed instead of just removed from the DisplayList? The reason for this is that my added panels are bound into a data model and may end up performing computationally expensive tasks when they aren't visible. Ideally I would like to completely destroy the component. Is this possible with the current API, or does it require some fancy footwork? Thanks, -Daniel -- 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] Relative paths in IDE compiler args
How do relative paths work in the IDE compiler arguments? In particular, what is the directory running from? For example, I would like to include a namespace manifest XML file that is outside of my project path. I should be able to use -namespace http://www.mynamespace.com/ ../myotherproject/namespace_manifest.xml, but I have to use an absolute path to get it to work. Additionally, I can't seem to include linked folders in as source paths. I need to use absolute paths for those as well. Anyone had success with this? Thanks, -Daniel -- 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] Using Remoting on Flex 2.0
Here is a link to another article describing how to connect Flex 2 to an AMF0 back-end implementation. I found it particularly helpful. You can ignore the back-end AMFPHP part of the article, and just use your OpenAMF backend, which I have used succesfully as well. http://www.adobe.com/devnet/flex/articles/flex2_amfphp_03.html Also, I highly recommend getting yourself a robust Flash remoting debugging tool. This will allow you to easily see what Remoting calls (and all other HTTP traffic) that are going over the wires. http://www.xk72.com/charles/ Cheers, -Daniel p.s. to clarify, FDS does provide Flash Remoting capabilities as well. I prefer it to OpenAMF as its better documented and more cleanly implemented. The issue with it is that it is not free if you are creating a multi-CPU application. hank williams wrote: I found the link to renaun's website with the remoteObjectAMF0 tool: http://renaun.com/blog/?p=31 http://renaun.com/blog/?p=31 Hope this helps, Regards Hank On 10/6/06, Varun Shetty [EMAIL PROTECTED] mailto:varun.shetty%40mphasis.com wrote: Thank you Hank, The link provided by greg was too confusing and didn't see it solving my concern. I will try FDS and AMF to generate the chart. I am not really relied or hooked upon only using flex and openamf directly. didn't find anything specific by renaun... but I'll keep searching.. Thanks for the lead. Thank you, Regards, VARUNSHETTY From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of hank williams Sent: Friday, October 06, 2006 3:20 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Using Remoting on Flex 2.0 I dont think the referenced article here is really on point to the question for a variety of reasons, the most important of which is that it is based on using FDS which he explicitly stated he doesnt want to use. Also the article is for constructing Data Acess Objects, but presumably, since he was already doing this in flash 8, he has remote functions already written which he just wants to use with his new flex code. The issue is a simple question of AMF0 remoting in flex. I gave up on using AMF0 and am currently using FDSExpress and AMF3 to do remoting. But there are some tools and articles about how to do this. There is, I believe, an article on this somewhere on the adobe website. There was also some code written by renaun (I hope I have that spelling right) that will, as I understand it, help you to do this, though, I have not yet gotten it working. That doesnt mean it doesnt work, but just that I have not focused on that part of my app recently. I think if you search the archives for renaun, AMF0 and amfphp and remoting, you will find references to discussions about this that will be helpful. Hank On 10/5/06, greg h [EMAIL PROTECTED] mailto:flexsavvy%40gmail.com wrote: Varun, Congratulations on getting your remoting configuration working with Flash 8. Getting it working Flex 2 likely will be pretty straightforward from here. I currently am not using Java as backend on my Flex 2 apps. But I do think the following article might walk you through the remaining steps: Automatically generating code for Flex 2 data access http://www.adobe.com/devnet/flex/articles/daoflex.html http://www.adobe.com/devnet/flex/articles/daoflex.html The article focuses on using Flex 2 with RemoteObject against Java backends. The article is very tightly written and includes downloadable code. And best of all, the article is a how-to for using DAOFlex, an open-source tool that generates Flex and Java code for you :-) hth, g On 10/5/06, Varun Shetty [EMAIL PROTECTED] mailto:varun.shetty%40mphasis.com wrote: Hi, I do not have a CF server, I have installed OpenAMF on Tomcat server. With flash 8 I have been able to connect to the server and get the data. Data is coming from a Java call which would load return an array of date and values, that I am using to generate a chart custom built by me. Currently I am trying a POC to generate the chart in flex using the same call. I am a newbie with Flex, and I have managed to learn the builder tools. But I have failed to understand or find any running example to connect to a Remoting service. Any example to the code would be helpful. Also what all calls should I use, then I can use the flex help to understand it more. Thank you, Regards, VARUN SHETTY -- 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
Re: [flexcoders] Best AMF debugger for Flex2
This is my favorite ... http://www.xk72.com/charles. Julian Sander wrote: Hi All, I was wonder what the best debugger for Flex2 and Remoting is. I use AMFPHP for my connections. thanx, Julian * * *Julian Sander* Burbacherstraße 58 53129 Bonn t/f +49 228 21 27 15 m +49 172 250 6524 -- 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] Conditional Login inside curly braces for binding
Ran into the same thing. Its that '' is an entity in XML. So you can use: enabled={checkA == something amp;amp; checkB == somethingElse} Sam Shrefler wrote: Is there anyway to put a condition inside { } for example: enabled={checkA == something checkB == somethingElse} Flex Builder throws an error The Entity must immediately follow the in the entity referecne. It seems to be a problem with the Logical Operator since || works fine. Thanks Sam -- 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] Conditional Login inside curly braces for binding
Yeah - I used that at first ... Although I think the DeMorgan's law would be: !( A B ) = !A || !B So then ... A B = !( !A || !B ) ... Sam Shrefler wrote: Daniel: Thanks...the other thing I tried that worked was using the ||, so as per DeMorgans law: A B = !A || !B Thanks Sam On 10/2/06, *Daniel Wabyick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ran into the same thing. Its that '' is an entity in XML. So you can use: enabled={checkA == something amp;amp; checkB == somethingElse} Sam Shrefler wrote: Is there anyway to put a condition inside { } for example: enabled={checkA == something checkB == somethingElse} Flex Builder throws an error The Entity must immediately follow the in the entity referecne. It seems to be a problem with the Logical Operator since || works fine. Thanks Sam -- 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] Button components with multiline labels
Hey guys, Has anyone had success creating a Button component that uses a multiline label? It looks like it will require some serious digging / skinning to make this happen, from what I can tell. Wondering if there is an easy way out. Thanks, -Daniel -- 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] Lists - Using a CheckBox editor that is always visible
Hey, I am using a List component with an inline CheckBox item editor. All is good, except I would like the CheckBox editor to always be visible, not just when a user clicks into the cell. I couldn't see any way to make the editor always visible. Alternatively, I tried using an inline renderer, and connecting the CheckBox.change event to a handler in my containing component. Unfortunately, since the CheckBox is defined in an mx:Component / block, this isn't the containing component, but some strange generated Flex class. I did get it to work, sort of, by creating an external renderer component that extends CheckBox and has hardcoded bindings to a particular field. This is not what I was hoping for, but it does work. In general, there doesn't seem to be any way to pass values to the renderer/editor components outside of the list API. If anyone has any ideas, please let me know. Thanks, -Daniel -- 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] Re: Embedding Arial Unicode
I filed a lot of bugs recently, and I can't remember if I filed this one. Probably wouldn't hurt to file this one again. dadrobson wrote: Daniel Tobias: I'm having the same issue. Did either of you file a bug report with Adobe? Jim --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Daniel Wabyick [EMAIL PROTECTED] wrote: I had this exact same issue. I solved it by using the local(Arial Unicode MS) and specifying a subset of unicode characters to embed. We should report this. tobiaspatton wrote: Hello; I'm trying to embed a single font that can render Roman and non- Roman scripts. I think that Arial Unicode should be able to do this, so I'm trying to embed the font with the entry in my style sheet: @font-face { src: url( fonts/arialuni.ttf ); fontStyle: normal; fontWeight: normal; fontFamily: embeddedVerdana; } But I get this error: exception during transcoding: Unexpected exception encountered while reading font file :/PerforceDepot/galiano/Galiano.Tobias_Patton/Client/DashboardJo bsView/fonts/arialuni.ttf' Any advice? Tobias. -- 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] Re: Embedding Arial Unicode
Here is how I got it to work: @font-face { src: local(Arial Unicode MS); unicode-range: Basic Latin; fontFamily: ArialUnicodeEN; fontWeight: Bold; } @font-face { src: local(Arial Unicode MS); unicode-range: Japanese (All); fontFamily: ArialUnicodeJP; } You will need to read up on how to define unicode ranges in your flex-config.xml file, and pass that in as a compiler argument. There is another outlying bug with specifying the unicode-range directly in CSS that doesn't allow you to copy-and-paste the ranges from the flash-unicode-config.xml. (I did file that one.) Note - I just checked and I never received confirmation on embedding Arial Unicode MS via the src: syntax. Let me know if you file it. Thanks, -D dadrobson wrote: Daniel: How did you get Flex to embed a subset of the characters? I can't get it to embed any part of Arial Unicode. The following code, for example, throws the same error as embedding the entire font. What method did you use? @font-face { src:url(fonts/ARIALUNI.TTF); fontFamily:arialUnicode; unicode-range:U+0020-U+0040; } --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Daniel Wabyick [EMAIL PROTECTED] wrote: I had this exact same issue. I solved it by using the local(Arial Unicode MS) and specifying a subset of unicode characters to embed. We should report this. -- 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] Re: Embedding Arial Unicode
That's why you want to embed just a part of the Unicode range. ;-) dadrobson wrote: After my initial post, I noticed something that makes me think that this isn't Adobe's issue: Arial Unicode MS is a 22 MB font! While all of the other fonts installed on my laptop are around 350k or less, this one is 22 megs. I suspect that's the problem. And we probably don't want to embed a 22 MB font in our apps, anyway! -Jim -- 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] Wrapping a TileList
Hey guys, I am trying to figure out a way to get a TileList to dynamically change its columns and rows based on its size. Here is a scenario with a TileList whose direction is vertical: - TileList is drawn with 8 items in a space where it can fit 4 items in a column, so it draws 2 columns, 4 rows. - TileList is resizes so that it now can fit only 3 items in a column, so it draws 3 columns with 3 rows. Wrapping seems to work with Tile, but not with TileList which seems to require a fixed column and row size. I also can't seem to get a TileList to scroll. Is that possible? Thanks, -Daniel -- 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] Scrollbar thickness
I am creating a touchscreen app that requires thick scrollbars. I noticed a static constant in the Scrollbar class - THICKNESS set to 16 pixels. Are scrollbars fixed to that size, or is there some way to change that through the skinning mechanism? -- 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] Re: Posting patched versions of framework code to this list?
Hi Matt, Some feedback. I agree that you guys have been very responsive regarding the wishlist, but I would definitely be down for a more open bug tracking system for released codebases such as the Flex 2 framework code. I know that is by no means a small initiative, but it would be very cool. Thanks, -Daniel Matt Chotin wrote: Hi, The section in the license that talks about this is 2.1.1, you can read it in its ugly detail here: http://www.adobe.com/products/eulas/pdfs/AdobeFlexBuilder2_0-FlexCharting2_0.pdf http://www.adobe.com/products/eulas/pdfs/AdobeFlexBuilder2_0-FlexCharting2_0.pdf. The bottom line is: yes you can modify, yes you can publish your modifications, and yes you can even publish them here (or on your blog). Someone asked about how you can get those patches to us for our consideration. The best way is probably to submit an entry via the wish form (http://www.adobe.com/go/wish http://www.adobe.com/go/wish) and as you describe the enhancement you’re requesting mention that you have code in there for us to look at. As appropriate someone will contact you to request the code. I know that the wishlist system does seem somewhat closed but I think that we’ve actually been very good about being responsive to customers as we’ve been informed of problems. We may not be able to respond to every single one. I think the most common time when we may not respond is if what you report is a duplicate of something we are already tracking, though even then I believe that we try to send some sort of response. If you’ve been submitting entries via the wish form and haven’t received any responses let me know (off-list) and I can look into it. Thanks, Matt *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Louis Ryan *Sent:* Sunday, September 17, 2006 6:44 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Posting patched versions of framework code to this list? Ive posted in the spirit of improving flex so find it here with a sample to play with... http://whittlin.blogspot.com/ http://whittlin.blogspot.com/ --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Louis Ryan [EMAIL PROTECTED] wrote: I have modified the DataGrid class to allow columns to be locked on the right. I posted this as an enhancement request to Adobe but its not so easy to include alot of text in their suggestion area so I didnt include the sample code I had for this. Is it OK to post modified versions of the Flex framework code here? If not is there a better way to send suggested code/patches to Adobe for review? Thanks Louis Ryan -- 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] Loading AVM1 content into AVM2
That most definitely sounds like a bug ... I think the following would work: - Create a class LocalConnectionDaemon in AVM2 that is connected under a hardcoded LC name. ( e.g. LC_DAEMON ); - Create a class LocalConnectionDaemon in AVM1 that does the following: - Generates a unique LocalConnection URL based on the current-time-millis ( e.g. var clientId:String = LC_CLIENT_1324343243243 ) - Send a command to LocalConnectionDaemon via - LC_SERVER .. createClient( clientId ) - Listen for a command (on that same LocalConnection, or one the server can figure out) called onClientCreated( otherClientId:String ) - LocalConnectionDaemon should have a method createClient( clientId:String ) that takes the ID, and transforms it to a guaranteed unique name (e.g. var newClientId:String = clientId + _AVM2) and sends onClientCreated( newClientId ); Definitely more painful, but doable. I should point out that one big issue with LocalConnection is that messages are limited to 40kb. You may need to chunk your requests over if they are large. Also, just thought this would be a good time to point out Adobe's bug-report / wishlist page. If you send them a *reproducable* bug report, they will get back to you very quickly: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform Regards, -D Ian Thomas wrote: Hi guys, I've hit a huge hurdle when trying to communicate between AVM1 and AVM2. I've been trying to create a component - call it AVM1Loader - which will allow simple communication between an AVM2 flex app and a contained AVM1 file. In theory, it's pretty simple: - Use Loader to load the file. - Create a LocalConnection for AVM2 to talk to AVM1 - Create a LocalConnection for AVM1 to talk to AVM2 This all works fine, and communications all work. However, the problem comes with the naming of the LocalConnections. Clearly each AVM1Loader instance wants to have a differently named pair of LocalConnections; otherwise you'll get into trouble if you're trying to have two AVM1Loaders running together at the same time - or even two instances of the same Flex app running together at the same time. Generating a unique ID is easy, but I can't for the life of me work out how to communicate it to the contained AVM1 file. The obvious way would be to pass it as a parameter: e.g. _loader.load(new URLRequest(AVM1File.swf?key=+someUniqueKey)); That works, but only (apparently) once. The next time you try to load AVM1File.swf with a _different_ key (under a whole new instance of AVM1Loader) something very odd happens. The key value does get transmitted correctly on the second run, but the _root of the contained movie gets screwed up. These simple trace statements are on the root of AVM1File.swf: trace(_root); trace(_root.clip); // (Clip is an instance defined on the stage of AVM1File) trace(_parent); On the first (successful) load (i.e. loading AVM1File.swf?key=someUniqueKey), I get: _root _root.clip undefined Which is as expected. On the second run through (i.e. loading AVM1File.swf?key=someOtherKey), I get: _root _level0.App0.Panel4.contentPane.AVM1Loader40.instance55.instance56.clip _level0.App0.Panel4.contentPane.AVM1Loader40.instance55 Which is very strange - suddenly my AVM1 code is seeing its AVM2 instance name. And from that point on, the AVM1 code stops working correctly - loading clips etc. fails. If I change the URL to just AVM1File.swf it all works fine, but obviously my unique key doesn't get transmitted. Similarly, fixing the URL - sending AVM1File.swf?key=dummy each time - works fine. Somethings up when you alter the parameter. It's a new instance of Loader() - I'm not reusing anything. So - that's clearly some sort of bug, and I seem to have hit a blank wall there. If anyone's got any ideas on that peculiarity then great. But that aside, if anyone's got any brainwaves on how to simply communicate a unique ID to an AVM1 file I'm loading, that'd be great. :-) Yours in frustration, Ian -- 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] Loading AVM1 content into AVM2
That most definitely sounds like a bug ... I think the following would work: - Create a class LocalConnectionDaemon in AVM2 that is connected under a hardcoded LC name. ( e.g. LC_DAEMON ); - Create a class LocalConnectionDaemon in AVM1 that does the following: - Generates a unique LocalConnection URL based on the current-time-millis ( e.g. var clientId:String = LC_CLIENT_1324343243243 ) - Send a command to LocalConnectionDaemon via - LC_SERVER .. createClient( clientId ) - Listen for a command (on that same LocalConnection, or one the server can figure out) called onClientCreated( otherClientId:String ) - LocalConnectionDaemon should have a method createClient( clientId:String ) that takes the ID, and transforms it to a guaranteed unique name (e.g. var newClientId:String = clientId + _AVM2) and sends onClientCreated( newClientId ); Definitely more painful, but doable. I should point out that one big issue with LocalConnection is that messages are limited to 40kb. You may need to chunk your requests over if they are large. Also, just thought this would be a good time to point out Adobe's bug-report / wishlist page. If you send them a *reproducable* bug report, they will get back to you very quickly: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform Regards, -D Ian Thomas wrote: Hi guys, I've hit a huge hurdle when trying to communicate between AVM1 and AVM2. I've been trying to create a component - call it AVM1Loader - which will allow simple communication between an AVM2 flex app and a contained AVM1 file. In theory, it's pretty simple: - Use Loader to load the file. - Create a LocalConnection for AVM2 to talk to AVM1 - Create a LocalConnection for AVM1 to talk to AVM2 This all works fine, and communications all work. However, the problem comes with the naming of the LocalConnections. Clearly each AVM1Loader instance wants to have a differently named pair of LocalConnections; otherwise you'll get into trouble if you're trying to have two AVM1Loaders running together at the same time - or even two instances of the same Flex app running together at the same time. Generating a unique ID is easy, but I can't for the life of me work out how to communicate it to the contained AVM1 file. The obvious way would be to pass it as a parameter: e.g. _loader.load(new URLRequest(AVM1File.swf?key=+someUniqueKey)); That works, but only (apparently) once. The next time you try to load AVM1File.swf with a _different_ key (under a whole new instance of AVM1Loader) something very odd happens. The key value does get transmitted correctly on the second run, but the _root of the contained movie gets screwed up. These simple trace statements are on the root of AVM1File.swf: trace(_root); trace(_root.clip); // (Clip is an instance defined on the stage of AVM1File) trace(_parent); On the first (successful) load (i.e. loading AVM1File.swf?key=someUniqueKey), I get: _root _root.clip undefined Which is as expected. On the second run through (i.e. loading AVM1File.swf?key=someOtherKey), I get: _root _level0.App0.Panel4.contentPane.AVM1Loader40.instance55.instance56.clip _level0.App0.Panel4.contentPane.AVM1Loader40.instance55 Which is very strange - suddenly my AVM1 code is seeing its AVM2 instance name. And from that point on, the AVM1 code stops working correctly - loading clips etc. fails. If I change the URL to just AVM1File.swf it all works fine, but obviously my unique key doesn't get transmitted. Similarly, fixing the URL - sending AVM1File.swf?key=dummy each time - works fine. Somethings up when you alter the parameter. It's a new instance of Loader() - I'm not reusing anything. So - that's clearly some sort of bug, and I seem to have hit a blank wall there. If anyone's got any ideas on that peculiarity then great. But that aside, if anyone's got any brainwaves on how to simply communicate a unique ID to an AVM1 file I'm loading, that'd be great. :-) Yours in frustration, Ian -- 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] modularizing code
I would recommend making a Flex library project. You put all of your common code there, and then you can create a SWC for compilation with other projects, or else you can just have other projects' classpaths reference your library project directly. The latter seems to result in a bit faster compile time from my limited experience ... -D hank williams wrote: I am trying to figure out how to make a source code library of MXML code that is available to multiple projects. It seems to me this involves creating a directory that is outside any project folder, but I am not clear how to reference these files. Currently I have defined a namespace for all of my mxml files but this directory is in a project directory. Any insight would be quite helpful. Hank -- 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] Localizing application
Hey João, Thanks for the code sample ... Very helpful. In particular, I like how you bind the a function to an event, I was trying to figure out how to do that ... I like it how it magically adds the class in as an event listener. [Bindable(event=languageChange)] public function getString( key : String ) : String { var value : String = activeLanguage.languageKeyValues[ key ]; if ( value == null ) { throw new Error( No value in languange bundle for key + key ); } return value; } } Best, -Daniel João Fernandes wrote: Diego, take a look here http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cfm#mo http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cfm#mo re João Fernandes -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Diego Guebel Sent: segunda-feira, 11 de Setembro de 2006 3:50 To: Flex coders Subject: [flexcoders] Localizing application Hi there, Based on the flex documentation I have to compile one swf per each language, is that right? I'd like to be able to switch between languages during runtime. isn't that possible? Thanks, Diego. -- 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 -- 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] Binding to static properties
Does anyone know if its possible to bind to static properties of a class? I can't seem to get this to work. -- 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] Embeding Font unicodeRange Bug?
I found this bug as well ...If you define a Unicode range in your flex-config file, it will work. e.g.. languages language-range langBasic Latin/lang rangeU+0020-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E/range /language-range language-range langJapanese Kana/lang rangeU+3000-U+303F,U+3041-U+309F,U+30A0-U+30FF,U+FF61-U+FF9F/range /language-range !-- contains basic latin as well -- language-range langJapanese Kanji - Level 1/lang
Re: [flexcoders] Embedding Arial Unicode
I had this exact same issue. I solved it by using the local(Arial Unicode MS) and specifying a subset of unicode characters to embed. We should report this. tobiaspatton wrote: Hello; I'm trying to embed a single font that can render Roman and non- Roman scripts. I think that Arial Unicode should be able to do this, so I'm trying to embed the font with the entry in my style sheet: @font-face { src: url( fonts/arialuni.ttf ); fontStyle: normal; fontWeight: normal; fontFamily: embeddedVerdana; } But I get this error: exception during transcoding: Unexpected exception encountered while reading font file :/PerforceDepot/galiano/Galiano.Tobias_Patton/Client/DashboardJo bsView/fonts/arialuni.ttf' Any advice? Tobias. -- 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] Compiling against Flex Library - Compiling performance
I am building an applicaiton that compiles against a SWC outputted from a Flex Library project. It seems that compiling against the SWC takes a lot longer than compiling in a self-contained project. So far, I have discovered that it appears to be slightly faster to compile against the library project than the SWC itself, but that's about it. Does anyone have any performance tips to speed compilation time against a SWC? -- 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] Finding the root clip + getting the URL
Thanks John, That definitely works, although I was curious how to do this using non-Flex API calls. I figured out that part of my problem is that at creationComplete(), the Application is not added to the display-list, and thus you can't find out the root or stage. So, I changed the example to applicationComplete, and at that point the stage, root, and loaderInfo objects are defined and you can access them. My next question - how do you find the base URL in a data class with no reference to a DisplayObject? It seems like you need to get access to the global display list, but I am unsure how to do that. Working code to access the url and stage. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete={ showURL(); } mx:Script ![CDATA[ import mx.controls.Alert; private function showURL() : void { Alert.show( url: + this.loaderInfo.url + stage: + this.stage ); } ]] /mx:Script /mx:Application John Grden wrote: application.url is what you're looking for Look at mx.core.Application properties hth, JPG On 8/31/06, *Daniel Wabyick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I am trying to find the URL in which an application is running. Reading the documentation, I get the impression that I can use the root property off on any DisplayObject, and then get the loaderInfo from there. Unfortunately, the root property seems to be null. I must be doing something wrong. Can someone help? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute creationComplete={ showRoot(); } mx:Script ![CDATA[ import mx.controls.Alert; private function showRoot() : void { Alert.show( root: + this.root ); } ]] /mx:Script /mx:Application -- [ JPG ] -- 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/ * 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] Embedding fonts at runtime
Hi Daniel, I am a little confused what you mean exactly. I have tried to set a Label mxml component's style directly using the fontFamily name, and when I do the text in the label diappears. Did you get it to actually display the symbol font? Here is the pertinent part of my current code: mx:Label id=myLabel text=test / mx:Script ![CDATA[ private var ldr:Loader; private function onInit() : void { showFonts(); var context:LoaderContext = new LoaderContext(); context.applicationDomain = ApplicationDomain.currentDomain; var req:URLRequest = new URLRequest( SymbolInclude.swf ); ldr = new Loader(); ldr.contentLoaderInfo.addEventListener( Event.COMPLETE, onLoaderComplete ); ldr.load( new URLRequest( SymbolInclude.swf), context ); } private function onLoaderComplete(e:Event) : void { trace(onLoaderComplete: ); var content:DisplayObject = ldr.content; var c:Class = content[myFont]; Font.registerFont(c); myLabel.setStyle( fontFamily, mySymbol ); showFonts(); } public function showFonts():void { trace(showFonts()); var fontList : Array = Font.enumerateFonts(); for ( var i:String in fontList ) { trace(font: + Font( fontList[i] ).fontName); } } ]] /mx:Script Daniel Freiman wrote: I figured out how to use the textformat object. The textformat object does actually work, but a TextField will only retrieve the embeded font if it's parent has previously been sent set the font as a style. So for any component that uses a UITextField, set the fontFamily style of the parent UIComponent to the newly loaded font and then the UITextField should be able to use the font even if fontFamily is subsequently reset. I have no idea why this works, so there may be some improvements to this method. On 8/30/06, *Brian Deitte* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: One addition to this, which is that we always include the space character when you specify the unicode range. I'm not sure the original reasoning for this, but I just noticed it in the code. Also, you can specify multiple ranges, separated by commas. -Brian *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *Dirk Eismann *Sent:* Wednesday, August 30, 2006 2:07 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Embedding fonts at runtime Yes, this is possible: [Embed(source=Arial.ttf, fontName=myArial, unicodeRange=U+0041-U+005A )] public var myClass:Class; Dirk. *Von:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com im Auftrag von Daniel Wabyick *Gesendet:* Mi 30.08.2006 18:58 *An:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Betreff:* Re: [flexcoders] Embedding fonts at runtime Awesome! I'll definitely have to check this out. On a related note, I wonder if its possible to embed fonts with a specific unicode range via this syntax. It doesn't appear to be. [Embed(systemFont='Symbol', fontName='mySymbol', mimeType='application/x-font')] var myFont:Class; I know you can use @font-face, which appears to automatically generate a variable in the class, but its not a consistently named variable. I am sure a utility function in the class could be used to ferret out that variable name. Daniel Freiman wrote: I altered the code a little and got it half working. It works if you're setting the imported font using setStyle, but not if you're setting the font through the TextFormat object. Simply add the lines: var content:DisplayObject = ldr.content; var c:Class = content[myFont]; Font.registerFont(c); to the begining of onloadercomplete. I'm going to continue working on how to get the font to show up through TextFormat. On 8/29/06, * Daniel Wabyick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL
[flexcoders] Finding the root clip + getting the URL
I am trying to find the URL in which an application is running. Reading the documentation, I get the impression that I can use the root property off on any DisplayObject, and then get the loaderInfo from there. Unfortunately, the root property seems to be null. I must be doing something wrong. Can someone help? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete={ showRoot(); } mx:Script ![CDATA[ import mx.controls.Alert; private function showRoot() : void { Alert.show( root: + this.root ); } ]] /mx:Script /mx:Application -- 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/ * 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] Embedding fonts at runtime
Right, to clarify the title of the thread should have been Dynamically loading embedded fonts at runtime ... This feature is critical if you want to use embedded fonts for a localized application. Determine the locale, and load a SWF containing a font, or possibly a unicode subset of the font (e.g. for Arial Unicode MS). Based on Daniel Friemen's successful experiments, it seems like this will be possible, but hopefully future versions of Flex will support this more elegantly. Best, -Daniel Matt Horn wrote: [Embed] is always at compile time, so I dont think this solution matches your requirements of loading teh fonts at run time. -m -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Tom Lee Sent: Wednesday, August 30, 2006 4:01 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Embedding fonts at runtime Just wondering, is [Embed] directive compile-time, or run-time? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Brian Deitte Sent: Wednesday, August 30, 2006 2:43 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Embedding fonts at runtime One addition to this, which is that we always include the space character when you specify the unicode range. I'm not sure the original reasoning for this, but I just noticed it in the code. Also, you can specify multiple ranges, separated by commas. -Brian From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Dirk Eismann Sent: Wednesday, August 30, 2006 2:07 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Embedding fonts at runtime Yes, this is possible: [Embed(source=Arial.ttf, fontName=myArial, unicodeRange=U+0041-U+005A )] public var myClass:Class; Dirk. Von: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com im Auftrag von Daniel Wabyick Gesendet: Mi 30.08.2006 18:58 An: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Betreff: Re: [flexcoders] Embedding fonts at runtime Awesome! I'll definitely have to check this out. On a related note, I wonder if its possible to embed fonts with a specific unicode range via this syntax. It doesn't appear to be. [Embed(systemFont='Symbol', fontName='mySymbol', mimeType='application/x-font')] var myFont:Class; I know you can use @font-face, which appears to automatically generate a variable in the class, but its not a consistently named variable. I am sure a utility function in the class could be used to ferret out that variable name. Daniel Freiman wrote: I altered the code a little and got it half working. It works if you're setting the imported font using setStyle, but not if you're setting the font through the TextFormat object. Simply add the lines: var content:DisplayObject = ldr.content; var c:Class = content[myFont]; Font.registerFont(c); to the begining of onloadercomplete. I'm going to continue working on how to get the font to show up through TextFormat. On 8/29/06, * Daniel Wabyick* [EMAIL PROTECTED] mailto:daniel%40wabysabi.com mailto:[EMAIL PROTECTED] mailto:daniel%40wabysabi.com mailto:[EMAIL PROTECTED] mailto:daniel%40wabysabi.com wrote: I just tried to dynamically load a font at runtime, and the results are not too promising. For other's benefits, here is what I did: - Created an AS3 project and generated a SWF (SymbolEmbed.swf) with the Symbol font embedded. - Verified the font is available in the SWF via Font.enumerateFonts(); - Loaded SymbolEmbed.swf into a Flex app using the Loader class, following instructions to keep the SWF's on the same applicationDomain. - Checked if the font is available to the Flex app, it is not. Please let me know if anyone has any ideas, -Daniel Code: AS3 project with embedded font. --- public class SymbolInclude extends Sprite { public function SymbolInclude() { [Embed(systemFont='Symbol', fontName='mySymbol', mimeType='application/x-font')] var myFont:Class; trace(here in SymbolInclude); var fontList : Array = Font.enumerateFonts(); for ( var i:String in fontList ) { trace(font: + Font( fontList[i] ).fontName); } } } Code: Loader code in Flex app
Re: [flexcoders] Any tips for using Linked Resource Folders in FB2? Seems half-way done
Well, you could create a Flex Library project, and create a SWC for all of your code that other projects rely on. This isn't quite as convenient, and there appears to be some inconsistencies on how often the SWC recompiles, but it would would. Regards, -D ncr100 wrote: I wonder if I'm alone in the experience of Flex Builder and Eclipse (v2.0.143459 plugin, Eclipse 3.2) trying to beat me senseless as I setup and build multiple SWF applications which share a single core actionscript framework folder? O wise and nimble Flex Masters and Mistresses, please share a comment or perhaps a humbling gibe about the few beans I'm spilling. So for this multi-swf AS3 product the Main SWFs dynamically load other SWFs to save on user launch times. I first find Eclipse constraining (read: head-lock) me with an imposed file layout proscribed by the eclipse.org flexible-projects workspace management strategy discussed here: http://www.eclipse.org/eclipse/development/flexible-projects-proposal.html http://www.eclipse.org/eclipse/development/flexible-projects-proposal.html .../framework/src/my/common/packages/... .../module1/Module1.as .../module2/Module2.as .../module3/Module3.as .../module4/Module4.as ... Does anyone else do this other than me? Eclipse, and FB2 to an extent, then block me (read as: multiple suflex body slams) when I try to stuff my modules inside or above my framework dir. So I relocate all the modules far far away from my framework and setup a Linked Resources path variable (Prefs - General - Workspace) pointing to the framework for each of my many many modules. Guess what happens next. At this point my compile is broken (all happiness is crushed). After I unbreak it via hand edits to .project and/or .actionScriptProperties, step-debugging is broken for stepping into the framework code, which I unbreak via guesswork and fiddling with IDE settings. To me I feel this Linked Resources project management feature is not yet fully supported in the latest version of Flex Builder and could be with a dot release (2.1?) of Flex Builder. Adobe experimentation with/evaluation of large-project Linked Resource behaviors could uncover eclipse's plugin features acting inconsistently, malfunctioning, and brutishly slamming innocent projects with folding metal chairs I believe. Am I alone when I use FB with hope of outputting multiple SWF's using a common code base? Does any other developer here have a story to share about writing apps with 1 SWF modules that share code with each other? Cheers, Nick -- 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/ * 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] Problems with Unicode characters in ResourceBundle properties files
Thanks Paul, I figured that much out, but I did hit a strange bug: I was using the Eclipse Java property file editor, and mid-way realized it needed to be UTF-8. Somehow, Eclipse then put two UTF-8 BOM markers at the top of the file. Creating a new file, marking it as UTF-8 before pasting the Japanese chars seemed to fix the issue. Interestingly, I hit a similar bug with FDT 1.04 and Flex Builder. When the Flex Builder 2 plugin is enabled, and you are editing Actionscript files in the FDT editor, it will put two UTF-8 BOM's in there. Disabling Flex Builder makes this problem go away. It almost makes me wonder if Flex Builder is intercepting saves in other editors Paul Hastings wrote: Lord Soth wrote: The following gives the above error selectroom_label = #37096;#23627;#12434;#36984;#12403;#12394;#12373;#12356; i think rb in flex need to be utf-8 encoded. try notepad save as utf-8. -- 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/ * 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] Embedding fonts at runtime
I just tried to dynamically load a font at runtime, and the results are not too promising. For other's benefits, here is what I did: - Created an AS3 project and generated a SWF (SymbolEmbed.swf) with the Symbol font embedded. - Verified the font is available in the SWF via Font.enumerateFonts(); - Loaded SymbolEmbed.swf into a Flex app using the Loader class, following instructions to keep the SWF's on the same applicationDomain. - Checked if the font is available to the Flex app, it is not. Please let me know if anyone has any ideas, -Daniel Code: AS3 project with embedded font. --- public class SymbolInclude extends Sprite { public function SymbolInclude() { [Embed(systemFont='Symbol', fontName='mySymbol', mimeType='application/x-font')] var myFont:Class; trace(here in SymbolInclude); var fontList : Array = Font.enumerateFonts(); for ( var i:String in fontList ) { trace(font: + Font( fontList[i] ).fontName); } } } Code: Loader code in Flex app. --- mx:Script ![CDATA[ private var ldr:Loader; private function onInit() : void { showFonts(); var context:LoaderContext = new LoaderContext(); //context.securityDomain = SecurityDomain.currentDomain; context.applicationDomain = ApplicationDomain.currentDomain; ldr = new Loader(); ldr.contentLoaderInfo.addEventListener( Event.COMPLETE, onLoaderComplete ); ldr.load( new URLRequest( SymbolInclude.swf), context ); } private function onLoaderComplete(e:Event) : void { trace(onLoaderComplete: ); showFonts(); } public function showFonts():void { trace(showFonts()); var fontList : Array = Font.enumerateFonts(); for ( var i:String in fontList ) { trace(font: + Font( fontList[i] ).fontName); } } ]] /mx:Script Daniel Freiman wrote: I have this question too but it hasn't reached the top of my to-do list yet. What I'm hoping is that is that you can embed a font in a swf and then load that swf at runtime using a swfloader. On 8/28/06, *Daniel Wabyick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey guys, Is there any way to include a font at runtime using Flex 2? There was a weird hack that works in Flash 8 where you load a movie that loads an RSL. Does anything like this work in Flex 2 ? Thanks, -Daniel -- 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 http://groups.yahoo.com/group/flexcoders/ mailto:[EMAIL PROTECTED] http://docs.yahoo.com/info/terms/ -- 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/ * 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] Embedding fonts at runtime
Hey guys, Is there any way to include a font at runtime using Flex 2? There was a weird hack that works in Flash 8 where you load a movie that loads an RSL. Does anything like this work in Flex 2 ? Thanks, -Daniel -- 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/ * 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/