-
1. Re: where to get is flashx.textLayout.ui.*?
Jin-HuangMar 5, 2012 2:16 AM (in response to TroyWorks)
Are you looking for samples\flex\textLayout_editBar and samples\flex\textLayout_ui in samples.zip?
-
2. Re: where to get is flashx.textLayout.ui.*?
TroyWorks Mar 5, 2012 2:18 AM (in response to Jin-Huang)Yes, that's what I'm looking at, trying to compile.
-
3. Re: where to get is flashx.textLayout.ui.*?
TroyWorks Mar 5, 2012 2:31 AM (in response to Jin-Huang)at the top of that class is
<mx:Canvas
xmlns="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:flow="library://ns.adobe.com/flashx/textLayout"
xmlns:textEditBar="textEditBar.*"
xmlns:txui="flashx.textLayout.ui.*"
xmlns:txrulers="flashx.textLayout.ui.rulers.*"
xmlns:txinsp="flashx.textLayout.ui.inspectors.*"
explicitMinWidth="300"
explicitMinHeight="200"
creationComplete="handleCreationComplete()"
resize="handleResize()">
<Script><![CDATA[
the ones in bold are not located in the textLayout.swc provided in the latest SVN build.
-
4. Re: where to get is flashx.textLayout.ui.*?
TroyWorks Mar 5, 2012 3:11 AM (in response to Jin-Huang)I see the issue, I didn't realize that all projects reference each other, and the classes are normal classes not in a swc.
Running into an new issue now
Error #2034: An invalid digest was supplied.
The debug log says:
Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml. The 'secure' attribute is only permitted in HTTPS and socket policy files. See http://www.adobe.com/go/strict_policy_files for details.
Error #2034: An invalid digest was supplied.
Failed to load RSL http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz
Failing over to RSL textLayout_2.0.0.232.swz
Error #2034: An invalid digest was supplied.
However http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz is accessible in the browser.
-
5. Re: where to get is flashx.textLayout.ui.*?
Jin-HuangMar 5, 2012 6:04 PM (in response to TroyWorks)
1 person found this helpfulThe 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.
-
6. Re: where to get is flashx.textLayout.ui.*?
TroyWorks Mar 6, 2012 12:19 AM (in response to Jin-Huang) -
7. Re: where to get is flashx.textLayout.ui.*?
Jin-HuangMar 6, 2012 1:50 AM (in response to TroyWorks)
1 person found this helpfulPlease set your project as "Merge into Code", given that TLF 3.0 RSL has not been uploaded to Adobe hosted server.
-
8. Re: where to get is flashx.textLayout.ui.*?
TroyWorks Mar 6, 2012 2:35 PM (in response to Jin-Huang)It's still trying to load the normal RSL and not finding it. How can I tell it not to include the textLayout_2.0.0.232.swz?
CONSOLE:
Starting Launcher TextLayoutEditor.
Starting Full Build of TextLayoutEditor.
Compiler arguments:
-output
E:\DATA_SYNC\CodeProjects\Actionscript
3.0\TLF\samples\flex\TextLayoutEditor\TextLayoutEditor.swf
-+flexlib=
E:\DATA_SYNC\CodeProjects\Actionscript
3.0\Flex4.5.1.21\frameworks
--compiler.debug=false
--debug-password=
--compiler.source-path+=
E:\DATA_SYNC\CodeProjects\Actionscript
3.0\TLF\samples\flex\TextLayoutEditor\src
-target-player=10.2
-default-size=550,400
-library-path+=
E:\DATA_SYNC\CodeProjects\Actionscript
3.0\Flex4.5.1.21/frameworks/locale/en_US
-library-path+=
E:\DATA_SYNC\CodeProjects\Actionscript
3.0\Flex4.5.1.21\frameworks\libs\textLayout.swc <--- latest one
--
E:\DATA_SYNC\CodeProjects\Actionscript
3.0\TLF\samples\flex\TextLayoutEditor\src\TextLayoutEditor.mxml
INFO Loading configuration file E:\DATA_SYNC\CodeProjects\Actionscript 3.0\Flex4.5.1.21\frameworks\flex-config.xml
INFO Required RSLs:
INFO http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/framework_4.5.1.21328.swz with 1 failover.
INFO http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz with 1 failover.
INFO http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/spark_4.5.1.21328.swz with 1 failover.
INFO http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/sparkskins_4.5.1.21328.swz with 1 failover.
INFO http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/rpc_4.5.1.21328.swz with 1 failover.
INFO http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/mx_4.5.1.21328.swz with 1 failover.
Pure build time: 2057 ms.
Save compiler information in 69 ms.
Clean compiler information in 0 ms.
153440 bytes written to file E:\DATA_SYNC\CodeProjects\Actionscript 3.0\TLF\samples\flex\TextLayoutEditor\TextLayoutEditor.swf in 2172 ms
Launching External SWF Viewer
SAME ERROR
Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml. The 'secure' attribute is only permitted in HTTPS and socket policy files. See http://www.adobe.com/go/strict_policy_files for details.
Error #2034: An invalid digest was supplied.
Failed to load RSL http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz
Failing over to RSL textLayout_2.0.0.232.swz
Error #2034: An invalid digest was supplied.
-
9. Re: where to get is flashx.textLayout.ui.*?
TroyWorks Mar 8, 2012 9:18 PM (in response to TroyWorks)Any ideas, I still can't get past this
-
10. Re: where to get is flashx.textLayout.ui.*?
Jin-HuangMar 8, 2012 9:35 PM (in response 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
-
11. Re: where to get is flashx.textLayout.ui.*?
kevins_office Jun 6, 2012 11:01 AM (in response 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?
-
12. Re: where to get is flashx.textLayout.ui.*?
Jin-HuangJun 9, 2012 9:03 PM (in response to kevins_office)
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?
-
13. Re: where to get is flashx.textLayout.ui.*?
kevins_office Jun 9, 2012 9:07 PM (in response 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
-
14. Re: where to get is flashx.textLayout.ui.*?
Jin-HuangJun 9, 2012 9:10 PM (in response to kevins_office)
mx.core::FTETextField is not a class in textLayout.swc
-
15. Re: where to get is flashx.textLayout.ui.*?
Jin-HuangJun 9, 2012 9:36 PM (in response to kevins_office)
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
-
16. Re: where to get is flashx.textLayout.ui.*?
kevins_office Jun 11, 2012 8:02 AM (in response 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?
-
17. Re: where to get is flashx.textLayout.ui.*?
Jin-HuangJun 11, 2012 8:19 PM (in response to kevins_office)
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> --> -
18. Re: where to get is flashx.textLayout.ui.*?
kevins_office Jun 12, 2012 10:54 AM (in response 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.