Flex 4 Tlf Problem! How to get active Paragraph?!

I have following TLF XML:
private var text:XML =
<flow:TextFlow fontSize="20" paddingRight="50" paddingBottom="50" paddingTop="50" paddingLeft="50" whiteSpaceCollapse="preserve" xmlns:flow="http://ns.adobe.com/textLayout/2008">
        <flow:p>
                 <flow:span>Hallo liebers Programmili... du tust schon langsam meinem koepchen weh</flow:span>
        </flow:p>
</flow:TextFlow>;
I try to get the Paragraph for a selection inside the text using following Methodes:
var index:int = tf.interactionManager.anchorPosition; // i get 29 here
var child:FlowElement = tf.getChildAtIndex(index); // undefined - it should be the flowElement containing the text... <flow:span></flow:span>
var para:ParagraphElement = test.getParagraph();//undefined - it should be the paragraph
I really started to enjoy the new framework... but now i am getting really mad
Can anybody imagine what i am doing wrong? The undefined itself makes me suspicious... shouldn't it be null?
Help would be much appriciated!

I just saw i posted this into the wrong thread... reopend the topic at
http://forums.adobe.com/thread/568455
Thx so far!

Similar Messages

  • How to get Active users list in Essbase 6.5.6

    Hi Gurus,
    How to get Active users list in Essbase 6.5.6 version
    I dont find any Esscmd to find active users list....
    i used LISTLOGINS command in ESSCMD but its not helping me out....
    pls suggest me some approach to find active users list.
    Thanks in advance....

    Hi  ,
    Display sessions will give only active users details which are currently connected to the ESSBASE .
    if you need this list ? or  you need the  total list of   security  active users list ?
    if you need the currently connected to the ESSBASE
    if you check  one server  At a time  or you can check the application level also
    1)server level
    display  session all;
    2)application level
    display session on application  'application name ';
    go for the  run command ---> essmsh----->  login;----->enter user name ----> enter password----->enter host (like server name )  then you need to you   above  1 &2  commands
    Thanks,
    suresh

  • Need help: Flex  record webcam problem, how to setting Brightness,Contrast,Saturation and Sharpness

    Hello, dear all
    Please help me!
    Flex  record webcam problem, how to setting Brightness,Contrast,Saturation and Sharpness?
    nsOutGoing=new NetStream(nc);
    nsOutGoing.attachCamera(m_camera);
    nsOutGoing.publish(filename, "record");
    I want to control the Brightness,Contrast,Saturation and Sharpness for the recorded flv file.
    At present, I only can control the videodisplay object, but I can not able to control Camera.
    Thanks very much!!
    kimi
    MSN: [email protected]

    Can I change a Video object to to Camera object, If yes, How do??
    nsOutGoing.attachCamera(video as Camera);// it does not work rightly
    thanks

  • How to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scripting

    how to get all how to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scriptingstyle and their fonts of a  indesign file and write all info with para info into txt file with scripting

    I write the script this one works
              var par=doc.stories.everyItem().paragraphs.everyItem().getElements();
      for(var i=par.length-1;i>=0;i--)
           var font=par[i].appliedParagraphStyle.name;
            var font1=par[i].appliedFont.name;
             var size=par[i].pointSize;
            WriteToFile (par[i].contents  +   "\r" +  "Style  : " + font  + "\r" +  "FONT1  : " + font1  + "\r" +  "Size  : " + size  + "\r", reportFilePath);
                            function WriteToFile(text, reportFilePath) { 
        file = new File(reportFilePath); 
        file.encoding = "UTF-8"; 
        if (file.exists) { 
            file.open("e"); 
            file.seek(0, 2); 
        else { 
            file.open("w"); 
          file.writeln(text);  
        file.close(); 
    Thanks for all your support

  • In BAM, how to get activity ID for the running instance in the orchestration.

    I am trying to add document reference URL to the active instance in the orchestration for the activity which is already started.
    Please let me know how to get such activity ID.
    Thanks
    Jagadeesh 
    Jagadeesh RS

    Are you using TPE to set up the Activity Tracking or BAM API. If you are using TPE then identify what has been set as the Activity Id in the BTT file. If the Message Id is used then use "BTS.InterchangeID" [refer
    http://msdn.microsoft.com/en-us/library/aa562116.aspx] on the received message to get the Activity Id.
    If however you've mapped the Activity Id in BTT to the InstanceId then use
    "Microsoft.XLANGs.Core.Service.RootService.InstanceId"
    to get the activity id.
    Regards.

  • How to get active tab strip name using standard function ?

    Dear all,
    I have 5 Tab strip in my view, how can i know which tab strip is active during runtime ?
    Best Regards
    Fernand

    HI
      I hope you may be looking  at this thread , hope its  a  similar requirement as yours
      How to get the selected Tab from a TabStrip.
    Thanks

  • How to get active network interface name?

    Hi All,
    Can any one tell me how to get the currently active network interface name (Local Area Connection/ Wireless Network Connection/ other) either by using java SDK or win32 API.
    Is there any function to get the active network interface name in java/win32?
    Is there any procedure for it to get from observing registry keys.
    I found NetworkInterface class in java but not yet succesful in getting the display name of active network interface.
    Can anyone help me with partial code?
    Please help me.

    Use getLocalHost() then retreive the list of NetworkInterfaces and cycle through them until you find the one that has that address.

  • How to get active monitor-Multiple monitors connected to a single machine.

    Hi,
    How to get the id of active graphic device, in case of multiple graphic devices connected to a single machine(Multi-headed display/ multi headed nodes) using Swing.
    Prashanth.

    Ah, youre actually asking different things.
    In your topic title, you say youre running separate instances
    In your body text, you say you are under different user/schema
    So tell me, do you have more than one database or not? How many entries in your TNS file?
    I would say, for "multiple database instances"
    SELECT
      a.id, b.id
    FROM
      tableA a
      INNER JOIN
      tableB@OTHER_DATABASE_LINK_NAME b  <--NOTE!
      USING(id)And of course you will have to look up CREATE PUBLIC DATABASE LINK sql..
    Message was edited by:
    charred

  • [CS3 Win]: How to get active spread and layer ?

    How to get the active spread and layer in an Indesign CS3 document?

    I found the answer (I wanted active spread and page):<br /><br />active Spread:<br />InterfacePtr<ILayoutControlData> layoutControlData(gContext->GetContextView(), UseDefaultIID());<br />UIDRef uidRefSpread = layoutControlData->GetSpreadRef();<br /><br />active page:<br />UID uidMyPage = layoutControlData->GetPage();<br />UIDRef uidRefPage(fCHMLDocRef.GetDataBase(), uidMyPage);

  • How to get active programs/custom ABAP developments for past 6 months?

    All,
    Is there any transaction/table/program/FM to get active programs for past 6 months?
    Intention here is to get actively used custom ABAP developments.
    Regards,
    Sree

    Hi Sree,
    I usually look up the activity in transaction ST03N (Workload analysis). In most systems the standard activity statistics are available for up to three months. You can extend the period of course, see this [thread|ST03N Data; for further details.
    Once in the transaction, switch to expert mode. Under Workload node, expand 'Total'. Double click on the desired range you want to analyze. Switch to 'User Data' tab in the right window and in the lower left pane under 'Analysis View', double click 'Transaction Profile'.
    The # of steps roughly estimates how many times a particular transaction has been executed.
    Best regards,
    Asim

  • How to get activity (outcome) which navigated to current view

    Hi!
    Is there a way to get activity (outcome string) that was cause of navigation to current view? For example, I have a view named SearchPage and I can navigate to this page from two outcomes (success and failed) from some taskflow (for example, the EditItem taskflow). I want to detect from which outcome (success or failed) I have returned to SerachPage. How to get this? I know I can use output parameters from taskflow, but I would like to simplify the case so I don't have to deal with output parameters but to rely on navigation rules / outcomes.
    Thanks,
    Pavle

    Hello Pavle,
    Unless I misunderstand your use case, this should really be a task flow input parameter previously set using a method call activity preceding the task flow call. From what I understand, you have 2 options:
    Option 1
    EditItem task flow:
    state1
      someTransition
      --> state2
        success
        --> method call that set a request attribute to success
        --> call the task flow, passing the request attribute as an input parameter
        failure
        --> method call that set a request attribute to failure
        --> call the task flow, passing the request attribute as an input parameter
    Option 1
    EditItem task flow:
    state1
      someTransition
      --> state2
        success
        --> call the task flow, passing success as an input parameter
        failure
        --> call the task flow, passing failure as an input parameterPersonally I prefer the first option as I prefer to duplicate method call state than task flow calls for easier maintenance as I consider task flow call to be more complex activities than simple method calls and thus prefer to duplicate the latter over the former.
    Regards,
    ~ Simon

  • Restore problem - how to get rid of corrupt database ?

    Folks,
    Some dumb developer managed to trash on of our Oracle database by doing a mistake in SQLDev.
    This database was / is using the "autobackup" feature as proposed in the installation wizard.
    For some reason it would seem that the restore is not complete, tough.
    I get an error when mounting the database
    ORA-01248: file 5 was created in the future of incomplete recovery
    ORA-01110: data file 5: <path to file>
    not sure to understand what happened but I can live without that specific database assuming the others are ok.
    Any advise as of how to get rid of that specific database and enjoy the rest of the server ?!
    Nest step will be to understand why autobackup is not doing what it is supposed to do...
    This is Oracle 11g standard on Oracle Linux.

    1. What statement did the developer issue? What did they do?none - they used the SQLDevelopper GUI to copy tables form db1 to db2
    2. What system table was affected?SYS tables where unintentionally affected.
    3. What does "erased" mean? DELETE statements? TRUNCATE? UPDATE?
    4. What does "corrupted" mean?Corrupted in the sense that the SYS table content was mangled to the extent that the database engine would not run anymore (the database process would not start). This has been fixed after the recovery.
    Run some SQL statements and show us what you are referring to. We can not recommend a fix based on what you've posted.Well I can run many statements on a database that will not go into an open state...
    Just to repeat the above:
    lSQL> startup;
    ORACLE instance started.
    Total System Global Area 845348864 bytes
    Fixed Size 1339796 bytes
    Variable Size 532680300 bytes
    Database Buffers 306184192 bytes
    Redo Buffers 5144576 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01248: file 5 was created in the future of incomplete recovery
    ORA-01110: data file 5: '/home/oracle/beautec/data/MODM_tab_0100.dat'
    Again I can live without that shema assuming it is the only one having problems - but I can't drop it as far as I know...
    That said I can log in as SYS and perform a drop database followed by using DBCA to create a new database in less than 20 minutes. Which I expect is more
    time than you've spent working with this so far.No point to get insulting - I spent much more than 20m on the issue. Unfortunately - as you have probably understood from my earlier posting - my DBA expertise is limited. That's the very reason I am looking for help.
    I can do
    shutdown abort;
    startup mount exclusive restrict;
    drop database;
    exit
    but that's the whole database going into the toilet - a bit extreme...

  • WLST: How to get "Activation Time" data from a managed server ?

    Hello,
    does someone knows how to get the "Activation Time" (Time when the managed server was started) of a managed server via WLST under WLS 8.1 & 9.2 ?
    Thx a million.

    Under 9.2
    connect()
    serverRuntime()
    print cmo.getActivationTime()
    print java.util.Date(cmo.getActivationTime())
    <Markus Jessl> wrote in message news:[email protected]..
    Hello,
    does someone knows how to get the "Activation Time" (Time when the managed
    server was started) of a managed server via WLST under WLS 8.1 & 9.2 ?
    Thx a million.

  • General problem : how to get start "grid computing"?

    hi all,
    please read this and giud me kindly.
    i m university student and my final year project title is "new middleware models such as "grid services on p2p". this tittle was proposed by our acadamic staff and then i must go through this. now i have the idea what is grid computing and what are the techologies to be used with it. but i have no idea from ware i should get start on this.
    so i will briefly explane u what is my project goal. my project goal is to give a solution to communicate several systems by upping webservices which are running seperatly on seperate servers by several technologies.
    To do this i want to apply "grid computing on peer to peer architecture".
    so plz guid me is this possible to do with grid computing andif is not tell how can i do this( to embeded several systems upping web services ).
    also guid me how to get star to get best practice of grid computing?
    thnaks ,
    nuwan

    Hi Aaron
    Check these standard programs for some help on this :
    1-BCALV_EDIT_01                  Switch on and off the ready-for-inp
    2-BCALV_EDIT_02                  Define ready-for-input status at ce
    3-BCALV_EDIT_03                  Verification of modified cells    
    4-BCALV_EDIT_04                  Delete and append rows            
    5-BCALV_EDIT_05                  Checkboxes                        
    BCALV_FULLSCREEN_GRID_EDIT                                                                       
    Check these links for some Useful info on ALV:
    Possible functionalities in ALV
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Regards
    Neha
    Edited by: Neha Shukla on Dec 2, 2008 8:39 AM
    Edited by: Neha Shukla on Dec 2, 2008 8:43 AM

  • How to get active session details

    Dear all
    in my application i want to display number of users online in a list and their details,for that how can i get the active session details in a jsp , or any other ways to do this.any suggestion regarding this is very much helpful to me. thanks in advance
    thanking u
    yours
    kumaran ramu

    Hi,
    You can use a Listener class for track the sessions and do some logic when a session is created/destroyed. See HttpSessionListener interface. You can save the session IDs and session objects when a session is created, for example in a hashmap. Save the hashmap in application context. In your JSP get the hashmap and get its key/values. See thread safe problems if you are using a hashmap in application context.

Maybe you are looking for

  • File names not present

    Newbie  to Lightroom.  When looking at photos in any mode there are no file names shown.  Apparently I am missing something but I can't find a way to have the file names show above the photos. Thanks for any help

  • Is it possible to load audiobook cds into the audiobook section?

    The music becomes shuffled with the stories. I don't want to have to download audiobooks I've already got on cd from itunes. Is it possible to separate music from books?

  • Actionscript for Gallery thumb rollovers (newbie)

    I have a client that I am working with who wants the main middle of the home page to be a Flash animation. It can be seen here: Soriano Artworks The trouble I run into is that he wants the animation to stop when you roll-over the paintings (that pop

  • Where do flash pages get stored?

    just curious. i'd like to be able to save some games and cartoons. Anybody know anything 'bout this?

  • What actually happens @Completed filling free space info for database

    Hello, i see some strange thing with my 15.7 Ase server Earlier for a very big db of around 1TB the recovery time would be around 15Mins( i mean for the 1TB db to come online). Now its taking only seconds to come up. so wanted to check what actually