[flexcoders] Changing font size of button bar
Hello, I am currently using a button bar but I would like to change the font size of the buttons to the smallest font size used in the buttons. The idea is that the I determine the font size to make the label fit in the button (fixed button width) and then use the smallest font size for all the others too. What's the best approach? My current idea is the following: - Use an offscreen text field with the same text format to calculate the smallest font size (e.g. width max button width then fontSize--) - Determine the smallest font size of all the buttons via Math.min ( fontSize, ); - Change fontSize style property of the button bar/buttons Are there any better approaches in Flex to do the same? Thanks, Weyert de Boer
Re: [flexcoders] EPUB reader in Flex
Well, ePub is basically just HTML. As far as I am aware off... What about using the new text engine and load the text as HTML? That might work.
Re: [flexcoders] .csv import stuff
What do you mean with browse? You can just load the file using FileReference.load() and then just show it. Just split the text of the file by \n\r (or just \r) and then split every line by the separator (normally the comma). After parsing the first line you could use those as the keys for the array you construct. I would think something like below could work: var data: Array = []; var values: Array; var lines: Array = data.split( \n\r ); for ( var i: Number=0; i lines.length; i++ ) { var line: String = lines[i]; values = line.split(,); // do something data.push(values); } Weyert de Boer is there any nice and easy way to 'Browse' .csv file on flex and after that send 'Import Request' to php and php will import this .csv file's data to database.? any thought on this stuff!!? From Chandigarh to Chennai - find friends all over India. Click here.
Re: [flexcoders] Re: how open .doc (words )file
By unzipping it. On 7/05/2009, at 5:03 AM, securenetfreedom wrote: How would you gain access to the .doc XML?
Re: [flexcoders] how open .doc (words )file
I would think that using the Word COM+ objects would be the easiest way to read Word documents. Of course, you can also only support the XML-based version of Word documents Office 2007. On 6/05/2009, at 6:23 PM, farid wl wrote: Hi Dear friends anybody knows how we can read and open .doc files in flex and convert it to pdf on fly with action scripts or php . I use of AMF to transfer value object between flex and php. PLease help me . BR farid valipour
Re: [flexcoders] Printing on Mac
And it's better to add the sprites offscreen to the stage to avoid all kind of other printing issues (mainly also blank pages). The problem I am having that the result is crap on the Mac the same code looks all sharp and nice but when I printing on the Mac it's a bit blurry. Really annoying. Flash Player 10 doesn't support vector printing on the Mac? On 28/04/2009, at 9:46 AM, Toby Tremayne wrote: yes it's to do with a rounding error when measuring the page height. Check this out: http://bugs.adobe.com/jira/browse/SDK-18976
Re: [flexcoders] Control remote desktop with Flash
You can have a look at the FVNC project? It's a VNC client for Flash/ Flex. You are currently unable to with a VNC server in Flash because you can't access the desktop and mouse/keyboard outside the Flash region. And the Flash Player lacks support for server sockets...
Re: [flexcoders] fvnc
Yes, you can control a remote computer using FVNC. You only can't host a VNC server from Flash. Technically impossible because of lacking features in the Flash Player On 27/04/2009, at 9:14 AM, venkat eswar wrote: Can we do remote desktop feature using fvnc(flash vnc client).Please help me
Re: [flexcoders] Re: Sending a HEAD request
Today on Twitter I heard about this library as3httpclient. Appears to support doing HEAD requests. See: http://code.google.com/p/as3httpclient/
Re: [flexcoders] Flex Interview Questions
Why would you want to ask about specific components which can be easily learned after you have hired the guy? Better to ask question about programming principles and maybe Flash specific questions. But asking about specific components is a bit odd in my opinion. Anyways, Sidney had some nice question listed in flashcoders or this list a while back.
Re: [flexcoders] virtual keyboard
Please keep in mind that a lot of the virtual keyboard designs are patented in the U.S. As long you don't have to deal in the U.S. you can ignore my comment.
Re: [flexcoders] Merapi and execute file from AIR
You can find a .NET example of communicating with LocalConnection in one of the Flex books. Pro Flex 2. I think it was.
Re: [flexcoders] Merapi and execute file from AIR
No, I wouldn't use Java for this. This will increase the deployment size of your product. Because you would need to have the Java runtime installed.
Re: [flexcoders] Merapi and execute file from AIR
I would've have just written to simple C++ applications which start those applications. If you only want to execute files. I won't have a huge memory hog for such things then.
Re: [flexcoders] Merapi and execute file from AIR
Yeah, working on a C or Freepascal version of Merapi ;)
[flexcoders] AMF and sending/receiving pictures
Does anyone know if there are any solutions to allow sending pictures from the AMF server-side to the Flash/Flex client? Or do I need to go the Base64 or supply as image url way instead?
Re: [flexcoders] Open Source Library for Draw Graph
Have a look at BirdEye: http://code.google.com/p/birdeye Hi, someone know an open source library for writing VISUALLY graph ?? Thanks.
Re: [flexcoders] Launching Air application from ASP .NET
Why would you want to run the AIR application on the webserver where the ASP.NET project is deployed on?
Re: [flexcoders] adobe TV - QR code reader
It's the session by Mario Klinggemann. He did that session during Aral's online conference. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] adobe TV - QR code reader
http://tv.adobe.com/#vi+f15384v1012 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: try, catch, finally ...
I respectfully disagree with not handling exceptions and let them raised in the player. Of course, eating exceptions is terribly bad. Yes, raising exceptions because user input is bad is a long stretch. Hi Kevin, Try-Catch blocks are an absolute necessity as without them, you are putting the operation of your software into the hands of user input errors, http errors, unintended consequences as well as the myriad of things that exist outside the Happy Path. I respectfully disagree. IMHO, try-catch is only useful in rare situations; like file IO in an Air app. User input should be handled with restict and validators and http errors should be handled with a fault handler. What I'm saying is that well written/tested code rarely needs the overhead and verboseness of a try-catch block. In the event of un-caught errors, I personally want the Flash window to popup. While the dialog could be more elegant, the stack trace makes it easier to locate the problem and fix the bug quickly. Again, just my opinion. -TH --- In flexcoders@yahoogroups.com, Kevin Benz kb...@... wrote: Try-Catch blocks are an absolute necessity as without them, you are putting the operation of your software into the hands of user input errors, http errors, unintended consequences as well as the myriad of things that exist outside the Happy Path. As functions/methods only give you one return object, it is common practice to throw custom errors/exceptions as they are a great mechanism for handling dynamic environments. To answer your second question about a try-catch without statements in the catch block. If this method is nested inside of another try-catch block, then an exception here will be swallowed and not be caught in the calling objects try-catch. KFB From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of SJF Sent: Tuesday, March 03, 2009 6:54 PM To: flexcoders Subject: [flexcoders] try, catch, finally ... Technically, it's good practice/professional to use try-catch-finally blocks in your actionscript logic. This ensures a robust, easily debugg-able application. However, can anyone comment if they actually use try-catch-finally or whether anyone is for or against it's use. I ask because I've received an application (which streams vidoe) that was blowing out numerous users CPUs to 100%. Upon further investigation, it appears that a netstream event is firing 20 times a second, and within the listener (listener function that is) for the event, there is a try-catch-finally block. I removed the try-catch-finally and CPU usage halved on my machine. Anyone care to comment for or against try-catch-finally and it's use. Steve. -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.
Re: [flexcoders] distributing air apps without install
Yes, you only need to have a freely redistrubition license from Adobe which also comes with the information to install your AIR app and the runtime silently. See: http://www.adobe.com/products/air/runtime_distribution1.html Is it possible to distribute an AIR app that can be run without being installed? Can I zip the directory of an installed air app and distribute it to users for them to decompress and run without having to install?
Re: [flexcoders] Thumbnail from screen (contents)
Hi Erik, You can easily make a screenshot of a MovieClip the following way: import flash.display.*; var thumbnailData: BitmapData = new BitmapData( slide._width, slide._height, true, 0xFF ); thumbnailData.draw( slide, new Matrix() ); After you made a screenshot of the movieclip or you slide you can reuse it by it like: slideThumb.attachBitmap( thumbnailData, 1); Yours, Weyert de Boer
Re: [flexcoders] Re: Reading the output of an AIR application in C#
You could check if AIR allows to output to the output stream (or System.Out) while running and you can catch that easily under Windows. See for more information: http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.redirectstandardoutput.aspx Of course, can also add some sort of file watcher and get an event when the file is added to a specific file (or a file with a specific name) and then directly open it in C#. See: http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
Re: [flexcoders] Re: Reading the output of an AIR application in C#
You can find most of the information you need at: www.osflash.org/localconnection.
Re: [flexcoders] syncing AIR/Flex app with mobile phones
Hi, You could consider to use the SyncML protocol. Now you probably would still need some program in the middle who can push the SyncML data to the mobile phone like via Bluetooth. Of course, you can also generate an iCal file or a vCard file. Maybe? Of course, you can just push to something like Google Calendar and Google Contacts (if it exists!) Yours, Weyert Has anyone handled syncing things like contacts or calendar events with mobile phones? Are there services or libraries for integrating with the existing contact and calendar apps on the popular smartphones?
Re: [flexcoders] Displaying Extremely large fonts
Hmm. Did you try to scale it? Maybe that works?!?!
Re: [flexcoders] Re: Socket communications in Flex
It's \0 or null character for the XMLSocket class. This limitation doesn't exist when you use the binary sockets.
Re: [flexcoders] Re: Flas 10 on mobile is a go
Carlos, just get a Palm Pre ;) Same coolness but with Flash. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Socket communications in Flex
Have a look at: http://www.innerfuse.biz/dropbox/WebDU 2007 Leveraging Apollo Runtime.zip Shows how you can make a socket server in Ruby and talk with a Bluetooth GPS device.
Re: [flexcoders] Alternative Rich Text Editor
You could consider using Flash Player 10 and the new text engine. The best you can get: http://labs.adobe.com/technologies/textlayout/
Re: [flexcoders] GPS in Flex
During WebDU 2007 I presented a similar solution only using Ruby instead. If you want you can have it. As part of the example during the presentation I used one of those Palm GPS mouses. But it should work with all GPS devices which support NMEA standard.
Re: [flexcoders] Using ActiveXObject with Adobe AIR and Flex
You can't really use ActiveX objects from some other different then IE. Firefox, Opera don't support it. Ofcourse, also it's only support under Windows. What you could consider is let the ActiveX (if possible) register an url scheme and use that to trigger it somehow together.
Re: [flexcoders] Using ActiveXObject with Adobe AIR and Flex
Something like: http://blogs.msdn.com/noahc/archive/2006/10/19/register-a-custom-url-protocol-handler.aspx I like that idea to use something like to launch application from AIR and then let the handler check if it's coming from an AIR application ;)
Re: [flexcoders] Any Developers on a Mac?
Wow. Currently, each notebook I have had from Apple needed fixes via warranty. My G4 got is screen replaced and the MBP is still a big drama with two topcase replacements, two screens and keyboard key fix. Basically it needs to a new warranty because the last time they broke the keyboard lightning and the topcase is falling apart again while it hasn't even travelled since the last fix. Terrible :(
Re: [flexcoders] Shape Detection in BitmapData
You might want to check out the last session form Mario Klingemann at MAX. You can find it at: http://tv.adobe.com
Re: [flexcoders] Identifying AIR application instance
You could make a constant class and then re-compile and package a AIR file for each download of the application. Or you can the easy way and generate a unique identifier and store it somewhere like encrypted store when the application is first launched. After you can always pass along the identifier when running.
Re: [flexcoders] Question about a component Kap Lab Diagrammer
Nope, but I have experiences with yFiles Flex and that's a real nice component package. http://www.yworks.com/en/products_yfilesflex_about.html
Re: [flexcoders] How to extract and save the contents of an image ,audio or video file ?
Just put the file in a blob field of the database. If you really want to store it in the database (sounds silly too me).
Re: [flexcoders] Re: How to extract and save the contents of an image ,audio or video file ?
You can just try to compress the file first and then just send the bytearray to the blob. :)
Re: [flexcoders] 64bit Flash player released, Linux only for ow
What's the added value of having the problem in 64bits? Better to concentrate on a Flash Player performance improvement on the Mac to decrease the CPU usages in such manner the fans ain't sounding like a flying by airplane :)
Re: [flexcoders] Re: Flex and Screen Readers
Hi Gus, MacOSX comes with a nice screen reader out of the box. It's called VoiceOver. Yours, Weyert de Boer
Re: [flexcoders] Re: Do you use a Mac?
Well, Leopard Server runs in a virtual machine. It's supported by VMWare Fusion and Parallels under OSX. Fotis Chatzinikos wrote: Are you sure that you cannot run Leopard (MacOSX) on a vm?
Re: [flexcoders] Flex and Screen Readers
Hey Gus, This page has some interesting information about this combination: http://www.adobe.com/accessibility/products/flex/ Yours, Weyert de Boer
Re: [flexcoders] Do you use a Mac?
Then there's the free(as in beer) Apple Developer Tools, which you need to install, but include: XCode and all the other good stuff it brings, including WebObjects, IPhone SDK, general Cocoa SDK tools, various profilers etc etc. the list just goes on an on.. In my experience IDEs like Eclipse, Flex Builder, Netbeans etc etc work fine on OS X. Visual Studio Express is also free (as in beer) and also is a good development environment for Windows. Now it has to be said that XCode is a lovely IDE!
Re: [flexcoders] Do you use a Mac?
I have been moving towards OSX three years ago. Only I have the feeling you replacing the BSOD with annoying rotating beachballs. You are having a lot of beachballs under OSX sometimes at odd times. Anyways, beside of things like Disco, QuickSilver and TextMate are nice applications which ain't available under Windows/Linux.
Re: [flexcoders] form to pdf
Hi Gustavo, You could consider using the AlivePDF! solution which allows you to generate PDF documents from inside Flash. http://alivepdf.bytearray.org/ Have a look at this example too: http://blog.unthinkmedia.com/?p=53 Yours, Weyert de Boer
Re: [flexcoders] Re: Can AIR call local DLLs?
You can use AlivePDF to generate PDF files.
Re: [flexcoders] BSS is Looking someone
Does it really has to be PHP? Not like .NET, Delphi or Ruby (RoR)? PHP is just driving me insane.
[flexcoders] Custom itemRenderer for Tree
Hello, I am currently trying to work on a itemRenderer for the Flex Tree component. Only I am having some trouble with it. I would like to to hard-code the itemHeight of every item in the list. My objective is to make an itemRenderer which has a image item and a label and together with two 1px thick lines (on the top and bottom). Only the problem is that it looks clumsy somehow. The problems I am experiencing is: - The selection highlight indicator has disappeared - The vertical alignment of the text and image box is odd I am using the following code: Does anyone know how I can make this using MXML? Yours, Weyert de Boer
Re: [flexcoders] Re: Custom itemRenderer for Tree
Sorry, the code was I was using can be found below now. I am using: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:degrafa=com.degrafa.* xmlns:paint=com.degrafa.paint.* xmlns:geometry=com.degrafa.geometry.* height=22 degrafa:Surface verticalCenter=0 horizontalCenter=0 degrafa:strokes paint:SolidStroke id=light color=#66 alpha=1 weight=1/ /degrafa:strokes !-- Creating a Geometry Group. -- degrafa:GeometryGroup geometry:HorizontalLinestroke={light} x=0 x1={this.width}/ /degrafa:GeometryGroup /degrafa:Surface mx:HBox width=100% height=100% backgroundColor=#FF paddingLeft=4 horizontalGap=4 paddingTop=0 mx:Image source=@Embed(source='assets/emptyIcon.png') / mx:Label text={data} color=#00 / /mx:HBox degrafa:Surface verticalCenter=0 horizontalCenter=0 degrafa:strokes paint:SolidStroke id=dark color=#33 alpha=1 weight=1/ /degrafa:strokes !-- Creating a Geometry Group. -- degrafa:GeometryGroup geometry:HorizontalLinestroke={dark} x=0 x1={this.width}/ /degrafa:GeometryGroup /degrafa:Surface /mx:VBox
[flexcoders] Problem with the DataGrid column keeps switching location
Hello, I have been working on a solution to make some sort of property grid in Flex and I have been using the DataGrid. Only I am experiencing some problems with it. The datagrid consists of two columns called name and value. The second value is a column where I used a custom itemRenderer to change the input editor based on given instructions in the dataProvider. Only I am sadly enough I am experiencing some strange problem with it. The problem is that when I am filling the dataProvider and later clear the dataProvider and then add some data again. The input editors in the second column don't match the title shown at the first column. The input editor will move one row time each time you are refilling it. I have made a Flex project which reproduces this problem. Does anyone know how this problem can be fixed? The download can be found at: www.dustyfrog.nl/dropbox/dbgrid_problem.zip Also does anyone know a better or different approach to accomplish the same in a way without the above mentioned problem? The code is based on code from Tink (I am bit disparate) Yours, Weyert
Re: [flexcoders] Problem with the DataGrid column keeps switching location
The problem is shown when you click a few times on the buttons.
Re: [flexcoders] Best way to deliver data via Rails
You can consider using RubyAMF.
[flexcoders] Flex 4 and Flex 3 mixable?
Hello! I am currently working on a project where one third-party component is written for Flex 3. Only I am curious if it's possible to combine Flex 3 parts with Flex 4. Anyone know if this possible or having experience with this? Yours, Weyert de Boer
Re: [flexcoders] Re: Open pdf from ByteArray in new browser window (not AIR)
You can find information about the Excel file spec at Microsoft.com (msdn probably) or at openoffice: http://sc.openoffice.org/excelfileformat.pdf http://www.microsoft.com/interop/docs/OfficeBinaryFormats.mspx http://download.microsoft.com/download/0/B/E/0BE8BDD7-E5E8-422A-ABFD-4342ED7AD886/Excel97-2007BinaryFileFormat(xls)Specification.pdf Good luck!
[flexcoders] Template Engine for Flash?
Hello! Does anyone know some simple text-based template engine for Flash? I would like to generate some text files based on code snippets/templates in my Flash project. Only I am curious if anyone know some simple template engine written in ActionScript which might support token replacement (e.g. var1 = my value) or even some conditional constructs, like if-blocks. Anyone aware of such thing? Yours, Weyert
Re: [flexcoders] Re: What is Flexcoders?
Did you guys already invade New Zealand? As announced last year? http://www.youtube.com/watch?v=K6p3xlCnSjcfeature=related
Re: [flexcoders] Results of Direct Phone Call to Scene7.com
No troll. Just commenting on the earlier Apple=quality statement. Sent from my iPhone On Aug 29, 2008, at 4:59 AM, Howard Fore [EMAIL PROTECTED] wrote: Please don't feed the trolls... On Thu, Aug 28, 2008 at 10:04 PM, Weyert de Boer [EMAIL PROTECTED] wrote: Apple don't even want to fix the keyboard lightning that there tech people broke when they replaced the display for the second time. Warranty or AppleCare is a bitch. Even Acer or Dell are better in that regard. -- Howard Fore, [EMAIL PROTECTED] The universe tends toward maximum irony. Don't push it. - Jeff Atwood
Re: [flexcoders] Results of Direct Phone Call to Scene7.com
Apple don't even want to fix the keyboard lightning that there tech people broke when they replaced the display for the second time. Warranty or AppleCare is a bitch. Even Acer or Dell are better in that regard.
Re: [flexcoders] Changing itemEditors of a DataGrid a row basis
Hello Alex, I have it working. Only the problem I am currently experiencing that I don't know how I can add some predefined items to the created combobox. I have the following code: http://www.dustyfrog.nl/dropbox/datagrid.txt Do you know how I can add specific values to the combobox? Yours, Weyert de Boer
Re: [flexcoders] Changing itemEditors of a DataGrid a row basis
Setting the properties property of the ClassFactory also worked: properties.dataProvider = new Array( 1, 2, 3, 4, 5 ); Subclass ComboBox and preset its dataprovider *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Weyert de Boer *Sent:* Wednesday, August 27, 2008 5:54 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Changing itemEditors of a DataGrid a row basis Hello Alex, I have it working. Only the problem I am currently experiencing that I don't know how I can add some predefined items to the created combobox. I have the following code: http://www.dustyfrog.nl/dropbox/datagrid.txt http://www.dustyfrog.nl/dropbox/datagrid.txt Do you know how I can add specific values to the combobox? Yours, Weyert de Boer
[flexcoders] Changing itemEditors of a DataGrid a row basis
Hello! I am trying to make a property grid as seen in other applications in Flex. Only I am having trouble to change the itemEditors use by the current selected row. I am having the following ArrayCollection which consists of the class: public class PropertyItem { [Bindable] public var name: String; [Bindable] public var value: String; [Bindable] public var type: String; } Now I would like to change the dataField or itemEditor of the currently selected column using the onItemBegin-event of the Grid. Only the problem is that the change is not made. Also I have trouble that it doesn't change the binded value-property of the PropertyItem instance. Does anyone know how this can be done? Or even better does anyone know some working PropertyGrid. A bit like as shown in the below picture? http://blogs.msdn.com/photos/gurbir/images/1894430/original.aspx Thanks! Weyert
Re: [flexcoders] Changing itemEditors of a DataGrid a row basis
Hi Alex! Thanks I will give it a shot :)
Re: [flexcoders] Custom Container component and drag 'n drop support
Thanks! Somehow it worked after I woke up this morning. Now I only need to battle against clipping problems :)
[flexcoders] Custom Container component and drag 'n drop support
I have been working on a custom component which descends from the Container class. Now I am trying to implement drag 'n drop support. I have enabled dragEnabled-property on my other List-component in the MXML file. I also have add the following listeners in my custom component: this.addEventListener( DragEvent.DRAG_ENTER , onDragEnter ); this.addEventListener( DragEvent.DRAG_DROP , onDragDrop ); this.addEventListener( DragEvent.DRAG_OVER, onDragOver ); Only the events never are getting triggered when I am hovering my list item over my component. How can I enable the dropping of items for my custom component? Container doesn't seem to have a dropEnabled-property! Thanks in avance! Weyert
Re: [flexcoders] Gumbo on AIR
Nope, Gumbo requires the Flash Player 10. Currently, there is no AIR version which supports this player.
Re: [flexcoders] Custom component and clipping
Alex Harui wrote: I’d use mask or scrollrect Thanks. I will give it a try! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * 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] Custom component and clipping
Hello! The last few eeks I have been working on my own custom component for Flex. Now the component itself is inherited from the UIComponent class, and then basically some child IComponents which draws different layers. For example, if I have seperate layer for the interaction such as the handling of clicks, and the drawing of the selection area. Other layers are responsible for drawing the lines between items, and the latter for drawing the items itself. The problem I am now having is that when I move around the drawn items they happen to get clipped to my custom component. For example, I can move the item out of the current specified dimensions of the component and have it show up on a different part of my application window. I have the feeling Flex doesn't automatically clip children to the parent control (UIComponent), is this correct? My second question, would be what is the best way to fix this? My current ideas are: 1. Implement clipping by disabling dragging outside the dimensions of the control (e.g. if mouseX control.width then stop) 2. Create a Shape instance and set this as mask on the control Anyone able to help me out with this? I suppose it's something common, though. Yours, Weyert de Boer
[flexcoders] Child items in custom component
Hello! I am currently a bit clueless regarding using Flex components. I am currently trying to port a .NET component to Flex. Only I have some problems. In a simplified form the problem is that I am trying to add childs to the component. The idea is to use public method to add nodes to the component. The code could be: var node: MyNode = new MyNode(); node.width = node.height = 125; myComponentInstance.addNode( node ); The addNode-method is basically contains: public function addNode( node: MyNode ): void { _nodeContainer.addChild( DisplayObject(node) ); invalidateDisplayList(); } The _nodeContainer is a Sprite class which gets created in the overriden createChildren-method. Now I would be expected that the MyNode-instance (which just draws a simple rectangle 125x125) would be shown. Sadly enough, this is not the case. Does anyone know what should be done to get this working? Yours, Weyert de Boer
Re: [flexcoders] Child items in custom component
Sorry, to bug, but does anyone happen to have any ide? Weyert Hello! I am currently a bit clueless regarding using Flex components. I am currently trying to port a .NET component to Flex. Only I have some problems. In a simplified form the problem is that I am trying to add childs to the component. The idea is to use public method to add nodes to the component. The code could be: var node: MyNode = new MyNode(); node.width = node.height = 125; myComponentInstance.addNode( node ); The addNode-method is basically contains: public function addNode( node: MyNode ): void { _nodeContainer.addChild( DisplayObject(node) ); invalidateDisplayList(); } The _nodeContainer is a Sprite class which gets created in the overriden createChildren-method. Now I would be expected that the MyNode-instance (which just draws a simple rectangle 125x125) would be shown. Sadly enough, this is not the case. Does anyone know what should be done to get this working? Yours, Weyert de Boer
Re: [flexcoders] Child items in custom component
Thanks! I will give it a shot tomorrow. Sounds, logical somehow. I suppose it should work.
[flexcoders] Flex Builder and Ant
Does anyone know how I can combine the use of Flex Builder and Ant to compile Flex/AIR projects?
Re: [flexcoders] Re: Flex Builder and Ant
Hi! I have received a working apache build script from James Ward via the ApolloCoders list. Now I will see if I can somehow combine Flex Builder and this build script together. Yes, mainly for the profiler and the debugging.
Re: [flexcoders] Adobe AIR/ Flex with device such Fingerprint
Depending on the device you are able to obtain the actual fingerprint image and even receive events like finger placed or removed etc. The website that leveraged the device via the website, did that need some sort of plugin or ActiveX component? If so, it hard to recreate without such broker layer in between. The best thing would be to disrupt the distribution of your AIR application in such manner that you install the framework and then just deliver the application yourselves in combination with a launcher app which will start the broker and after that the actual AIR application. In an upcoming book about Adobe AIR this is shown and leverages Java (wide audience) and currently working on a second example whereby we will probably leverage RFID readers. Maybe an fingerprint reader would be an interesting topic too. Shouldn't be a lot of work.
[flexcoders] Leopard/MacOSX style tree component
Does anyone know a tree component for Flex which looks similar like the one used in the Finder of MacOSX Leopard? See: http://images.apple.com/macosx/features/images/finder_gallery01_20071016.jpg Thanks, Weyert de Boer
Re: [flexcoders] Leopard/MacOSX style tree component
Nope, the tree component on the left side of the main window shown in the image. The one with the devices, shared and places root nodes. Yours, Weyert Finder doesn't have a Tree, what view are you thinking of? I imagine there's plenty of solutions to implement the Icon view, and there's a few rip-offs of coverflow, and the Details view would just be a DataGrid. Do you mean the column view? -J On Wed, Mar 5, 2008 at 7:46 AM, Weyert de Boer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Does anyone know a tree component for Flex which looks similar like the one used in the Finder of MacOSX Leopard? See: http://images.apple.com/macosx/features/images/finder_gallery01_20071016.jpg http://images.apple.com/macosx/features/images/finder_gallery01_20071016.jpg Thanks, Weyert de Boer -- Therefore, send not to know For whom the bell tolls, It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: AW: [flexcoders] Rich Text Editor
Easiest way is just to use a dynamic text field and make your own editor.
Re: AW: [flexcoders] Rich Text Editor
If you start with a simple one-line editor without rich. You can do this: 1. create text field instance (set dynamic, disable selectable, editable) 2. create your own caret cursor (simple drawing api) 3. create your own canvas instance (for the selection rectangle) 4. catch the keydown-events (to handle left, right keys, and to update the text etc.) 5. catch mousedown-event (to reposition the caret) 6. handle the selection yourself (caret position, selection start, selection end) 7. write method to resolve a x,y position to the character index (e.g that caret position ;)) 8. write method to resolve x,y position from a character index (to position to caret correctly) 9. write method to move the caret to this position Really easy! Second step would be to support multiline in a similar matter and then support richtext... Yours, Weyert
Re: AW: [flexcoders] Rich Text Editor
Well, you can roll that your own I had the idea to write a series of articles about how to write custom components for Flex -- and after the smiley component I want to work on a RTE component. Only I haven't heard back from Adobe yet about this article idea. Maybe I should just put it on my blog :) Hi Gordon, yes but we don’t need the full functionality of buzzword, for example we don’t need tables. Our problems with the RTE component are: - htmlText - we like to generate pdf-documents with the .net-backend. - missing image support - missing page view and a page counter Harald Dehn -- 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] Adobe People, Save me from Silverlight! (Microsoft's Legal Record)
At least it has forced Adobe to make improvements to Flash, like better RTL support and the overall text support in general... Look at the new text rendering and fields support in the upcoming Flash 10 Player... -- 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: Adobe People, Save me from Silverlight!
What do you exactly mean with Sharepoint integration?
Re: [flexcoders] Rich Text Editor
Why not just make your own caret, use text fields the blocks of text, and come up with some smart manager for mapping the characters to a x,y and r,c position. Selection can be done by inverting the text and draw a rectangle below the textfield using drawing api. Simplest solution for now.
Re: [flexcoders] Adobe People, Save me from Silverlight! (Microsoft's Legal Record)
Yeah, probably. I think you can use the smcs compiler part of Mono/Moonlight to compile Silverlight projects on like Linux or MacOSX. Of course, you won't have the lovely Visual Studio IDE, though. As far as I knew you needed Visual Studio to develop for silverlight, has that changed?
Re: [flexcoders] Adobe People, Save me from Silverlight! (Microsoft's Legal Record)
It's works fine for me under MacOSX. Indeed you can't run Blend under that platform. In my opinion Silverlight is only interesting as a user interface engine for those Windows Mobile devices only that will take a long while ;)
Re: [flexcoders] FlashLite 3 and Flex 2/3
Currently, there aren't any mobile phones who support Flash Lite 3 out of the box. Of course, you can install developer player on a nice list of mobile phones, tough. It's expected that the first Flash Lite 3 enabled mobile phone will be available for consumption in the first quarter of next year. Flash Lite supports now Flash 8 movies--with some limitations (no binary sockets, or bitmap data or filters support, hopefully in the future!). More information about Flash Lite can be found at: * Adobe Lab: http://labs.adobe.com/technologies/flashlite3/ * Flash Lite 3 forum: http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=663entercat=y http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=663entercat=y * Bill post: http://www.flashdevices.net/2007/11/flash-lite-3-developer-edition-now.html Yours, Weyert de Boer Does FlashLite 3 support applications built in Flex 2 or 3? Also is there a list of mobile phones that support FlashLite?
[flexcoders] FLV file reader
Hi Anyone know some AS3 classes for reading FLV files? I would like to grab x frames of a FLV file without the need of using video displays and such? I would expect its possible via Apollo. Before I start hacking around I am curious if anyone already has such thing or not. No need to reinvent the wheel then. Yours, Weyert de Boer
Re: [flexcoders] Device connectivity
You can only use loadVariables() in Flash Lite 1.1. Support for XML was added in Flash Lite 2.0. Neither does Flash Lite in general support Flash Remoting. You could consider using SWX made by Aral Balkan. See: www.aralbalkan.com. And of course it is pull only.. no pushing of content. You could do that in FL2.1+ using XMLSockets. Yours, Weyert de Boer
Re: [flexcoders] Little review
Argh, I will fix the spelling tomorrow at work. SurveyMonkeys is a bit slow here at the local Starbucks :/ Thanks for filling in the survey, though. Yours, Weyert
Re: [flexcoders] Flash CS3 slow scrolling large scripts
I haven't experienced this problem under MacOSX.
[flexcoders] Little review
Just a little non-scientific survey about web applications. Please, be so kind a fill in this survery when you find time: http://tinyurl.com/29ydgj Thanks! Weyert
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
Hi Scott! I just don't like the browser part of it. Makes it all too complex, same from RIAs in Flex/Flash, though. Desktop Applications like Apollo and WPF/Avalon are more my thing. Yes, expression/Web looks nice even got good reviews from a popular magazine :) Trillion times better then FrontPage, even MSFT themself know that app sucked... Yours, Weyert
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
No problem! You got my email address. Remind me offlist and I will respond tomorrow. Time to go home. :)
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
You got to love how easy it is to obtain artwork from the XAML files used by the demos of Silverlight ;) Time to create some evil version of it. :
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
I dont really care about SivlerLight I want Ultimate Experience (WPF) on the Mac! All those stupid online applications g
Re: [flexcoders] Re: Games in Flex / Apollo?
I wrapped our Flash Lite games at work into a Apollo layer...
[flexcoders] Conor Marnane
Can someone delete Conor Marnane from this list? I am keep getting: This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. [EMAIL PROTECTED] Yours, Weyert
[flexcoders] Rumor of the day: Silverlight sourcode public
see: http://www.infoworld.com/article/07/04/27/MS-open-source-Silverlight_1.html?source=rssurl=http://www.infoworld.com/article/07/04/27/MS-open-source-Silverlight_1.html Sounds like a good idea for MSFT but not sure if this is a good plan for Adobe, though. Anyways this is a rumor lets see if it can be falsified next week ;) Now still we need to run VMWare to get the Expression software running... I haven't spotted any plans for a MacOSX or Linux tool... Would be nice if they came with their own runtime for MacOSX and Linux g Not that Mono ain't kicking ass !! Yours, Weyert
Re: [flexcoders] Rumor of the day: Silverlight sourcode public
Bjorn Schultheiss wrote: http://www.codeplex.com/Project/ProjectDirectory.aspx?TagName=WPF http://www.codeplex.com/Project/ProjectDirectory.aspx?TagName=WPF Yeah,XamlExporter for Illustrator is really nice! I used to export the XAML of my dashboard widget art. To recreate the clock widget of MacOSX in WPF :-) Would be nice if they came with their own runtime for MacOSX and Linux That would be major! Yeah! That's what I was thinking!
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
In fact if you want a really scalable enterprise platform you would choose the right hand side of the list above rather than the left. I am not sure about the C# and Java bit, though ;) It might my severe experiences with Java lately. But I C# does a good job... You just need to use the right stuff with CLR. I mean most people run server applications in workstation mode instead of server mode. Yes, then you have performance issues. The garbage collector works differently then. Also some limitations will be removed etc. Where Microsoft win hands down is in Office Applications and desktop operating systems. Excel is quite possibly the best piece of desktop software ever written (Word being the worst) and long may it reign as such. Windows is crap, but it's more than good enough for your average user and most Microsoft desktop products are actually pretty good (c'mon, be generous). I think Word is terrible to use, and Excel is good but I still think Quatro Pro worked better when I had to use it. I dont use Excel anymore. Yours, Weyert