Every solution leads to a new problem. Hahahaha.
Now my bitmap background color shows all white.
Is there a way to make the bmp background transparent / or set the
bmp.backgroundcolor.alpha = 0; ?




-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Cor
Sent: dinsdag 6 juli 2010 13:33
To: 'Flash Coders List'
Subject: RE: [Flashcoders] How to rotate dynamic textfield

I have got it:

var myBitmapData:BitmapData = new BitmapData(tf.width, tf.height);
myBitmapData.draw(tf);
var bmp:Bitmap = new Bitmap(myBitmapData);
bmp.smoothing = true;
bmp.rotation = 300;
addChild(bmp);


Thank you all for the help!!


Regards
Cor


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Glen Pike
Sent: dinsdag 6 juli 2010 13:28
To: Flash Coders List
Subject: Re: [Flashcoders] How to rotate dynamic textfield

Hi,

     If you put a dummy text field in your FLA with the font embedded, 
then in your dynamic ones, set embedFonts to true and set the font to 
the one matching your embedded one, that should work.

     I will look for the bitmap trick link...

     Glen

On 06/07/2010 12:23, Cor wrote:
> Thanks,
>
> I tried the embed in textfield on stage but that doesn't work for me when
> adding multiple textfield dynamically.
>
> Do you have some example code of the bitmap snaphot??
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Glen Pike
> Sent: dinsdag 6 juli 2010 13:18
> To: Flash Coders List
> Subject: Re: [Flashcoders] How to rotate dynamic textfield
>
> Hi,
>
> Your text field needs to have embedFonts set to true and you need the
> corresponding font characters either embedded in that text field, or
> another one used in the movie.  embedFonts property should be True if
> you set the embedding in the IDE.
>
> An alternate hack for rotating is to do a bitmap "snapshot" of the text
> field, then rotate the bitmap.
>
> HTH
>
> Glen
>
> On 06/07/2010 12:07, Cor wrote:
>    
>> Do you mean a textfield with embedded fonts or the particular
>>      
> instance(name)
>    
>> ?
>>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of allandt
>> bik-elliott (thefieldcomic.com)
>> Sent: dinsdag 6 juli 2010 13:03
>> To: Flash Coders List
>> Subject: Re: [Flashcoders] How to rotate dynamic textfield
>>
>> to do any kind of rotation / alpha transforms on a textfield, you need to
>> have the fonts embedded in the textfield
>>
>> your text will disappear otherwise
>>
>> On 6 July 2010 11:16, Cor<[email protected]>   wrote:
>>
>>
>>      
>>> I don't need a textfield on stage to embed.
>>> I adjusted my Test.as:
>>>
>>> package {
>>>
>>>          import flash.display.*;
>>>          import flash.text.*;
>>>
>>>          [Embed(source="C:\WINDOWS\Fonts\Tahoma.ttf",
>>>
>>>        
>> fontFamily="myTahoma")]
>>
>>      
>>>          public class Test extends MovieClip {
>>>
>>>                  public function Test() {
>>>
>>>                          var fmt:TextFormat = new TextFormat();
>>>                          fmt.font = "myTahoma";
>>>                          fmt.size=16;
>>>                          fmt.color=0x990000;
>>>
>>>                          var tf:TextField = new TextField();
>>>                          //tf.embedFonts=true; //DOES NOT WORK, MAKES
TEXT
>>> DISAPPEAR
>>>                          tf.defaultTextFormat=fmt;
>>>                          tf.multiline = true;
>>>                          tf.width = 200;
>>>                          tf.autoSize = TextFieldAutoSize.LEFT;
>>>                          tf.wordWrap = true;
>>>                          tf.x = 100;
>>>                          tf.y = 100;
>>>                          tf.htmlText = "Text to rotated<BR>Line two.";
>>>                          addChild(tf);
>>>                          //tf.rotation=300; //DOES NOT WORK, THIS IS THE
>>> PROBLEM FOR ME
>>>                   }
>>>          }
>>> }
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: [email protected]
>>> [mailto:[email protected]] On Behalf Of David
>>> Hunter
>>> Sent: dinsdag 6 juli 2010 12:07
>>> To: [email protected]
>>> Subject: RE: [Flashcoders] How to rotate dynamic textfield
>>>
>>>
>>> off the top of my head, i don't think you can rotate dynamic text with
>>>        
> web
>    
>>> fonts. i think you need to embed the fonts, otherwise the text does not
>>> render.
>>>
>>>
>>>        
>>>> From: [email protected]
>>>> To: [email protected]
>>>> Subject: [Flashcoders] How to rotate dynamic textfield
>>>> Date: Tue, 6 Jul 2010 11:50:57 +0200
>>>> CC:
>>>>
>>>> Hi List,
>>>>
>>>> I want to rotate a dynamic textfield in Flash CS3 using AS3 in classes.
>>>> I want to do it all in code so nothing on the stage.
>>>> I tried different ways but it never shows.
>>>>
>>>> I have set up a test fla wich can be downloaded here:
>>>>
>>>> www.codobyte.com/textRotation.zip
>>>>
>>>>
>>>> Any help is appreciated!
>>>>
>>>> Regards
>>>> Cor
>>>> [email protected]
>>>>
>>>>
>>>> _______________________________________________
>>>> Flashcoders mailing list
>>>> [email protected]
>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>
>>>>          
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>> Do you have a story that started on Hotmail? Tell us
>>> now_______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>> Geen virus gevonden in het binnenkomende-bericht.
>>> Gecontroleerd door AVG - www.avg.com
>>> Versie: 9.0.830 / Virusdatabase: 271.1.1/2980 - datum van uitgifte:
>>> 07/05/10
>>> 20:36:00
>>>
>>> _______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>>
>>>        
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> Geen virus gevonden in het binnenkomende-bericht.
>> Gecontroleerd door AVG - www.avg.com
>> Versie: 9.0.830 / Virusdatabase: 271.1.1/2980 - datum van uitgifte:
>>      
> 07/05/10
>    
>> 20:36:00
>>
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>>      
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> Geen virus gevonden in het binnenkomende-bericht.
> Gecontroleerd door AVG - www.avg.com
> Versie: 9.0.830 / Virusdatabase: 271.1.1/2980 - datum van uitgifte:
07/05/10
> 20:36:00
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>    

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.830 / Virusdatabase: 271.1.1/2980 - datum van uitgifte: 07/05/10
20:36:00

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.830 / Virusdatabase: 271.1.1/2980 - datum van uitgifte: 07/05/10
20:36:00

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to