Skip navigation
TroyWorks
Currently Being Moderated

where to get is flashx.textLayout.ui.*?

Mar 5, 2012 12:54 AM

Tags: #tlf #flashx.textlayout.ui #textlayouteditorcanvas #textlayouteditor

I'm trying to compile the TLF Examples, Notably TextLayoutEditorCanvas is complaining.

 

xmlns:textEditBar="textEditBar.*"
xmlns:txui="flashx.textLayout.ui.*"
xmlns:txrulers="flashx.textLayout.ui.rulers.*"
xmlns:txinsp="flashx.textLayout.ui.inspectors.*"

 

 

I'm using Flex 4.5.1

Patched it with the latest Swc from the sourceforge SVN
The latest TLF examples from the sourceforge SVN and can't find these anywhere.

 

What do I need to do? It's driving me batty.

 
Replies
  • Currently Being Moderated
    Mar 5, 2012 2:16 AM   in reply to TroyWorks

    Are you looking for samples\flex\textLayout_editBar and samples\flex\textLayout_ui in samples.zip?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2012 6:04 PM   in reply to TroyWorks

    The SWC and SWZ work in pair. The latest swc is TLF 3.0 build 28, which has no official SWZ on Adobe hosted server because Flex has not release it officially. It's only released by TLF team.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 6, 2012 1:50 AM   in reply to TroyWorks

    Please set your project as "Merge into Code", given that TLF 3.0 RSL has not been uploaded to Adobe hosted server.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 9:35 PM   in reply to TroyWorks

    I'm not sure which version of code you have downloaded. Please download code , swc and samples in http://sourceforge.net/projects/tlf.adobe/files/2.0/232/, if you are using http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232 .swz

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 6, 2012 11:01 AM   in reply to Jin-Huang

    Ive been beating my head over this same issue. I am using Flash Bulider Flex 4.6, I have downloaded textLayout v3 from sourceforge and copied the files into my flash builder frameworks folders. I removed the textLayout swf and swz from the /rsls/ folder because it would use those in my project. By removing them it builds a new textLayout.swf and puts it in my /bin-debug/ and /bin-release/ folders. However, even though its running v3 source of TLF it still saves it as textLayout_2.0.0.232.swf in the /bin-debug/ folder. I can run my applet locally through flash builder and it works using v3.  But when i upload the files to a server then i get this error...

     

    Flex Error #1001: Digest mismatch with RSL http://www.domain.com/test/textLayout.swf. Redeploy the matching RSL or relink your application with the matching library.

     

    So if i go back into Flash Builder and change Project > Properities > Build Path > Library Path > Flex 4.6.0 > textLayout.swc > Link Type: Merged into code

    I then get a new error trying to run the applet locally...

     

    VerifyError: Error #1014: Class flashx.textLayout.container::TextContainerManager could not be found.

    VerifyError: Error #1014: Class mx.core::FTETextField could not be found.

    (And many more like this i wont bother pasting)

     

    The only way i can get my project to work with TLF v3 is if i set the framework linkage to merge for everything. Then my 300K swf turns into 2.3 megs.

     

    So... how can i complile or download a verified textLayout.swf or textLayout.swz to include in the same directory of my project.swf that wont give security errors?

    And/or how can i get TLF v3 to work with Flash Builder and my project?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 9, 2012 9:03 PM   in reply to Kevinsoffice

    You may want to include TLF 3.0 source code in your project, and set all the other frameworks as runtime shared libraries, which won't make 300K swf to 2.3m. Given that you are in trouble with TLF RSL, would you like to do as I said?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 9, 2012 9:07 PM   in reply to Jin-Huang

    Yes, i would like to do this, but as i mentioned in my post above when i have tried to include code for TLF i get about 8 errors like...

     

    VerifyError: Error #1014: Class flashx.textLayout.container::TextContainerManager could not be found.

    VerifyError: Error #1014: Class mx.core::FTETextField could not be found.

    (etc...)

     

    Do you know why those erros happen when i select merge into code the following way...

    Project > Properities > Build Path > Library Path > Flex 4.6.0 > textLayout.swc > Link Type: Merged into code

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 9, 2012 9:10 PM   in reply to Kevinsoffice

    mx.core::FTETextField is not a class in textLayout.swc

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 9, 2012 9:36 PM   in reply to Kevinsoffice

    Kevinsoffice wrote:

    Project > Properities > Build Path > Library Path > Flex 4.6.0 > textLayout.swc > Link Type: Merged into code

    You should remove textLayout.swc in Flex SDK 4.6 when you include source code. Also remove the item for textLayout.swc in flex-config.xml

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2012 8:02 AM   in reply to Jin-Huang

    Are you sure about this? Im confused by this step. Im supposed to remove the swc and any reference to it in the flex-config.xml? I did that as you suggested and it made things worse. Because i removed those two things it no longer existed in Flash Builder so i could NOT merge into code because it was no longer there to merge.  Also it does not make logical sense this is the way Flash Builder was intended to work. If you are supposed to remove the library from Flash Builder then why would there even be a "merge to code" option? There would never be anything to merge if you are supposed to remove it.

     

    But to give benifit of the doubt i tried it anyways. Not only was there no more textLayout in the build path for me to mark "merge into code", but then all reference to any textLayout in my source code were turned into errors saying "Type was not found or was not a compile-time constant: textFlow"

     

    In one of your post you told me i should search "RSL Configuration" in the forums. That is troubling to me that there is no actual detailed help or reference material for this and i have to search forums for documentation on an adobe product which i paid for. When i searched for it in the forums the only results returned where of you and i talking about it. Do you have a link to any reference material that will explain how to merge into code a built-in library?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2012 8:19 PM   in reply to Kevinsoffice

    Untitled.png

    The image above is the what we did to debug TLF code. We make TLF code as a seperate project and include a SDK without textLayout.swc.

     

    For flex-config.xml

     

    We comment out

    <!-- TextLayout SWC -->

        <!--  <runtime-shared-library-path>



    <path-element>libs/textLayout.swc</path-element>


    <rsl-url>textLayout_2.0.0.229.swf</rsl-url>


    <policy-file-url></policy-file-url>


    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.0.19786/textLayout_2.0.0. 229.swf</rsl-url>


    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>

    </runtime-shared-library-path> -->
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 12, 2012 10:54 AM   in reply to Jin-Huang

    Ive given up. I already changed the components in my project to work around the bug issues. Any other developers trying to find a solution to the textLayout > textFlow error when putting inline graphics in a spark textarea, as in a chatroom with smilies. You can either try to get textLayout v3 working in your project which has the bug fix, or you can replace the textarea with a RichText wrapped in a few other components as such:

     

    <s:BorderContainer top="0" left="0" width="300" height="200">

         <s:Scroller width="100%" height="100%" verticalScrollPolicy="on" horizontalScrollPolicy="off">

              <s:Group>

                   <s:RichText width="100%" />

              </s:Group>

         </s:Scroller>

    </s:BorderContainer>

     

    Do all of your cosmetic settings to the BorderContainer like background color, borders, skins, etc. Do not set the height on the RichText or it will keep from scrolling. Group is required to wrap the rich text to work with the scroller. Its a spark thing.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points