MouseEvent.MOUSE_WHEEL requires CLICK?

I have the following code:
import flash.events.MouseEvent;
import flash.events.Event;
var mouseWheel_mc:MouseWheel_mc = new MouseWheel_mc();
var over:Boolean=true;
addChild(mouseWheel_mc);
mouseWheel_mc.x=stage.stageWidth/2;
mouseWheel_mc.y=stage.stageHeight/2;
this.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
function mouseOverHandler(e:Event):void{
over=true;
mouseWheel_mc.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
trace("button not down");
function mouseWheelHandler(e:MouseEvent):void{
if(e.delta>0){
mouseWheel_mc.nextFrame();
}else{
mouseWheel_mc.prevFrame();
there is a MovieClip named mouseWheel_mc which is being called at runtime from the library with 30 frames in it, sequential animation frames.
I would like the MouseWheel motion to play these frames forward or backward depending on which direction the mousewheel is being pulled or pushed.
Everything works just fine, but the problem is that the event won't start until you actually click in the SWF window (inside).  I thought I could remedy that by using an Event.INIT or Event.ACTIVATE call but neither of those remedy the situation.
How can I get the event to fire once the SWF is in the browser without having to first click within the SWF?

You have to first get focus to your Flash.
You can do that with Javascript:
look:
http://www.google.com.tr/#hl=tr&source=hp&biw=1276&bih=879&q=javascript+set+focus+on+flash &aq=f&aqi=&aql=&oq=&fp=1f7c93fabee6acda

Similar Messages

  • MouseEvent.MOUSE_WHEEL gets incorrect stageX and stageY in Flash Player 17.0.0.134 and Windows 8.1

    I developed a Flash Player swf application with Flash Builder 4.7 (64-bit) before and it has worked well before Flash Player version <= 16. Recently, I updated to Windows 8.1 with Internet Explorer 11 and Flash Player 17.0.0.134.
    It is strange that stageX and stageY in MouseEvent.MOUSE_WHEEL gets the position of the whole web page other than that of swf stage, But it works well in Windows 7 with FP 17.
    Another problem is BitmapData.setVector() doesn't work normally when the DPI of screen is set to 125%, even in Windows 7 with FP 17, but it works in FP16 before.
    By the way, it is interesting that all the above works well in Firefox with FP 17 even in Windows 8.1.
    Does anyone encounter this problem? Is there some workarounds on that?

    Internet Explorer has a unique Flash Player release from Firefox, so it is probably a new bug unique to that IE release. Have you tried this on more than 1 machine? If so, I would say report a bug about it.
    https://bugbase.adobe.com

  • AdvancedDatagird to ignore MouseEvent.MOUSE_WHEEL events

    Hi,
    Is there a way to get a  AdvancedDatagird to ignore MouseEvent.MOUSE_WHEEL events?

    Both these don't work sorry
    <mx:mouseWheel>
                             <![CDATA[
                              public function ignoreMouse(event:MouseEvent):void {
                              event.stopPropogation();
                              event.preventDefault();
                             ]]>
                         </mx:mouseWheel>
         <mx:mouseWheel>
                             <![CDATA[
                             function ignoreMouse(event:MouseEvent):void {
                              event.stopPropogation();
                              event.preventDefault();
                             ]]>
                         </mx:mouseWheel>

  • "sign-in required, click continue and sign in to check for downloads".

    On trying to access the ITunes store or ITunes in general, I keep getting a pop-up window stating "sign-in required, click continue and sign in to check for downloads". Itunes then doesn't recognise the sign in attempt and the pop-up appears again. Has anyone seen this and have any thoughts or advice?

    Contact Apple for help with Apple ID account security

  • Mozilla requiring click to run jre 6 or  7 currently

    https://blog.mozilla.org/security/2013/01/11/protecting-users-against-java-vulnerability/
    "Mozilla is aware of a security vulnerability in the current version of Java (Java 7 Update 10) that is being actively exploited and affects any browser using the Java plugin."
    "There is no patch currently available for this issue from Oracle. To protect Firefox users we have enabled Click To Play for recent versions of Java on all platforms (Java 7u9, 7u10, 6u37, 6u38). Firefox users with older versions of Java are already protected by existing plugin blocking or Click To Play defenses."
    Well I don't see why they are requiring click to play with the jre 6 but they are. Thing is there are a lot of ways to
    call IE such as via MS Office as discussed here:
    http://www.kb.cert.org/vuls/id/625617
    So next month will be the last month that jre 6 users will get free updates and then we have to get jre updates
    from oracle support, right? Unfortunately the jre 7 is just not maturing properly. We need the jre 6 to continue!

    Note that oracle has released the jre 7u11 to patch the version 7 problems:
    http://www.oracle.com/technetwork/java/javase/downloads/index.html
    BTW I don't think the vendor took very long to fix this particular bug, it's just that there is a succession of them that has unfortunately greatly weakened the credibility of the 7 lineage. If only we could get some control over some aspects of this! Running forms as applets in browsers has too many points of failure. The browser can at any time suddenly decide to block or partly block launching applets, like mozilla click blocking 6u38 just because maybe the version 7 bug was more widespread as they said here:
    https://blog.mozilla.org/security/2013/01/11/protecting-users-against-java-vulnerability/
    "Why are you blocking the jre 6u38? I thought only 7 was vulnerable to these problems."
    "We are being extra cautious to ensure all users are protected in the event the scope of the vulnerability is larger than the initial reports have indicated. We are erring on the side of caution."
    Most browsers now autoupdate on their own so there is no telling what they may decide to do at any time. Mozilla has consistently for months refused to recognize the jre 6 lineage as valid and tries to get the users to upgrade to 7 which doesn't work with our forms due to the vendor having changed the vendor name in the jre.
    As you can see here Mozilla will not recognize 6u38 as a valid version of java and it has not even hit the end of life yet:
    https://www.mozilla.org/en-US/plugincheck/
    After february 2013 I fear firefox will totally block the jre 6 even if we keep getting up updated via oracle support. I don't know any browser that will accept more than one jre plugin at a time so it's not possible to run jre 6 requiring applets and jre 7 requiring applets. One would wish the vendor was working with the browser providers and solving some of these problems!
    Edited by: lake on Jan 14, 2013 8:51 AM

  • Arrow KEYS required click LMB

    Hi everyone,
    I've got a problem with my script. In first frame I have 3 image:
    First image = go to frame 2
    Second image = go to frame 3
    Third image = go to frame 4
    I can use arrow keys (left/right) to go  from frame 1 to frame 2 (example). But when I click in first frame (frame with 3 images) on image, for example 1, script go me to frame 2, I must first click LBM inside my swf, so that use arrow keys left/right.
    My script in frame 1.
    qrPA.addEventListener(
        MouseEvent.CLICK,
        function(e:MouseEvent):void
            gotoAndPlay(2);
    qrKM.addEventListener(
        MouseEvent.CLICK,
        function(e:MouseEvent):void
            gotoAndPlay(3);
    qrGK.addEventListener(
        MouseEvent.CLICK,
        function(e:MouseEvent):void
            gotoAndPlay(4);

    try adding
    stage.focus=this;
    on your main timeline.

  • Problem in mouseClicked(MouseEvent e) on click of JComboBox

    mouseClicked() is not called when i click the JComboBox after adding the MouseListener. Please help me.

    I am trying to load a set of data from database and display it in the ComboBox as and when the user clicks the ComboBox. My aim is to update the data when the clicks the combobox. I will give the piece of code here...
    public class .....
    private JComboBox _dataSetNameCombo;
    private MyMouseListener myMouseListener = new MyMouseListener();
    _dataSetNameCombo = new JComboBox(dataSetVector);
    _dataSetNameCombo.setSelectedIndex(0);
    _dataSetNameCombo.addMouseListener(myMouseListener);
    // Inner class for Mouse Listener
    class MyMouseListener implements MouseListener {
    public void mouseClicked(MouseEvent e) {
    System.out.println("MouseClicked");
    Vector temp = new Vector();
    // Database Query is called here
    temp = getDataSetNames(_conn.getConection());
    temp.add(0, "<Auto> ");
    DefaultComboBoxModel cbo2NewModel = new DefaultComboBoxModel(temp.toArray());
    _dataSetNameCombo.setModel(cbo2NewModel);   
    _dataSetNameCombo.removeMouseListener(myMouseListener);
    public void mouseEntered(MouseEvent e) {
    System.out.println("mouseEntered");
    public void mouseExited(MouseEvent e) {
    System.out.println("mouseExited");
    public void mousePressed(MouseEvent e) {
    System.out.println("mousePressed");
    public void mouseReleased(MouseEvent e) {
    System.out.println("mouseReleased");
    But, I am unable to see the message "MouseClicked" which is inside the method mouseClicked. Instead, the lister is calling mouseEntered() and mouseExited().
    Let me please know if you need any other details

  • When NOT using icons on the toolbar, side-bar drop-down for additional toolbar items has disappeared with Firefox 4 and accessing these items requires clicking 'Bookmarks', then 'Show all bookmarks' then 'Toolbar'--ugh, what a pain.

    On older versions of Firefox, Toolbar links ran across the top of my screen, with a drop-down to the far right which would show additional Toolbar items for which there was not room on the screen.
    With Firefox 4, if I'm not using icons (text only), the dedicated Toolbar drop-down is gone and I have to first click 'Bookmarks' to the right of the Toolbar ribbon, then 'Show All Bookmarks', then 'Toolbar' in order to access my additional Toolbar links. Could anyone have made it any harder?
    Why doesn't someone just restore the drop-down at the far right of the Toolbar so that all of my Toolbar items (which I prefer to keep separately from the regular Bookmark items, else I would have just plain bookmarked those items in the first place) are readily accessible?

    You see the orange (on Linux gray) Firefox button if the Menu Bar is hidden (View > Toolbars > Customize or right-click a toolbar).<br />
    If you need to access the hidden Menu bar then press F10 or hold down the Alt key to make the Menu Bar appear temporarily.<br />
    You only see the Bookmarks menu button if the Menu bar is hidden.

  • Firefox requires clicking "Allow" to view one screen in cloud-based database

    When using Firefox (but not Windows) in a cloud-based database (SaaS) for facility scheduling, one particular screen (in a series of screens needed for each reservation) will not load until I click the "Allow" button every time. This is enough of a nuisance that I want to tell Firefox to trust everything on the url, my.serviceu.com/. I'd like to know how to do this. I only have this problem when using the system on Firefox, not MS Explorer, but the system is written to run best on Firefox.

    Do you mean this?
    *Firefox > Options/Preferences > Advanced > General Accessibility [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.org/kb/settings-network-updates-and-encryption#w_general-tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Boot stops and F2 requires clicking to proceed and sound doesn't work

    I recently updated my 3000 J205 desktop to Win 7..generally works Ok but on booting up the process stops and informs me that I need to press F2 to continue or F1 for setup. I've gone into setup and the boot order seems OK..(HD first)
    Also I cannot get sound to work..I hear the beeps at boot up but nothing thereafter.
    Mac

    For your sound you may want to check this site..
    http://www.ma-config.com/en/services/60_find-the-drivers.html ..
    Cheers and regards,
    • » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
    ●๋•کáŕádhí'ک díáŕý ツ
    I am a volunteer here. I don't work for Lenovo

  • MouseEvent not firing on DisplayObject click in AS only project in Flash Builder 4

    Hello,
    I'm having difficulty getting MouseEvents to fire in an ActionScript only project. It doesn't make any sense to me. My code is below and this object is the top most object on the stage.
    var click:Sprite = new Sprite();
    click.name = 'clickLayer';
    click.mouseEnabled = true;
    click.addEventListener(MouseEvent.CLICK, mouseClickHandler);
    addChild(click);
    function mouseClickHandler(e:MouseEvent):void{
    trace('click');
    var url:String = loaderInfo.parameters.clickTag;
    navigateToURL(new URLRequest(url), '_blank');
    My class extends Sprite.
    Everything else works fine. Something I found strange is that TextFields will fire MouseEvents when clicked if I add the EventListener, but not DisplayObjects.
    Thanks for your help.

    I just made the width & height the width & height of the container (Sprite), but still nothing.
    I also tried adding a "container" sprite to the main stage, and adding everything to that sprite - but that sprite won't instantiate and doesn't show on the stage, meaning anything added to that sprite doesn't show either.\
    Also: I've tried adding MouseEvent listeners to every display object I add to the stage and nothing will fire MouseEvents except TextFields.

  • Loading swf with XML on Click

    Hi all, can anyone help
    can anyone shine a little light onto a little confusion I am having, I have a menu that already loads in images via an XML file on a menu, what I am trying to do is when an image/meni Item is click I would like to load in an swf into the same place as the image Item loads into! am I making any sense.
    on a click event, do I use in the XML file the <link>link to swf</link>   ????
    this is what I have in my xml file that loads in the images so far;
    <image name="image 12" path="img/img12.jpg"
    title="Lorem ipsum 12"
    text="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo 12" />
    what I am getting confused with is what I also put within the AS, I am sure it is not alot but I'm just not sure what needs to go where??
    this is what I have within the AS that loads in XML, I hope its ok to paste this code, never like posting to much code incase is scares people off, I just don't want to leave anything out, hope thats ok with everyone:eek:
    // Use URLLoader to load XML
    xmlLoader = new URLLoader();
    xmlLoader.dataFormat = URLLoaderDataFormat.TEXT;
    // Listen for the complete event
    xmlLoader.addEventListener(Event.COMPLETE, onXMLComplete);
    xmlLoader.load(new URLRequest("data.xml")); 
    stage.addEventListener( MouseEvent.MOUSE_WHEEL, onMouseWheel );
    //———————————————EVENT HANDLERS
    private function onXMLComplete(event:Event):void
    // Create an XML Object from loaded data
    var data:XML = new XML(xmlLoader.data);
    // Now we can parse it
    var images:XMLList = data.image;
    for(var i:int = 0; i < images.length(); i++)
    // Get info from XML node
    var imageName:String = images[i].@name;
    var imagePath:String = images[i].@path;
    var titles:String = images[i].@title;
    var texts:String = images[i].@text;
    // Load images using standard Loader
    var loader:Loader = new Loader();
    // Listen for complete so we can center the image
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImageComplete);
    loader.load(new URLRequest(imagePath));
    // Create a container for the loader (image)
    var holder:MovieClip = new MovieClip();
    holder.addChild(loader);
    var button_main:Button_mr = new Button_mr();   /
    holder.addChild(button_main);               
    var tooltip:ToolTip = new ToolTip();
    tooltip.field.text = titles;  //loads tooltip 1
    tooltip.field2.text = texts;  //loads tool tip 2
    tooltip.x = -350; 
    tooltip.y = 0;   
    holder.addChild(tooltip);
    // Same proceedure as before
    holder.buttonMode = true;
    holder.addEventListener( MouseEvent.CLICK, onMenuItemClick );
    // Add it to the menu
    circleMenu.addChild(holder);
    many thanks for any help!!!!

    1. Be sure in main.swf there is no masking or layering hiding
    the reflection area. A way to test quickly is to load in a plain
    master swf that is much larger than the externals swf.
    2. Know the weakness of loadMovie for timing issues that
    require the external movie to be fully loaded before actions are
    taken on it. I see a bunch of these in the code you posted. Best to
    use
    MovieClipLoader.onLoadInit
    before you attempt to access the external swf properties or code or
    add code.
    3. Be sure the code is firing on load and all objects are
    created. Add some trace statements for those objects.
    4. I noticed you do not use BitmapData so this may not be
    relevant but be sure to add
    System.security.allowDomain("*");
    to the main.swf as well as in external swfs and only if you
    are using the BitmapData class.
    5. As I started to look at the code a bit and noticed this
    item:
    There is no constructor for the Flash MovieClip class. You
    will not see a compiler error message because you do not have the
    code wrapped into a class.
    var home:MovieClip = new MovieClip();
    However it does not have impact on the code.
    better would be
    var home:MovieClip;

  • I have problem when opening a pdf page, my mouse control is hijacked to that tab when im on other tab, i cant scroll or use the middle rollling button, i have to click at the pdf tab then my control over the mouse middle button is restored.

    I think I have this problem even on earlier version. The thing is I set open link in new tab and not switch over to the opened tab. My habit is to open a pdf page in the background and let it load first. What happen is that when the pdf page finished loading ( i do not set to download it), it hijacks my middle mouse button control. When i scroll down or scroll up on my original tab, it wont scroll on the tab, but insttead it scrolls on the pdf tab. I have to click on the pdf tab, then i can use the scrolling function on other tabs back. As for when i opened several pdf tabs, it seems i have to click on the tab that just finished loading, that means several times until they all finish loading. It has been getting on my nerve lately. And all pdf trouble i search from google led to unable to open pdf, firefox hang or crash when opening a pdf and the likes.

    core-el, i don't see the advantage of that or i can't figure out how i'm supposed to use it. for starters, i have to click the mouse in order to get "add bookmark here" to open, which is no different than clicking on the star in the location bar, or right-clicking on the page. there are also options in the bookmarks toolbar, but they all require clicking the mouse & holding down the right button, etc.
    my goal is to use keystrokes only. typing on the keyboard, using both hands, using the space bar & my left pinky finger to tab over are all painless routines for me. as soon as i have to take my fingers off the keyboard & use the mouse, the pain begins.
    as i said, in older versions of firefox, all i had to do to bookmark a page was click ctrl>d, then tab over & arrow down, when appropriate, to find the folder & add the bookmark. for me, as a touch-typist whose speed is between 60 & 80 wpm, this is lightning fast.
    if i have this wrong, please correct me. i just see it as more mouse clicks that don't save me time or pain.

  • Click the lock to make changes is not working. Lion 10.7.2

    I cannot make any preferences' changes that require clicking on the lock. When I try to click on the lock it simply does nothing and remains locked. I've tried doing a permission repair using disk utility and I cannot create another admin account because that requires opening the lock in Users&Groups. Also, when I login into root, then the lock is also locked.
    The problem began when I updated to Lion.
    I've had no luck finding a solution in forums.

    i have the same issue,
    summary : at mine clicking the lock at any kind of program does not work at all, not working in system pref,
    not working at ''get info'' window, not working in any other kind of lock, i tried defragging via idefrag but that couldn't work because it needed a lock to be opened as well, i can't move my files to some folders, getting the ''The operation can’t be completed because an unexpected error occurred (error code 100022).''
    plus when i log out, cannot log in because when i type my password it accepts it but then nothing happens, i had a root account as well but i can't enter it and can't create again because of the lock, but when i log in with guest account(no pass required) i can make changes via clicking the lock and filling in admin username and password in system preferences. and i created a new admin account in guest account by filling admin info for authorization in system preferences > users&groups , set no password, logged out but could not log into that account as well. my system is set to login to my account when the system starts.
    so this is what i get with the clean display in console, opening system pref, then clicking users&groups, then clicking the lock. this is system.log
    Jun  6 04:46:06 idiyot System Preferences[4902]: kCGErrorIllegalArgument: CGSDeviceCreate: Invalid window
    Jun  6 04:46:06 idiyot System Preferences[4902]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jun  6 04:46:06 idiyot System Preferences[4902]: Failed to create window context device
    Jun  6 04:46:06 idiyot System Preferences[4902]: CGWindowContextCreate: failed to create window context delegate.
    Jun  6 04:46:06 idiyot [0x0-0x90090].com.apple.systempreferences[4902]: Jun  6 04:46:06 idiyot.local System Preferences[4902] <Error>: Failed to create window context device
    Jun  6 04:46:06 idiyot [0x0-0x90090].com.apple.systempreferences[4902]: Jun  6 04:46:06 idiyot.local System Preferences[4902] <Error>: CGWindowContextCreate: failed to create window context delegate.
    Jun  6 04:46:06 idiyot System Preferences[4902]: _initWithWindowNumber: error creating graphics ctxt object for ctxt:0x16bdb, window:0x0
    Jun  6 04:46:06 idiyot System Preferences[4902]: CGPixelAccessLock failed!
    Jun  6 04:46:07 idiyot System Preferences[4902]: Error loading /Library/Audio/Plug-Ins/HAL/TASCAM_US122L_US144.plugin/Contents/MacOS/TASCAM_US 122L_US144:  dlopen(/Library/Audio/Plug-Ins/HAL/TASCAM_US122L_US144.plugin/Contents/MacOS/TA SCAM_US122L_US144, 262): no suitable image found.  Did find:
                        /Library/Audio/Plug-Ins/HAL/TASCAM_US122L_US144.plugin/Contents/MacOS/TASCAM_US 122L_US144: no matching architecture in universal wrapper
    Jun  6 04:46:07 idiyot System Preferences[4902]: Cannot find function pointer CreateAudio for factory DB8AEA2A-E42F-11DA-B71D-000A95B009DC in CFBundle/CFPlugIn 0x400b38f00 </Library/Audio/Plug-Ins/HAL/TASCAM_US122L_US144.plugin> (bundle, not loaded)
    then after, i do the same with var/log/secure.log
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in od_record_check_pwpolicy(): retval: 0
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in od_record_attribute_create_cfstring(): returned 2 attributes for dsAttrTypeStandard:AuthenticationAuthority
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Establishing credentials
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Got user: alicankaralar
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Context initialised
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Got euid, egid: 0 0
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done getpwnam()
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done setegid() & seteuid()
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): pam_sm_setcred: krb5 user alicankaralar doesn't have a principal
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done cleanup3
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done seteuid() & setegid()
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done cleanup4
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): pam_sm_setcred: ntlm
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): pam_sm_setcred: no domain found skipping
    Jun  6 04:48:29 idiyot com.apple.SecurityServer[29]: UID 501 authenticated as user alicankaralar (UID 501) for right 'system.preferences.accounts'
    i tried repairing disk, permissions, both in system and recovery volume, and i just upgraded to 10.7.4, but the problem was present in 10.7.3, i noticed it two days ago and i just upgraded hoping that would solve the problem.
    edit: i have found out that my problem is best described here, not the real concern of the OP but at the 4th option they say its a netinfo database problem, and diagnostics are the same problems that occur to me of that option but the system they're talking about is 10.1.5, i guess things have changed since then, but the problem is the same . http://macosx.com/forums/mac-os-x-system-mac-software/20630-cant-click-click-loc k-make-changes-button-when-installing.html
    hope you can help
    thanks in advance

  • How to trigger a MouseEvent from TLF, my test doesn't work

      Hi,
          I run into a problem while using the Listener of TLF,
          Inside  the  TextFlow,  I have several Paragraphs.
          What I wish to accomplish is to trigger a mouse Event, like ROLL_OVER, ROLL_OUT event , when  my mouse is over a on one of the Paragraphs.
          I used to experiment a while , but never seem to work, just the examples below
          _textFlow.addEventListener(FlowElementMouseEvent.ROLL_OUT,onMouseHandler);
          _textFlow.addEventListener(FlowElementMouseEvent.ROLL_OVER,onMouseHandler);
           ///   which doesn't work.         i need the event response ,so i can manipulate the paragraph
    private function onMouseHandler(e:FlowElementMouseEvent):void
         trace("onMouseHandler" +  e.type  );
         var para:ParagraphElement = e.flowElement.getParagraph();
         trace(para.textLength);
    Thanks  in   advance!!!

       this is the code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="http://www.adobe.com/2006/mxml"
       creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flashx.textLayout.container.ContainerController;
    import flashx.textLayout.conversion.TextConverter;
    import flashx.textLayout.elements.TextFlow;
    import flashx.textLayout.events.*;
    import flashx.textLayout.elements.SpanElement;
    import flashx.textLayout.elements.InlineGraphicElement;
    import flashx.textLayout.elements.ParagraphElement;
    import flashx.textLayout.elements.TextFlow;
    import flashx.textLayout.elements.FlowElement;
    import flashx.textLayout.tlf_internal;
    private var _textFlow:TextFlow;
    private var textSprite:Sprite;
    private var backgroundSprite:Sprite;
    var source:XML = <TextFlow xmlns="http://ns.adobe.com/textLayout/2008">
    <div></div>
    <p>
    <img source="air.png"/>
    <span>Flex is a highly productive, free open source framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops, and operating systems. While Flex applications can be built using only the free Flex SDK, developers can use Adobe® Flex® Builder™ 3 software to dramatically accelerate development. Try Flex Builder 3 free for 60 days. Try ILOG Elixir to enhance data display in your Flex applications.</span>
    <br/>
    </p>
    <div></div>
    <p>
    <span>Adobe® Flex® 3 是用于构建和维护在所有主要浏览器、桌面和操作系统一致地部署的极具表现力的 Web 应用程序的高效率的开放源码框架。 可以使用免费的 Flex SDK 构建 Flex 应用程序, 开发人员可以使用 Adobe Flex Builder™ 3 软件来显著促进开发。 60 天内免费试用 Flex Builder 3</span>
    <br/>
    </p>
    <div></div>
    </TextFlow>;
    private function init():void
    backgroundSprite = new Sprite();
    canvas.rawChildren.addChild(backgroundSprite);
    textSprite = new Sprite();
    canvas.rawChildren.addChild(textSprite);
        _textFlow = TextConverter.importToFlow(source, TextConverter.TEXT_LAYOUT_FORMAT);
    _textFlow.fontFamily = "Georgia, Times";
    _textFlow.fontSize = 16;
    _textFlow.columnCount = 2;
    _textFlow.columnGap = 30;
    _textFlow.columnWidth = 320;
    setListenerOnParagraph(_textFlow);
    _textFlow.flowComposer.addController(new ContainerController(textSprite,canvas.width,canvas.height));
    _textFlow.flowComposer.updateAllControllers();
    import flashx.textLayout.tlf_internal;
    private function setListenerOnParagraph(textFlow:TextFlow):void
    use namespace  tlf_internal;
    for(var i:int =0;i < textFlow.numChildren;i++)
        var para2:FlowElement = textFlow.getChildAt(i);
       if(para2 is  ParagraphElement)
         para2 = para2 as ParagraphElement
         trace("paragraph:"+para2.textLength);
         para2.tlf_internal::getEventMirror().addEventListener(MouseEvent.CLICK, regionClickHandler);      //  wrong here
    public function regionClickHandler(evt:MouseEvent):void {
    trace("click");
    ]]>
    </mx:Script>
    <mx:Canvas width="614" height="321" x="30" backgroundColor="#FDFBFB" id="canvas">
    </mx:Canvas>
    </mx:WindowedApplication> 

Maybe you are looking for

  • My computer is no longer allowing me to import video from my Sony HDR camera.

    My computer is no longer allowing me to import video from my Sony HDR camera.  I don't know if it is the operating system or the version of imovie or what.  I also have imovie 06 and I was always able to import into it and can no longer do that eithe

  • Can I save my files to a flash drive?

    How can I save my files to a thumb drive?

  • Posting to Internal order

    Hi, I am trying to post transaction in f-02 for internal orders i created. But it's giving a message that " Cost/Profit center XXXXXXXX is not valid for Account XXXXXXX ( This is my Cost Element ) in FI ". Could some one help me out thanks for a earl

  • SelectBooleanCheckbox in Map or Array?

    Hi guys, Anybody has example on putting selectBooleanCheckbox in a Map/Array in backing bean so that in JSP page we don't need to put it like 1 by 1. For example, if I got a list of 5 facilities for selectBooleanCheckbox, I don't need to do it like t

  • Mobile hotspot drops connection when call comes in

    When my laptop is connect to internet via mobile hotspot on my pre I can't receive calls on the phone without loosing the internet. Is this normal? The hotspot connection stays on, but I can't work on the internet during a phone call. Post relates to