[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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad [EMAIL PROTECTED] wrote:

 Nope i already tried it. It does not make any difference.

 On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
  set .cacheAsBitmap to false.
 
  On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad [EMAIL PROTECTED]
 wrote:
 
  So No ideas yet?
 
  On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad [EMAIL PROTECTED]
  wrote:
 
   I've tried everything...By the way I am tweening from rotationX -90 to
   rotationX 0 so I think that the font dimensions should return back to
  their
   initial size...
   By the was if they are immediately cashed as bitmap, is there a way to
  get
   the back as vectors and not bitmap?
  
  
   On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
 [EMAIL PROTECTED]
  wrote:
  
   I'm pretty sure any text fields immediately become cached as bitmaps
  when
   their dimensions are modified.
  
   On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad [EMAIL PROTECTED]
 
   wrote:
  
I'm also placing the textField into whole pixel coordinates and the
   pixel
font is in it's default size.
Cordially
   
On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad omarfouad.net@
 gmail.com
wrote:
   
 Hi,I have a Sprite that contains some MovieClips and a Dynamic
 Text
Field.
 I am using a simple transition where I tween Both the alpha and
 the
 rotationY property (flash Player 10).
 I noticed that when using rotationX(), rotationY and rotationZ(),
  the
 TextField font that is inside the sprite tweened becomes blurry
 and
  it
 becomes bold. I used Pixel fonts and non pixel fonts, checked and
unchecked
 Auto Kerning, used all types of Anti-aliasing, bitmap text and
  device
font,
 but in vain!!!
 It definitively works and fonts look great without using any 3d
   property
as
 in when i use tween alpha only.

 Is there a solution to use those properties without loosing the
 font
 quality?

 Thanks

 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by the
 intended
 recipient(s) only. It may contain proprietary material,
 confidential
 information and/or be subject to legal privilege. It should not
 be
copied,
 disclosed to, retained or used by, any other party. If you are
 not
  an
 intended recipient then please promptly delete this e-mail and
 any
 attachment and all copies and inform the sender. Thank you.

   
   
   
--
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]
   
This e-mail and any attachment is for authorised use by the
 intended
recipient(s) only. It may contain proprietary material,
 confidential
information and/or be subject to legal privilege. It should not be
   copied,
disclosed to, retained or used by, any other party. If you are not
 an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
  
  
  
   --
   --Joel
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
  
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised use by the intended
   recipient(s) only. It may contain proprietary material, confidential
   information and/or be subject to legal privilege. It should not be
  copied,
   disclosed to, retained or used by, any other party. If you are not an
   intended recipient then please promptly delete this e-mail and any
   attachment and all copies and inform the sender. Thank you.
  
 
 
 
  --
  Omar M. Fouad - www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: [EMAIL PROTECTED]
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  

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 actual width is the minimum of the textWidth and the given width
this.nameTextField._width = Math.min
(this.width-50-this.dotTextField._width,
this.nameTextField.textWidth+20)+5;
//position dots behind main textfield
this.dotTextField._x = this.nameTextField._x+this.nameTextField._width-2;
//determine visibility on whether text in nametextfield fits or not
this.dotTextField._visible = (this.nameTextField.textWidth 
this.nameTextField._width);

greetz
JC



On Mon, Nov 17, 2008 at 10:26 AM, Latcho [EMAIL PROTECTED] wrote:
 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
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 PROTECTED]

 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 Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad [EMAIL PROTECTED]
 wrote:

  Nope i already tried it. It does not make any difference.
 
  On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
   set .cacheAsBitmap to false.
  
   On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad [EMAIL PROTECTED]
  wrote:
  
   So No ideas yet?
  
   On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad [EMAIL PROTECTED]
   wrote:
  
I've tried everything...By the way I am tweening from rotationX -90
 to
rotationX 0 so I think that the font dimensions should return back
 to
   their
initial size...
By the was if they are immediately cashed as bitmap, is there a way
 to
   get
the back as vectors and not bitmap?
   
   
On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
  [EMAIL PROTECTED]
   wrote:
   
I'm pretty sure any text fields immediately become cached as
 bitmaps
   when
their dimensions are modified.
   
On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad omarfouad.net@
 gmail.com
  
wrote:
   
 I'm also placing the textField into whole pixel coordinates and
 the
pixel
 font is in it's default size.
 Cordially

 On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad omarfouad.net@
  gmail.com
 wrote:

  Hi,I have a Sprite that contains some MovieClips and a Dynamic
  Text
 Field.
  I am using a simple transition where I tween Both the alpha and
  the
  rotationY property (flash Player 10).
  I noticed that when using rotationX(), rotationY and
 rotationZ(),
   the
  TextField font that is inside the sprite tweened becomes blurry
  and
   it
  becomes bold. I used Pixel fonts and non pixel fonts, checked
 and
 unchecked
  Auto Kerning, used all types of Anti-aliasing, bitmap text and
   device
 font,
  but in vain!!!
  It definitively works and fonts look great without using any 3d
property
 as
  in when i use tween alpha only.
 
  Is there a solution to use those properties without loosing the
  font
  quality?
 
  Thanks
 
  --
  Omar M. Fouad - www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: [EMAIL PROTECTED]
 
  This e-mail and any attachment is for authorised use by the
  intended
  recipient(s) only. It may contain proprietary material,
  confidential
  information and/or be subject to legal privilege. It should not
  be
 copied,
  disclosed to, retained or used by, any other party. If you are
  not
   an
  intended recipient then please promptly delete this e-mail and
  any
  attachment and all copies and inform the sender. Thank you.
 



 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by the
  intended
 recipient(s) only. It may contain proprietary material,
  confidential
 information and/or be subject to legal privilege. It should not
 be
copied,
 disclosed to, retained or used by, any other party. If you are
 not
  an
 intended recipient then please promptly delete this e-mail and
 any
 attachment and all copies and inform the sender. Thank you.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   
   
   
--
--Joel
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
   
   
   
--
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]
   
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
   copied,
disclosed to, retained or used by, any other party. If you are not
 an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
   
  
  
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised 

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 (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 PROTECTED]

  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 Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad [EMAIL PROTECTED]
  wrote:
 
   Nope i already tried it. It does not make any difference.
  
   On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
set .cacheAsBitmap to false.
   
On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad omarfouad.net@
 gmail.com
   wrote:
   
So No ideas yet?
   
On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad omarfouad.net@
 gmail.com
wrote:
   
 I've tried everything...By the way I am tweening from rotationX
 -90
  to
 rotationX 0 so I think that the font dimensions should return back
  to
their
 initial size...
 By the was if they are immediately cashed as bitmap, is there a
 way
  to
get
 the back as vectors and not bitmap?


 On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
   [EMAIL PROTECTED]
wrote:

 I'm pretty sure any text fields immediately become cached as
  bitmaps
when
 their dimensions are modified.

 On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad omarfouad.net@
  gmail.com
   
 wrote:

  I'm also placing the textField into whole pixel coordinates and
  the
 pixel
  font is in it's default size.
  Cordially
 
  On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad omarfouad.net@
   gmail.com
  wrote:
 
   Hi,I have a Sprite that contains some MovieClips and a
 Dynamic
   Text
  Field.
   I am using a simple transition where I tween Both the alpha
 and
   the
   rotationY property (flash Player 10).
   I noticed that when using rotationX(), rotationY and
  rotationZ(),
the
   TextField font that is inside the sprite tweened becomes
 blurry
   and
it
   becomes bold. I used Pixel fonts and non pixel fonts, checked
  and
  unchecked
   Auto Kerning, used all types of Anti-aliasing, bitmap text
 and
device
  font,
   but in vain!!!
   It definitively works and fonts look great without using any
 3d
 property
  as
   in when i use tween alpha only.
  
   Is there a solution to use those properties without loosing
 the
   font
   quality?
  
   Thanks
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised use by the
   intended
   recipient(s) only. It may contain proprietary material,
   confidential
   information and/or be subject to legal privilege. It should
 not
   be
  copied,
   disclosed to, retained or used by, any other party. If you
 are
   not
an
   intended recipient then please promptly delete this e-mail
 and
   any
   attachment and all copies and inform the sender. Thank you.
  
 
 
 
  --
  Omar M. Fouad - www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: [EMAIL PROTECTED]
 
  This e-mail and any attachment is for authorised use by the
   intended
  recipient(s) only. It may contain proprietary material,
   confidential
  information and/or be subject to legal privilege. It should not
  be
 copied,
  disclosed to, retained or used by, any other party. If you are
  not
   an
  intended recipient then please promptly delete this e-mail and
  any
  attachment and all copies and inform the sender. Thank you.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 --Joel
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by the
 intended
 recipient(s) only. It may contain proprietary material,
 confidential
 information and/or be subject to legal privilege. It should not be

[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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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:


  http://www.ftc.gov/youarehere

I don't know how I could have done it without a framework like Gaia. The 
asset management features alone are invaluable. Let me know (maybe 
off-list) if you have any specific questions.


-Jim
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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 (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 PROTECTED]
 
   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 Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad [EMAIL PROTECTED]
   wrote:
  
Nope i already tried it. It does not make any difference.
   
On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
 set .cacheAsBitmap to false.

 On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad omarfouad.net@
  gmail.com
wrote:

 So No ideas yet?

 On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad omarfouad.net@
  gmail.com
 wrote:

  I've tried everything...By the way I am tweening from rotationX
  -90
   to
  rotationX 0 so I think that the font dimensions should return
 back
   to
 their
  initial size...
  By the was if they are immediately cashed as bitmap, is there a
  way
   to
 get
  the back as vectors and not bitmap?
 
 
  On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
[EMAIL PROTECTED]
 wrote:
 
  I'm pretty sure any text fields immediately become cached as
   bitmaps
 when
  their dimensions are modified.
 
  On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad omarfouad.net@
   gmail.com

  wrote:
 
   I'm also placing the textField into whole pixel coordinates
 and
   the
  pixel
   font is in it's default size.
   Cordially
  
   On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad omarfouad.net@
gmail.com
   wrote:
  
Hi,I have a Sprite that contains some MovieClips and a
  Dynamic
Text
   Field.
I am using a simple transition where I tween Both the alpha
  and
the
rotationY property (flash Player 10).
I noticed that when using rotationX(), rotationY and
   rotationZ(),
 the
TextField font that is inside the sprite tweened becomes
  blurry
and
 it
becomes bold. I used Pixel fonts and non pixel fonts,
 checked
   and
   unchecked
Auto Kerning, used all types of Anti-aliasing, bitmap text
  and
 device
   font,
but in vain!!!
It definitively works and fonts look great without using
 any
  3d
  property
   as
in when i use tween alpha only.
   
Is there a solution to use those properties without loosing
  the
font
quality?
   
Thanks
   
--
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]
   
This e-mail and any attachment is for authorised use by the
intended
recipient(s) only. It may contain proprietary material,
confidential
information and/or be subject to legal privilege. It should
  not
be
   copied,
disclosed to, retained or used by, any other party. If you
  are
not
 an
intended recipient then please promptly delete this e-mail
  and
any
attachment and all copies and inform the sender. Thank you.
   
  
  
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised use by the
intended
   recipient(s) only. It may contain proprietary material,
confidential
   information and/or be subject to legal privilege. It should
 not
   be
  copied,
   disclosed to, retained or used by, any other party. If you
 are
   not
an
   intended recipient then please promptly delete this e-mail
 and
   any
   attachment and all copies and inform the sender. Thank you.
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  --Joel
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  

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 = str.split( );


Then character count each word till you reach the maximum your textfield
holds  
//keeps track of how many characters
var char_cnt:int = 0;

//limit is how many characters your textfield can hold
var limit:int = 50;

//new string array
newString_arr = new Array();

for(var z:int = 0; z  _str_arr.length; z++){
//want to keep count of each word and break when the char_cnt
//hits the limit
char_cnt += _str_arr[z].length;
//if the character count is equal or greater than the limit *
the num of lines, store that info
//and  break out of the for loop
if(char_cnt = limit){
newString_arr = _str_arr[z]);
break;
}
} 

Now u have a new array of words that fit into your textfield.  Concat them
together into a new string and put it into the textfeld.

In your new array if the last word in the element doesn't include a period
then you need to add the ...

Hope this helps

greg   

On 11/17/08 4:26 AM, Latcho [EMAIL PROTECTED] wrote:

 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
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 
Gregory Boland | IconNicholson
Flash Engineer, Technology
[EMAIL PROTECTED]
tel +1 212.981.0563
mobile +1 201.600.6269
295 Lafayette Street, New York, NY 10012
 
www.iconnicholson.com
--
This communication may contain information that is confidential or exempt
from disclosure.  If you are not the intended recipient, please note that
any dissemination, distribution, or copying of this communication is
strictly prohibited. Anyone who receives this message in error should notify
the sender immediately by telephone or by return email and delete it from
his or her computer.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 about it :
http://www.ekameleon.net/blog/index.php?post/2008/03/14/94-use-asdoc-with-google-prettify

EKA+ :)

2008/11/17 Eamonn Faherty [EMAIL PROTECTED]

 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
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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.

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 about it :
http://www.ekameleon.net/blog/index.php?post/2008/03/14/94-use-asdoc-with-google-prettify

EKA+ :)

2008/11/17 Eamonn Faherty [EMAIL PROTECTED]

 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
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 ripped out of a class I use that extends TextField  
and does a bunch of things for me, one of which is the truncation of  
text. It is not complete but should give you an idea for approaching  
this problem.


private var _htmlText:String = ; //holds the complete text for the  
field even when truncation occurs
private var _tempText:TextField = new TextField();; //another  
textField which is used to truncate the text and then place it into  
this actual field
private var _gutterCompensation:Number = -5; // -5 compensates for the  
gutter on either side of the text


private function checkDimensions(){
_htmlText = super.htmlText;
if(super.textWidth  width - _gutterCompensation){
//use the temporary text holder to do the text shortening and replacing
_tempText.htmlText = _htmlText;
	_tempText.defaultTextFormat = super.defaultTextFormat; //this ensures  
that the ... are placed using the correct formatting
	//find the character located at the edge of the text then count back  
2 more characters and replace everything from there to the end with  
...
	_tempText.setSelection(super.getCharIndexAtPoint(width- 
_gutterCompensation, 2)-2, super.text.length);

_tempText.replaceSelectedText(...);
super.htmlText = _tempText.htmlText;
}

Again is this an email/modified version so it is not complete just to  
give you ideas. (I don't remember if I really needed to use  
super.htmlText or could have gotten by with just this.htmlText)


Basically what I do is when the text field looses focus after editting  
I run the checkDimensions function which does my truncation but also  
stores the complete text. When the user brings the textfield back in  
to focus I replace the truncated text with the complete text I have  
stored.


hth,

Rob

On 17-Nov-08, at 4:26 AM, Latcho wrote:

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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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 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 (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 PROTECTED]
  
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 Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad [EMAIL PROTECTED]
 
wrote:
   
 Nope i already tried it. It does not make any difference.

 On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
  set .cacheAsBitmap to false.
 
  On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad omarfouad.net@
   gmail.com
 wrote:
 
  So No ideas yet?
 
  On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad omarfouad.net@
   gmail.com
  wrote:
 
   I've tried everything...By the way I am tweening from
 rotationX
   -90
to
   rotationX 0 so I think that the font dimensions should return
  back
to
  their
   initial size...
   By the was if they are immediately cashed as bitmap, is there
 a
   way
to
  get
   the back as vectors and not bitmap?
  
  
   On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
 [EMAIL PROTECTED]
  wrote:
  
   I'm pretty sure any text fields immediately become cached as
bitmaps
  when
   their dimensions are modified.
  
   On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad omarfouad.net@
gmail.com
 
   wrote:
  
I'm also placing the textField into whole pixel coordinates
  and
the
   pixel
font is in it's default size.
Cordially
   
On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad omarfouad.net
 @
 gmail.com
wrote:
   
 Hi,I have a Sprite that contains some MovieClips and a
   Dynamic
 Text
Field.
 I am using a simple transition where I tween Both the
 alpha
   and
 the
 rotationY property (flash Player 10).
 I noticed that when using rotationX(), rotationY and
rotationZ(),
  the
 TextField font that is inside the sprite tweened becomes
   blurry
 and
  it
 becomes bold. I used Pixel fonts and non pixel fonts,
  checked
and
unchecked
 Auto Kerning, used all types of Anti-aliasing, bitmap
 text
   and
  device
font,
 but in vain!!!
 It definitively works and fonts look great without using
  any
   3d
   property
as
 in when i use tween alpha only.

 Is there a solution to use those properties without
 loosing
   the
 font
 quality?

 Thanks

 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by
 the
 intended
 recipient(s) only. It may contain proprietary material,
 confidential
 information and/or be subject to legal privilege. It
 should
   not
 be
copied,
 disclosed to, retained or used by, any other party. If
 you
   are
 not
  an
 intended recipient then please promptly delete this
 e-mail
   and
 any
 attachment and all copies and inform the sender. Thank
 you.

   
   
   
--
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]
   
This e-mail and any attachment is for authorised use by the
 intended
recipient(s) only. It may contain proprietary material,
 confidential
information and/or be subject to legal privilege. It should
  not
be
   copied,
disclosed to, retained or used by, any other party. If you
  are
not
 an
intended recipient then please promptly delete this e-mail
  and
any

[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** + i] = new Student();
}*

I'm having trouble expressing the left part of the statement --
*this[myStudent
+ i]* -- using Java.

Any suggestions?

Here's where I'm at with the Java code:

*private static Student testStudent1, testStudent2, testStudent3,
testStudent4, testStudent5;
private static String[][] myStudnts = {{...}, {...}, **{...}, **{...}**,
{...}**};
...
  public static void main(String[] args){
**initStudents();
  }

  public static void initStudents(){
for(int i=0; imyStudnts.length; i++){
 // NOT COMPILING SO FAR:
 /
 (Student)(testStudent+(i+1)) =  new Student(myStudnts[i][0],
myStudnts[i][1],

  myStudnts[i][2], myStudnts[i][3],

  myStudnts[i][4], myStudnts[i][5]);
 }
**  }

*Again, sorry if this is a bit off-topic and thank you for taking the time
to read this.

- Tim
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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

exactly and I still can't get the app to compile (although I did

discover that the tutorial did leave out some key info). I even tried

the sample file and that won't compile. I am simply trying to make an

application with custom chrome that is draggable, that can be closed,

and that can be minimized. I haven't added any other functionality at

this time. The tutorial says to put the code on a frame in the timeline

(which I wasn't really comfortable with, but what do I know?). Here is

the relevant code:

 

import flash.desktop.NativeApplication;

import flash.events.MouseEvent;

 

back.addEventListener(MouseEvent.MOUSE_DOWN, back_CLICK);

function back_CLICK(e:MouseEvent):void { 

stage.nativeWindow.startMove();

}

 

minimize.addEventListener(MouseEvent.CLICK, minimize_CLICK);

function minimize_CLICK(e:MouseEvent):void {

stage.nativeWindow.minimize();

}

 

closeButton.addEventListener(MouseEvent.CLICK,closeButton_CLICK);

function closeButton_CLICK(e:MouseEvent):void {

NativeApplication.nativeApplication.exit();

}

 

Here is a link to the tutorial:

 

http://www.adobe.com/devnet/air/flash/articles/custom_chrome_app.html 

 

Among other things, I get the following error: 1172: definition

flash.desktop:NativeApplication. I have installed the Flash AIR
plug-in,

and I do get code prompts in the actions window. Does anyone have any

idea why I am getting this error and how I might overcome it? Also, I'd

prefer to include this code in a class, but I'm not quite sure how I

would go about doing that, so any ideas on that would be appreciated as

well.

 

Thanks in advance for any advice.

 

Mike Stocke
Interface Engineer

Organic, Inc. | Detroit
2600 S. Telegraph Road -- Suite 100, Bloomfield Hills, MI 48302
t: 248.454.4015  |  f: 248.454.3370

 

Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
Blog: http://Threeminds.Organic.com http://threeminds.organic.com/ 
Website: www.Organic.com http://www.organic.com/ 

 



This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. Dissemination, distribution or copying of this email 
or the information herein by anyone other than the intended recipient, or an 
employee or agent responsible for delivering the message to the intended 
recipient, is prohibited.  If you have received this email in error, please 
immediately notify us by calling our Help Desk at (415) 581-5552 or by 
e-mailing us at [EMAIL PROTECTED]


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 way ahead in this area but perhaps we will get there.

Ron

Paul Andrews wrote:
A framework gives you amethod of organising your code in a manner that 
aids development and maintenance. Using a framework makes your code 
organisation understandable to others that are familiar with the 
framework, so it aids cooperative/team development. Potentially you 
can work on other projects that use the same or similar framework more 
easily and maybe pick up some coding guidelines/shortcuts and 
understand the strategies followed by others.


In tiny projects frameworks aren't too important. In larger 
co-operative projects it is important for the reasons above.


Paul
- Original Message - From: Joel Stransky 
[EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Saturday, November 15, 2008 5:00 PM
Subject: Re: [Flashcoders] frameworks and flash



@ekameleon, that seems a little intense for me atm. This discussion is
mainly about weather or not it's just dumb not to use a framework vs. 
plain

as3 when building common flash sites. I'm looking to hear things like,
PureMVC makes everything easier. or It makes no sense not to use 
Mate.


On Sat, Nov 15, 2008 at 2:42 AM, Hans Wichman 
[EMAIL PROTECTED] wrote:


Read the article, some good, some bad.
If anyone declares you for a fool if you prefix interfaces with 'I'
and use marker interface, I tend to gloss over the rest of the article
since it no longer comes across trustworthy... Personal preference
aside:)

On Sat, Nov 15, 2008 at 12:05 AM, David Hershberger
[EMAIL PROTECTED] wrote:
 Haha!  Before you try Cairngorm, check out this article:


http://blog.iconara.net/2008/04/13/architectural-atrocities-part-x-cairngorms-model-locator-pattern/ 



 Having used Cairngorm for a while now I have to agree with him.  The
article
 is pretty harsh, and it only talks about the ModelLocator part.

 Dave

 On 11/14/08, Joel Stransky [EMAIL PROTECTED] wrote:

 Thanks for the post Dave. Cairngorm sounds a lot like PureMVC 
which  does
 away with events and implements a global command structure. So 
far  it's
 appealing although my first run in with it was under bad 
conditions. A
 client of a friend had mangled it something fierce before he was 
 brought

in
 at which point he brought me in to implement deep linking. It was 
ugly

to
 say the least. I have however heard great things about it since 
then.  My

 gut
 says I should know how to do this stuff on my own before I go 
relying

too
 heavily on tools that prevent me from getting to know the inner 
 workings

 intimately.

 It's just tough to esitmate flash/flex work effictively anymore 
 without

a
 framework involved it seems. Clients don't have the time or 
budget for

 builds from scratch. Flash used to be so fun but now it's a constant
 learning curve. ugg.

 Interestingly enough I looked up the cairngorm site and saw a 
link to

this
 blog post made just yesterday:
 http://www.anandvardhan.com/2008/11/13/popular-flex-frameworks/

 This should also be informative.
 http://www.insideria.com/2008/11/new-poll-which-flex-framework.html



 On Fri, Nov 14, 2008 at 1:52 PM, David Hershberger 
[EMAIL PROTECTED]
 wrote:


  We have been using Adobe Flex for the past year and have really 
  liked

it.
  It would be hard to call it blazing and bloat does seem 
like it

might
  apply to some extent, but on the other hand it does so many nice
things
 for
  us it is hard to argue with.  MXML is very powerful, but there is
 certainly
  a big learning curve.  For basic stuff, buttons and containers and
text,
  it's easy to get started.  There are lots of subtle details 
though,   so

 when
  you start wanting to do things in ways the Flex authors didn't
anticipate
  it
  often takes experimentation to find a way that works.  The Flex
framework
  code is open source at least, so you can always dig into that 
and   see

 what
  it's doing.
 
  We have also used Cairngorm, with mixed results.  Cairngorm 
doesn't

 really
  give you much code, it is mostly a set of design patterns.  
Some of

the
  important code it does give is a controller which connects  
 Cairngorm
  Events to Cairngorm Commands.  Cairngorm events inherently know 
  their
  dispatcher, which is a singleton, so you can just fire off 
events   like

 so:
new SaveGameEvent(game, user).dispatch();
  and the controller connects that to the appropriate
 SaveGameCommand.  We've
  come to the conclusion that Cairngorm is great for situations 
where

most
  user actions imply immediate communications with a server, but 
not   so

  useful
  for situations where user actions are just manipulating data  
 internal

to
  the
  .swf.  We have ended 

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.

 In Actionscript you can write a for loop and have something like this:
 *
 for (var i:int=0;i**myStudnts.length;i++){
this[testStudent** + i] = new Student();
 }*

 I'm having trouble expressing the left part of the statement --
 *this[myStudent
 + i]* -- using Java.

 Any suggestions?

 Here's where I'm at with the Java code:

 *private static Student testStudent1, testStudent2, testStudent3,
 testStudent4, testStudent5;
 private static String[][] myStudnts = {{...}, {...}, **{...}, **{...}**,
 {...}**};
 ...
  public static void main(String[] args){
**initStudents();
  }

  public static void initStudents(){
for(int i=0; imyStudnts.length; i++){
 // NOT COMPILING SO FAR:
 /
 (Student)(testStudent+(i+1)) =  new Student(myStudnts[i][0],
 myStudnts[i][1],

  myStudnts[i][2], myStudnts[i][3],

  myStudnts[i][4], myStudnts[i][5]);
 }
 **  }

 *Again, sorry if this is a bit off-topic and thank you for taking the time
 to read this.

 - Tim
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 constructor to accept a String array as parameter
testStudents[i] = new Student(myStudents[i]);
}


Access individual Student instances later using array indexes:
testStudents[2].goToSchool();

-- 
Eduardo Omine
http://blog.omine.net/
http://www.omine.net/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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
have the latest update Air plug-in?

I just started playing with AIR yesterday, so i don't have any ideas what
else could be the reason for your problem.

Pedro




On Mon, Nov 17, 2008 at 5:46 PM, Michael Stocke [EMAIL PROTECTED] wrote:

 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

 exactly and I still can't get the app to compile (although I did

 discover that the tutorial did leave out some key info). I even tried

 the sample file and that won't compile. I am simply trying to make an

 application with custom chrome that is draggable, that can be closed,

 and that can be minimized. I haven't added any other functionality at

 this time. The tutorial says to put the code on a frame in the timeline

 (which I wasn't really comfortable with, but what do I know?). Here is

 the relevant code:



 import flash.desktop.NativeApplication;

 import flash.events.MouseEvent;



 back.addEventListener(MouseEvent.MOUSE_DOWN, back_CLICK);

 function back_CLICK(e:MouseEvent):void {

 stage.nativeWindow.startMove();

 }



 minimize.addEventListener(MouseEvent.CLICK, minimize_CLICK);

 function minimize_CLICK(e:MouseEvent):void {

 stage.nativeWindow.minimize();

 }



 closeButton.addEventListener(MouseEvent.CLICK,closeButton_CLICK);

 function closeButton_CLICK(e:MouseEvent):void {

 NativeApplication.nativeApplication.exit();

 }



 Here is a link to the tutorial:



 http://www.adobe.com/devnet/air/flash/articles/custom_chrome_app.html



 Among other things, I get the following error: 1172: definition

 flash.desktop:NativeApplication. I have installed the Flash AIR
 plug-in,

 and I do get code prompts in the actions window. Does anyone have any

 idea why I am getting this error and how I might overcome it? Also, I'd

 prefer to include this code in a class, but I'm not quite sure how I

 would go about doing that, so any ideas on that would be appreciated as

 well.



 Thanks in advance for any advice.



 Mike Stocke
 Interface Engineer

 Organic, Inc. | Detroit
 2600 S. Telegraph Road -- Suite 100, Bloomfield Hills, MI 48302
 t: 248.454.4015  |  f: 248.454.3370



 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 Blog: http://Threeminds.Organic.com http://threeminds.organic.com/
 Website: www.Organic.com http://www.organic.com/




 
 This email is intended only for the person or entity to which it is
 addressed and may contain information that is privileged, confidential or
 otherwise protected from disclosure. Dissemination, distribution or copying
 of this email or the information herein by anyone other than the intended
 recipient, or an employee or agent responsible for delivering the message to
 the intended recipient, is prohibited.  If you have received this email in
 error, please immediately notify us by calling our Help Desk at (415)
 581-5552 or by e-mailing us at [EMAIL PROTECTED]


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 locally, without
bouncing it to a server.

Cheers
Juan Pablo Califano


2008/11/17, artur [EMAIL PROTECTED]:

 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
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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, there is a way to get a temporary certificate via the Commands - Air
and Application Settings dialog. There are good tutorials on Lynda.com that
are part of the free intro videos (i.e. membership is not required).
http://movielibrary.lynda.com/html/modPage.asp?ID=535

-jonathan




On Mon, Nov 17, 2008 at 2:28 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:

 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
 have the latest update Air plug-in?

 I just started playing with AIR yesterday, so i don't have any ideas what
 else could be the reason for your problem.

 Pedro




 On Mon, Nov 17, 2008 at 5:46 PM, Michael Stocke [EMAIL PROTECTED]
 wrote:

  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
 
  exactly and I still can't get the app to compile (although I did
 
  discover that the tutorial did leave out some key info). I even tried
 
  the sample file and that won't compile. I am simply trying to make an
 
  application with custom chrome that is draggable, that can be closed,
 
  and that can be minimized. I haven't added any other functionality at
 
  this time. The tutorial says to put the code on a frame in the timeline
 
  (which I wasn't really comfortable with, but what do I know?). Here is
 
  the relevant code:
 
 
 
  import flash.desktop.NativeApplication;
 
  import flash.events.MouseEvent;
 
 
 
  back.addEventListener(MouseEvent.MOUSE_DOWN, back_CLICK);
 
  function back_CLICK(e:MouseEvent):void {
 
  stage.nativeWindow.startMove();
 
  }
 
 
 
  minimize.addEventListener(MouseEvent.CLICK, minimize_CLICK);
 
  function minimize_CLICK(e:MouseEvent):void {
 
  stage.nativeWindow.minimize();
 
  }
 
 
 
  closeButton.addEventListener(MouseEvent.CLICK,closeButton_CLICK);
 
  function closeButton_CLICK(e:MouseEvent):void {
 
  NativeApplication.nativeApplication.exit();
 
  }
 
 
 
  Here is a link to the tutorial:
 
 
 
  http://www.adobe.com/devnet/air/flash/articles/custom_chrome_app.html
 
 
 
  Among other things, I get the following error: 1172: definition
 
  flash.desktop:NativeApplication. I have installed the Flash AIR
  plug-in,
 
  and I do get code prompts in the actions window. Does anyone have any
 
  idea why I am getting this error and how I might overcome it? Also, I'd
 
  prefer to include this code in a class, but I'm not quite sure how I
 
  would go about doing that, so any ideas on that would be appreciated as
 
  well.
 
 
 
  Thanks in advance for any advice.
 
 
 
  Mike Stocke
  Interface Engineer
 
  Organic, Inc. | Detroit
  2600 S. Telegraph Road -- Suite 100, Bloomfield Hills, MI 48302
  t: 248.454.4015  |  f: 248.454.3370
 
 
 
  Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  Blog: http://Threeminds.Organic.com http://threeminds.organic.com/ 
 http://threeminds.organic.com/
  Website: www.Organic.com http://www.organic.com/ 
 http://www.organic.com/
 
 
 
 
  
  This email is intended only for the person or entity to which it is
  addressed and may contain information that is privileged, confidential or
  otherwise protected from disclosure. Dissemination, distribution or
 copying
  of this email or the information herein by anyone other than the intended
  recipient, or an employee or agent responsible for delivering the message
 to
  the intended recipient, is prohibited.  If you have received this email
 in
  error, please immediately notify us by calling our Help Desk at (415)
  581-5552 or by e-mailing us at [EMAIL PROTECTED]
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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 locally, without bouncing it to a server.
 
Cheers

Juan Pablo Califano

 
2008/11/17, artur [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:


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
mailto:Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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 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 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 (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 PROTECTED]
   
 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 Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad omarfouad.net@
 gmail.com
  
 wrote:

  Nope i already tried it. It does not make any difference.
 
  On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
   set .cacheAsBitmap to false.
  
   On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad omarfouad.net@
gmail.com
  wrote:
  
   So No ideas yet?
  
   On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad omarfouad.net@
gmail.com
   wrote:
  
I've tried everything...By the way I am tweening from
  rotationX
-90
 to
rotationX 0 so I think that the font dimensions should
 return
   back
 to
   their
initial size...
By the was if they are immediately cashed as bitmap, is
 there
  a
way
 to
   get
the back as vectors and not bitmap?
   
   
On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
  [EMAIL PROTECTED]
   wrote:
   
I'm pretty sure any text fields immediately become cached
 as
 bitmaps
   when
their dimensions are modified.
   
On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad omarfouad.net
 @
 gmail.com
  
wrote:
   
 I'm also placing the textField into whole pixel
 coordinates
   and
 the
pixel
 font is in it's default size.
 Cordially

 On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad 
 omarfouad.net
  @
  gmail.com
 wrote:

  Hi,I have a Sprite that contains some MovieClips and a
Dynamic
  Text
 Field.
  I am using a simple transition where I tween Both the
  alpha
and
  the
  rotationY property (flash Player 10).
  I noticed that when using rotationX(), rotationY and
 rotationZ(),
   the
  TextField font that is inside the sprite tweened
 becomes
blurry
  and
   it
  becomes bold. I used Pixel fonts and non pixel fonts,
   checked
 and
 unchecked
  Auto Kerning, used all types of Anti-aliasing, bitmap
  text
and
   device
 font,
  but in vain!!!
  It definitively works and fonts look great without
 using
   any
3d
property
 as
  in when i use tween alpha only.
 
  Is there a solution to use those properties without
  loosing
the
  font
  quality?
 
  Thanks
 
  --
  Omar M. Fouad - www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: [EMAIL PROTECTED]
 
  This e-mail and any attachment is for authorised use by
  the
  intended
  recipient(s) only. It may contain proprietary material,
  confidential
  information and/or be subject to legal privilege. It
  should
not
  be
 copied,
  disclosed to, retained or used by, any other party. If
  you
are
  not
   an
  intended recipient then please promptly delete this
  e-mail
and
  any
  attachment and all copies and inform the sender. Thank
  you.
 



 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by
 the
  intended
 recipient(s) only. It may 

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?).

It's possible in Flex:
http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/

So, I think it should be possible in plain Actionscript.


Cheers
Juan Pablo Califano


2008/11/17, Juan Pablo Califano [EMAIL PROTECTED]:

 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 locally, without
 bouncing it to a server.

 Cheers
 Juan Pablo Califano


 2008/11/17, artur [EMAIL PROTECTED]:

 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
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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
  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 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 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 (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 PROTECTED]

  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 Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad omarfouad.net@
  gmail.com
   
  wrote:
 
   Nope i already tried it. It does not make any difference.
  
   On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
set .cacheAsBitmap to false.
   
On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad omarfouad.net@
 gmail.com
   wrote:
   
So No ideas yet?
   
On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad omarfouad.net@
 gmail.com
wrote:
   
 I've tried everything...By the way I am tweening from
   rotationX
 -90
  to
 rotationX 0 so I think that the font dimensions should
  return
back
  to
their
 initial size...
 By the was if they are immediately cashed as bitmap, is
  there
   a
 way
  to
get
 the back as vectors and not bitmap?


 On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
   [EMAIL PROTECTED]
wrote:

 I'm pretty sure any text fields immediately become cached
  as
  bitmaps
when
 their dimensions are modified.

 On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad 
 omarfouad.net
  @
  gmail.com
   
 wrote:

  I'm also placing the textField into whole pixel
  coordinates
and
  the
 pixel
  font is in it's default size.
  Cordially
 
  On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad 
  omarfouad.net
   @
   gmail.com
  wrote:
 
   Hi,I have a Sprite that contains some MovieClips and
 a
 Dynamic
   Text
  Field.
   I am using a simple transition where I tween Both the
   alpha
 and
   the
   rotationY property (flash Player 10).
   I noticed that when using rotationX(), rotationY and
  rotationZ(),
the
   TextField font that is inside the sprite tweened
  becomes
 blurry
   and
it
   becomes bold. I used Pixel fonts and non pixel fonts,
checked
  and
  unchecked
   Auto Kerning, used all types of Anti-aliasing, bitmap
   text
 and
device
  font,
   but in vain!!!
   It definitively works and fonts look great without
  using
any
 3d
 property
  as
   in when i use tween alpha only.
  
   Is there a solution to use those properties without
   loosing
 the
   font
   quality?
  
   Thanks
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised use
 by
   the
   intended
   recipient(s) only. It may contain proprietary
 material,
   confidential
   information and/or be subject to legal privilege. It
   should
 not
   be
  copied,
   disclosed to, retained or used by, any other party.
 If
   you
 are
   not
an
   intended recipient then please promptly delete this
   e-mail
 and
   any
   attachment and all copies and inform the sender.
 Thank
   you.
   

[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 Sahu
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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 How?

Any Help is greatly appreciated. There are way out in JAVA and C# n all for  
this, But how about Action Script.


Thanks,
Deepak


On Nov 17, 2008 4:24pm, Deepak Sahu [EMAIL PROTECTED] wrote:

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 Sahu


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders