Error of textLayout.swc in Flex SDK3.4

Hello

I wrote the code using textLayout.swc in flex 3 Bulider (SDK3.4Ver)

It generates the error with ParaGraphFormat, CharacterFormat, DisplayObjectContainerController and UpadateAllContainers

These all are not supported if I use textLayout.swc, only if I use three textLayout_conversion.swc, textLayout_edit.swc and textLayout_core.swc then its working fine.

Here is the code and the file is also find the attachment

package XmlParser
{
import flash.display.Sprite;
import flash.events.Event;
import flash.text.FontStyle.
import flash.text.engine.FontWeight;
import flash.xml.XMLNode.

Import flashx.textLayout.container.DisplayObjectContainerController;
Import flashx.textLayout.elements.BreakElement;
Import flashx.textLayout.elements.InlineGraphicElement;
Import flashx.textLayout.elements.LinkElement;
Import flashx.textLayout.elements.ParagraphElement;
Import flashx.textLayout.elements.SpanElement;
Import flashx.textLayout.elements.TextFlow;
Import flashx.textLayout.formats.CharacterFormat;
Import flashx.textLayout.formats.ParagraphFormat;
Import flashx.textLayout.formats.TextAlign;
Import flashx.textLayout.formats.TextDecoration;

public class TextFlowInfo
{
private var paragraphNode:XMLNode = null;
private var runPrntNode:XMLNode = null;
private var paraIndex: int = 0;
private var paraLineSize:Number = 0;
private var paraMargin:Number = 0;
private var paraIndent:Number = 0;
private var paraTextAlign:String = null;

private var runIndex:int = 0;
private var runLanguage:String = null;
private var txtLineBreak:Boolean = false;
private var fontSize:Number = 0;
private var fontName:String = null;
private var textDecoration:Boolean = false;
private var fontStyle:Boolean = false;
private var fontWeight:Boolean = false;
private var runColorType:String = null;
private var fontColor:int = 0;

private var innerText:String = null;

private var insetNode:XMLNode;
public function set {InsetNode(value:XMLNode):void}
insetNode = value;
}

private var paragraphPrntNode:XMLNode;
public function set {ParagraphPrntNode(value:XMLNode):void}
paragraphPrntNode = value;
}

private var containerWidth:Number;
public function set {ContainerWidth(value:Number):void}
containerWidth = value;
}
private var titleAlign:String;
public function set {TitleAlign(value:String):void}


titleAlign = value;
}

private var containerHeight:Number;
public function set {ContainerHeight(value:Number):void}
containerHeight = value;
}
private var verAlign:String = null;
/ * public service value {VerAlign(value:String):void}
verAlign = value;
} */
private var textFlow:TextFlow;
private var paraElement: ParagraphElement = null;
private var paraFormat: ParagraphFormat = null;
private var spanElement:SpanElement = null;
private var charFormat:CharacterFormat = null;
private var brkElement: BreakElement = null;
private var bulletType:String = null;
private var bulletFont:String = null;
private var bulletSize:Number = 0;
private var bulletcolor:int = 0;
private var bulletTxt:String = null;
private var bulletImgPath:String = null;

private var leftInset:Number = 0;
private var rightInset:Number = 0;
private var topInset:Number = 0;
private var btmInset:Number = 0;

private var linkRef:String = null;
private var linkHref:String = null;
private var isHyperlink:Boolean = false;

public void LoadParagraphNode(textContainer:Sprite):void
{
textFlow = new TextFlow();
If (titleAlign! = null) {}
trace ("Para align I:" + titleAlign);
textFlow.textAlign = 'center ';
}
If (insetNode! = null) {}
If (insetNode.attributes ["linens"]! = undefined) {}
textFlow.paddingLeft = parseFloat (insetNode.attributes ["linens"]);
}
If (insetNode.attributes ["Rin"]! = undefined) {}
textFlow.paddingRight = parseFloat (insetNode.attributes ["rIns"]);
}
If (["bogus"] insetNode.attributes! = undefined) {}
textFlow.paddingTop = parseFloat (insetNode.attributes ["tIns"]);
}
If (insetNode.attributes ["bIns"]! = undefined) {}
textFlow.paddingBottom = parseFloat (insetNode.attributes ["bIns"]);
}
If (insetNode.attributes ["valign"]! = undefined) {}
verAlign = insetNode.attributes ["valign"];
If (verAlign! = null) {}
trace ("Align:" + verAlign);
textFlow.verticalAlign = "middle";
}
}
trace ("node Medallion:" + insetNode.attributes ["linens"] + "," + insetNode.attributes ["rIns"] + "," + insetNode.attributes ["stood"] + "," + insetNod e.attributes ["bIns"]);
}



var paraChildLength:int = paragraphPrntNode.childNodes.length;
trace ("paranoid chart:" + paraChildLength);
textFlow.verticalAlign = "middle";
for (var i: int = 0; i < paraChildLength; i ++)
{
paragraphNode = paragraphPrntNode.childNodes [i];

If (paragraphNode.attributes ["index"]! = undefined)
{
paraIndex = parseInt (paragraphNode.attributes ["index"]);
}
If (paragraphNode.attributes ["linesize"]! = undefined)
{
paraLineSize = parseFloat (paragraphNode.attributes ["linesize"]);
}
If (paragraphNode.attributes ["marl"]! = undefined)
{
paraMargin = parseFloat (paragraphNode.attributes ["marl"]);
}
If (paragraphNode.attributes ["indent"]! = undefined)
{
paraIndent = parseFloat (paragraphNode.attributes ["indent"]);
}

If (paragraphNode.attributes ["algn"]! = undefined)
{
paraTextAlign = paragraphNode.attributes ["algn"];
}
paraElement = new ParagraphElement();
textFlow.addChild (paraElement;)
paraFormat = new ParagraphFormat();
paraFormat.textIndent = paraMargin;
paraFormat.marginLeft = paraMargin;

If (paraTextAlign == "l") {}
paraFormat.textAlign = TextAlign.LEFT;
}
Else if (paraTextAlign == "r") {}
paraFormat.textAlign = TextAlign.RIGHT;
}
Else if (paraTextAlign == "j") {}
paraFormat.textAlign = TextAlign.JUSTIFY;
}
Else if (paraTextAlign == "ctr") {}
trace ("Para: textA" + paraTextAlign);
paraFormat.textAlign = TextAlign.CENTER;
}
paraElement.paragraphFormat = paraFormat;
trace ("form Para:" + paraIndex + "," + paraLineSize + "," + paraMargin + "," + paraIndent + "," + paraTextAlign);
If (paragraphNode.childNodes.length > 0 & & paragraphNode.lastChild.nodeName == "runs")
{
for each (var paraChildNd:XMLNode in paragraphNode.childNodes)
{
Switch (paraChildNd.nodeName.toLowerCase ())
{
case "works":
runPrntNode = paragraphNode.lastChild;
trace ("chart run:" + runPrntNode);
for each (var runNode:XMLNode in runPrntNode.childNodes)
{
trace ("run Para:" + runNode);
If (runNode.attributes ["index"]! = undefined)
{
runIndex = parseInt (runNode.attributes ["index"]);
}
If (runNode.attributes ["linebreak"]! = undefined)
{
var lnBreak:String = runNode.attributes ["linebreak"];
If (lnBreak == "t") {}
txtLineBreak = true;
}
}
If (runNode.attributes ["fontsize"]! = undefined)
{
fontSize = parseFloat (runNode.attributes ["fontsize"]);
}
If (runNode.attributes ["lang"]! = undefined)
{
runLanguage = runNode.attributes ["lang"];
}
If (runNode.attributes ["fontname"]! = undefined)
{
fontName = runNode.attributes ["fontname"];
}
If (runNode.attributes ["i"]! = undefined)
{
var tempStyle:String = runNode.attributes ["i"];
If (tempStyle == "1") {}
fontStyle = true;
}
}
If (runNode.attributes ["b"]! = undefined)
{
var tempwght:String = runNode.attributes ["b"];
If (tempwght == "1") {}
fontWeight = true;
}
}
If (runNode.attributes ["b"]! = undefined)
{
var tempDeco:String = runNode.attributes ["underline"];
If (tempDeco == "sng") {}
textDecoration = true;
}
}
If (runNode.attributes ["underline"]! = undefined)
{
textDecoration = runNode.attributes ["underline"];
}
trace ("form run:" + fontSize + "," + fontColor + "," + FontName + "," + fontStyle + "," + fontWeight);
/ * If (runNode.lastChild.firstChild! = null)
{
innerText = runNode.lastChild.firstChild. toString();
} */
for each {(var runChildNd:XMLNode in runNode.childNodes)
trace ("Para graph <>:" + runChildNd);
{Switch (runChildNd.nodeName.toLowerCase ())}
case 'filler ':

If (runChildNd.attributes ['type']! = undefined)
{
runColorType = runChildNd.attributes ["type"];
}
If (runNode.firstChild.attributes ["color"]! = undefined)
{
fontColor = parseInt (runChildNd.attributes ["color"]);
}
trace ("color:" + runColorType + "," + fontColor);
break;
case 'text ':
If (runChildNd.firstChild! = null)
{
innerText = runChildNd.firstChild. toString();
}
break;
}
trace ("InnerText graph" + innerText);
}
spanElement = new SpanElement();
paraElement.addChild (spanElement);

spanElement.text = innerText;
charFormat = new CharacterFormat();
charFormat.fontFamily = fontName;
if(FontStyle == true)
{
charFormat.fontStyle = FontStyle.ITALIC;
fontStyle = false;
}
if(FontWeight == true)
{
charFormat.fontWeight = FontWeight.BOLD;
fontWeight = false;
}
if(TextDecoration == true)
{
charFormat.textDecoration = TextDecoration.UNDERLINE;
textDecoration = false;
}
charFormat.fontSize = Number (fontSize);
charFormat.fontSize = 18;
trace ("Run Text" + spanElement.text + "," + charFormat.fontSize);
charFormat.color = Number (fontColor);
charFormat.color = 0xFFFFFF;

spanElement.characterFormat = charFormat;
if(txtLineBreak == true)
{
brkElement = new BreakElement();
paraElement.addChild (brkElement);
txtLineBreak = false;
}
trace ("text of the form:" fontName + "," + fontSize);
}
break;
case "bullet":

break;
}
}
}
else {}
trace ("Break Para :");
brkElement = new BreakElement();
paraElement.addChild (brkElement);
}
textFlow.addChild (paraElement;)
}
this.dispatchEvent (new Event ("SuccessfullyAdded"));
textFlow.flowComposer.addController (new DisplayObjectContainerController (textContainer, containerWidth, containerHeight));
textFlow.flowComposer.updateAllContainers ();
}

}
}

Also find the attachment! 1

Please answer

If you use textLayout.swc , then replace:

ParaGraphFormat, CharacterFormat to TextLayoutFormat

DisplayObjectContainerController for ContainerController

UpadateAllContainers for UpdateAllControllers()

Tags: Adobe Open Source

Similar Questions

  • the result is different from the version textLayout.swc.

    Hello

    I wrote simple code using TLF.
    It generated three text box with different textAlign.
    But the result of that code is different from the version textLayout.swc.

    Why is the result different?

    I tried textLayout.swc comes with...
    [A] flex 4 SDK_4.0.0.7219
    [B] flex 4 SDK_4.0.0.9437

    OS: WinXP SP2
    SDK: worm 3.4
    Tool: Flex Builder 3

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
          creationComplete="init()">
         <mx:Script>
              <![CDATA[
                   import flashx.textLayout.formats.TextLayoutFormat;
                   import flashx.textLayout.container.ContainerController;
                   import flashx.textLayout.elements.SpanElement;
                   import flashx.textLayout.elements.ParagraphElement;
                   import flashx.textLayout.elements.TextFlow;
                   import flashx.textLayout.elements.Configuration;
                   
                   private function init():void
                   {
                        var textBox1:Sprite = createTextBox("left");
                        textBox1.x = 300;
                        textBox1.y = 100;
                        this.rawChildren.addChild(textBox1);
                        
                        var textBox2:Sprite = createTextBox("center");
                        textBox2.x = 300;
                        textBox2.y = 250;
                        this.rawChildren.addChild(textBox2);
                        
                        var textBox3:Sprite = createTextBox("right");
                        textBox3.x = 300;
                        textBox3.y = 400;
                        this.rawChildren.addChild(textBox3);
                   }
                   
                   private function createTextBox(value:String):Sprite
                   {
                        var rect:Rectangle = new Rectangle(0,0,300,100);
                        
                        var sprite:Sprite = new Sprite();
                         sprite.graphics.lineStyle (1, 0x000000, 1.0);
                        sprite.graphics.beginFill (0xFF0000, 1.0);
                        sprite.graphics.drawRect  (rect.x, rect.y , rect.width , rect.height);
                        
                        var tlFormat:TextLayoutFormat = new TextLayoutFormat();
                        tlFormat.textAlign = value;
                        tlFormat.color = 0x000000;
                        tlFormat.fontSize = 50;
                        
                        var config:Configuration = new Configuration();
                        config.textFlowInitialFormat = tlFormat;
                        
                        var textFlow:TextFlow = new TextFlow(config);
                        
                        var p:ParagraphElement = new ParagraphElement();
                        var s:SpanElement = new SpanElement();
                        s.text = value;
                        p.addChild(s);
                        textFlow.addChild(p);
                        
                        textFlow.flowComposer.addController(new ContainerController(sprite, rect.width,rect.height));
                        
                        textFlow.flowComposer.updateAllControllers();
                        
                        return sprite;
                   }
                   
              ]]>
         </mx:Script>
    </mx:Application>
    

    [A] textLayout.swc comes with SDK_4.0.0.7219

    [B] textLayout.swc comes with SDK_4.0.0.9437

    4007219.jpg4009437.jpg

    Yes.  There was a regression introduced - its since been corrected.  Trace example [B] ContainerController.horizontalScrollPosition - I think you will see that it is different from zero.

    Richard

  • RSL error 1 of 1, Error #2032, 3.6 A Flex, Flash Builder 4.6

    We are in transition from Flex 3. 1 to 3.6 a. Everything worked well for years under 3.1. We tested under 3.6 for a month under HTTP, and everything works. When weinstall to our staging server and run under HTTPS, we get this error and NO OTHER INFORMATION.

    We test under Flash Builder but build production SWF and swc using the MXMLC and COMPC command-line tools. We use the Framework RSL and copy the swf/swz files on our servers as part of the installation.

    Display the MXMLC to compile signup.mxml:

    Loading configuration file C:\Program Files (x 86) \Adobe\Adobe Flash Builder 4.6\sdks\3.6.0\frameworks\flex-config.xml

    D:\Develop\CSM\PractiCal\Flex\null1709033641.xml loading configuration file

    D:\Develop\CSM\PractiCal\Flex\build\signup.swf (174148 bytes)

    Contents of the configuration file "null1709033641.xml":

    <>flex-config

    < compiler >

    false < debug > < / debug >

    < library-path append = "true" >

    element < path > D:\Develop\CSM/CSMCommonFlex/build/CSMCommonFlex.swc < / path element >

    < / library path >

    < / compiler >

    <-static link-TIME-shared-libraries > false < / static-link-TIME-shared-Library >

    < use-network > true < / use-network >

    true <-digestions check > < / check-abstracts >

    < runtime-shared-library-path >

    < element > path C:\Program Files (x 86) \Adobe\Adobe Flash Builder 4.6\sdks\3.6.0/frameworks/libs/framework.swc < / path element >

    Flash/framework_3.6.0.21751.SWZ < rsl - url > < / rsl - url >

    < policy-file-url / >

    Flash/framework_3.6.0.21751.swf < rsl - url > < / rsl - url >

    < policy-file-url / >

    < / DURATION-shared-library-path >

    < / flex-config >

    It's everything I could find on the web:

    1. Make sure that the web server includes extension .swz as type MIME "application/x-shockwave-flash".
      Fact.

    2. Add a "crossdomain.xml" file to the root of the web server and make sure that it can be read.
      Trying the two secure = "true" and secure = "false".

    <? XML version = "1.0"? >

    < ! DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd" > ""

    < cross-domain-policy >

    < allow-access-from domain = "" * "secure ="true"/ >"

    < / cross-domain-policy >

    As I said, everything works well under 3.1.

    I am dead stuck and have no idea what to try next.

    Please, please, help.

    In the Flex 3 documentation for the MXMLC Compiler, the rsl-url of the option attribute is described as

    "You specify the location of the SWF file to the location of the application deployment.

    For example, if you store a file named library.swf in the web_root/libraries directory on the

    Web server and application in the root web, you specify libraries/library.swf. »

    This clearly indicates that the URL of the library is relative to the swf file.

    The documentation for the rsl-url of the runtime-shared-library-path option attribute is not so clear, however:

    "Rsl - url argument is the URL of the RSL that will be used to load the RSL during execution.
    The compiler does not check the existence of the SWF file at this location at compile time.
    It stores this string in the application, however, and he uses at run time. As a result, the
    SWF file must be available at run time, but not necessarily at compile time. »

    Obviously, both rsl-url attribute should contain a URL to the swf app and the 3.1 Flex MXMLC was store the URL as relative to the web root. I offset this in my config 3.1 files by providing a URL relative to the root, but without the leading slash (/). This bug has been fixed somewhere between 3.1 and 3.6 so my relative to the root URL were now be saved correctly, as app-parent.

    Adding a bar leading slash (/) to my relative to the root URL solves the problem.

    I know - he should be here in the first place.

  • Runtime error 1009 after conversion from Flex 3.6 to 4.5.1

    I am trying to convert my SDK 3.6 application 4.5.1.  Process goes smoothly through many resources out there including Greg Lafrance http://www.adobe.com/devnet/flex/articles/migrating-flex-apps-part1.html series

    Now, I get an error while the application is loading in the browser.  The error text is:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    hand / initApp ()...

    The error occurs in the code AS where I'm looking to get the URL of the player using the mx.utils.URLUtil library.  In particular, I'll put a global variable in my application to the URL of the visitor.  The specific code for this is:

    this.stServerName = URLUtil.getServerName (mainApp.url);

    URLUtil is still in use in Flex 4.5.1?  If not, is there another way to get the name of the server on the host?

    Thank you!

    Lee

    URLUtil still exists.  I would check that's null.

  • [Flex 4.6] Error handling fatal PHP in Flex with UrlRequest UrlLoader or FileReference?

    Note: I am not asking about services - he works there.

    I don't get the error events, just DataEvent.UPLOAD_COMPLETE_DATA or Event.COMPLETE event with all of the php error message response data.

    Is it possible to make this work as event fault CallResponder Services? If Yes, how should I do that?

    I searched a few hours for this answer and I don't seem to find how to do this. Is is possible at all?

    Thank you!

    You must manage the service events in PHP while sending back Flash a valid error response. Keep the management of the errors of each language in the language it occurs and handle yourself properly. You should be trapped all possible errors in the typical try/catch in PHP so you can return something useful to Flash.

  • Unsupported in the TextLayoutFramework Wingdings police

    Hello

    I use textLayout.swc in flex 3 Bulider (SDK3.4Ver)

    When I write code such as: -.

    SpanElement.fontFamily = "Wingdings".

    no font change does reflect, it gives by default that is Times New Roman.

    Wingdings FontFamily so not supported by textLayout framework.

    If anyone knows how the police wingdings is used in textLayout, please answer.

    its urgency.

    Hello

    Let's say you have:

    Duration: Var SpanElement = new SpanElement();

    Then, instead of

    span. Text = "A"; U + 0041

    VR;

    span. Text = string.fromCharCode(0)) (0xF041);

    Abhishek

    (Adobe Systems Inc.)

  • VerifyError: Error #1014: class flashx.textLayout.container::TextContainerManager not found

    Hi all

    I'm trying to use TLF 3.0 in my Flex 4.5.1 project. I add the textLayout.swc as a library and I remove the textLayout.swc in the SDK in the 'Library Path' of Flash Builder.

    The link type is "merged into code".

    But when I run my application to spark, I received the following message:

    "VerifyError: Error #1014: the flashx.textLayout.container::TextContainerManager class is not found."

    I have no preloader, my project is compiled with Flash 10.2 (required by the SDK Flex 4.5.1

    What I am doing wrong?

    Thanks in advance for your help

    You have two choices:

    1. replace swc in the folder sdk 3.0 swc.

    2. do as what you said above. But in addition, you must modify flex - config.xml to get rid of the configurations TextLayout.swc.

    Choice 1 is simple and recommended.

    Please take a look at the discussion thread http://forums.adobe.com/thread/851475. (See this thread from the bottom up, because discussions on top are another topic.)

  • Error when running hr_sit_api.create_sit API - FLEX - INVALID NUMBER

    I am writing a code of the incoming interface to import the news SIT. When I tested the hr_sit_api.create_sit API, it gave me an error ORA-20001: NUMBER of FLEX-INVALID. I made sure that the identification number of flex and id_flex_structure_code are correct. But I'm unable to create a new record. Please help me if you have an idea.

    Here is my code:

    DECLARE

    v_count INTEGER: = 0;

    n_object_version_number INTEGER.

    n_analysis_criteria_id INTEGER.

    n_person_analysis_id INTEGER.

    n_pea_object_version_number INTEGER.

    n_id_flex_num INTEGER.

    BEGIN

    SELECT fi.id_flex_num

    IN n_id_flex_num

    Fnd_id_flex_structures_vl FI

    WHERE (fi.id_flex_structure_code = "US_TAX_INFO")

    AND (application_id = 800)

    AND (id_flex_code = 'PEAS');

    LOOP

    BEGIN

    -reset the variables here

    n_object_version_number: = NULL;

    n_analysis_criteria_id: = NULL;

    n_person_analysis_id: = NULL;

    n_pea_object_version_number: = NULL;

    hr_sit_api.create_sit (p_person_id = > 33881

    , p_business_group_id = > fnd_profile. VALUE('PER_BUSINESS_GROUP_ID')

    , p_id_flex_num = > n_id_flex_num

    , p_effective_date = > SYSDATE

    , p_date_from = > SYSDATE

    , p_date_to = > NULL

    , p_segment1 = > 'X '.

    , p_segment2 = > 'OH'

    p_segment3 = > 2000

    , p_analysis_criteria_id = > n_analysis_criteria_id

    , p_person_analysis_id = > n_person_analysis_id

    p_pea_object_version_number = > n_pea_object_version_number);

    dbms_output.put_line (' migrated to SIT with n_analysis_criteria_id = > ' |)

    n_analysis_criteria_id);

    EXCEPTION

    WHILE OTHERS THEN

    -need to connect error here

    dbms_output.put_line ('Exception' |) SQLERRM);

    END;

    EXIT; -in this case a single record

    END LOOP;

    COMMIT;

    END;

    Are you sure that you pass the correct values for segment?

    Please make sure that the data types of the segments correspond with the values you pass.

    Also, make sure that you have initialized your session before you run the API.

  • Error creating New flex data services project

    Hello
    Error: Invalid server root. Flex - config.XML or company flex - services.xml must exist in the WEB-INF/flex folder in the root of the server.

    Try to create flex project with Weblogic8.1 as the server j2ee services data, but am getting the error above in the screen where I point to the root of the server.
    I deploy flex on weblogic.

    I'd appreciate any help.
    Thank you

    Sun

    Hello

    The root of the server must be the parent of the WEB - INF folder. So, in your case, I think that the root server must be:

    C:\bea81SP5\user_projects\applications\dcgsaApplication\dcgsAdaptersWeb

    Give that a shot and let me know if it works.

    Thank you

    NJ
    Flex Builder team

  • Flex 3 Builder error 1037

    I'm trying to do my first actionscript component. The name of the RoundedRectBorder.as file. My MXML file is

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml " xmlns:rrb ="RoundedRectBorder.*"layout ="absolute"backgroundColor ="0xC49F6E">

    < mx:Script source = "RoundedRectBorder.as" / >

    < mx:VBox id = "vb1.
    borderSkin = "RoundedRectBorder."
    backgroundColor = "0xCCCC99."
    backgroundAlpha = "0.8".
    cornerRadius = "14".
    paddingLeft = "20".
    paddingTop = "20".
    paddingRight = "20".
    paddingBottom = "20".
    >
    < mx:Label text = "This is a VBox with an appearance customized." / >
    < / mx:VBox >

    < / mx:Application >

    I get the error message ' 1037: packages cannot be nested "and I can't find out how to get rid of this error. I use the Flex Builder 3 running on a Mac Book Pro.

    As you can see on the AS3 code that it's just an empty frame, so I don't see why this is happening.

    Help!

    The declaration of your package must be package {without the RoundedRectBorder package because the reading of your code for the class is by default, the directory where your mxml file.

  • Change the color of the text inside the .swc library

    Hello

    I'm trying to Flash Builder 4.5 and got library external .swc (made with Flash and Flex components Kit) with some objects. One of these objects is a text field with the text. I need to change the color of this text and I don't know if it's possible. I tried to change the 'color' property, but it does not change the color. I tried "setStyle ('color', 0xff000)", but it returns an error.

    Is there another way to change the color of the text .swc of Flex/Flash Builder?

    Ask the DFL used to create the swc, so you can inspect.

  • textLayout open source code debug property undefined in flash cs4

    Hi all

    I have downloaded the open source svn 'textLayout framework' and files src folder defined as class path in flash cs4

    When I am trying to publish a player example gives me this error:

    1120: access of undefined property debug.

    CONFIG::Debug {Assert (normalizeStart < = textLength, "damage incorrect length") ;}}

    you have an idea?

    Thank you.

    The workflow being considered is to use a TextLayout.swc compiled in Flash Pro. When we compile the EFA, we give the compiler of the configuration information to determine if we are compiling debug or release CFC. I don't know if this can be done in Flash Pro, so I recommend that you only set the CFC on your way, not the complete source.

  • Flex 4 sdk problems in flex builder 3

    Hey guys...

    I have the following problem. I followed the installation guide on how to install the new sdk. So no errors and the namespaces seem to work ok.

    the problem is in design mode.

    I can't change anything, and I don't see anything. Also I will have the following warning


    Design mode: cannot load the textLayout.swc (reason: ERROR: load verify). It may require classes (such as Adobe AIR components) that are not supported in Design view. Check the Eclipse errorlog for details.

    any ideas please?

    Close all the project and then close the FB and restart the FB.

  • Flex ActionScript projects. Flex components

    It is possible to create projects Flex 3 ActionScript uses Flex 3 components/containers?

    The goal is to get the same result with MXML, only using only the classes ActionScript in the whole of the project. So far, using Flex Builder 2.0.1 I tried to create an ActionScript project with the main class extending mx.core or mx.containers components. I have reproduced the same source/SWC settings project as a project MXML, but definitely got errors when compiling.

    The errors you get are not compilation errors, but errors of execution. You are getting these errors because extending actionscript components Flex requires more code that you have currently, MXML take care of that behind the scenes.

    To see the action script code that is generated when you write a simple mxml Application button to use the option-keep-generated-actionscript = true duing compilation and the product action script is stored in a folder called generated.

  • How to fix the 'impossible Builld mxmlc task error' in-app web flex4

    Hi all

    I use flex mxml 4 web application with as3. When I deploy this project I am facing the folling error.

    Environment:

    Flex SDK 3.5

    Flash builder 4.                 APPLICATION NAME: BillProcess

    Compilation of Ant tasks

    ============

    < property name = value 'FLEX_HOME' = "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0/ >"
    < property name = value "JAVA_HOME" = "C:\Program Files\Java\jdk1.6.0_06"/ > "
    < property name = value "JRE_HOME" = "C:\Program Files\Java\jre1.6.0_06"/ > "

    ERROR:

    init:

    [ippprojectproperties] qbServer = workplace.intuit.com

    [Remove] Delete the directory C:\Documents and Settings\TIVL\Adobe Flash Builder 4\BillProcess\Dev

    [mkdir] Created dir: C:\Documents and Settings\TIVL\Adobe Flash Builder 4\BillProcess\Dev

    checkForCustomBuild:

    CustomBuild:

    dependentProjects:

    compile:

    [ippflexbuild] Analysis: C:\Documents and Settings\TIVL\Adobe Flash Builder 4\BillProcess/.actionScriptProperties

    BUILD FAILED

    C:\Documents and Settings\TIVL\Adobe Flash Builder 4\BillProcess\ippbuild.xml:101: mxmlc task failed

    Total duration: 16 seconds.

    HOW TO SOLVE THIS PROBLEM.

    Please share your useful suggession

    see you soon,

    B.Venkatesan.

    Hello

    Check out this link K-4 http://www.kirupa.com/forum/showthread.php?309387-ant-mxmlc-task-don-t-compile-with-FlexSD this may solve your problem.

    ---------------------------------------------------------------------- ---------------------------- ---------------------------

    Gallot Hiroji | [email protected] | www.isacglobal.com

    ---------------------------------------------------------------------- ---------------------------- ---------------------------

Maybe you are looking for