[Flashcoders] text line overflow

2008-11-17 Thread Latcho
How to break a line of text on the optimal charachter and adding ... if it doesn't fit a single lined textfield | I would like to break | this line of text. | I would like to br... | Any suggestions (AS3) Latcho ___ Flashcoders mailing list

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Meinte van't Kruis
fonts are cached as bitmap when they get turned in 3d space, same as when applying filters, you can;t turn that off. One last thing to try is to tween with rounded values only, but I'm quite sure that wont make a difference, I think any font moved or turned in 3d space gets a bit 'blurry'. On

Re: [Flashcoders] text line overflow

2008-11-17 Thread Hans Wichman
Hi, I've got an as2 implementation maybe you can convert it (and clean it:)): //nametextfield contains actual text. Check what is smaller the actual width of the textfield or a combo of the available width + margin+dotwidth //50 == margin, 20== correction, +5 == no clue old code;)) //so the

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Ashim D'Silva
My last ditch effort with fussy type, it to make a dummy bitmap copy of the sprite (bitmapdata.draw(dispObj)) and use that for the animation times. Switch back to the original when you need selections/links to work...Not the most elegant, but it should work... 2008/11/17 Meinte van't Kruis [EMAIL

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Omar Fouad
I thought about it, but when working with Pure AS, especially if it is object oriented, it wouldn't be a good approach. On Mon, Nov 17, 2008 at 3:19 PM, Ashim D'Silva [EMAIL PROTECTED]wrote: My last ditch effort with fussy type, it to make a dummy bitmap copy of the sprite

[Flashcoders] api generation tool

2008-11-17 Thread Eamonn Faherty
Hey all, I want to be able to create a html api from as3 source code, a bit like the javadoc tool. I saw naturaldocs but was wondering if there are any other apps that can do this? Thanks in advance, Eamonn ___ Flashcoders mailing list

Re: [Flashcoders] frameworks and flash

2008-11-17 Thread Jim McIntyre
Micky Hulse wrote: Can anyone suggest a framework that would work best for cartoon/experimental animations (vs. a website-oriented framework.) To reiterate what some have said: take a look at Gaia. I used it on a large (for us, anyway) site that includes lots of cartoon animation:

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Ashim D'Silva
I don't see what OO has to do with it. It's a little processor intensive if you have heaps and heaps of text fields, but if you wrap it up nicely, it doesn't have to interfere with anything. 2008/11/18 Omar Fouad [EMAIL PROTECTED] I thought about it, but when working with Pure AS, especially if

Re: [Flashcoders] text line overflow

2008-11-17 Thread Gregory Boland
Just find out how many characters fit into your allocated textfield space then count the characters coming in You could put the string of text that you want in the textfield into an array that is broken by each word like this.. //str being the string that u want to work with _str_arr =

Re: [Flashcoders] api generation tool

2008-11-17 Thread ekameleon
hello :) In the Flex SDK you can use the command line ASDoc tool. http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=asdoc_127_1.html You can use it with Google prettify to highlight the source code in your examples : French tutorials

RE: [Flashcoders] api generation tool

2008-11-17 Thread Eamonn Faherty
Thanks a million! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ekameleon Sent: 17 November 2008 14:49 To: Flash Coders List Subject: Re: [Flashcoders] api generation tool hello :) In the Flex SDK you can use the command line ASDoc tool.

Re: [Flashcoders] text line overflow

2008-11-17 Thread Rob Romanek
Hi Latcho, I see you've gotten a couple response but I'll throw another one in to the mix. The main functions that will interest you are: 1) getCharIndexAtPoint which locates the char at the edge of the textfield 2) replaceSelectedText which is used to substitute in ... This is some code

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Omar Fouad
You mean I should create a copy of the MovieClip that will undergo the 3D Tweening and when completed i'd remove it and show the real one that have the interaction with it? On Mon, Nov 17, 2008 at 4:39 PM, Ashim D'Silva [EMAIL PROTECTED]wrote: I don't see what OO has to do with it. It's a little

[Flashcoders] AS statement this[testStudent + i] in JAVA ?

2008-11-17 Thread tim shaya
Apologies in advance if this is a bit off topic but are there any ActionScripters who know Java on here? I'm just starting out with Java and I'm stuck. In Actionscript you can write a for loop and have something like this: * for (var i:int=0;i**myStudnts.length;i++){ this[testStudent** +

[Flashcoders] 1172: definition flash.desktop:NativeApplication

2008-11-17 Thread Michael Stocke
Good afternoon group. I didn't get a response on the Flash Tiger list last week, so that's why I'm cross-posting. Hopefully this isn't off-topic. I am in the process of going through some AIR tutorials using the Flash IDE, and I have encountered some errors. I am following the instructions

Re: [Flashcoders] frameworks and flash

2008-11-17 Thread Ron Wheeler
If your framework includes dependency injection like Spring or database tools like Hibernate or HaXe's SPOD for the Flashplayer, then you get a lot of your code moved into configuration files which really cuts down on the work, re-enforces collaboration and makes testing a lot better. Java is

Re: [Flashcoders] AS statement this[testStudent + i] in JAVA ?

2008-11-17 Thread Hans Wichman
HI, a HashTable or Dictionary type of object is your friend. HTH, JC On Mon, Nov 17, 2008 at 5:35 PM, tim shaya [EMAIL PROTECTED] wrote: Apologies in advance if this is a bit off topic but are there any ActionScripters who know Java on here? I'm just starting out with Java and I'm stuck.

Re: [Flashcoders] AS statement this[testStudent + i] in JAVA ?

2008-11-17 Thread Eduardo Omine
From what I understand you have a 2D String array and want to use the values in this array to initialize new instances of the Student class. The simplest is an Student array: int len = myStudnts.length; Student[] testStudents = new Student[len]; for(int i=0; ilen; i++) { // change Student

Re: [Flashcoders] 1172: definition flash.desktop:NativeApplication

2008-11-17 Thread Pedro Kostelec
I tried your code and it works well. I got no error. (using Fl cs4). I mean, when i press Cntrl+ENTER the app runs all right. (But i have no idea how to actually make it a real AIR app; when i click on publish i get a window asking for a digital certificate! Where can i get it?)Maybe you don't

[Flashcoders] local file thumbnail preview :: possible?

2008-11-17 Thread artur
using fp 10, is it possible to generate a thumb preview of the user's selected local image files that they want to upload via FileReference.load() ? or some other method? thanks, artur - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] local file thumbnail preview :: possible?

2008-11-17 Thread Juan Pablo Califano
Yes, it's possible. The FileReference object now allows you to access the contents of a file uploaded by the user directly. You can manipulate it and pop-up a save dialog, again with FileReference (but the action has to be initiated by the user, such as a button click), and save the modified file

Re: [Flashcoders] 1172: definition flash.desktop:NativeApplication

2008-11-17 Thread jonathan howe
It does sound like you don't have Adobe Air as the version value in the Publish Settings dialog. Can you check that? There should be no problem in including that code in a class... references to NativeApplication are static and it could easily be put in a main document class or deeper. Pedro,

Re: [Flashcoders] local file thumbnail preview :: possible?

2008-11-17 Thread artur
does anyone have an online samples of this feature/property in action? best, *artur :.* - *www.artur.com* - [EMAIL PROTECTED] - *ph:646.797.3320* Juan Pablo Califano wrote: Yes, it's possible. The FileReference object now allows you to access the contents of a file uploaded by the user

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Ashim D'Silva
Not so much a copy, but a render of it within flash. As long as it's not animated. 2008/11/18 Omar Fouad [EMAIL PROTECTED] You mean I should create a copy of the MovieClip that will undergo the 3D Tweening and when completed i'd remove it and show the real one that have the interaction with

Re: [Flashcoders] local file thumbnail preview :: possible?

2008-11-17 Thread Juan Pablo Califano
I realize my reply doesn't really answer you question (you were asking about displaying the image rather than downloading it back), but I think it must be also possible. You can access to the file raw data as a ByteArray, but you still have to convert that into a bitmap (or bitmapdata first?).

Re: [Flashcoders] local file thumbnail preview :: possible?

2008-11-17 Thread artur
essa!! gracias Juan! *artur :.* - *www.artur.com* - [EMAIL PROTECTED] - *ph:646.797.3320* Juan Pablo Califano wrote: PD: I've checked the Image control in Flex and what it ends up doing is really simple. Just use a Loader and pass the raw data, and you're done. Quick and dirty example,

Re: [Flashcoders] local file thumbnail preview :: possible?

2008-11-17 Thread Juan Pablo Califano
PD: I've checked the Image control in Flex and what it ends up doing is really simple. Just use a Loader and pass the raw data, and you're done. Quick and dirty example, assuming you're already listening for the complete event and the user has loaded a valid image. private function

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Omar Fouad
A bitmap clone On Tue, Nov 18, 2008 at 12:45 AM, Ashim D'Silva [EMAIL PROTECTED]wrote: Not so much a copy, but a render of it within flash. As long as it's not animated. 2008/11/18 Omar Fouad [EMAIL PROTECTED] You mean I should create a copy of the MovieClip that will undergo the 3D

[Flashcoders] How to add meta data in image through AIR/ AS3.0?

2008-11-17 Thread Deepak Sahu
Hi All, I have to add a meta data tag in image after resizing it( Aspect ratio in my case) while uploading. Any idea how to do that ? any workaround? I have some classes by while helps me reading the EXIF tags through the images, but not getting any clue how to add something new. Thanks, Deepak

[Flashcoders] Re: How to add meta data in image through AIR/ AS3.0?

2008-11-17 Thread deepaksahu . flash
Hi All, Just to rephrase my question again. Basically when we resize any image its lost its meta data, so in my case i want to preserver those data even after resizing, and this require extraction of the meta data from original image and writing back these data after resize. But