CreationComplete event question?

Hi,
I develop a application that have many screen and I develop
each
screen with a flex component (*.mxml page).
I use creationComplete event in one screen but the function
only
execute when I first access the screen. But I need execute
the
function when I access the screen.
For instance.the following Alert screen only work when I
first access the screen,But it doesn't call when I access the
screen second time.
Please give me a idea which event I can use to call the
function so
the function can execute when I access the screen.
Thanks
Mark
ps:code for the screen
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="getnameList()">
<mx:Script>
<![CDATA[
import com.sb.CEC_Admin.events.GetStafflistEven;
private function getnameList():void{
Alert.show("test");
]]>
</mx:Script>
</mx:Canvas>

Yeah, creationComplete ensures it executes when the component
or app first launches, then show event ensure it executes each
subsequent time it is displayed.

Similar Messages

  • If the flash object is placed in 0px div, the creationComplete event is fired after a long wait time

    <Problem>
    My requirement is to hide flash object on browser. However, If the flash object is placed in 0px div, the creationComplete event is fired after a long wait time. Is this a bug of Flex? (or Flash Player?)
    <Sample Code>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
              initialize="app_initialize(event);" creationComplete="app_creationComplete(event);" >
    <mx:Script>
            <![CDATA[
            import mx.events.FlexEvent;
        private function app_initialize(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "application initialize.");
        private function app_creationComplete(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "application creation complete.");
        private function button_creationComplete(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "button creation complete.");
            ]]>
        </mx:Script>
        <mx:Button id="testButton"  label="button"  creationComplete="button_creationComplete(event);"/>
    </mx:Application>
    <Steps to reproduce>
    1) Dowload the following samples
    MySwf-src.zip
    https://files.acrobat.com/a/preview/c6b7a191-c6c4-486f-9345-e2b5c21a4c0b
    TestSwf.zip
    https://files.acrobat.com/a/preview/98e613e1-63b1-4b2f-93f3-f6e4f4a27f24
    2) Unzip TestSwf.zip.
    3) Copy MySwf.swf, TestInvisible.html, and TestVisible.html to "c:\inetpub\wwwroot\". (Need to install the IIS.)
    4) Visit "http://localhost/TestVisible.html" via IE. notice the creationComplete event fired after initialize event immediately.  -- Correct
    5) Visit "http://localhost/TestInvisible.html" via IE. notice the creationComplete event fired a long time after initialize event.  -- Incorrect
    <Environment>
    Win8.1x64+IIS8.5+IE11+Flash player(13.0.0.182)
    <Note>
    If the flash object is placed in 1px or larger div, the creationComplete event is fired immediately.
    The problem occurs with other browsers(IE9,IE10,FF,Chrome) too.

    Thank you for your response. The computers are indeed running Flash Pro CC 13.1.0.226. I tried to generate a minidump file on four different computers where Flash Pro hung, but was not able to do so on any of them as Flash Pro makes the entire system unresponsive. I get the spinning circle cursor and then the GUI of all apps greys out and fails to update. I don't actually get any sort of error message; everything simply stops responding.
    I was probably unclear above; even if I can alt-tab I can't really interact with any other programs once Flash Pro hangs beyond one or two mouse clicks. So on some computers I could right-click on the process in Process Explorer and choose to create a minidump, which then froze, or I might right-click on the process and have it immediatly freeze. I've experienced about two dozen crashes and I've never been able to really use another program or even kill the Flash process in task manager. I also have to power off the computer by holding down the power button, since while I might be able to open the Start menu I can't reach the point of being able to shut it down without it freezing.
    From what I was able to see in Process Explorer, Flash Pro was using <1% CPU and 120M private / 170M working memory.

  • Flex 4.1 - creationComplete event is not dispatched in nested Containers

    Hi all,
    We are migrating our application to use Flex 4.1 from Flex 3.5.
    Our application is pretty complicated with tons of custom components. I noticed that when we use nested containers the creationComplete event is not dispatched. I narrowed it down to the following: We have application that has a child component which is an extension of an extension of Panel, that child component has one VBox child. The creationComplete event is not dispatched for that VBox even after I set the creationPolicy to "all" on all Containers.
    Any thoughts?
    Thanks,
      Lilit

    The actual issue ended up being the width of the VBox - it was set to this.width (I did not write the code ) and it got into an infinite loop where the child component (VBox) was trying to set the width to the parent's width and the parent tried adjust its width to the children so it kept growing and growing. Not sure why this works in Flex 3.5 but not in 4.1. Looks like an issue with the Panel.

  • Albums and events question

    Hi when I drag folders containing photos into Iphoto it creates an event. What I currently do is after the event is created, I select an event, I hit the + sign in the bottom left and create an album.
    I like having my albums on the left side for quick access to my library of photos. The problem is that if I add 30 folders, 30 events are then created.
    I have to manually create an album out of each event one at a time. Is there any way that once an event is created it automatically creates and album. So say that 10 events are created, 10 albums will appear on the left.
    If I select a couple events and hit the + option and hit create an album, it will only create one album out of the events selected. I would like to select multiple events at one time and have multiple albums created instead of just one. How do I do that?
    Is what I want to do possible? thanks

    Well let me answer a question with a question
    Why have all your Events mimicked in Albums? IF you can find the pic in an Event, you can find it in an Album.
    To say nothing of all the basics: If you have the year, month, day. Title, keywords, camera a model etc etc you can use any (and all) of these to find your pics too.
    To merge Events: Simply drag one to another in the iPhoto Window.
    Regards
    TD

  • Alter system set events Question

    Version 10202 on AIX
    sql> alter system set events '4030 trace name heapdump level 536870917; name errorstack level 3';
    Questions about this statement..
    what this command is doing, i guess creating tracefile for event 4030...& the location of trace file would be the current direcotry?
    & how to setup same kind of event trace for other events, any tips....& what to check in tracefile for problem?

    The values for level I have record are 1, 2, 3, 8, and 32 so I am guessing the number shown is the address of a specific heap to be dumped. The address of a heap would potentially change with a change in the shared pool storage parameters. Where did you get the address value?
    The dump should go to the user background dump destination and not the current directory.
    PS - if you have metalink look at document: #218105.1 Introduction to ORACLE Diagnostic EVENTS
    HTH -- Mark D Powell --
    Message was edited by: MDP add PS to Metalink Doc
    mpowel01

  • Click Event Question - VB6 SDK 6.5

    A quick question for you guys:
    On the A/R Invoice form, I have a UDF that exists as a combo box.  I can trap the et_COMBO_SELECT event on that combo box just fine, however, I would like to generate a click event on the 'Name' field on the main form from the UDF et_COMBO_SELECT event.  The problem I'm running into is that because the form that contains the UDF has a different UID from the actual A/R Invoice main form, I get an error when I try to perform the click event on the 'Name' field.  The code I'm using is below.  Any help would be appreciated.
    Thanks,
    Greg
    '(A/R Invoice) Change value of eqp_DivisionCode global variable when combo select event triggers
    If eqp_pVal.FormType = -133 And eqp_pVal.FormMode = fm_ADD_MODE And _
       eqp_pVal.ItemUID = "U_Division" And eqp_pVal.EventType = et_COMBO_SELECT Then
       Set eqp_frm = SBO_Application.Forms.Item(FormUID)
       Set eqp_cmbDivision = eqp_frm.Items("U_Division").Specific
       eqp_DivisionCode = eqp_cmbDivision.Selected.Value
    End If

    Hi Greg,
    if you want to access a User Defined Field on a System Form but in header level you need to approach it as follows:
    If (pVal.EventType = et_FORM_LOAD And pVal.FormType = 139 And _
        pVal.Before_Action = True) Then
            Set oform = m_App.Forms.Item(FormUID)
            Dim oUsrForm As SAPbouiCOM.Form
            Dim num As Long
            Dim UDFformUID As String
            num = Right(FormUID, (Len(FormUID) - 2))
            num = num + 1
            UDFformUID = "F_" & num
            Set oform = m_App.Forms.Item(UDFformUID)
            oform.Items.Item("U_1").Specific.String = "Test"
        End If
    Regards,
    Lisa Mulchinock
    SAP SDK Consultant
    Galway

  • Calendar Event Question

    I'm new to iPhone, coming from Blackberry. I would like to be able to schedule an event to repeat every five weeks and another event every four weeks. Is there a way to customize this? If not, can you recommend an app which will give me a reminder every four and/or every five weeks? Thank you!

    Sorry, answering my own question. It seems you have to do it on iCloud. Kind of frustrating if you're not on your computer but at least it's possible. Thanks for reading.

  • 10G event question

    Hello all
    I am coding Forms in 10G and i have an architectural question. If i am coding a form event with plsql that is not hitting the database how do i know that it is not making a call to the app server. I am worried about coding events that make too many calls back to the server which limits performance. I have coded in .NET and the ability to have events on everything is great for features but really bad for performance. I don't want to create features that are hindering performance due to round trips.
    thanx in advance

    Hi,
    good, question, that I don't have an answer for. I would assume it to be three round trips because the trigger fire in different times and as far as I remember Forms only bundles triggers that are on a specific item.
    Forms does not know whether or not PLSQL code is associated with a trigger and this currently is discussed internally at Oracle as well as here on the forum (some month ago).
    The outcome so far is that it is difficult to not ping the server about actions taking place on thw Forms client because it could be a navigation involved. This, if not reported back to the server, leads e.g. to the :system.cursor_item giving the wrong return value. As said, this is something we are discussing but haven't come to a conclusion.
    For you this means that no matter if there is a PLSQL code associated with a trigger, a network round trip is made. However, keep in mind that we are not issuing a round trip for all triggers on an item but bundle all triggers that fire to the same time (e.g. all POST triggers on an item will cause one roundtrip)
    Frank

  • Iphoto Events Question

    This is probably a very easy question.
    If you have one event called Trips and drag photos out of that event into a few others to break them down into seperate events like Trips 2007 and Trips 2008, do the pictures you drag over to new albums get copied over so you can delete the original Trips event or does it just create a pointer from original event to new event?
    I just want to be sure so I dont have multiple copies of photos taking up space if I dont have to.
    Thanks in advance

    Patrick
    You need to be really clear on your Terminology for this one.
    do the pictures you drag over to new albums get copied over so you can delete the original *Trips event* or does it just create a pointer from *original event to new event* ?
    Are you talking about Albums or Events?
    When you drag from Event to Event the actual file is moved. Events in the iPhoto Window correspond exactly with the Folders in the Originals Folder in the iPhoto Library package file (Right click on it in the Pictures Folder -> Show Package Contents). You can move photos between Events, you can rename Events, edit them, create them, as long as you do it via the iPhoto Window. Check out the Info Pane (wee 'i', lower left) the name and date fields are editable. Edit a Event Name using the Info Pane, the Event Folder in iPhoto Library/Originals will also have the new name.
    When you add a photo to an Album it's a reference and not moving an actual file.
    So which are you talking about, Albums or Events?
    Regards
    TD

  • Events question can anyone help?

    I am brand new to the mac world...( bye bye PC forever!) I love it. I just have a quick question about iphoto events. I have my photos in events and I like that. when i double click on an event to open it up, I used to see thumbnails on the page of all events. For whatever reason, now when I go to open up a particular event it opens with one picture at a time. large pic. how do I get back to the thumbnails...I see thumbnails when I scroll over the event.....
    thanks! Nancy

    Nancy
    Welcome to the Apple Discussions.
    At the bottom right of the iPhoto Window is a slider. Drag it left.
    Regards
    TD

  • Postmerge session event question

    We have implemented a custom session event listener that utilizes the postmerge session event.
    We have observed some unexpected behavior and were hoping that the product architect or manager could explain this behavior.
    We have the following graph of objects:
    A has a many-to-many privately owned collection of B
    B in turn has a many-to-many privately owned collection of C
    After commiting a transaction involving object A we observe:
    postMerge event for A
    postMerge event of each of A's privately owned Bs
    yet NO postMerge event for any of B's privately owned Cs
    Questions:
    1) Is this the expected behavior?
    2) Since we need to do some processing of Cs, we are using the postMerge event that occurs on Bs to update the Cs. Is this a safe/correct approach?
    3) In a transaction that involved only updates to Cs, (no changes to A or B), would we see a postMerge event for each updated C?
    Thanks in advance for any clarification you can provide.
    ...Steve

    You could paste the results (tkprof ?) of the trace.
    The "missing" time could be an uninstrumented wait --- i.e. a wait event that is not captured in v$session_event. Particularly because you are using external calls.
    For example, see "Case Study 1" at http://blog.tanelpoder.com/2007/08/27/advanced-oracle-troubleshooting-guide-part-2-no-magic-is-needed-systematic-approach-will-do/
    Hemant K Chitale

  • Emailing calendar event question

    Is it possible to email a calendar event from my iMac to someone with an iPhone, so they can easily add the event to their calendar?  If I email an event, the outgoing message says:
    "To add it to your calendar, click the link below"
    But when they click the iCal...ics link in the email, nothing happens.  I know if I view the same email on my Mac in the Mail app and click on the link, I'm prompted to add the event to my calendar.
    -Thanks

    Sorry, answering my own question. It seems you have to do it on iCloud. Kind of frustrating if you're not on your computer but at least it's possible. Thanks for reading.

  • Events Question

    Hi folks,
    I have some general question about where to place my custom script.
    I want to compare 2 dates fields in my form(checking if the start date is not greater than the end date).
    Where should I place my code if I want to make this check and also to tell the user to select normal dates range?
    Thank you,
    Yair

    You can place in the exit event of the date fields to compare the dates..
    D1 and D2 are two date fields on my form..
    Language set to FormCalc
    Event set to Exit.
    if(D1.rawValue ne null and D2.rawValue ne null) then
    if(D1.rawValue>D2.rawValue) then
      $host.messageBox("More");
    endif
    endif
    Thanks
    Srini

  • Validation Script for Dates and General Event Questions

    I have just started using Javascript, and am now using some objects and methods etc. that I did not even know about. It's progressing rather well, now I need to know some Livecycle Designer Basics that I can't seem to answer from my searches.
    Here's what I am trying to do in English:
    I want users to choose a date that they will miss at our Farmers Market. I have the date field on the form - works well.
    I want to validate the entry for:
    The date must be today or in the future
    AND
    The date must be before the closing date
    AND
    The date must be a Saturday
    Here's some script I've written and placed in the Validation Event (I have actually written more for testing out that the results are coming out properly):
    ----- form1.#subform[0].Missdate::validate - (JavaScript, client) ----------------------------------
    var entereddate = this.rawValue;// The date vendor will not attend as entered on the form
    var dentry = new Date(entereddate.slice(0,4),[entereddate.slice(5,7)-1],entereddate.slice(8,10),0,0,0); // month starts at 0!
    var closingdate = "October 04,2008" // closing date of the market
    var today = Date();// today
    (dentry.getDay() = 6);// and attempt to validate that the day = Saturday - nothing happens!
    But now -
    How do I actually validate this - my last statement seems to be ignored. How to I force a 'false' being returned? In Formcalc I simply put a camparison statement here and if it resulted in 'False' validation failed and if it resulted in 'True' it passed - What's the JS equivalent? Or are the variables giving me troubles?
    Maybe I'm putting this in the wrong Event? If so which one should I place it in.
    I want to force the user to enter the correct data - how do I code this - and put in a custom message refering to this. I may even get fancy and ask the user if the next Saturday is what they meant if they enter the incorrect one (this will be a real challenge!)
    I think I'm lacking some basic knowledge here that other posts have assumed. Please refer me to any help pages as well - although I've done extensive searching on this and have not really found a good explanation of Validation - only specific pages that are not basic or general enough for my understanding. Thank!

    In the validation script you have to allow the field's length to be 0, or
    it will not be possible to clear it...

  • Contextual event - Question

    Hi ,
    I have the following scenario :
    There is a region A which raises a contextual event. There is a page (say Test.jsff) containing region A and region B both of which can be invoked as popups . Region B also contains Region A.
    Both Test.jsff and Region B subscribe to the contextual event raised by Region A. The requirement is that Test.jsff should subscribe to the contextual event when it is raised directly from Region A but ignore when the event is raised from the Region A within Region B.
    The only way I could think of achieving the above is by adding an EL expression in the handleCondition of the handler method in subscriber's page def (Test.jsff in this case). This was the information I found in dev guide for conditional subscription. Is this approach correct?
    Are there any other ways to go about it for e.g:
    i)such as event be consumed by the direct parent only ?
    ii)Do you think raising two different events one for Test.jsff and another for Region B is a good idea?
    Would really appreciate help from experts on the above queries.

    Any updates?.
    Appreciate your inputs on the above.
    Thanks!

Maybe you are looking for