RE: [flexcoders] Re: How to rotate a Combo Box

2008-06-20 Thread Paddy Keane
You could also set the fontWeight to 'normal' for components if u don't want to 
embed whole new font family:

i.e

ComboBox {
fontFamily: myArial;
fontSize: 20;
fontWeight: normal;
}


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
McDonald
Sent: 20 June 2008 05:34
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to rotate a Combo Box

Now that's what I call a gotcha :)

Ladies and gentlemen, this is why we can't fork the list without Adobe's 
blessing!

-Josh
On Fri, Jun 20, 2008 at 2:29 PM, Alex Harui [EMAIL PROTECTED] wrote:
Combobox (and Button and a few others) use bold fontWeight.  You have to embed 
the bold version of the font as well.  I believe it looks something like:
 
@font-face{
src: url(assets/ARIALBD.TTF); /* copy from Windows/fonts/
folder */
fontFamily: myArial; 
fontWeight: bold;
}

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
wyattwang
Sent: Thursday, June 19, 2008 12:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to rotate a Combo Box
 

Thanks. Here's the test app: 

?xml version=1.0?
!-- charts/BubbleRelativeSize.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

mx:Style
@font-face{
src: url(assets/ARIAL.TTF); /* copy from Windows/fonts/
folder */
fontFamily: myArial; 
}

ComboBox {
fontFamily: myArial;
fontSize: 20;
}
/mx:Style


mx:Script
![CDATA[
import mx.effects.Rotate;
import mx.controls.ComboBox;
import mx.collections.ArrayCollection;
import mx.controls.Image;
import flash.geom.Matrix;
import flash.geom.Point;

[Bindable]
private var s1:ArrayCollection = new ArrayCollection( [
{x: 20, y: 10, r:10 },
{x: 40, y: 5, r:20 } ,
{x: 60, y: 0, r:30 }]);

[Embed(assets/arial.ttf, fontName=MyArial)] 
public var myarial_font:Class;


private function rotate():void { 
cb.rotation = 270; 
textinput.rotation = 270;
}

private function back():void {
cb.rotation = 0;
textinput.rotation = 0;
}

]]
/mx:Script 

mx:Button label=rotate click=rotate()/
mx:Button label=back click=back() x=104/ 

mx:ComboBox id=cb dataProvider={s1} labelField=x
textAlign=center width=131 x=198 y=169 height=33/
mx:TextInput x=446 y=178.95 id=textinput text=This is a
text fontFamily=myArial width=127/

/mx:Application

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 The internal TextInput doesn't rotate? Post a test case.
 
 



-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] 
 


Re: [flexcoders] Re: How to rotate a Combo Box

2008-06-19 Thread Josh McDonald
Do you need the src in the css when using an [Embed]? Maybe it's causing
the font to not *actually* be embedded? Just taking a stab, I haven't used
embedded fonts.

-Josh

On Fri, Jun 20, 2008 at 5:05 AM, wyattwang [EMAIL PROTECTED] wrote:


 Thanks. Here's the test app:

 ?xml version=1.0?
 !-- charts/BubbleRelativeSize.mxml --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

mx:Style
 @font-face{
src: url(assets/ARIAL.TTF); /* copy from Windows/fonts/
 folder  */
fontFamily: myArial;
 }

 ComboBox {
fontFamily: myArial;
fontSize: 20;
 }
/mx:Style


mx:Script
![CDATA[
import mx.effects.Rotate;
import mx.controls.ComboBox;
import mx.collections.ArrayCollection;
import mx.controls.Image;
import flash.geom.Matrix;
import flash.geom.Point;

[Bindable]
private var s1:ArrayCollection = new ArrayCollection( [
{x: 20, y: 10, r:10 },
{x: 40, y: 5, r:20 } ,
{x: 60, y: 0, r:30 }]);

[Embed(assets/arial.ttf, fontName=MyArial)]
public var myarial_font:Class;


private function rotate():void {
cb.rotation = 270;
textinput.rotation = 270;
}

private function back():void {
cb.rotation = 0;
textinput.rotation = 0;
}

]]
/mx:Script

mx:Button label=rotate click=rotate()/
mx:Button label=back click=back() x=104/

mx:ComboBox id=cb dataProvider={s1} labelField=x
 textAlign=center width=131 x=198 y=169 height=33/
mx:TextInput x=446 y=178.95 id=textinput text=This is a
 text fontFamily=myArial width=127/

 /mx:Application


 --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
 
  The internal TextInput doesn't rotate?  Post a test case.
 
 



 

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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Re: How to rotate a Combo Box

2008-06-19 Thread Alex Harui
Combobox (and Button and a few others) use bold fontWeight.  You have to
embed the bold version of the font as well.  I believe it looks
something like:

 

@font-face{
src: url(assets/ARIALBD.TTF); /* copy from Windows/fonts/
folder */
fontFamily: myArial; 

fontWeight: bold;
}





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wyattwang
Sent: Thursday, June 19, 2008 12:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to rotate a Combo Box

 


Thanks. Here's the test app: 

?xml version=1.0?
!-- charts/BubbleRelativeSize.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute

mx:Style
@font-face{
src: url(assets/ARIAL.TTF); /* copy from Windows/fonts/
folder */
fontFamily: myArial; 
}

ComboBox {
fontFamily: myArial;
fontSize: 20;
}
/mx:Style


mx:Script
![CDATA[
import mx.effects.Rotate;
import mx.controls.ComboBox;
import mx.collections.ArrayCollection;
import mx.controls.Image;
import flash.geom.Matrix;
import flash.geom.Point;

[Bindable]
private var s1:ArrayCollection = new ArrayCollection( [
{x: 20, y: 10, r:10 },
{x: 40, y: 5, r:20 } ,
{x: 60, y: 0, r:30 }]);

[Embed(assets/arial.ttf, fontName=MyArial)] 
public var myarial_font:Class;


private function rotate():void { 
cb.rotation = 270; 
textinput.rotation = 270;
}

private function back():void {
cb.rotation = 0;
textinput.rotation = 0;
}

]]
/mx:Script 

mx:Button label=rotate click=rotate()/
mx:Button label=back click=back() x=104/ 

mx:ComboBox id=cb dataProvider={s1} labelField=x
textAlign=center width=131 x=198 y=169 height=33/
mx:TextInput x=446 y=178.95 id=textinput text=This is a
text fontFamily=myArial width=127/

/mx:Application

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 The internal TextInput doesn't rotate? Post a test case.
 
 

 



Re: [flexcoders] Re: How to rotate a Combo Box

2008-06-19 Thread Josh McDonald
Now that's what I call a gotcha :)

Ladies and gentlemen, this is why we can't fork the list without Adobe's
blessing!

-Josh

On Fri, Jun 20, 2008 at 2:29 PM, Alex Harui [EMAIL PROTECTED] wrote:

  Combobox (and Button and a few others) use bold fontWeight.  You have to
 embed the bold version of the font as well.  I believe it looks something
 like:



 @font-face{
 src: url(assets/ARIALBD.TTF); /* copy from Windows/fonts/
 folder */
 fontFamily: myArial;

 fontWeight: bold;
 }

   --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *wyattwang
 *Sent:* Thursday, June 19, 2008 12:06 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: How to rotate a Combo Box




 Thanks. Here's the test app:

 ?xml version=1.0?
 !-- charts/BubbleRelativeSize.mxml --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute

 mx:Style
 @font-face{
 src: url(assets/ARIAL.TTF); /* copy from Windows/fonts/
 folder */
 fontFamily: myArial;
 }

 ComboBox {
 fontFamily: myArial;
 fontSize: 20;
 }
 /mx:Style


 mx:Script
 ![CDATA[
 import mx.effects.Rotate;
 import mx.controls.ComboBox;
 import mx.collections.ArrayCollection;
 import mx.controls.Image;
 import flash.geom.Matrix;
 import flash.geom.Point;

 [Bindable]
 private var s1:ArrayCollection = new ArrayCollection( [
 {x: 20, y: 10, r:10 },
 {x: 40, y: 5, r:20 } ,
 {x: 60, y: 0, r:30 }]);

 [Embed(assets/arial.ttf, fontName=MyArial)]
 public var myarial_font:Class;


 private function rotate():void {
 cb.rotation = 270;
 textinput.rotation = 270;
 }

 private function back():void {
 cb.rotation = 0;
 textinput.rotation = 0;
 }

 ]]
 /mx:Script

 mx:Button label=rotate click=rotate()/
 mx:Button label=back click=back() x=104/

 mx:ComboBox id=cb dataProvider={s1} labelField=x
 textAlign=center width=131 x=198 y=169 height=33/
 mx:TextInput x=446 y=178.95 id=textinput text=This is a
 text fontFamily=myArial width=127/

 /mx:Application

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui [EMAIL PROTECTED] wrote:
 
  The internal TextInput doesn't rotate? Post a test case.
 
 

 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]