FontFamily in spark Flex 4
Hi.
For my current project I am using spark components from the Flex 4.
I have some embedded fonts which I include with a css-file.
When I try to set the fontFamily, for example for the spark.component.textarea, the textarea displays System Arial font.
When I change the compiler to Flex 4.1 the spark component displays the embedded font.
Is it a bug in the version 4.0 or do I make something wrong?
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ns="library://ns.adobe.com/flex/spark">
<mx:Style source="fonts.css"/>
<ns:TextArea fontLookup="embeddedCFF" fontFamily="TimesItalic" heightInLines="NaN" widthInChars="NaN" x="300" y="50" text="Embedded Font"/>
</mx:Application>
CSS:
@font-face {
src: url("Families/TIMES_IT.TTF");
fontFamily: TimesItalic;
embedAsCFF: true;
Possibly.
There were a number of bug fixes between the Flex 4.0 and 4.1 releases (as well as an upgrade TLF).
This seems to work as expected in Flex Hero:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:controlBarContent>
<s:Button id="sdkVer" initialize="sdkVer.label = mx_internal::VERSION;" click="System.setClipboard(sdkVer.label);" />
</s:controlBarContent>
<fx:Style source="fonts.css"/>
<s:TextArea text="Embedded Font"
fontFamily="TimesItalic"
fontStyle="italic"
x="300" y="50" />
</s:Application>
And my fonts.css is as follows:
/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face {
src: url("C:/Windows/Fonts/times.ttf");
fontFamily: TimesItalic;
@font-face {
src: url("C:/Windows/Fonts/timesi.ttf");
fontFamily: TimesItalic;
fontStyle: italic;
Peter
Similar Messages
-
How to change the header text fontFamily of spark DataGrid?
I use an embed font (Nunito-Light.ttf), and i can set the font of GridColumn to Nunito-Light in DataGrid , but it seems that it has no effect to the header of DataGrid.
and then I create a headerRenderer for spark DataGrid, and try to set the fontFamily of "labelDisplay" to Nunito-Light , but It seems still no effect .
If I set the fontFamily of "labelDisplay" to "Verdana" or "Arial" , it has effect , so strange! Is that a bug?
Anybody has the same problem? Please tell me how to solve it ,thank you very much!Hi,
Please go through following link :
http://forums.adobe.com/thread/870081#870081
Thanks and Regards,
Vibhuti Gosavi | [email protected] | www.infocepts.com -
Vertical centering in Spark/Flex
I am horizontally dividing my panel between two elements.
To acheive that I am using the following layout controls
<s:layout>
<s:HorizontalLayout>
<s:paddingBottom>20</s:paddingBottom>
<s:paddingTop>50</s:paddingTop>
<s:paddingLeft>20</s:paddingLeft>
<s:paddingRight>20</s:paddingRight>
<s:gap>300</s:gap>
</s:HorizontalLayout>
</s:layout>
This is splitting the panel correctly on the horizonal front.
However, I am then trying to center my other components vertically within the panel and am failing. My non-spark component seems to center perfectly using the following:
<mx:VBox verticalGap="20" horizontalAlign="center">
</mx:VBox>
However, when I add a second panel I can't seem to figure out how to center it vertically. I am using the following code:
<s:Panel id="nodeExplorer" backgroundColor="0xFFFFFF" creationComplete="hidePanelHeader(event)" horizontalCenter="0" verticalCenter="0">
<s:layout>
<s:VerticalLayout>
</s:VerticalLayout>
</s:layout>
</s:Panel>
Any advice on how to verticaly center that second panel is welcome.UbuntuPenguin and _spoboyle -
Thanks for the help. Setting the verticalAlign to middle and height to 100% seemed to mostly solve the issue.
That seems to line up the VBox and the Panel.. However, when I place an object into the panel that object isn't centered vertically within that panel. I have a mouse listener on the images in the VBox and when you click one it removes it from the VBox and adds it to the panel. The VBox recenters everything correctly, but the moved object is not centered.
<s:Panel verticalCenter="0" id="mainPanel" visible="true" width="100%" height="100%" backgroundColor="0x000000" creationComplete="hidePanelHeader(event)">
<s:layout>
<s:HorizontalLayout>
<!--
<s:paddingBottom>50</s:paddingBottom>
<s:paddingTop>50</s:paddingTop>
<s:paddingLeft>20</s:paddingLeft>
<s:paddingRight>20</s:paddingRight> -->
<s:gap>300</s:gap>
<s:verticalAlign>middle</s:verticalAlign>
</s:HorizontalLayout>
</s:layout>
<mx:VBox backgroundColor="0xFFFFFF" height="100%" verticalGap="20" verticalAlign="middle">
<mx:Image source="@Embed(source='p6-550.png')" scaleX=".5" scaleY=".5"/>
<mx:Image source="@Embed(source='p6-550.png')" scaleX=".5" scaleY=".5"/>
<mx:Image source="@Embed(source='p6-550.png')" scaleX=".5" scaleY=".5"/>
<mx:Image source="@Embed(source='p7-750.png')" scaleX=".5" scaleY=".5" id="p71" creationComplete="blinkP7Disk(p71)" mouseDown="exploreNode(p71)"/>
<mx:Image source="@Embed(source='p7-750.png')" scaleX=".5" scaleY=".5" id="p72" creationComplete="blinkP7Disk(p72)"/>
<mx:Image source="@Embed(source='p7-750.png')" scaleX=".5" scaleY=".5" id="p73" creationComplete="blinkP7Disk(p73)"/>
</mx:VBox>
<s:Panel id="nodeExplorer" backgroundColor="0xFFFFFF" creationComplete="hidePanelHeader(event)" height="100%">
<s:layout>
<s:VerticalLayout>
<s:verticalAlign>middle</s:verticalAlign>
<s:gap>20</s:gap>
</s:VerticalLayout>
</s:layout>
</s:Panel>
</s:Panel> -
Revision: 7864
Author: [email protected]
Date: 2009-06-15 15:20:22 -0700 (Mon, 15 Jun 2009)
Log Message:
Move the airframework spark.skins.default.* to spark.skins.spark.*
Modified Paths:
flex/sdk/trunk/frameworks/projects/airframework/defaults.css
flex/sdk/trunk/frameworks/projects/airframework/src/AIRFrameworkClasses.as
flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication. as
flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleB ar.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
Added Paths:
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/CloseButtonSkin.mxm l
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/FlexChromeSkin.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/GripperSkin.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MacCloseButtonSkin. mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MacMaximizeButtonSk in.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MacMinimizeButtonSk in.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MacTitleBarSkin.mxm l
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MaximizeButtonSkin. mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MinimizeButtonSkin. mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/RestoreButtonSkin.m xml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/TitleBarSkin.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/WindowedApplication Skin.mxml
Removed Paths:
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/CloseButtonSkin.mxm l
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/FlexChromeSkin.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/GripperSkin.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MacCloseButtonSkin. mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MacMaximizeButtonSk in.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MacMinimizeButtonSk in.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MacTitleBarSkin.mxm l
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MaximizeButtonSkin. mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MinimizeButtonSkin. mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/RestoreButtonSkin.m xml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/TitleBarSkin.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/WindowedApplication Skin.mxml -
Unable to load embedded fonts in TLF using SWFContext
Hi,
We are having issues with embedding/renderring fonts in swf.
Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters -- "-static-link-runtime-shared-libraries". and using Flash player version 10.1, 10.2 & 10.3.
package
import flash.display.Sprite;
import flashx.textLayout.compose.ISWFContext;
public class Slide1 extends Sprite implements ISWFContext
[Embed(source="C:/WINDOWS/FONTS/CALIBRI.TTF", fontName="Calibri", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+004E,U+006F,U+006D", mimeType="application/x-font")]
public static const calibri:Class;
[Embed("slide1/sldBg1.png", mimeType="image/png")]
public static const bg:Class;
[Embed("slide1/slide1.xml", mimeType="application/octet-stream")]
public static const slide:Class;
public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
if (returns)
return fn.apply(thisArg, argsArray);
fn.apply(thisArg, argsArray);
Using Flex 4.1 SDK:--
When I load the slide1.swf in FB4 ActionScript Project it shows the embedded text. // Output is fine
But, when I load the slide1.swf in FB4 MX+Spark Flex Project, it gives an error :
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
Below is the code where the exception occurs.
var fontClass:Class = ApplicationDomain.currentDomain.getDefinition("Slide1") as Class;
textFlow.flowComposer.swfContext = new fontClass(); // Exception occurs here
textFlow.flowComposer.addController(new ContainerController(textContainer, containerWidth, containerHeight));
textFlow.flowComposer.updateAllControllers();
textFlow.flowComposer.composeToPosition();
And, when I load the slide1.swf in FB4 MX Flex Poject, it shows the embedded text. // Output is fine
Using Flex 4.5 SDK:--
With FB4 MX+ Spark and MX only Flex Project we get following errors
VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.SubParagraphGroupElement.
VerifyError: Error #1103: Class flashx.textLayout.elements::LinkElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of display in flashx.textLayout.elements.ContainerFormattedElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.FlowLeafElement.
VerifyError: Error #1053: Illegal override of addParaTerminator in flashx.textLayout.elements.SpanElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.InlineGraphicElement.
VerifyError: Error #1053: Illegal override of minPercentValue in flashx.textLayout.property.NumberOrPercentProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.EnumStringProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.BooleanProperty.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.NumberProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberProperty could not be found.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.IntProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::IntProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.UintProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::UintProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.StringProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberOrPercentProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.ArrayProperty.
VerifyError: Error #1103: Class flashx.textLayout.elements::TCYElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of createTextLine in flashx.textLayout.compose.ComposeState.We use this for fonts ---- textFormat.fontLookup = FontLookup.EmbedCFF;
For showing the fonts we use the line of code :--
textFlow.flowComposer.swfContext = new fontClass();
which throws an error
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. ! -
Unable to load embedded fonts in Textlayout Framework using SWFContext.
Hi,
We are having issues with embedding/renderring fonts in swf.
Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters -- "-static-link-runtime-shared-libraries".
and checked with Flash player version 10.1 and 10.2 and 10.3.
package
import flash.display.Sprite;
import flashx.textLayout.compose.ISWFContext;
public class Slide1 extends Sprite implements ISWFContext
[Embed(source="C:/WINDOWS/FONTS/CALIBRI.TTF", fontName="Calibri", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+004E,U+006F,U+006D", mimeType="application/x-font")]
public static const calibri:Class;
[Embed("slide1/sldBg1.png", mimeType="image/png")]
public static const bg:Class;
[Embed("slide1/slide1.xml", mimeType="application/octet-stream")]
public static const slide:Class;
public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
if (returns)
return fn.apply(thisArg, argsArray);
fn.apply(thisArg, argsArray);
Using Flex 4.1 SDK:--
When I load the slide1.swf in ActionScript Project it shows the embedded text.
But, when I load the slide1.swf in MX+Spark Flex Project, it gives an error :
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
Below red colored text is the code where the exception occurs.
var fontClass:Class = ApplicationDomain.currentDomain.getDefinition("slide1") as Class;
textFlow.flowComposer.swfContext = new fontClass();
textFlow.flowComposer.addController(new ContainerController(textContainer, containerWidth, containerHeight));
textFlow.flowComposer.updateAllControllers();
And, when I load the slide1.swf in Only MX Flex Poject, it shows the embedded Font.
Using Flex 4.5 SDK:--
With MX+ Spark and MX only Flex Project we get following errors
VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.SubParagraphGroupElement.
VerifyError: Error #1103: Class flashx.textLayout.elements::LinkElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of display in flashx.textLayout.elements.ContainerFormattedElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.FlowLeafElement.
VerifyError: Error #1053: Illegal override of addParaTerminator in flashx.textLayout.elements.SpanElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.InlineGraphicElement.
VerifyError: Error #1053: Illegal override of minPercentValue in flashx.textLayout.property.NumberOrPercentProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.EnumStringProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.BooleanProperty.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.NumberProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberProperty could not be found.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.IntProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::IntProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.UintProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::UintProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.StringProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberOrPercentProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.ArrayProperty.
VerifyError: Error #1103: Class flashx.textLayout.elements::TCYElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of createTextLine in flashx.textLayout.compose.ComposeState.Hi Jin-Huang
But when I use Simple ASProject with SDK 4.1 then it works fine but when I create Flex project then it give error
with SWFContext.
I think it's a issue of swfcontext or AS comunication with Spark components.
Please let me know if any solution.
Thanks -
Is there any way to incorperate video from the internet into your project?
I am trying to make a movie for a research project for school on Lions. I've never been to Africa to get the footage I need to make this movie but the Internet has great footage that I would like to incorporate in my film. Is it possible to take some footage from the internet and put it in my movie?
xmlns:mx="library://ns.adobe.com/flex/mx" is the spark mx address, which is completely different than the original 2006 mx library.
The thing is: I love AIR, hate spark, loved the 2006 pre-spark functionality. It is so much more convenient and user friendly. Given the choice between having the display seperate from the processing, or having it be convenient and easy to work with, I choose the later option.
For the most part it seems like the AIR api is like a layer on top of the spark - flex system.. I would like to be able to over lay the same AIR functionality on top of the the old system....
Possible or no? -
Is there any way to incorporate elements from the 2006 namespace in an application that uses the 2
I have a desktop app built in AIR using the 2009 namespace. Is there any way to incorporate any of the of the xmlns:mx="http://www.adobe.com/2006/mxml" components into it?
Or better yet, since the AIR namespace is sort of layered on top of the spark namespace, is it possible to do the same with the 2006 namespace?xmlns:mx="library://ns.adobe.com/flex/mx" is the spark mx address, which is completely different than the original 2006 mx library.
The thing is: I love AIR, hate spark, loved the 2006 pre-spark functionality. It is so much more convenient and user friendly. Given the choice between having the display seperate from the processing, or having it be convenient and easy to work with, I choose the later option.
For the most part it seems like the AIR api is like a layer on top of the spark - flex system.. I would like to be able to over lay the same AIR functionality on top of the the old system....
Possible or no? -
Hi,
I'm trying to emebed some fonts, but I haven't been able to get it working.
I'm using this code in a style sheet:
@font-face{
src: url("../assets/fonts/lsans.ttf");
fontFamily: LucidaSansV;
embedAsCFF:true;
@font-face{
src: url("../assets/fonts/ROCK.TTF");
fontFamily: RockwellV;
embedAsCFF:true;
@font-face{
src: url("../assets/fonts/times.ttf");
fontFamily: TimesV;
embedAsCFF:true;
if I use the fontFamily in Spark labes, it works:
<s:Label text="Some text here" fontSize="40" fontFamily="LucidaSansV" />
<s:Label text="Some text here" fontSize="40" fontFamily="TimesV" />
<s:Label text="Some text here" fontSize="40" fontFamily="RockwellV" />
But if I use it like this, doesn't work either:
var cf:TextLayoutFormat = new TextLayoutFormat();
cf.fontFamily = 'TimesV';
cf.fontLookup = flash.text.engine.FontLookup.EMBEDDED_CFF;
cf.renderingMode = flash.text.engine.RenderingMode.CFF;
Aslo, I've tried using formatted text, like "<p fontSize='32'><span fontFamily='LucidaSansV'>ABCDEFGHIJKLM 18</span></p>" with no luck.
The behaivor should be oposite, if I declare embedAsCFF:true;, I should be ablke to use it in FTE components and embedAsCFF:false with the old MX components. what am I missing?
tks.I wanted to update the post just in case someone has the same problem.
I created a ActionScript Library with a class for each font I need and drop the swc to the project where I need to use the fonts.
In the project, I just need to do this before using the font:
new ArialFont();
Each class looks like this:
package
import flash.text.Font;
public class ArialFont
[Embed(source='assets/fonts/arial.ttf', fontName='ArialV', mimeType='application/x-font', embedAsCFF="true")]
private static var ArialF:Class;
[Embed(source='assets/fonts/arialbd.ttf', fontName='ArialV', fontWeight="bold", mimeType='application/x-font', embedAsCFF="true")]
private static var ArialBoldF:Class;
[Embed(source='assets/fonts/ariali.ttf', fontName='ArialV', fontStyle="italic", mimeType='application/x-font', embedAsCFF="true")]
private static var ArialItalicF:Class;
[Embed(source='assets/fonts/arialbi.ttf', fontName='ArialV', fontWeight="bold", fontStyle="italic", mimeType='application/x-font', embedAsCFF="true")]
private static var ArialBoldItalicF:Class;
public function ArialFont()
Font.registerFont( ArialF );
Font.registerFont( ArialBoldF );
Font.registerFont( ArialItalicF );
Font.registerFont( ArialBoldItalicF );
Hope this helps someone. -
Is there any way to disable the installation location/folder of the Adobe AIR Application or can we skip that part automatically?
xmlns:mx="library://ns.adobe.com/flex/mx" is the spark mx address, which is completely different than the original 2006 mx library.
The thing is: I love AIR, hate spark, loved the 2006 pre-spark functionality. It is so much more convenient and user friendly. Given the choice between having the display seperate from the processing, or having it be convenient and easy to work with, I choose the later option.
For the most part it seems like the AIR api is like a layer on top of the spark - flex system.. I would like to be able to over lay the same AIR functionality on top of the the old system....
Possible or no? -
[svn:fx-trunk] 5234: Initial check-in for FxWindowedApplication.
Revision: 5234
Author: [email protected]
Date: 2009-03-11 09:16:21 -0700 (Wed, 11 Mar 2009)
Log Message:
Initial check-in for FxWindowedApplication.
The FlexChrome has been written. FxTitleBarSkin provides a different look depending on if you are running on a mac or other OS.
QE Notes: Not ready for testing
Doc Notes: None
Bugs: none
Reviewer: Ryan
tests: checkintests
Modified Paths:
flex/sdk/trunk/development/eclipse/flex/airframework/.actionScriptProperties
flex/sdk/trunk/frameworks/mxml-2009-manifest.xml
flex/sdk/trunk/frameworks/projects/airframework/build.xml
flex/sdk/trunk/frameworks/projects/airframework/defaults.css
flex/sdk/trunk/frameworks/projects/airframework/src/AIRFrameworkClasses.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
Added Paths:
flex/sdk/trunk/frameworks/projects/airframework/mxml-2009-manifest.xml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FxWindowedApplication.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/FxTitleBar.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxCloseButtonSkin.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxGripperSkin.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxMacCloseButtonSkin.m xml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxMacMaximizeButtonSki n.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxMacMinimizeButtonSki n.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxMaximizeButtonSkin.m xml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxMinimizeButtonSkin.m xml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxRestoreButtonSkin.mx ml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxTitleBarSkin.mxml
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/spark/FxWindowedApplicationS kin.mxml -
[svn] 4673: Adding preview images to the theme directories.
Revision: 4673
Author: [email protected]
Date: 2009-01-26 12:46:51 -0800 (Mon, 26 Jan 2009)
Log Message:
Adding preview images to the theme directories.
QE Notes: None
Doc Notes: None
Bugs: SDK-17735, SDK-16429
Reviewer: None
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17735
http://bugs.adobe.com/jira/browse/SDK-16429
Added Paths:
flex/sdk/trunk/frameworks/themes/Ice/preview.jpg
flex/sdk/trunk/frameworks/themes/Institutional/preview.jpg
flex/sdk/trunk/frameworks/themes/Smoke/preview.jpg
flex/sdk/trunk/frameworks/themes/Spark/
flex/sdk/trunk/frameworks/themes/Spark/preview.jpg
flex/sdk/trunk/frameworks/themes/Wooden/preview.jpgyes the first bit of code is netbeans generated.
the second piece of code is an fx file that updates the content of the grid based on the users selection.
so i cannot add the image to the grid in composer as its a dynamically generated grid. but ill try and see if i can just to test for now
thanks... -
Change the color/skin of slider Thumb
Thanks guys for all your previous help..
I want to change the color of the thumb of the slider but not
able to do it. can anybosy help me outHi Matt,
I have a similar requirement, except:
1. There are multiple thumbs, each of a different color
2. The colors need to be dynamically adjustable from a colorPicker control
This is for an mx hslider running in a Spark (Flex 4) app.
I tried dynamically setting a sliderThumb color by extending the sliderThumb class with a color attribute. It works when I change the color by clicking a button, but not when I try setting the color in Actionscript when the component initially loads...I am probably calling the changeColor() function from the wrong event...which event should I use to change a sliderThumb style upon initial load?
Thanks!!! -
Upgrade to Flex 4, Halo theme, embedded font doesn't work for Spark Label
I'm upgrading an application to Flex 4 from Flex 3.5 using the Halo theme. If I include a Spark Label in my application the Spark Label does not render the text using the font I defined in my CSS. My MX Labels render fine. Here is an example application that replicates my issue. So,
Compile and run using Spark theme. Both Labels render the text with the correct font.
Compile and run using Halo theme. Only MX Label renders the text with the correct font.
Is it not possible to do what I want?
Thanks
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="250" minHeight="250">
<fx:Style>
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace s "library://ns.adobe.com/flex/spark";
@font-face
fontFamily: Verdana;
fontWeight: normal;
fontStyle: normal;
src: url("./style/fonts/verdana.ttf");
embedAsCFF: false;
@font-face
fontFamily: VerdanaCFF;
fontWeight: normal;
fontStyle: normal;
src: url("./style/fonts/verdana.ttf");
embedAsCFF: true;
mx|Label
font-family: Verdana;
s|Label
font-family: VerdanaCFF;
</fx:Style>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:VGroup>
<mx:Label text="My text" />
<s:Label text="My text" />
</s:VGroup>
</mx:Application>I think you might need to set the fontLookup:
s|Label
font-family: VerdanaCFF;
fontLookup: "embeddedCFF"; -
Help needed in adding effects of certain HTML tags in Flex spark Richtext
I want to apply the effects of the following HTML tags/ attributes, in my HTML text rendered in Flex Spark Richtext Component.
Superscript - <sup>
Subscript - <sub>
Blockquotes - <blockquotes>
Ordered Lists - <ol><li>
Unordered List - <ul><li>
Horizontal Rule - <hr>
Direction Attribute for <p> - <p dir="rtl">Hello</p>
Background Color for <font>
I have observed that the above tags have no effect in RichText. Is this a limitation?
Any solutions, tweaks and tricks will be appreciated...
Thanks,
Mangirishcheck this out . this should be able to answer you question.
http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html
Miguel
Maybe you are looking for
-
I have a few questions about CF 11. I have just installed CF 11 on a Windows 8 server. This is an all new server and software installation. It isn’t to where it can be viewed outside of our network just yet until we have everything installed and runn
-
Returning XML from CF for xmlHttpRequest
Greetings, Not sure what I'm doing wrong here, but I can't seem to get a .cfm page to return the necessary xml for use in my xmlHttpRequest javascript code. I know the problem doesn't exist within my javascript code......if I build the URL to connect
-
How to unblock all incoming mail in Safari
Hello fellow Mac friends; I'm looking for a way to UNBLOCK ALL incoming mail in Safari... I did blocked a few by mistake and I wish to Unblock all... Any way to disable or/edit the complete list-? I have no parentally blocked sites in the "Parents C
-
I can't pair my nano with my 2013 honda accord
When I try to pair my nano with my 2013 Honda Accord, they don't even recognize each other.
-
Refreshing GUI while MultiThreading
I am trying to refresh a GUI while calling a class that extends the Thread class.My code looks similiar to this: myThreadingClass mtc=new myThreadingClass(); mtc.start(); while(mtc.isAlive()){ repaint(); invalidate(): The isAlive() is never returning