Loader event not firing - Actionscript 3

Hi,
I have found that Event.COMPLETE doesn't get dispatched in IE
6 or 7 on a PC, but does in Firefox and the Flash authoring
environment.
I would like the swf to declare when it has completed
loading. The code is below. SImply put it into frame 1 of the main
timeline and publish it.
In Flash and Firefox it will say 'Initiated' and 'Completed'.
In IE it will just say 'Initiated'.
Could somebody give it a try - it's very confusing.
Thanks.
var debugText:TextField = new TextField()
addChild(debugText)
var onEvent = function (event:Event):void
trace(event.type)
debugText.text += event.type + "\r"
loaderInfo.addEventListener(Event.INIT, onEvent);
loaderInfo.addEventListener(Event.COMPLETE, onEvent);

Thanks for checking it.
I've removed the Event.COMPLETE listener altogether now and
started using a timer to check if the loaderInfo.bytesLoaded ==
loaderInfo.bytesTotal, and if it does then it manually calls the
onComplete function.
Having just started porting work from AS2 to AS3 and hitting
a major issue like this at the first hurdle is not encouraging
though.

Similar Messages

  • WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help

    Hi Grant,
    WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help..
    I need a help from you.
    1) I have developed an form to browse the client machine and upload the file on server / table
    2) Registered the form in Oracle Apps 11.5.10.
    3) Currently i am able to open the File_Dialog and browse throught the clients machine
    But when ever user selects any file and says Open, i am not able to retrieve the file name. wHEN-CUSTOM-ITEM-EVENT is not
    firing. I am sure how we can invoke this CUSTOM-ITEM-EVENT.
    To devlop the form i have referred PERWSIMG.fmb - of Oracle (Apps) HRMS which uploads the employee photo in the Database.
    Hence i have used the same java code / Implementaion Class.
    Please help...
    Regards
    Sameer

    Hi Francois,
    You were right. I re-loaded the zip file and the original version works. Odd, as I don't remember ever modifying those files.
    But my original issue still remains.
    The only code I've added is this:
    Color mycolor = this.getBackground() ;
    setBackground(mycolor);to the CalendarFrame constructor. How could this be causing the trigger to not fire?
    Could it be the way I created the bean? I copied all the java files to my project, attached the libraries, created a deployment profile. Everything compiles without errors or warnings, and the jar is created without issues. The java console doesn't give any errors either.
    Thanks for all your help,
    A
    Edited by: Abigail Parmar on Mar 26, 2009 1:01 PM

  • CS Extension, Script UI and events not firing in Photoshop CS5

    Hi!
    I'm a bit confused with two technologies dealing with SWF panels. There was a technique in the previous versions of Photoshop when SWF content has been loaded into a ScriptUI Window. Is it changed? Or does it still work together with CS Extension extensions?
    I have a script that creates ScriptUI Window and then loads an SWF into it. It has a custom 'mousemove' event listener that helped to move this window around the screen. Now - in the new Photoshop CS5 (I tried 12.0.1 as well) - it seems like the 'mousemove' event is not fired for ScriptUI windows containing SWFs.
    I'm not sure, maybe it has something to do with the new SWF treament in CS5?
    If I'm wrong, then I'm sorry, if this question doesn't fall into this forum's area of expertise.
    Thank you!

    10x,
    You saved my ***!
    It actually has to include both the PHSP "AND" the PHXS host names for it to work - this is stupid!
    If I only use PHXS the extension manager is not able to install the extension, saying it cannot find a host that matches the manifest (even though my photoshop IS the extended variation, so in a sense it's more acurate manifest-wise), and if I only use the PHSP, it IS loaded but doesn't appear in the application!
    AND THERE IS NO DOCUMENTATION ON THIS PHENOMENON ANYWHERE!
    THIS IS BEYOND IRRESPONSIBLE!
    Thank you very much david, but please, as you are an adobe employee, get this message to the right people, if you can.
    I know the corporate agenda would probabely be the incentivise people to register to the 1500$ program to get the extension-builder, by keeping the alternative inconvenient, but this issue is beyond inconvenient, it's border-line cruelty!

  • Loader onComplete not firing

    This is my script, very simple. But the event listener is not
    firing. I'm obviously missing something but I can't see what. Can
    one of you flash mavens please help me here? Thanks in advance.
    var ldr:Loader = new Loader();
    ldr.addEventListener(Event.COMPLETE, load_complete);
    var urlReq:URLRequest = new URLRequest("images/image0.jpg");
    ldr.load(urlReq);
    function load_complete(e:Event) {
    trace("load complete");
    }

    You need to add the listener to contentLoaderInfo - not
    loader:
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,
    load_complete);

  • OnRowUpdating Event not firing in my DataGrid in custom web part in my production SharePoint 2013 Foundation instance

    Hi,
    I have a custom visual web part that I've developed for SharePoint 2013 Foundation.  I am using Visual Studio 2013 to develop this web part. 
    In my visual web part I have GridView that I use to update data in a SQL 2008 R@ Server Database.  In dev and test the OnRowUpdatingEvent fires properly, but in production it does not.  I have the same version of SharePoint running on dev/test/prod. 
    The main difference between the three environments is the hardware.  Production has a much beefier sever than dev and test.  Dev and test are also virtual machines where production is.
    At first I thought my problem was cache related, and I made adjustments per this article:
    http://www.dmcinfo.com/latest-thinking/blog/id/8657/fix-sharepoint-2013-distributed-cache-timeouts
    That didn't help because the event is still not firing.  I took my test application and pointed it to the production database, and that event still fires in test but not in production. So I believe that eliminates database permission errors since I'm
    using the same credentials in both instances.
    My guess is that I need to change some settings in the production environment, but I'm not sure at this point what that might be.
    Any suggestions on what settings to look at?
    Brian
    Brian Hochgurtel
    My blog

    Try this solution :
    http://stackoverflow.com/questions/5893373/c-sharp-rowupdating-method-not-called-when-update-is-clicked-in-a-gridview

  • Double Click Event not fired for IE 11 with compatibility mode for HTML elemnt table

    Hi,
    I am facing an issue with Double click event(not getting fired on double click of mouse) for IE 11 with compatibility mode on HTML element "table" for Windows 7 64 bit machine.It runs fine on IE 10 with compatible mode with Windws 7 64  bit
    machine -- double click event.
    Can you please help to resolve the issue?
    Thanks and Regards,
    Yogesh

    Hi,
    f12>Debug tab, click the 'start' button.....(select break on all exceptions from the dropdown on the Debug tab)
    click your table and correct any errors that are listed in the Console of the developer tool.... probably you are using attachEvent I/o addEventListener. You should be using addEventListener for IE9 and higher and other web browsers.(it the w3c standard
    (recommendation).
    Post questions about html, css and scripting for website developers to the MSDN IE Web Development forum. Include with your question a link to your website or a mashup that shows the issue.
    Rob^_^

  • JSC on Tomcat 5.5.20 - Session/Applicaton Bean events not firing

    Hi,
    I am running a JSC app on Tomcat 5.5.20.
    Session and application bean events init and destroy are not firing.
    they work fine on my development machine using the Sun App server..
    Anyone have any ideas?
    Thanks
    Colin

    Hi,
    This is actually a Tomcat bug that was introduced from versions 5.5.20 and higher.
    If you create your application in a path that contains spaces you will encounter this problem.
    The workaround is to create your application at a path with no spaces.
    Here's the bug on Tomcat's website:
    http://www.mail-archive.com/[email protected]/msg37222.html
    It should be fixed in Tomcat 5.5.24
    You won't even need to create a listener or add any jar files.
    Hope this helps
    Yousuf

  • Shopping Cart Workflow - "Wait for change event" not firing?

    Hi there,
    I have a scenario where if I create a shopping cart above my spending limit it will go into the approver's inbox, that is fine.
    Now if I change the total value of the shopping cart to be within my spending limit the original workflow should be "logically deleted" and a "no step approval workflow" should be triggered.
    I see when the SC workflow triggers it also branches with a "wait for events", so that if it changes etc it will get caught here.
    When I change the SC it does not do anything, the value of the cart changes but it still sits in the approvers inbox and the "no step approval workflow" does not trigger.
    We are busy upgrading to SRM 5.0, it worked perfectly in the SRM 3.0 system we had.
    Any ideas what would cause the "change event" not to fire?
    Thanks for the help
    Lynton

    Hey Masa,
    You are the man!! That solved it.....I have implemented the BBP_WFL_SECUR_BADI and for whatever reason I set the security level to 4 when it should have been 2.
    4     "High" (workflow is never restarted when changes are made)
    3     "Medium" (WF restarted conditionally when changes are made)
    2     "Low" (workflow is always restarted when changes are made)
    1     "None" (changes to the object are not allowed)
    0     "Not defined"
    Thanks for the help
    Lynton

  • MenuBar mouse rollover event not firing

    Is MenuBar in SDK 4.1/4.5 a little flaky to anyone else?
    The rollover events fire as they should at first, but if you move the mouse fast enough, it seems to screw up eventually and at that point only the itemRollOut event is firing (no itemRollOver at all, even though the mouse clearly moved over a new menu item!) 
    Also sometimes I'm able to get the menu item's background-highlight effect to remain, if I move the mouse cursor away fast enough.  Is this a crummy or little used component, or what?  I'm using Halo only...

    Expected response on this, but I can add that it seems to happen mostly when a drop down menu has only one item listed.  The plan is to add more (obviously) but it's a little odd - I'm wondering if anyone can reproduce the same result with a MenuBar menu that only has one option.  Of course it works "at first", you have to play around with it a bit for the events to get out of sync, so it's tough...

  • Tab key event not fired in JTabbedPane

    Hello,
    I wanted to add the functionality of moving between tabs when Ctrl+Tab is pressed like Windows tabs.
    But the tab key listener event is not getting fired by pressing Tab. For all the other key pushes it is working good. It this a problem with Java? Any workarounds?
    Here is the sample code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestTab extends JFrame
         public void drawGUI()
              //getContentPane().setLayout(new GridLayout(1, 1));
              JTabbedPane lTabbedPane = new JTabbedPane();
              JPanel lFirstPanel = new JPanel();
              lFirstPanel.add(new JLabel("First Panel"));;
              JPanel lSecondPanel = new JPanel();
              lSecondPanel.add(new JLabel("Second Panel"));;
              lTabbedPane.addTab("Tab1", null, lFirstPanel, "Does nothing");
              lTabbedPane.addTab("Tab1", null,lSecondPanel, "Does nothing");
              getContentPane().add(lTabbedPane);
              lTabbedPane.addKeyListener(new KeyAdapter()
                   public void keyPressed(KeyEvent lKeyEvent)
                        System.out.println(lKeyEvent.getKeyText(lKeyEvent.getKeyCode()));
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
         public static void main(String[] args)
              TestTab lTestTab = new TestTab();
              lTestTab.drawGUI();
              lTestTab.setSize(200, 200);
              lTestTab.setVisible(true);

    The KeyPressed events for TAB and CTRL-TAB are typically consumed by the KeyboardFocusManager for component traversal. What you have to do is adjust traversal keys and add CTRL-TAB as an action of your JTabbedPane. This is usually done with the InputMap/ActionMap, not a KeyListener:
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class X {
        public static void main(String[] args) {
            Set tabSet = Collections.singleton(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));
            KeyStroke ctrlTab = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_DOWN_MASK);
            final int FORWARD = KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS;
            final JTabbedPane tp = new JTabbedPane();
            //setFocusTraversalKeys to remove ctrl-tab as a forward gesture
            tp.setFocusTraversalKeys(FORWARD, tabSet);
            for (int i=0; i<6; ++i) {
                JPanel p = new JPanel(new GridLayout(0,1));
                JTextArea area = new JTextArea();
                area.setFocusTraversalKeys(FORWARD, Collections.EMPTY_SET);
                p.add(new JScrollPane(area));
                area = new JTextArea();
                area.setFocusTraversalKeys(FORWARD, Collections.EMPTY_SET);
                p.add(new JScrollPane(area));
                tp.addTab("tab " + i,p);
            //add ctrlTab as an action to move to next tab
            Action nextTab = new AbstractAction("nextTab") {
                public void actionPerformed(ActionEvent evt) {
                    int idx = tp.getSelectedIndex();
                    if (idx != -1) {
                        idx = (idx + 1) % tp.getTabCount();
                        tp.requestFocusInWindow();
                        tp.setSelectedIndex(idx);
            InputMap im = tp.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
            im.put(ctrlTab, nextTab.getValue(Action.NAME));
            tp.getActionMap().put(nextTab.getValue(Action.NAME), nextTab);
            JFrame f= new JFrame("X");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(tp);
            f.setSize(400,300);
            f.setVisible(true);
    [/code[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Interactive Form for HCM Processes & Forms: Custom Event not firing ?

    ECC6
    EP7
    Adobe Reader: 8.1.2
    I am currently developing several Adobe interactive forms as part of an HCM Processes and Forms process. I have started to try to utilize custom form events. Following the documentation, I defined a custom event on the backend...lets say "USER_EVENT_S1". I assigned it a field group of fields and gave it the operation for "check". On the form side, I defined a pushbutton and changed it's "mousedown" FormCalc code to:
    //Set ISR_EVENT for BAdI processing in backend
    $record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_S1"
    I then activated the form and went to test it. When clicking the button tied to this event, it does absolutly nothing. I have external breakpoints set on the backend to my custom service that should fire for those fields that are part of the field group. The breakpoints trigger correctly as the form itself loads and hits the "initialize" and "F4 value help" methods. However, it is not doing anything when I press the assigned button to trigger my own user event.
    Any help ?!?!? I see only one implementation from SAP in their standard content and their own user event is not even implemented in the form! (form scenario S_HRPA_DE_REHIRE_1). That's not very reassuring or helpful. haha

    I figured it out this morning. It seems I was using the wrong (older?) button control.
    The one that did NOT work had the following for the "click" event....
    //Trigger call to backend for BAdI user command processing
    app.eval("event.target.SAPSubmit();");
    However, the one that DOES work has this:
    //Trigger call to backend for BAdI user command processing
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    Both are called an "ISR_FormEventButton" however, I guess mine was from an older "library". Anyways...works great now! Back to development....
    (points to the reply for trying to help at least! Thanks!)

  • Print event not firing

    Hi all, first time poster here so be kind
    I have 2 events to be captured under ItemEvent for the Sales Order form.
    oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD)
    oFilter.AddEx("139")
    oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_PRINT)
    oFilter.AddEx("139") ' Sales Order
    SBO_Application.SetFilter(oFilters)
    For the form_data_add event, I question whether they really want to post, and this works fine, but for some reason the et_PRINT isn't firing at all...
    Under ItemEvent...
                ' Capture SOR printing so can check for back orders
                ' REMOVED BECAUSE CANNOT GET TO WORK
                If pVal.FormTypeEx = "139" And _
                   pVal.EventType = SAPbouiCOM.BoEventTypes.et_PRINT And _
                   pVal.BeforeAction = True Then
                    oForm = SBO_Application.Forms.Item(pVal.FormUID)
                    BubbleEvent = CheckSORBackOrder(oForm)
                End If
    I have put a breakpoint at the first 'if' statement, and it isn't stopping, suggesting the event registering isn't working.
    Extra info: I am constantly starting and stopping the addon through Visual Studio, incase this might be part of the problem.
    If anyone could help, I would be grateful,
    Regards
    Paul

    I have already tried capturing the button event, but that isn't working either.
    The code used is below:
    changed from ItemEvent MenuEvent... type
    MenuEvent..
    If pVal.MenuUID = "520" And pVal.BeforeAction = True Then
                Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
                If oForm.TypeEx = "139" Then
                    BubbleEvent = CheckSORBackOrder(oForm)
                End If
    End If
    And all of my registered events are below...
        Private Sub RegisterSAPEvents()
            ' Register Event Handling
            Dim oFilters As SAPbouiCOM.EventFilters = New SAPbouiCOM.EventFilters
            Dim oFilter As SAPbouiCOM.EventFilter
            ' Menus
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK)
            oFilter.AddEx(v_stockHist_MenuID)
            oFilter.AddEx("520")
            ' Forms
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_CLICK)
            oFilter.AddEx(v_stockHist_FormType)
            ' Stock History double click for grid
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK)
            oFilter.AddEx(v_stockHist_FormType)
            ' Stock History Item choose from list
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST)
            oFilter.AddEx(v_stockHist_FormType)
            ' Question new SOR?
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD)
            oFilter.AddEx("139") 'SOR
            ' Key Press for Stock History Form
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_KEY_DOWN)
            oFilter.AddEx(v_stockHist_FormType)
            ' SOR Print
            ' COULD NOT GET TO WORK, SO WILL USE MENU EVENT 520 INSTEAD
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_PRINT)
            oFilter.AddEx("139") ' SOR
            ' Check for new SOR opening
            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_LOAD)
            oFilter.AddEx("139") ' SOR
            ' Set Event Handlers
            SBO_Application.SetFilter(oFilters)
        End Sub
    I have another form which I have created, and all events work for that.
    Edited by: Paul Fearn on Jun 20, 2008 4:07 PM

  • SP01 events not firing

    Hi, I've upgraded from sap bo 2005 A to SP01 (PL7).
    I referenced the new COM objects, and so I am able to see in the int the SAPbouiCOM.BoEventTypes enum the new events... particularly SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD
    The problem is that this event is never firing... I don't know if I did something wrong while updating, but I don't think so... any suggestions?
    btw, I'm not filtering the events with eventfilter or something like that...

    If anyone wants the response to this, someone answered in another thread:
    et_FORM_DATA_LOAD event handling
    [quote]
    the et_FORM_DATA_LOAD enum constant is valid only for FormDataEvent (2005A SP1), while you are trying to use it in ItemEvent event handler...
    You should use the FormDataEvent handler instead.
    [/quote]
    Too bad this only works with UDOs :s

  • Flex mobile activate event not fired

    Hi,
    I have tried in many ways to listen for the event triggered each time I open an application.
    I am developing an Android app (Flex 4.6, air 3.1) and run it on a real device.
    The activate event, is never fired.
    Any idea?
    I am using creationComplete as a substitute, but that is fires only the first time you open the
    app, not when you "resume" it.
    Any suggestion?
    ps: on a side note deactivate works correctly.

    it wont get fired first time, when app get activated from dromant then it works.

  • Event scriptions created on standard business events not firing

    We have created a subscription and written custom code in the standard business event oracle.apps.eam.workorder.created . It should fire after a work order is created, but somehow our code is not getting executed. Tried with phase <100 and >=100
    Is there anything else that we need to do?
    Appreciate your help.
    Its in R12.
    Thanks
    Balaji

    For future reference, you have to set the Enable Workflow for Workorders flag in the EAM Parameters form in order to get the seeded business events to fire. If you only want to use the business events and not the workflow, then you could modify the workflow to bypass the approval.
    Edited by: 986824 on Feb 7, 2013 9:26 AM

Maybe you are looking for

  • Imac Core Duo Crashing ......A Cry For Help

    I received my eagerly awaited iMac core duo 17' 160gb. I took it out of the box and it work away fine. When I was installing Norton Anti Virus the installer quit before the full install was complete. I then restarted the iMac and the welcome to OS X

  • Photoshop CC 14.1 GPU not detected (MacOS)

    So I upgraded to Photoshop CC 14.1  Mid 2009 Macbook, 10.8.4 6GB ram/NVDIA 9400M GPU 236 MB ram. When I launch PS by itself, my GPU is detected. If I double click on a file, there is a delay in opening and I get this message: All my OpenGL functions

  • Over half of my songs in iTunes will not play and they have the ! next to them!

    I went to listen to my iTunes yesterday and over half the songs would not play.  When you click on the song the window pops up with a message say the song could not be located and asking you would like to locate it.  They were all playing fine earlei

  • 8.0.5.2.3 to 8.1.7 Migration

    Hello, I am doing 8.0.5.2.3 to 8i migration manually. As indicated in the document, when I try to start the dB in RESTRICT mode I am getting an error message indicating that the dB is already started. When I checked the error, it appears that when th

  • Compiling kernel archlinux [SOLVED]

    Hi everybody, I have just registered on the forum and I'm a new arch user. I have a couple of problems that I would like to discuss about: First problem: I downloaded all the base sistem and linux headers to make a new compilation of the kernel and a