Inluding TLF (textLayout.swc) in existing code making it stalled

Hi Friends,
I just trying to integrate new TLF text for advance text formatting feature in my project. But after adding library of TLF my code is not compiled by Flash CS5 compiler.
Ex.:
private function removeItem(event:Event):void {
                              var _scrunch:Scrunch = parent as Scrunch;
                              _scrunch.removeProduct(event.target.overItem.itemData);
This code was working properly when I do not inlclude textLayout.swc, but once I include compiler starts throwing error:
D:\Projects\Scrunch\dev\Flash App\Scrunch\src\gt\components\canvas\Canvas.as, Line 122
1195: Attempted access of inaccessible method removeProduct through a reference with static type gt:Scrunch.
Please help me out, I need to deliever my project very soon.
Thanks
Amitpal

I did get some more information - I'll try to extract the interesting bits here.  I haven't tried investigated this myself.
Released swz’s to fpdownload.adobe.com, which is an Akamai based server.  performance expected to be above average and that the uptime will be reliable. .. assets hosted on Akamai are replicated for faster access..
Regarding compiling and building.
Here is an example of the setting:
<runtime-shared-library-path>
                <path-element>libs/textLayout.swc</path-element>
                <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.7219/textLayout_427.swz</rsl-url>
                <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
</runtime-shared-library-path>
Also static-link-runtime-shared-libraries should be set to false to enable RSLs.
The equivalent command line option is:
./mxmlc - static-link-runtime-shared-libraries=false -runtime-shared-library-path=<path to swc>,<rsl url>,<policy file url>  <app name>
Sounds like you found the code.  There was this information as well:
RSLs are loaded in Flex by mx.core.CrossDomainRSLItem.
You can clear the player cache by using the Flash Player Settings Manager, Global Storage Settings (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.htm l). Just check and uncheck the “Store common Flash components to reduce download times”.
The “runtime-shared-library-path” option is only for Flex projects. The RSL loading is built into a Flex application. An AS3 project would need to implement its own RSL loading if it wanted to use RSLs.
For not linking the swcs I would investigate changing the Link Type and specifying a RSL URL in the Library Path panel of Flex Builder would be what's needed for a non-flex application.
Hope that helps,
Richard

Similar Messages

  • [svn:fx-trunk] 5321: -remove textLayout_textField.swc because textLayout. swc should now contain the API from it

    Revision: 5321
    Author: [email protected]
    Date: 2009-03-16 08:50:51 -0700 (Mon, 16 Mar 2009)
    Log Message:
    -remove textLayout_textField.swc because textLayout.swc should now contain the API from it
    and updated the build scripts to reflect the removal
    -changing the name of the textlayout rsls. Removed the build number from the swf and swz so that they won't have to be removed from src each time we take a new build. Use tlf.properties to get the correct build number
    checkintests: pass
    qa: yes - need to make sure that textlayout.swc contains everything from the swc's that have been removed
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/libs/textLayout.swc
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework_textLayout/build.xml
    flex/sdk/trunk/frameworks/projects/wireframe/build.xml
    flex/sdk/trunk/in/tlf/tlf.properties
    Added Paths:
    flex/sdk/trunk/in/tlf/textLayout.swf
    flex/sdk/trunk/in/tlf/textLayout.swz
    Removed Paths:
    flex/sdk/trunk/frameworks/libs/textLayout_textField.swc
    flex/sdk/trunk/in/tlf/textLayout_391.swf
    flex/sdk/trunk/in/tlf/textLayout_391.swz

  • [svn:fx-trunk] 8707: -remove textLayout.swc

    Revision: 8707
    Author:   [email protected]
    Date:     2009-07-21 07:02:50 -0700 (Tue, 21 Jul 2009)
    Log Message:
    -remove textLayout.swc
    -update build.xml debug value back to true
    -temporary fix in the TLF build file, removed variables $ and $ and hard coded values true and false.
    Modified Paths:
        flex/sdk/trunk/build.xml
        flex/sdk/trunk/frameworks/projects/textLayout/build.xml
    Removed Paths:
        flex/sdk/trunk/frameworks/libs/textLayout.swc

  • How to add observable behaviour in existing code?

    Hi everyone, I'm new to design patterns. I have an existing numerical analysis package that I use to find roots using multiple strategy (bisection, secant, newton, etc). I want to show the process of root finding for every iterations taken by the algorithm (for example, iteration 0: left = 0, mid = 0.5, right = 1; iteration 2: left = 0, mid = 0.25, right = 0.5; ... etc. Its not exactly like that, I want to show it graphically, but you see what I mean). Looks like I need Observer to add event handling to notify the change of state in each initial guess as well as signaling the event when a root is/isn't found. But the solver classes doesn't seem to be implementing Observable, they just give out the answer, or not. How do I add Observer pattern without modifying the original code? I thought about using Decorator and having the real solver do the root finding but it just doesn't make sense to me. Thanx in advance.

    endasil wrote:
    georgemc wrote:
    endasil wrote:
    georgemc wrote:
    That won't get you intermediate results, though.If the method being observed needs to be firing multiple events per invocation, no, it won't.
    @OP, you were on the right track with the decorator pattern (indeed, that could be just as appropriate). What made you think it was wrong?I think that's the OP's tripping point:
    I want to show the process of root finding for every iterations taken by the algorithm
    ...But the solver classes doesn't seem to be implementing Observable, they just give out the answer, or not.
    Aha. Bytecode weaving (or plain old decompiling and nicking the source) then.Nope, I didn't. You're just too damned fast!For my own good! I hit "post" and immediately go "I forgot to say X" :-/
    @OP: if you want to see some examples of using bytecode weaving to introduce observableness to existing code, have a look at the sources for a test coverage tool like Cobertura. That's basically what they do. If you've never done it before, it'll take you a fair bit of head-scratching and sideways thinking to get your head round it all, but stick with it. Be prepared to learn a bit about opcodes as well. Or maybe just plundering the sources for this library is the way to go, not that I'm advocating that ;)

  • Problem creating webservice from existing code in sjse8

    I have a java class with three methods in an enterprise app (no ejbs) that I want to expose with webservice. In sudio5 I had no problem with webservice creation but in studio8 when I chose "From scratch, Use existing code", it gives me the opting to go to my class and select those methods. When I click finish, it generates an Implementation class that has declaration for my java class repeated 3 times which is obviously wrong and under it says:
    // Enter web service operations here. (Popup menu: Web Service->Add Operation)
    The class is empty.
    I choose "rpcliteral", "strict", "useonewayoperations" and "donotoverride" under web module property / webservice.
    And as you can guess it generates a wsdl file with no webservice methods info.
    I have and am checking all forums and searching different sites but haven't fond anything yet.
    I appreciate any help resolving this issue.

    Seems this feature doesn't work properly in jse and completely removed from latest nb55 enterprise pack (only session enterprise bean case remain)

  • How to modify existing code of SQVI report?

    Hi Expert,
       There is a SQVI report which has already been created but we need to change the one for new requirement.
    is there any way to modify existing code for new requirement?
    Can we edit in abap workbench?
    Thanks & Regards
    Savita

    Savita,
    You can not modify SQVI system generated code. You need to go to SAVI change mode and make modifications. If your requirement is a sort of additional fields or inserting come code into the program , then SQVI is not the choice. You need to use Infoset Queries (SQ03, SQ02, Sq01).
    KJogeswaraRao

  • Issue when creating a project form existing code

    Enviroment:
    Solaris 10
    Oracle Solaris Studio
    I build a new project from existing code
    Set custom Makefile that use a GNU GCC
    Issue on C++ code assistance:
    - some times GCC C++ include file not found
    - some time doesn't find external include file
    - some .h (some times all) and .cc are excluded from code assistance
    What Do I have to do if for instance C++ assistance didn't find <vector>
    What Do I have to do if all .h are excluded from C++ code assistance or are assign to custom build tool?
    Is there a tutorial to configure in the right way code assistance when we have a custom Makefile with GNU GCC compiler?
    Edited by: vim_mauro on Jul 1, 2010 12:30 AM

    Did you see?
    [http://developers.sun.com/sunstudio/documentation/tutorials/studio12.1_qs/#makefileprojects|http://developers.sun.com/sunstudio/documentation/tutorials/studio12.1_qs/#makefileprojects]
    [http://netbeans.org/kb/docs/cnd/configuring-code-assistance.html|http://netbeans.org/kb/docs/cnd/configuring-code-assistance.html]

  • TextLayout.swc does not resolve to valid file

    Hi, I have not worked in Flash for awhile and have spent way too long just adding a link to a simple button. I have scoured the web looking for AS3 button examples and tried them all. No matter what I try, I keep getting the following error when I publish. When I try to click the link in the swf on my html page it doesn't link to anything and just goes back to the collapsed state of the flash file.
    Here is the error:
    Warning: Library path "$(AppConfig)/ActionScript 3.0/libs/11.0/textLayout.swc" does not resolve to a valid file.
    Perhaps I should mention that I am currently evaluating Adobe Cloud versions, trying to decide if I'm going to be purchase the membership. Not sure if that matters but thought I'd mention it.
    Thanks.

    Thanks for the response. I actually shouldn't have any text fields at all (which is another reason I thought it was a strange error). I'm using an expanding ad template with a library that only consists of only graphics. I don't see any text fields in symbols or movie clips at all.  I was looking to try to set it back to Flash 9 but it doesn't look like that is even an option with Flash CC. The farthest back I can go is 10.  Hmmm. Kind of stumped at the moment.

  • Obsolete ABAP Statements from 2004s - what about your existing code-base?

    Hi
    Note:  This is a question for someone that has a very deep understanding of the SAP compiler either through research or through actually working on the Netweaver Code stack
    Since upgrading from 4.7 to ECC6 the ABAP compiler has become a lot stricter on the use of certain statements in the OO context.
    For instance you're not allowed to use the statement LIKE, but in stead have to use TYPE and internal tables does not have an implicit header line, etc.
    These restrictions are explained in greater detail [here:|http://help.sap.com/abapdocu/en/ABENABAP_OBJECTS_DIFF_TYPES_DATA.htm]
    MY QUESTION:  To what extent does this restriction affect your existing code-base?. 
    We have over a thousand "Classes" written since 1998 in OO as far as it was available at the time.  For the most part each class is its own include in SE38, with the class definition and implementation together in this include.
    Up to now, we could successfully change and activate these classes as long as the main program was pre-existing in 4.7.  Now we are trying to use one of these older classes in a new main program for regression test purposes, and we are getting the following error: 
    "Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary types (not "LIKE" or "STRUCTURE")."
    This error is valid as per the current definition of the SAP language.
    BUT I'm concerned about the confidence we can have that SAP will continue to interpret and execute existing code correctly.  So far it has, but I would like to know wheter that is by chance, or by design.

    Hello Esti
    Thank you for your explanation which shows that I misunderstood your question.
    I would have expected that all of your syntactically incorrect coding would not be executed, irrespective of whether it is an old or a new program. My interpretation of this system behaviour is that the syntax check appears to be release-dependent.
    A possible way to check this would be to manipulate the TRDIR entry for one of your old programs. You will find a field LEVL with the following meaning:
    DE RDIR_LEVL
    Short Text
         Level
    Definition
         System release under which the ABAP/4 program was created or last
         changed.
    Another way would be to copy an old program to a new Z-program which should fail in the syntax check. Check again if you find any significant difference in their TRDIR entries.
    Coming back to you question and the remark by Dion I am convinced that one of the biggest threats for each and every SAP customer is custom coding of poor quality, i.e.
    "spaghetti" coding instead of structured programming
    incomprehensible coding (at least for the developers who did NOT create the program)
    low transparency resulting in high efforts to enhance or improve the coding
    In your case: the possible breakdown of your coding depending on unknown external factors
    Given the huge amount of coding that is affected from these unknown external factors I would classify your situation as "high risk" which demands rather quick actions. How could you communicate this to your management team?
    Here are two possible suggestions:
    (1) It is possible that your entire custom coding may be no longer executable after a SAP release upgrade. Thus, the currenct coding base may prevent one of the next upgrades.
    I guess this is not yet impressive enough for a manager because usually a SAP customer is not forced to upgrade its SAP system in order to get new functionalities which are required for legal reasons.
    (1.a) It is possible that your entire custom coding may no longer be executable after importing ABA and/or BASIS hot packages.
    Given the fact that we need to import such packages quite frequently and sometimes they are mandatory (I think especially of SAP-HR systems) then I would be scared as a manager.
    (2) Assuming that most of your Z-reports are started via Z-transactions and perhaps you are lucky and you have specific roles containing these Z-transactions then you may ask your management team to do a simulation of coding breakdown: remove the role assignments for a couple of users and see what happens.
    (2.a) As an alternative you may try to lock Z-transactions via SM01 and again check for the user reactions.
    If your managment team is still not impressed then I would set up a document with the following contents:
    Explain the problems of the old coding base and why you could not anticipate future changes of the ABAP syntax check
    Describe the possible scenario if the custom coding no longer works after an upgrade or hot package import
    Describe the required actions to make your custom coding compatible to the latest ABAP release
    Most important: urge your management team to sign this document. If one day your custom coding breaks and they are looking for somebody to blame you just take this document out from the bottom of the deck
    Regards
      Uwe

  • [svn] 4051: copy the TextLayout swcs to temp directory before the RSLs get built.

    Revision: 4051
    Author: [email protected]
    Date: 2008-11-07 08:57:45 -0800 (Fri, 07 Nov 2008)
    Log Message:
    copy the TextLayout swcs to temp directory before the RSLs get built. The RSL process will use the swcs from temp as opposed to the libs directory. This will prevent accidental commits of these swcs since they are checked into SVN and are modified during the RSL process.
    QA: No
    Doc: No
    Checkintests: Pass
    Modified Paths:
    flex/sdk/trunk/build.xml

    Thanks, takeing my image's from the SP0 folder and temporarily placing them on the desktop, while I removed, AFP,NFS and NETBOOT from the services, stopping the admin, restarting the admin, re-enabling the services, and then coping the images back to the SP0 folder made them visible.
    Now I have more issues and questions. I enabled both images, 1 a install, the other a boot, and no default, however, when I boot with the N key, it doesnt ask anything, and just goes to the netboot image. When I un-enable the netboot, and force it to the netinstall, the client machine just turns off (this is the same machine that I had the image source built on, makes no sense to me).
    And back to my open directory, none of the office workstations that have been bound (they all say network services availble on the logon box) can logon with any of the directory accounts, the only one that can logon is the Directory Admin account I created. DHCP is being served from the windows machines, but I know the OD server can be seen, how else could the DirAdmin log in, just not the users. I have read that It might be home directories not being found or something, but I assumed that the home directory got built on the client when the user logs in, thats the whole purpose, to have 1 place to build accounts and let the new user grab a workstation to log on.
    I'll keep looking, but any more help on both topics would be appreciated.
    Thanks

  • AS3 centering and resizing a background in existing code

    I have a code for a page I am using and I would like to add a background and have it resize with the screen like the rest of the page.  I have created a movie button named "pic" with the image in it but I don't know how to write the code and place it in the existing AS3 code file.  Could someone please help.  I am brand new to this so if someone could tell me how to place the code like i was in 3rd grade, that would be great. Here is the existing code.
    package com.modules
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    import flash.text.*;
    import caurina.transitions.Tweener;
    import com.utils.*;
        public class About extends Sprite
    private var content_height:int;
    private var content_width:int;
    private var marginTop:int;
    private var marginBottom:int;
    private var content_y:int;
    private var _content:Content;
    private var news:News;
    private var array:Array;
    private var pan:Panning;
       public function About()
    // listen for when this is added to stage
    this.addEventListener(Event.ADDED_TO_STAGE, ini); 
    // listen for when this is removed from stage
    this.addEventListener(Event.REMOVED_FROM_STAGE, remove);
    private function ini(e:Event)
    stage.addEventListener(Event.ADDED, onStageResize);
    stage.addEventListener(Event.RESIZE, onStageResize);
    content_y = int(GlobalVarContainer.vars.CONTENT_Y);
    _content = new Content;
    addChild(_content);
    _content.visible=false;
    // load xml
    if((GlobalVarContainer.vars.XML_PATH!="") && (GlobalVarContainer.vars.XML_PATH!=undefined))
    var loadXml:LoadXml;
    loadXml = new LoadXml(GlobalVarContainer.vars.XML_PATH);
    loadXml.addEventListener(Event.COMPLETE, onXmlComplete);
    private function onXmlComplete(e:Event)
    // set up content
    content_width = e.target.returnData.attribute("width");
    marginTop = e.target.returnData.attribute("marginTop");
    marginBottom = e.target.returnData.attribute("marginBottom");
    var backgroundColor = e.target.returnData.attribute("backgroundColor");
    Tweener.addTween(_content.bg, {_color:backgroundColor, time:.1, transition:"linear"});
    _content.bg.width = content_width;
    _content.masc.area.width = (content_width -_content.masc.x)-20;
    _content.holder.txt.width = _content.masc.area.width -10;
    // write text
    _content.holder.txt.mouseWheelEnabled = false;
    _content.holder.txt.styleSheet = GlobalVarContainer.vars.CSS;
    _content.holder.txt.condenseWhite = true;
    _content.holder.txt.htmlText = e.target.returnData;
    _content.holder.txt.autoSize = TextFieldAutoSize.LEFT;
    onStageResize();
    _content.visible=true;
    // create new Panning instance;
    pan = new Panning(_content.holder, _content.masc, _content.bg, 4, true);
    pan.addEventListener(Event.ADDED, scInit);
    addChild(pan);
    // Initialize panning
    function scInit(e:Event):void
    pan.init();
    // resize contents
    private function onStageResize(e:Event = null):void
    resizeContent((stage.stageHeight - ((content_y + marginTop) + int(GlobalVarContainer.vars.BOTTOM_SHAPE_H)))-marginBottom);
    private function resizeContent(height_:int):void
    content_height = height_;
    _content.bg.height = content_height;
    _content.masc.area.height = (content_height -_content.masc.y)-20;
    _content.holder.mask = _content.masc;
    Tweener.addTween(_content, {x: Math.round(stage.stageWidth/2 - _content.width/2) , time:.5, transition:"linear"});
    _content.y=content_y+ marginTop;
    // used to change colors. here we not use
    public function changeTheme():void
    // remove listeners, images and unload panning;
    function remove(event: Event) : void
    pan.unload();
    stage.removeEventListener(Event.ADDED, onStageResize);
    stage.removeEventListener(Event.RESIZE, onStageResize);
    this.removeEventListener(Event.ADDED_TO_STAGE, ini); 
    this.removeEventListener(Event.REMOVED_FROM_STAGE, remove);
    trace("remove about");

    I just wanted to say that the above code works fine, I just need to add the resizing background code to it. Please help.  thanks

  • Blu-ray error:"file already exists", code "6" , Note : 118240 11771552 11826176

    It has been a 3 days that i have try to make Blu-ray .ISO image on Encore CS5, i always have that message: Blu-ray error: "file already exists", code "6" , Note : 118240 11771552 11826176. Everything seems to work fine before.
    Windows 7 Ultimate 64bit,
    Intel Core i7-2600K Sandy Bridge 3.4GHz,
    CORSAIR CWCH50-1 High Performance CPU Cooler, ASUS P8P67 PRO,
    G.SKILL Ripjaws X Series 16GB,
    EVGA GeForce GTX 460 (Fermi) 2GB ,
    Matrox MXO2 with MAX,
    COOLER MASTER HAF 932 Black ATX Full Tower Computer Case,
    Adobe CS 5 Production Premium
    thanks in advance

    Thank you ram8kumar. I will answer step-by-step, as you did:
    - there is no subtitle in the project
    - .PSD file is not to large, 2 files 1920X1080 and only 2-3Mb, and they only used as menu (I did this a milion times before), there is no slideshow in the project
    - Disc name is not blank
    - there is no sledeshow (burning a slideshow with no pan and zoom or with no transition with H264 settings)
    Lest two might be the problem.
    - I exported .h264 files from PPro CS5 with Matrox MXO2 Mini with MAX, Matrox preset and if I remember right target was 30Mb/sek
    - Audio and video  track duration in the timeline was 1(one) frame  difference.
    Thank you agan, and I will post the results as soon as I will get done with it.
    Vladymyr.

  • How to add the new dep area in existing cod

    Dear all,
    how to add the new dep area in existing cod we are planing to implement the IFRS by using leading ledger and non leading ledger present we are using OL leading ledger
    present we are using dep area 01 ,15
    how to achive the parallel accounting in asset accounting how to add new dep area 30 in existing COD
    if any document plz refer me  

    Hi Bhayyapu,
    Please refer to the links given below.
    New Depreciation area
    Adding a New Depreciation Area to Existing Assets - Financial Accounting (FI) - SAP Library
    Hope this will help you.
    Regards
    Eugene

  • [svn:fx-trunk] 11546: fix so the textLayout. swc does not get modified during the build process.

    Revision: 11546
    Author:   [email protected]
    Date:     2009-11-06 15:42:05 -0800 (Fri, 06 Nov 2009)
    Log Message:
    fix so the textLayout.swc does not get modified during the build process.
    QE notes: no
    Doc notes: no
    Bugs: no
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/build.xml

  • Flash CS5, custom SWC without inlining TLF textLayout? (adds 125KB)

    I have a set of custom UI elements that are used in a number of activities, and want these maintained separately but linked into the activity on compile.  Basically an external library that can be linked to by all activities.  My understanding is that a SWC is the correct way to implement this.
    I have created a bare-bones example of this duplication problem, download here.  The following description is based on this example.
    The "shared.fla" has a library symbol with a linkage id (which is actulaly just a TLF Textfield).  Compiled to SWF this is 52KB (all of which is flashx.textlayout.* TLF actionscript bytes) + 153KB textLayout_*.swz.  Compiled to SWC this is 397KB.
    The "activity_link_swc.fla" displays this shared library symbol on the stage, and links to the "shared.swc".  This creates a 179KB swf file.  This filesize is the same if the Runtime Shared Library Settings default linkage is either "RSL" or "Merged Into Code" - obviously the inclusion of my "shared.swc" automatically inlines the textLayout code.
    If instead of linking to the SWC I just copy all of the SWC's library contents into the activity, of course this gives a SWF size the same as the "shared.fla" - 52KB + external textLayout.swz - 127KB smaller (assuming the swz file will be cached locally, and that's the whole point of SWZ files).
    Is there any way to get this to work?  Having a compile time shared library of assets, without incurring a penalty for touching the mess that is TLF?

    I would if we could - but we need support for unicode characters.  Our primary language is Nepali using the Devanagari script, which is not supported by Classic Text (the written language is all about complex ligatures - often up to five multibyte characters are rendered as one).

Maybe you are looking for