Transform movieclip question

Is it possible to transform the size of a movie clip while
keeping some of the contents of the clip a fixed size? For example
suppose I have a movie clip that has a frame graphic element and
then a bunch of other graphic and/or movie clip elements inside
that frame. I want to put several instances of this movie clip on
the stage, each having a different frame size, but want all the
elements inside the frame to remain the same size and position. Is
this possible?

you could just transform the frame element and not any of the
other elements.
first of all, make the frame element inside your movieclip a
movieclip, and then give it an instance name, like frame_mc. then
put several instances of the clip on your main timeline, and give
each one an instance name (let's say you put three instances on
your main timeline and name them view1, view2, and view3) add this
code to a frame on the main timeline:
// scale the frame in view1 to 120%
view1.frame_mc._xscale = 120;
view1.frame_mc._yscale = 120;
// scale the frame in view2 to 150%
view2.frame_mc._xscale = 150;
view2.frame_mc._yscale = 150;
// scale the frame in view3 to 75%
view3.frame_mc._xscale = 75;
view3.frame_mc._yscale = 75;
all other elements in the view clips remain the same, but
frame_mc grows or shrinks according to your code...
good luck,
albee

Similar Messages

  • Transformation function questions

    Hi,
    Is any one from Oracle still checking this forum?
    If so could you please answer the following question:
    I have defined a transformation function and it doesn't seem to be being called. Am I able to do the following in such a function:
    - Perform DML?
    - Create other LCRs and place them on a queue?
    Cheers,
    Warren

    Transformations of LCRs as they enter and exit the queue is limited to 1-1 mapping of changes to the existing LCR. A user-defined transformation should not perform DML (other than SELECT) or create NEW LCRs. Modifying the existing LCR is supported as shown in the documentation.
    Have you installed the 9.2.0.2 patchset yet? There were a couple of bugs affecting transformations that were resolved with this patchset.

  • LoadMovie from inside a movieclip question

    I have a scroll movieclip which contains 15 buttons each button is an instance of 1main button. I have the button frame inside the timeline of the movie clip and the actions in frame 1 of the clip.
    onrelease should call the loadMovie function and load another. swf in level 1
    btn_1.onRelease = function()
    this._root.loadMovie("crossings.swf");
    btn_2.onRelease = function()
    this._root.loadMovie("breath.swf");
    it only works using LoadMovie not LoadMovieNum but instead of loading the swf into level 1 it loads into level 0
    i can use this the way it is but why is it only loading in level 0?
    rdred

    OK I see what happened.
    main.swf loads movie1.swf (level1) from a button (works)
    movie1.swf has button that loads movie2.swf (level2) (works)
    problem now is I will need to unload movie2.swf (level2) with a 
    button  so movie1.swf (level1) is visible again
    I tried the following actions in a button in movie2.swf (level2)
    on (release) {
    this._root.unloadMovieNum(2);
    on (release) {
    unloadMovieNum(2);
    both do not work, what am I doing wrong?

  • Classes and Movieclips question

    Hey
    I'm just wondering, how do I use/call (say... modify the y
    coordinate) of a MovieClip that is placed on the stage, in a parent
    class of the Document class?

    Fuc*in kglad, I love you man. You ended a week long feud I
    had with flash because I couldn't get this to work. I'm so happy
    about this, it feels so nice to be able to work on my game again
    and suddenly a huge part of flash just made sense.
    I greatly appreciate your help. Thanks mate :).
    For those who may have stumbled across this thread who have
    the same problem (it really isn't a problem, but more of a lack of
    knowledge of something specific), here is what you have to do:
    In my document class I have this function:
    [code]
    public function CallBaseEngine():void {
    helloPerson(player);
    [/code]
    Now in a parent class of the doucment class (meaning that the
    document class "extends" to this class I have this:
    [code]
    public function helloPerson(player):void {
    player.x = 999;
    [/code]
    player being simply the instance name of a movieclip I have
    on the stage.
    So what does this code mean for the n00bies? Well in the
    first block of code I am simply calling a function called
    helloPerson which is located in a parent class, remember children
    can "access" their parents but parents can't "access" their
    children so if I did the same thing but tried to call a function in
    the child class I would get an error saying its not found. However,
    you put "player" in the brackets which means that you want to bring
    the movieclip with an instance name called player through with you
    on your way to call the function helloPerson.
    In the second block of code, I am quite simply modifying
    where the player movieclip is along the x axis, this is to make
    sure that I can access the movieclip called player and the code is
    properly working. Bringing along doesn't mean we create a
    "duplicate" or anything, it basically is bringing along the
    permission to access player.
    Thanks again kglad!

  • Preloader and loading MovieClips Question

    I've been making seperate files for each of my pages which are around a megabyte in size for my webpage, and I was wondering is there a way to make a preloader all in one file, and when it loads the page it goes straight to the preloader instead of the screen going white for a few seconds while it loads? If so I played around with it and lemme know what's wrong with the code:
    I added this section of the code before all the vars for the actual site, but it still didn't work the way I wanted it to
    import com.greensock.TweenLite;
    import com.greensock.easing.*;
    var scrollTimer:Timer = new Timer(2000,1);
    scrollTimer.addEventListener("timer",scrollShow);
    this.addEventListener(Event.ENTER_FRAME,myProgress);
    scrollGallery_mc.alpha = 0;
    function scrollShow(e:TimerEvent):void {
         TweenLite.to(scrollGallery_mc,2,{alpha:1});
    function myProgress(e:Event):void {
         var loaded:Number = this.stage.loaderInfo.bytesLoaded;
         var total:Number = this.stage.loaderInfo.bytesTotal;
         var pct:Number = loaded/total;
         load_mc.loader_mc.scaleX = pct;
         preload_txt.text = "Loading: " + (Math.round(pct*100)) + "%";
         if (pct == 1) {
              myComplete();
    function myComplete():void {
         startPage();
         this.removeEventListener(ProgressEvent.PROGRESS,myProgress);
         this.removeEventListener(Event.COMPLETE,myComplete);
         load_mc.visible = false;
         preload_txt.visible = false;
         scrollTimer.start();
         play();
    stop();
    Second question is there a way to load a movie clip object using as3 as an a separate interactive object without directly adding it to the stage in the fla file?

    It's a stupid simple intro clip with no depencies to the application. The crazy thing about is, that it's loads the most time... So i think i make something wrong? I start loading after the preloader was added to stage.

  • Syntax error in Start Routine routine 9998 in transformation

    Hi Guyz,
    I am getting the below error while doinf the syntax check in start routine in one of the transformation in BW production after the failed TR movement
    E:In PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter
    "SOURCE_PACKAGE" is incompatible with the formal parameter
    "DATA_PACKAGE".
    but for the same transformation in quality its showing  no syntax errors found.
    its an odd behaviour.
    please guide with ur expertise.
    cheerz,
    raps.

    Hi,
    Check the note 1052648. it says that:
    Start routine:
               In the start routine, all the fields from the source are always available.
    During the migration, a type '_ty_t_SC_1_full' is generated in '2nd part global'. Since Note 1325124, this type has been adjusted when the field list is changed. In the past, a change to the field list caused syntax errors of the type:
    For update rules:
                        E: For PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter "SOURCE_PACKAGE" is not compatible with the formal parameter "DATA_PACKAGE".
    For transfer rules:
                        E:For PERFORM or CALL FUNCTION "STARTROUTINE", the actual parameter "SOURCE_PACKAGE" is not compatible with the formal parameter "DATAPAK".
               If this error continues to occur, go to the solution section to correct it.
               Solution:
               This error should now be automatically corrected with Note 1325124. Access the incorrect start routine in change mode. The type '_ty_s_SC_1_full' is then automatically adjusted to the source structure. If this does not work, you should use the tool 'RSTRAN_MIGRATION_CHECK' (described in Note 1369395) to check and possibly repair the transformation in question.
               If this error still occurs, you can correct it manually as follows:
               Copy the field list of the type     '_ty_s_SC_1' from the 'private section' of the CLASS lcl_transform DEFINITION (you can find this when you scroll up in the routine editor of the start routine) to the type '_ty_s_SC_1_full' of '2nd part global'.
    Regards,
    Anil Kumar Sharma .P

  • Message ID in Transformation

    Hi,
    I have a N:2 Transformation scenario in BPM
    Receive IDoc -> Collect the IDoc for 2 minutes (time depenedent) -> Transformation(N:2) -> send1(file1) -> send2(file2)
    we know that the BPM(transformation) does not give access to Runtime Constant. I cannot get in Transformation.
    Question:
    I want to get Message ID of file1 and it will input for file2.
    How do i do that?
    Kindly Advice,
    Thanks,
    Gowri

    Bhavesh,
    I have reached a step further in my Mapping.
    I have defined a Mapping between File1_ABS and File2_IN (get Message ID)
    Second Mapping is between File2_ABS and File2_IN
    for Scenario : N:2 Transformation
    N IDoc collected (Receive) -> Transform(2 files) -> Send1(File1_ABS)
                                                                         -> Send2(File2_ABS)
    I am struck at the Scenario. How do i define Receiver Agreement, Interface determination and Receiver determination?
    Kindly Advice.
    Thanks,
    Gowri

  • Greek Data becomes Question Marks when passed through a Database Link

    Hi All,
    We have a 10gR2 sharing a Win32 Server with an MSSQL 2005.
    Data transfers between these are set up using an HS Database Link.
    All latin data is passing well, however we have some Greek in there and its transformed to question marks on the way.
    Measures attempted so far:
    1. I've set the NLS_CHARACTERSET of the 10g to AL32UTF8 . Entered non-Latin data manually to the 10g - works fine.
    2. I've edited the relevant init.ora file to include the following:
    HS_LANGUAGE = AMERICAN.AL32UTF8
    HS_NLS_NCHAR = AL32UTF8
    3. Restarted the DB and Listener.
    Still question marks
    Ideas?
    Thanks
    Tomer

    HSODBC was never certified with NVARCHAR data types. Have a look at the Generic Connectivity Administrator's Guide. It list all supported data types and nchar/nvarchar/ntext is not listed. You can select from those data types, but there is no guarantee the content of those datatypes will be fetched correctly. There are no conversation routines that properly convert unicode content.
    HSODBC has been desupported 15th of March. I strongly recommend you to use DG4ODBC 11.1.0.7. In addition in DG4ODBC the NVARCHAR/NCHAR functionality has improved a lot.
    DG4ODBC V11.1.0.7 needs to be installed into its own Oracle_Home and it can be used with older Oracle database releases like 10.2.0.4 right out of the box; or you have to apply a compatibility patch to your Oracle database releas 9.2.0.8, 10.1.0.5, 10.2.0.3
    Edited by: kgronau on Dec 10, 2008 8:42 PM
    One thing I forgot to mention is the advantage of using DG4ODBC is it maps the nvarchar to Oracle nvarchar and thus there is no codepage translation required.
    But please pay attention; use 11.1.0.7 not the base release 11.1.0.6 as on Windows based operating systems a high/low byte issue was fixed in 11.1.0.7 which is mandatory for NLS support.

  • ISO-8859-1 Special Characters turn to Question Marks; How to post Resumes?

    I am building a web based application and I have a TextArea in an HTML form. Users can copy and paste their resumes (source - Microsoft Word Docs) into this text area. Once the resume is posted, tomcat handles the request. The request is posted to another JSP, Struts Action Class (Any Java Class that can write to a database).
    When I do a System.out.println(request.getParameter("resume")); I the special characters like bullets and quotes and a bunch of others are getting transformed to Question Marks. When I insert the resume into an Oracle Database (into a clob field) they are still being saved a question marks.
    I have a JSP Page that displays the posted resume. It has 2 things - It writes the request.getParameter("resume") to the HTML and this comes out fine. But when it writes the resume that is retrieved from the oracle database, i am getting back question marks.
    I understand that Java uses unicode for character encoding/representation and I tried changing my HTML page's charset to UTF-8. Did not work. I see that there are a million websites that let users copy and paste their resumes. How are these resumes stored and retrieved from a database using server side java? Any help will be greatly appreciated.
    Thanks,
    -kal

    The characters that the character set "ISO-88591-1" supports are as follow. Confirm your characters are in the range:
    0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a 0x1b
    0x1c 0x1d 0x1e 0x1f 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27
    0x28 0x29 0x2a 0x2b 0x2c 0x2d 0x2e 0x2f 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39
    0x3a 0x3b 0x3c 0x3d 0x3e 0x3f 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49
    0x4a 0x4b 0x4c 0x4d 0x4e 0x4f 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5a
    0x5b 0x5c 0x5d 0x5e 0x5f 0x60 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f
    0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x7b 0x7c 0x7d 0x7e 0x7f
    0x80 0x81 0x82 0x83 0x84 0x85 0x86 0x87 0x88 0x89 0x8a 0x8b 0x8c 0x8d 0x8e 0x8f
    0x90 0x91 0x92 0x93 0x94 0x95 0x96 0x97 0x98 0x99 0x9a 0x9b 0x9c 0x9d 0x9e 0x9f
    0xa0 0xa1 0xa2 0xa3 0xa4 0xa5 0xa6 0xa7 0xa8 0xa9 0xaa 0xab 0xac 0xad 0xae 0xaf
    0xb0 0xb1 0xb2 0xb3 0xb4 0xb5 0xb6 0xb7 0xb8 0xb9 0xba 0xbb 0xbc 0xbd 0xbe 0xbf
    0xc0 0xc1 0xc2 0xc3 0xc4 0xc5 0xc6 0xc7 0xc8 0xc9 0xca 0xcb 0xcc 0xcd 0xce 0xcf
    0xd0 0xd1 0xd2 0xd3 0xd4 0xd5 0xd6 0xd7 0xd8 0xd9 0xda 0xdb 0xdc 0xdd 0xde 0xdf
    0xe0 0xe1 0xe2 0xe3 0xe4 0xe5 0xe6 0xe7 0xe8 0xe9 0xea 0xeb 0xec 0xed 0xee 0xef
    0xf0 0xf1 0xf2 0xf3 0xf4 0xf5 0xf6 0xf7 0xf8 0xf9 0xfa 0xfb 0xfc 0xfd 0xfe 0xff

  • How do i create a custom transform?

    transforms are actually 4x4 matrixes, right?
    after doing some scaling, rotating and translating to a
    transform, if you print (put) one to the message window, you get
    something like:
    -- transform(7.00000,0.00000,0.00000,0.00000,
    0.00000,8.00000,0.00000,0.00000,
    0.00000,0.00000,9.00000,0.00000,
    4.00000,5.00000,6.00000,1.00000)
    which is the 4x4 matrix for such transform.
    my question is...
    is there any way to create a transform PROVIDING THE MATRIX
    ITSELF?
    for example, can i create a transform, which's matrix is
    deliberately
    1 2 3 4
    5 6 7 8
    9 10 11 12
    13 14 15 16?
    that would help me a lot for optimization purposes.
    thanks :)

    You can make a new transform by using transform(). Then you
    can set the
    individual parts of the transform using bracket notation
    (like lists)
    tTransform = transform()
    put tTransform
    -- transform(1.00000,0.00000,0.00000,0.00000,
    0.00000,1.00000,0.00000,0.00000,
    0.00000,0.00000,1.00000,0.00000,
    0.00000,0.00000,0.00000,1.00000)
    put tTransform[1]
    -- 1.000
    tTransform[2]=2
    put tTransform
    -- transform(1.00000,2.00000,0.00000,0.00000,
    0.00000,1.00000,0.00000,0.00000,
    0.00000,0.00000,1.00000,0.00000,
    0.00000,0.00000,0.00000,1.00000)

  • Data Transfer Prozess (several data packages due two huge amount of data)

    Hi,
    a)
    I`ve been uploading data from ERP via PSA, ODS and InfoCube.
    Due to a huge amount of data in ERP - BI splits those data in two data packages.
    When prozessing those data to ODS the system delete a few dataset.
    This is not done in step "Filter" but in "Transformation".
    General Question: How can this be?
    b)
    As described in a) data is split by BI into two data packages due to amount of data.
    To avoid this behaviour I enterd a few more selection criteria within InfoPackage.
    As a result I upload data a several time, each time with different selction criteria in InfoPackage.
    Finally I have the same data in ODS as in a), but this time without having data deleted in step "Transformation".
    Question: How is the general behaviour of BI when splitting data in several data packages?
    BR,
    Thorsten

    Hi All,
    Thanks a million for your help.
    My conclusion from your answers are the following.
    a) Since the ODS is Standard - within transformation no datasets are deleted but aggregated.
    b) Uploading a huge amount of datasets is possible in two ways:
       b1) with selction criteria in InfoPackage and several uploads
       b2) without selction criteria in InfoPackage and therefore an automatic split of datasets in data packages
    c) both ways should have the same result within the ODS
    Ok. Thanks for that.
    So far I have only checked the data within PSA. In PSA number of datasets are not equal for variant b1 and b2.
    Guess this is normal technical behaviour of BI.
    I am fine when results in ODS are the same for b1 and b2.
    Have a nice day.
    BR,
    Thorsten

  • How to use batch files to send the load from ODC to UCM?

    Hello all.
    We're trying to do this along this week and, until now, we couldn't figure out how to use batch files containing metada on ODC and commit the output files to UCM.
    So these are our specs:
    VM 1
    ODC - 10gR3
    OS - Windows XP 32 bits SP3
    DB - Oracle DB 11.2
    VM 2
    No ODC
    UCM 11.1.1.6
    OS - Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
    We've opened a ticket with Oracle Support to know how we should do this. The number is SR 3-6108348211.
    Let me try to explain what we want to do:
    1 - we have a batch file with all metadata of many files from UCM
    2 - we want to use this file in ODC, so the application will convert the images and commit them to UCM
    3 - we should see all these files, their metadata, thumbnails and related content in UCM
    4 - this is a batch file example we want to send to ODC:
    @Properties LocalData
    IdcService=CHECKIN_UNIVERSAL
    dRevLabel = 1
    primaryFile=/tra/Relatorio_UHPF-03-04-2008-M-RL-EA.pdf
    dDocName=TRA_33
    dDocTitle=UHPF-03-04-2008-M-RL-EA
    dSecurityGroup=MAM_TRA
    dDocType=Document
    dDocAuthor=luis.neotropical
    dInDate=14/05/08
    xC_CLASSIFICACAO=EA - Educação Ambiental
    xC_DATA=01/04/08
    xC_DATAVALIDADE=30/04/08
    xC_LOCALIZACAOFISICA=N/D
    xC_USUARIO_DEP=LUIS FERNANDO DA CAMARA
    xC_TIPO=RL - Relatório
    xC_USINA=UHPF - USINA HIDRELÉTRICA PASSO FUNDO
    xC_FICHA=MAM - Relatorios Ambientais
    xC_IDDOCMAN=TRADocID=157
    xC_IDANEXODOCMAN=TRAFileID=33
    xC_DESTINOINICIAL=Tractebel
    xC_ORIGEM=Neotropical
    xC_FORMATODOCUMENTO=Digital
    xC_GENERODOCUMENTO=
    xC_DOCPRINCIPAL=Sim
    @end
    <<EOD>>
    5 - So, when we use this batch file on ODC, the file (or image) will be converted, all metadata attached and then sent to UCM.
    But we don't know how to do the link between ODC and UCM. The Oracle Support says it is necessary to do some customization. In the books I could not find any info about how to do, just generic information or how to use ODC.
    Is there a way (without customization) to do that? Can anyone give us a step-by-step guide?
    Thanks for all help and guidance.
    Fernando

    What is the one-sentence requirement or issue you're trying to solve?
    If you only want content to be converted to pdf, then you should already have that with your items checked into UCM (if you have IBR enabled).
    if you really want to feed content into ODC using a batchfile, my first thought would be to create a transformation utility/app that will convert your batchfiles to the expected ODC import server folder job format. then you'll have to move or map the content to match.
    Again, without knowing the exact issue/business requirement you're trying to work through, I'd say a redesign of your ingestion process may be in order.
    If you feed content directly into ODC through any supported ODC method (watch folder, email, scanner, fax, etc), then you'll be able to use everything ootb as you'll be able to auto-commit directly into UCM or add an indexing step and manual commit to UCM.
    ODC is basically a front end for indexing and extra ingestion options to your content repo.
    IPM is basically the same, but it includes some extra process-related details (process metadata, process integrations/bpel/bpm, other system integrations/ebs/crm, etc). I don't feel that IPM would help with the transformation-specific question you've put out there.
    -ryan

  • Re: BPM Help

    Hello! ALL
    I am trying to develop a BPM which would send a asynchronous I/B shipment request message proxy message to SAP ECC (message coming form Sender will be transformed to Shipment Request Proxy) and once this proxy is processed. SAP ECC would asynchronously push a O/B shipment response to the i/b shipment proxy, which the BPM should receive in order to send a confirmation back to sender system that shipment request was created.
    Since, this is a asynchronous request and response , the Shipment_Number which is part of the request and comes back in the response needs to be used to correlate the messages. And send the Shipment_Number back to sender confirming Shipment_Request was created.
    It would be very helpful, if you can provide an idea this can achieved a BPM.
    What will be the steps involved to send and then receive the response back for the message containing the Shipment number asynchronously by leveraging the Shipment Number to correlate.
    Also, would like to make this all part of the block so that if the response for a shipment does not come back in a set time like within 10 mins, we will fail the block and terminate the BPM.
    Please, do suggest the steps and logic needed to design the BPM with this requirement
    Appreciate all the help!
    Thank you so much,
    Ritu

    Hi Abhishek
    Thank you so much for the detailed explanation on the BPM steps to be used.
    I have followed the steps you have suggested and faced 3 issues I need your help and advice on:
    1. Was a able to get the first receive and send working (so the message went to ECC) and for the next receive and send I have the following error:
    <SAP:Code area=&quot;BPE_ADAPTER&quot;>MESSAGE_NOT_USED</SAP:Code>
      <SAP:AdditionalText></SAP:AdditionalText>
      <SAP:Stack>Message <b>interface</b> is not used by <b>this</b> process</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    2. Also, would you suggest the Receive &#38; Send to be in block and have a inner block which has the second receive and send (and the control step will fail the whole inner and outer block). The reason I was thinking of this as similar to Shipment Request I will also need to add Freight Request block which is exactly the same service interface as shipment request only message content and transformation would be different (in the same BPM). If the Flag is Y for Shipment Request it need to go to block 1 &#38; Flag is N for Freight request it needs to go to block2.
    BLOCK1 (Shipment Request =Y)---> Rec1 Transform Send1 {Inner BLOCK?Rec2 transform Send2}
    BLOCK2 (Shipment Request =N)---> Rec1 Transform Send1 {Innrer BLOCK?Rec2 transform Send2}
    Question:
    -Do we need to have the second step in a inner block which will have the control step?
    -Also how <b>do</b> i route the message between the 2 block, can I use a fork or <b>do</b> I need to have one more receive step before the routing to the 2 blocks.
    3. Also, if we do not receive a asynchronous response  to the Shipment or Freight request for the second receive step, apart from failing I need to populate the send structure with Shipment_Number and the Status file = FAIL in the response going to Sender system.
    Question: how <b>do</b> i populate the response structure with <b>default</b> value and the shipment number associated to the failed receive step 2 (need to save shipment number); so as to populate the response with defaults status as FAIL to the associated Shipment_Number for which the control step fails on timeout.
    Thanks again!! Your response was very helpful, hoping to get past this error and add the next steps to the BPM.
    Thank you,
    Ritu

  • Reusing TransformerHandler

    Hi!
    I've been taking a look at the JAXP, Xalan etc. and have written a sample application to mirror work that was previously done using command line XSLT processors and XML tools.
    The basic idea is a common one - to build a configurable chain of document processing steps including XSLT transformations.
    However, I've run into a problem regarding the resuse of Transformers. Currently, the test application creates a vector containing a number of steps. These range from input steps (using org.xml.sax.XMLReader) to output steps (using org.apache.xml.sax.Serializer.)
    Each transformation step is a TransformerHandler which is linked to the next step using setResult. Pretty much the same as Pipe.java from the Xalan samples.
    Everything is fine for the first document to pass through the chain, however, trying to pass another document through the chain results in the following exception:
    java.lang.RuntimeException: java.lang.NullPointerException
         at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
         at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
         at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.mytest.ResourceProcessor.Input.readAndTransform(Input.java:64)
         at com.mytest.ResourceProcessor.Target.build(Target.java:111)
         at com.mytest.ResourceProcessor.ResourceProcessor.buildTargets(ResourceProcessor.java:110)
         at com.mytest.ResourceProcessor.TestApp.main(TestApp.java:24)
    Now, this is probably a simple error due to my misunderstanding of the APIs (be kind - I'm new to this!)
    What exactly are the rules for reuse of a TransformerHandler?
    Thanks in advance for any help.

    Reuse of Transformer (your question near the beginning) or reuse of TransformerHandler (your question near the end)?
    I don't see any point in reusing a TransformerHandler, since it costs essentially nothing to create a new one. So don't bother. Reusing a Transformer is more conceivable, since creating one requires parsing the XSL it uses. But the rules for reusing them are clearly stated in the API documentation:
    "An object of this class may not be used in multiple threads running concurrently. Different Transformers may be used concurrently by different threads.
    A Transformer may be used multiple times. Parameters and output properties are preserved across transformations."
    If there is a chance of multi-threading (for example if your code is in a servlet environment or similar) then a Templates object is both reusable and thread-safe.

  • Regional settings & OC4J

    I have a JSP+Servlets application that uses Oracle iFS to gather information from different sources. The application is deployed with OC4J on Win2k advanced addition.
    Every few days the OC4J starts to use a differnt regional settings - all its logs are using a different date+time formats and the main problem is that allt the hebrew strings transformed into question marks.
    The only way I managed to solve the problem so far is to reboot the machine.
    Does anyone familiar whith a better solution ?

    Hi,
    If you are running a Cloud Deployment in which you deployed own image you could obviously, prior to uploading the image to Azure, make the necessary changes within the image to allow those to reflect to new users as part of the default profile. If you want
    to allow users to specify their own regional settings you could publish the Control Panel for them as follows
    For example here the Control Panel Regional Settings applet running as a Azure RemoteApp.
    Kind regards,
    Freek Berson
    The Microsoft Platform
    Twitter
    Linked-in
    Wortell company website

Maybe you are looking for

  • How to do text formatting?`

    I would like to ask how to do text formatting in println? I need to print out a series of data with column heading, for example Heading1 Heading2 Detail abc cdea 222222 22222 22222222 33 is there any function like C++ that we can format the string be

  • Deleted Items from Hard Drive folder and now nothing works ...

    Hi All, Under the 'Search For' heading in the right hand column of the grey box that comes up when you open your hard drive, there are the heading All Images, All Movies, All Docs .... I've deleted about 2600 files from the 'All Images' folder and no

  • App.execMenuItem("ADBE:ReadOutLoudOnOff"); is not working in Acrobat button

    Hi All, I would like to add buttons in a pdf and add action to the buttons to activate, read, stop of Read out loud options. To acheive this, I have created different buttons and trying to add Button 1: Actions > Run a Javascript > app.execMenuItem("

  • Newbee Question to SQL Statment ..

    Hello, what does the statment PRODWH refer to in the statment below ....? what s the function of {?PRODWH: F_INVOICES.PROD_ID}. Is it an Input Parameter for the user ? ist the statment "external Join" replaceble trough Right/left Join ..? SQL Statmen

  • How change positions of photos in a slideshow?

    How do I change the positions of photos in a slideshow?