Problems with inlinegraphics in richeditabletext in flash player 10.1

Hi,
I've remarked a strange behaviour with fp 10.1 and TLF. If I create a TLF Textflow programmatically with an embedded inlinegraphicselement and set the richeditabletext so that i can select text (to copy it via a context menu), the image will disappear as soon as i click into the richeditable text.
Here's A snippet:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               >
    <fx:Script>
        <![CDATA[
            import flashx.textLayout.elements.InlineGraphicElement;
            import flashx.textLayout.elements.ParagraphElement;
            import flashx.textLayout.elements.SpanElement;
            import flashx.textLayout.elements.TextFlow;
            [Embed(source="bullet.png")]
            [Bindable]
            public static var bigBulletCls:Class;
            private function createTLF():TextFlow{
                var tf:TextFlow = new TextFlow();
                var s:SpanElement;
                var p:ParagraphElement;
                var img:InlineGraphicElement;
                img = new InlineGraphicElement();
                img.source = bigBulletCls;
                p = new ParagraphElement();
                p.paragraphStartIndent = 15;
                p.paragraphSpaceBefore = 15;
                p.textIndent = -13;
                p.addChild(img);
                s=new SpanElement();
                s.text='test';
                p.addChild(s);
                tf.addChild(p);
                /*img = new InlineGraphicElement();
                img.source = "bullet.png";
                p = new ParagraphElement();
                p.paragraphStartIndent = 15;
                p.paragraphSpaceBefore = 15;
                p.textIndent = -13;
                p.addChild(img);
                s=new SpanElement();
                s.text='test';
                p.addChild(s);
                tf.addChild(p);*/                return tf;
        ]]>
    </fx:Script>
        <fx:Metadata>
    </fx:Metadata>
    <s:VGroup mouseEnabled="true">
                <s:RichEditableText id="frontText"
                                    width="580" 
                                    lineBreak="toFit" left="0" right="0" top="0" bottom="0" 
                                    paddingRight="0"
                                    editable="false" mouseChildren="false" mouseEnabled="true"
                                    focusEnabled="false" textFlow="{createTLF()}"
                                    >
                </s:RichEditableText>
    </s:VGroup>
</s:Application>
I've investigated a bit more, and have noticed that if only one inlinegraphicelement is included that loads a non-embedded graphics (i.e. assign a path-string to the source attribute), then no images disappear upon entering the richeditabletext... (see the commented part in the above example)
Is that somehow a bug? I would like to have all my graphics included, so that nothing but the swf has to be deployed...

This is a TLF bug.  It's fixed in our 2.0 code.  The bug in the original post reproduces in TLF 1.0 and TLF 1.1.
I can workaround it like this (I tried this in 1.1 but not 1.0):
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               >
    <fx:Script>
        <![CDATA[
            import flashx.textLayout.elements.InlineGraphicElement;
            import flashx.textLayout.elements.ParagraphElement;
            import flashx.textLayout.elements.SpanElement;
            import flashx.textLayout.elements.TextFlow;
            [Embed(source="../bin/smiling.png")]
            [Bindable]
            public static var bigBulletCls:Class;
            private function createTLF():TextFlow{
                var tf:TextFlow = new TextFlow();
                var s:SpanElement;
                var p:ParagraphElement;
                var img:InlineGraphicElement;
                img = new InlineGraphicElement();
                img.source = bigBulletCls;
                p = new ParagraphElement();
                p.paragraphStartIndent = 15;
                p.paragraphSpaceBefore = 15;
                p.textIndent = -13;
                p.addChild(img);
                s=new SpanElement();
                s.text='test';
                p.addChild(s);
                tf.addChild(p);
                /*img = new InlineGraphicElement();
                img.source = bullet.png;
                p = new ParagraphElement();
                p.paragraphStartIndent = 15;
                p.paragraphSpaceBefore = 15;
                p.textIndent = -13;
                p.addChild(img);
                s=new SpanElement();
                s.text='test';
                p.addChild(s);
                tf.addChild(p);*/
                return tf;
            public function handlerCreationComplete(elem:RichEditableText):void
                elem.textFlow = createTLF();
                elem.selectRange(0,0);
                elem.selectRange(-1,-1);
        ]]>
    </fx:Script>
    <fx:Metadata>
    </fx:Metadata>
    <s:VGroup mouseEnabled="true">
        <s:RichEditableText id="frontText"
                            width="580" 
                            lineBreak="toFit" left="0" right="0" top="0" bottom="0" 
                            paddingRight="0"
                            editable="false" mouseChildren="false" mouseEnabled="true"
                            focusEnabled="false" creationComplete="handlerCreationComplete(frontText)"
                            >
        </s:RichEditableText>
    </s:VGroup>
</s:Application>
Richard

Similar Messages

  • Problem with Firefox 10.0.2, Flash Player 11.1.102.62 and allowedHTMLdomains.txt

    Hi all,
    I have a Flash Media Streaming Server 4.0 running for more than a year now.
    I protect the access to my server through the "allowedHTMLdomains.txt and allowedSWFdomains.txt feature"  (amongst other things...).
    We noticed that with Firefox 10.0.2 (last version) and Flash Player 11.1.102.62 (last version) our customers can't connect anymore.
    In the admin console we can read things like :
         Authentication failed for pageurl: http://my.domain.com, rejecting connection from XXX.XXXXXX.XXX
    If i try from the same computer with another browser, i get
      Accepted a connection from IP:XXX.XXX.XXX.XXX, referrer: http://my.domain.com/myPlayer.swf, pageurl: http://my.domain.com/myWebPage.php
    In the logs i have lines like that :
         --> connection error :
    connect
    session
    2012-03-01
    12:51:17
    CET
    XXX.XXX.XXX.XXX
    XXX.XXX.XXX.XXX
    6629
    2
    19
    _defaultRoot_
    _defaultVHost_
    vod
    _definst_
    0
    401
    XXX.XXX.XXX.XXX
    rtmpte(HTTP-1.1)
    2
    rtmpte://my.streamer.com/vod
    rtmpte://my.streamer.com/vod
    http://my.domain.com/myPlayer.swf
    WIN 11,1,102,62
    4702112566065840495
    3073
    3106
    normal
    http://my.domain.com/myWebPage.php
         --> connection successful:
    connect
    session
    2012-03-01
    14:31:20
    CET
    XXX.XXX.XXX.XXX
    XXX.XXX.XXX.XXX
    6629
    2
    19
    _defaultRoot_
    _defaultVHost_
    vod
    _definst_
    0
    200
    XXX.XXX.XXX.XXX
    rtmpte(HTTP-1.1)
    2
    rtmpte://my.streamer.com/vod
    rtmpte://my.streamer.com/vod
    http://my.domain.com/myPlayer.swf
    WIN 11,1,102,62
    4702113665527136624
    3073
    3073
    normal
    http://my.domain.com/myWebPage.php
    I can't find any significant difference...
    I didn't change anything in my configuration since the beginning, and the application was working without probleme with every version of Browser/FlashPlayer untill now.
    I suppose this is a bug, from Firefox or FlashPLayer or FlashMediaServer.
    Is there anyone from Adobe that could help me to solve this or "workaround" this, knowing that i must use the security features.
    Thank you very much for your help!
    Sam

    Ok for the timeline.
    For your workaround : it was already the case : i had only domains in my allowedDomains.
    I'll have to turn off this feature, and after the update of the flash player, hope that not too many people will stuck to the old flash player version...
    Thx for your help anyway!

  • Problem with using swc files in Flash Player 10

    I have two Actionscript projects in Flex. One is using Flash Player 9 the other is using 10.  Both projects use the fl classes specifically FLVPlayback.
    In the Flash Player 10 project I am using the recently released version 2.5.  Both players use individual controls instead of a complete skin swf.  So the code goes something like video_player.playPauseButton = playPauseBtn.  All the swc files are imported through properties-ActionScript Build Path-Library path-add swc.  This all works great in both projects exept in the Flash Player 10 project the volumeBar swc does not load properly.  In the debug variables for a break point at the function below in FLVPlayback.as the variables handleLeftMargin, handleRightMargin, handleLinkageID and handleY are missing even though they are all in the original fla used to compile the swc.  I have tried compiling swc in both Flash CS3 and 4.  I have tried moving the Actionscript inside the fla files but nothing changes. This leads me to believe it is a bug in the Flash Player 10 or the version 10 playerglobal.swc since this part of FLVPlayback.as is identical in versions 2 and 2.5. The result is that only the volume bar renders but no handle. Debugging all through fl.video.UIManager.as handle_mc remains null?
           public function set volumeBar(s:Sprite):void {
                uiMgr.setControl(UIManager.VOLUME_BAR, s);
    In the Actionscript 9 project all the variables are accounted for so the volume bar and handle render and work fine.

    Further info for anyone who can help!
    I am opening a session from a server via the following sql
    statement:-
    http://servername/virtualdirectoryname?sql=SELECT
    * FROM table1 for XML auto&root=root"
    I only get the popup window when trying it out from our
    webserver?
    The server is MS SQLServer
    The virtualdirectory is created with access set as Windows,
    and always log on set as "myusername" + "mypassword"
    So I thought (hoped) I could pass the "myusername" +
    "mypassword"
    bits into the above sql statement (maybe appended at the
    end?)
    If I type the above sql statement into a browser it works
    perfectly with the xml returned in a web page,
    also as I state above, when I run it from within my flash
    prog on my local machine it runs OK and returns the results into
    the text area specified within the flash prog.
    BUT - When I upload my flash prog to the webserver and try it
    from there, I get a windows popup asking me for username + password
    + domainname.
    any ideas please?

  • Problems with downloading, installing, or using Flash Player

    For quicker resolution to your problems related to Flash Player, use the Flash Player forum (http://forums.adobe.com/community/flashplayer/installing_flashplayer?view=overview)

    Or http://forums.adobe.com/community/flashplayer/using_flashplayer?view=discussions

  • Do any one have problem with installation of the latest Flash player?

    After trying to install the latest version of the Adobe Flash player unsuccessfully, I would like to install any functional Flash player that could watch videos in the financial websites, such as in Yahoo! Finance.  Any assistance provided is very much appreciated.
    Danny

    http://forums.adobe.com/thread/1195540

  • IDLE event problem with newer versions of the flash player

    Greetings,
    I have an issue that seems to be related to newer versions of the flashplayer in how they handle IDLE events. I have an IDLE event handler that works as expected with flashplayer version 10.0.45.2. With flashplayer 10.2.153.1, the IDLE event does not fire when my flex application is not in focus (browser minized, different browser tab in focus,etc...). Or when it fires, it's usually after a longer lag than normal. Has anyone experienced this issue? Thanks

    Thanks for the reply. Are there any fixes/workarounds for this issue? Say I have a need to create a timer that fires every 10 minutes regardless of whether the player is in focus or not, how do I implement such a timer? Same goes for the IDLE event, I want to be notified if the application has been idle for X minutes regardless of whether it's in focus or not.Prior to 10.2 (and per your reply, 10.1), this all worked fine in flex without needing to adjust for the player being in focus.

  • Problems with sound when using adobe flash player

    It seems that we have some issues with the sounds of the uploaded videos. I have uploaded some videos directly on our website http://yoananin.com/ but many people complained that  they can not hear the sound  Can anyone help?

    To give you any useful advice, I'm going to need to know more about your computer and browser:
    https://forums.adobe.com/thread/1195540

  • Permission Problem when trying to Installation Adobe Flash Player

    I'm having a problem installing the Adobe Flash Player in Windows 7 because I'm getting the now infamous message that there is not permission to install; however, mine is a bit different.
    I used to have Adobe Flash Player on my machine but it has disappeared, possibly inadvertently uninstalled.  Now, when I try to install the Flash Player, it appears to be almost done and then abruptly stops and gives the lack of permission message.  Note that I am NOT getting it installed and then it fails on a restart as most seems to do  ---  it won't install in the first place.
    Willing to try anything, I have downloaded and installed the subinacl.exe and the reset_fp.bat files in my Windows Resource Kits folder.  I try to run the reset_fp.bat file as Administrator (which I am) and the cursor changes to the hour glass and things are locked up.  I have to go to the Task Manager to end the process of Tools.
    Next, I can simply click on the reset_fp.bat file and it goes through the DOS looking screen with line of text running down like crazy but the bottom line after it stops says that the client does not have the proper permission.  Of course, that has not corrected my problem.  I do note that the first instruction in running that routine is "Install Adobe Flash Player" and that brings me back to my original problem  ---  I can't get Adobe Flash Player installed in the first place. .
    Anyone have any ideas  ---  I would be most appreciative.
    Jim B.

    Please try the offline installer:
    Internet Explorer:
    http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_ax.exe
    Firefox and other NPAPI browsers:
    http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player.exe
    If that doesn't work, make sure that your filesystem is in good shape:
    Check your hard disk for errors in Windows 7
    Then reboot the machine and try again. 
    If that doesn't work, please post your installer logs:
    Where do I find the Flash Player installation log on Windows?

  • Other problems with loading Captivate files into Flash AS3 project

    I have a Captivate file done with Captivate 3, published to
    Flash player 9 that is being loaded into Flash AS3. The captivate
    is a simple recording of some mouse clicks in a browser. I am
    displaying the playbar along the bottom, and its buttons all work
    fine except for the progress bar, where you can drag the knob and
    scrub back & forth in your presentation.
    This progress bar is not working as it should. I see the
    mouse cursor change to a hand, but when I click I cannot drag the
    knob to control the progress bar. The other buttons in the playbar
    do work (replay, pause, play, back, forward).
    This is a unique problem in that it is only happening when
    viewed in IE (7) when loaded into my Flash AS3 project. When viewed
    in Firefox in my project, or as a standalone SWF, or as a SWF
    simply embedded onto a plain HTML page, it works just fine.
    Does anybody have any insight?
    Another thing I notice with loading Captivate files with AS3
    is the the amount of output messages it displays. Rather annoying
    (unless this is a "feature" I've yet to be aware of - heh)

    Hi,
    I know exactly how you feel, there is simple answer; replace
    Captivate for Camtasia Studio 5 at techsmith.com. The weight on
    those shoulders will be gone! You'll smile more, be more
    socialable. One Happy Person.
    I am very happy person ;)
    Kind Regards,
    Boxing Boom

  • I'm having problems with 7.1 update my flash "flashes" now when I receive txt's and notifications! And I'm also having problems with freezing and wifi problems! How do I solve this?

    I'm having problems with 7.1 update my flash "flashes" now when I receive txt's and notifications! And I'm also having problems with freezing and wifi problems! How do I solve this?

    Doh! Rectified flash!
    But when face timing 2 seconds after it connects wifi disconnects? Any thoughts

  • Problem Report: Severe memory leak in Flash Player 9.0

    Summary
    Flash player 9.0 is prone to a severe memory leak when
    playing SWF files produced by Captivate 1 containing full-motion
    recordings.
    Versions affected
    The problem reproduces with Flash player 9.0 (Flash9.ocx,
    Version 9.0.16.0) hosted in either Internet Explorer 6.0 or Mozilla
    Firefox 1.5 on a Windows XP SP2 system.
    The problem does not reproduce with Flash player 8.0
    (Flash8.ocx, Version 8.0.22.0) in the same environment.
    Description
    After a few minutes playing a SWF file produced by Captivate
    1 containing a full-motion recording recorded with Captivate 1, the
    host browser ends up using more than a gigabyte of memory, and the
    playback of the movie slows down to a halt, together with
    responsiveness of the whole system.
    Impact
    Our organization develops E-learning content with Captivate 1
    for various customers, mostly Fortune 100 companies.
    This bug severely limits our ability to deliver content to
    our customers.
    Steps to reproduce
    1. Using Captivate 1.01.1418, create a “blank
    movie” with default settings.
    2. Use the “Record” button and begin recording a
    full-motion movie for about 2-4 minutes. For the purposes of this
    bug, it is enough to record a user typing random text in a Notepad
    window resized to fit in the default 800x600 window.
    3. After recording the full-motion movie, publish the
    Captivate movie as a “Flash (SWF)” movie, using default
    settings (making sure that the “export HTML” checkbox
    is selected).
    4. Open the published movie’s HTML file with a host
    browser, making sure that the browser is using the Flash 9.0
    player.
    5. While the movie is playing, watch the memory usage of the
    browser process using Windows Task Manager, and you will see that
    the values of the “Mem Usage” and “VM Size”
    counters keep increasing until the system becomes unusable.

    Also see:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=44&catid=184&threadid =1249396&enterthread=y
    Flash is generating around 300 page faults per second per
    flash animation
    Performance
    issues: page faulting
    Flash is also generating around 300 page faults per second.
    This can be observed by following the instructions in the link
    above for displaying page faults in the system task manager.

  • Problem Installing older version of Adobe Flash Player Activixe (example vers.10 to 9)?

    Hello everyone, I have the problem that I do not know how to install an older version of Flash ActiveX, since trying to install version 9, or even 10.0
    .45, the error that comes out is not a recent version, and does not allow you to continue with the installation, prompting you to go to the site and download the latest one.
    The Flash Player Plugin installed, but only with that will not start the program that I want to start ..
    Before you install and uninstall the previous version of the ActiveX plugin, make sure there is no file flash.ocx (which are usually in C: windows/system32/macromed/flash), disconnect the computer from the Internet, all gate installation files of the most recent flash, everything from the pc, temporary reboot, install the older version but I always leave that mistake, I can not install older versions of Flash.
    I have to install older versions of flash10 eun to start the program, but I can not continue. Someone can suggest how to install a previous version of flash blessed ..?
    Thank you all, Merry Christmas and Happy New Year ... a little early.: (
    See if you can figure out how do they install?
    Giorg

    Before installing an older FP version you must completely uninstall your current version.
    download the unistaller from http://kb2.adobe.com/cps/141/tn_14157.html
    close all browser windows and run the downloaded uninstaller
    restart Windows
    delete any remaining files in C:\Windows\system32\Macromed\Flash or C:\Windows\syswow64\Macromed\Flash (64-bit)
    install the old FP version
    P.S. why do you want to install an old Flash Player?

  • Windows XP with IE8 will not load Flash Player

    I have been trying for about 1 month to download Flash Player. When I down load it it ends with installation error. When I send error report and I get a response it says an application error.Besides me who has a problem; Adobe, Windows, or IE8? Can anyone tell me?

    Hi, To whom are you sending an error report? Go to this Troubleshooting Guide and page down until you see the various errors?
    Which error are you receiving?
    Also were you following the Uninstall/Install procedures from that Guide? If not, what Adobe site were you using?
    Thanks,
    eidnolb

  • Need assistance with uninstalling previous version of Flash Player.

    I am using SCCM to first deploy the unistall, then a new config file, and finally the install of Flash Player 11.8.800.xx.  With the last few versions of Flash Player, the uninstall command line is failing with a 1003 error.  I have tried uninstall_flash_player.exe -uninstall and also tried the switch /silent and no switch at all.  Same error.   These steps have worked in the past.  If I run the execute manually it works.  Any suggestions for a working silent uninstall command line for use with SCCM?  My test systems consist of win7-32 bit and 64 bit and Vista.  All error with 1003.

    The uninstaller I used the first time was downloaded in June.  I had problems with it.  The product version on the uninstaller was 11.7.700.224.  Today under your suggestion, I downloaded the uninstaller again and it is for product version 11.8.800.94.  If I was removing Flash Player 11.7.700.169 wouldn't either version work for me?  Today's version did work after updated my package and used the -uninstall switch on my first test system.  Trying it on a couple more machines.

  • Mac Firefox has a problem with dropdown menus over a flash

    I have notice a problem over the last couple of months when
    using drop down menus from P7, and Quckmenu. The drop down menus
    appears to clip any flash movies below them when using transparent
    settings in css. The recent case the transparent settings where
    apply as following: The wmode of the flash movie set to
    transparent, no problem with flash covering the menu. #qm0 is my
    sub container for the drop down. When commenting out the
    transparent settings, no problem on the Mac. The Firefox browser is
    2.0, and the Mac OS is OS 10, Flash Player 9. I am thinking this is
    Adobe Flash player problem.
    #qm0 div a
    color:#000000;
    padding:2px 20px 2px 5px;
    border-right: 1px solid #000000;
    border-left: 1px solid #000000;
    border-top: 1px solid #000000;
    background-color: #f9f9fb;
    filter:alpha(opacity=90);
    -moz-opacity:0.90;
    -khtml-opacity: .90;
    opacity: 0.90;
    My temp work around is to check the http_user_agent for Mac.
    If is a Mac, no transparent menus.
    David Pearson

    Some gestures have been removed in Firefox 4.
    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.latched -> <b>false</b>
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

Maybe you are looking for

  • I want add new column in matrix in "Inventory Transfer" Form (System Form)

    hai, i want to add new column in Matrix in "Inventory Transfer" Form (System Form) Is it possible or not? bye gopinath

  • CIN tab in MK02

    Hi, I added User name in Log general-Tax on goods moment and Master data and also CIN tab comming in MK02.But if Click CIN Details in MK02(MK01) system not opening any data. But in XK02(XK01)is opening why not in MK02?,is there any setting is require

  • List box printing query

    Hi all! I have just started using Adobe Acrobat Pro 9, and am trying to use list boxes. The problem I'm having is this: Say I create a list of 20 options, allow mulitselect, and select 5 of them. Is there any way to set it up so that when you print,

  • How to activate inventory procedure

    In LS06 of some of my bins i view IA as X. I don't know how it has come to remove that what we have to do. Inventory procedure is activated for that bins. How it has happened ? How to deactivate

  • Utilities Fail to Work..Reformatting necessary

    today i have discovered that some of my utilities dont work, or are just plain missing for the computer.. 1.grab is missing. 2.disk utility will not open. and some of my other files are missing too. i think i need to reformat immediately. but i don't