How to check if the event in actionscript is initiated or not?
Okay, so I played with event management in action script two or three times, but I came across this situation, where I need to check if the event in the actionscript code is already called or not. looks like the code snippet below:
currentTrajectory = new collection ArrayCollection (event.result as Array);
var _multiTrajectoryEvent:MultiTrajectoriesEvent;
If (_multiTrajectoryEvent is initialized) / / that's where I need to check
{
_multiTrajectoryEvent = new MultiTrajectoriesEvent (MultiTrajectoriesEvent.DRAW_AUTO_TRAJ);
}
//raise an event to
Swiz.dispatchEvent (_multiTrajectoryEvent);
}
Whenever I get the result of the database event and I add result to arraycollection of event collection. However, I want to make sure that this event object is created only if it has not been initialized before in order to have the previous value of the table collection event isnide.
Check if the event object is null does not work and if the event is not initialized, I can't check its property bubble as well...
I would appreciate your quick thoughts for the same
Thank you very much
Generally, people reuse events. I've never seen a recycled event object, potentially, it could lead to side effects if any code handling the event maintains a reference to the event.
My advice not to recycle the event objects. They should be garbage collected when they are no longer used. Create a new each time. Your custom event has no payload, so I'm really not point of needing to reuse. Any use not made of currentTrajectory.
Tags: Flex
Similar Questions
-
How to check if the persistence Unit objects are persistent or not?
How to check if the persistence Unit objects are persistent or not?
I have correctly set up and deploy the object used as a persistence in Oracle coherence unit according to the guide Chapter 6 of tutorial for Oracle coherence 3.5
Using the RunEmployeeExample script, I had good results. I see that once the cache object is updated, the database table (employees) is also updated accordingly. Here is the result:
But I can't check whether the persistence unit is still persistent.2009-11-05 11:09:55.043/53.467 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:09:54.867, Add ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) joined Cluster with senior member 1 2009-11-05 11:09:55.604/54.028 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior memb er 1 2009-11-05 11:09:56.885/55.309 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{Sta te=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4084]} 2009-11-05 11:09:57.847/56.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service JpaDistributedCache with se nior member 1 2009-11-05 11:09:57.917/56.341 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Service JpaDistributed Cache: sending ServiceConfigSync containing 258 entries to Member 2 2009-11-05 11:10:04.086/62.510 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Deferring the distribu tion due to 1 pending configuration updates [EL Info]: 2009-11-05 11:10:14.36--ServerSession(2883071)--EclipseLink, version: Eclipse Persistence Services - 1.1.1.v20090430-r4097 [EL Info]: 2009-11-05 11:10:22.312--ServerSession(2883071)--file:/C:/JDeveloper/mywork/AppJPA/JPA/classes/-JPA login successful 2009-11-05 11:10:24.305/82.729 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): 3> Transferring 128 ou t of 257 primary partitions to member 2 requesting 128 2009-11-05 11:10:25.697/84.121 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 1> Transferring 129 ou t of 129 partitions to a node-safe backup 1 at member 2 (under 129) 2009-11-05 11:10:25.857/84.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Transferring 0KB of ba ckup[1] for PartitionSet{128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256} to member 2 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: disconnected from member 2 due to a kill r equest 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service Management with senior member 1 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service JpaDistributedCache with seni or member 1 2009-11-05 11:10:40.708/99.132 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:10:40.708, Add ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) left Cluster with senior member 1 2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:JpaDistributedCache, member=1): Restored from backup 128 partitions 2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 0, 1, 2, 3, 4, 5, 6, 7 , 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 4 4, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80 , 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 11 3, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 2009-11-05 11:28:39.800/1178.224 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:28:39.635, A ddress=192.168.8.80:8089, MachineId=24656, Location=site:metsys.metex.com,machine:mw12,process:1752, Role=CoherenceConsole) joined Cluster with s enior member 1 2009-11-05 11:28:40.231/1178.655 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior me mber 1 2009-11-05 11:28:41.633/1180.057 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{S tate=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4143]} 2009-11-05 11:30:01.658/1260.082 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service DistributedCache with sen ior member 2
Published by: jetq on November 5, 2009 11:49Re:
Does the above result shows that the persistence work is finished successfully?
Yes, it's nice. What is persistence. These are the characteristics of persistence.
Junez
-
How to check if the e-mail account is defined or not?
Hello
my application crashes to "Store store = Session.waitForDefaultSession () .getStore () this line, because it does not account for the email set.
We can check programmatically if the e-mail account is set or not?
If you have any ideas please share.
Thank you...
-
How to check for the two first digits?
Can someone please... There is demand to have a hidden field on the form that will be filled with data. It's going to be 6 digits long and could start with 02 or 04. I need to check on the DocReady event, for the first two digits. If the first two digits are 02, the presentation of the form will remain as it is. If the first two numbers are 04, I'll have to show two hidden subforms. Can someone please provide an explanation on how to check for the first two digits of field 6 digits and do some actions.
Thank you very much
No, only in the event: Exchange.
-
My MacBook Pro suddenly becomes very slow, accepting orders very slow how to check if the ram is working properly
You can try this download. Etrecheck. https://etrecheck.com/#about
Then publish the report as a reply in this thread.
It will allow us to review your system without disclosing a private matter.
-
How to get to the event log in the simulator of blackberry 9800
Can someone tell me how I could see the event log in the blackberry Simulator
Plugin Eclipse - 3.5
Version BlackBerry java sdk - 6.0.0.29
Simulator model - 9800
There is an option in tools - see the event log, but it shows
0:08:13.659: LED: off
0:08:16.862: LED: on (0x003f0000)
0:08:17.034: LED: off
0:08:20.112: LED: on (0x003f0000)
0:08:20.284: LED: off
0:08:23.487: LED: on (0x003f0000)
0:08:23.658: LED: offHelp me??
Well, I just shot to the top of my Simulator of 9800 and it worked perfectly.
Hold down the ALT key enter L, G, then L, then G
Here, to the event log
-
Hello!
This is SANDEEP, I loaded data using FDM in HFM. How to check if the data is correct or not, what ever the data I was responsible in HFM.
Please tell me how to recover the data and what format, clearly can you me the data verification process step by step.
It would be useful for me...
Thanks in advance...
Kind regards
SANDEEP
Hi Sandeep,
I think the best way is to extract data from HFM for the same POV that you have loaded FDM and check if it is the same.
If you then use HFM 11.1.2.x version
1. login to the application and go to the menu Administration / extract / data.
2. set the POV that you have loaded the data, then unzip it. You can open the file unzipped in a notebook
3. you can compare the file with the data file generated by FDMEE under Outbox folder.
But what would you give all the data corresponding to the POV that you set. So please ensure that you have the correct POV, defined according to the export FDMEE.
Thank you
Chandra
-
Hello
How knowledge/check if the RMAN backup was performed using a current control file or database catalog? I mean RMAN prompt or sqlplus is it possible to know.
Thank you
You're welcome my friend
You can see them using two methods.
as I mentioned above, you can see them connect to the catalog database and you can query using the view that I sent
http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV89601
the other method is the list command, you must use the list command after connecting using rman "rman target / catalog cat_user/cat_pass@catdbtns" command
http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV8136
Check the value of the control_file_record_keep_time parameter. The default value is 7 days. in the output of the list command, if you can see the old backups to the value, you must be sure that the backup information comes from the catalogue database
SELECT * FROM parameter $ v where name = 'control_file_record_keep_time '.
an example of command list
the list of completed database before backup ' sysdate-10'.
Concerning
-
How to check if the acrobat adobe pro xi is enabled
How to check if the acrobat adobe pro xi is enabled
Hi Shubham,
If the product is activated it will give the option to disable under the Help menu. Also whenever you launch Acrobat it will bring activation window if it requires one.
Thank you
Abhishek
-
How to check on the website of Adobe Creative Suite 6 Design & Web Premium (student version)? I don't find the sea site.
Check what... your serial number?
Your serial number appears on your account page?
https://www.adobe.com/account.html for numbers on your page from Adobe
Or do you want to download? Other downloads
-
How to check if the database for DRDA gateway is installed and configured.
Hi all
How can we check if the database for DRDA gateway is installed and configured.
Our operating system is AIX 5 L 64 bit OS.
RDBMS: 11.2.0.3
Kind regardsDuplicated
How to check if the database for DRDA gateway is installed and configured.+ - locked thread-+.
Nicolas.
-
How to check if the selection is any text tho:
Ok.. Another question:
How to check if the selection is any text tho:
if (app.documents.length != 0 && app.selection.length != 0 &&
(app.selection[0].constructor.name=="Text"||app.selection[0].constructor.name=="Paragraph"))
but sometimes the selection is 'textStyleRange', sometimes 'character' etc. is there a shortcut to check both?
I usually do something like this:
if ( app.documents.length && app.selection.length && app.selection [ 0 ].hasOwnProperty ( 'baseline' ) ) alert ( "It's a text!" );
Hope that helps.
--
Marijan (tomaxxi)
-
How to check if the support is rtmp or hds or progressive download?
How to check if the support is rtmp or hds or progressive download?
There is no direct way to do it.
I remember that there is a similar code in the code of StobeMediaPlayer, in PlaybackOtpimization*.as
Can I ask what you use it for? You should know what you're playing.
-
How to check if the directory is created using create or replace directory
Hello
I create a directory like below:
Create or replace directory TEST_DIR AS 'C:\ABCD '.
How to check if the directory is created or not? Is there any request for it?
Thanks in advance.
PKSELECT * FROM ALL_DIRECTORIES WHERE DIRECTORY_NAME LIKE '% TEST_DIR %. "
Published by: user3522507 on 2010.06.16. 07:19
-
R12.1.1 staging is complete! How to check if the scene is good
Hi Gurusl,
I finished the staging R12.1.1 for Hp unix B.11.31. I want to know how to check if the scene is good for installation or if it is corrupt. Is there a metalink note or the script from where we can check it out. your help will be very appreciated. Thanks in advance
Kind regardsHello
Please refer to (Note: 802195,1 - checksums MD5 for R12.1.1 Quick Install Media).
Kind regards
Hussein
Maybe you are looking for
-
This discussion on another thread (link below), but I thought that it was preferable to a new discussion. https://discussions.Apple.com/message/30503051?start=420 & tstart = 0 I've used several methods to save my Aperture library, but he was told tha
-
P70 - Xrite cannot display my 4K to recallibrate
I get the following message displays when I try to re - calibrate my screen k 4 on my P70. Where is the utility to reset the database? I can't locate it on the support Web site. Comment to Moderator: The model is added to the object for clarity.
-
I write the values for my meter with modbus/TCP and the set point is a float on 2 registers. Documentation, says this: Floating point parameters are 4 bytes long and are mapped to two consecutive Modbusregisters. The floats are single precision IEEE
-
My computer is a 15 "MacBook Pro Intel Core 2 Duo dual boot Windows XP family. I recently upgraded to Bootcamp 3.1 that caused a major graphics display problem: the screen resolution has been set to 640 x 480 and wouldn't all interface fit properly o
-
Doc PDF of research based on the value selected in a dropdown list
Can someone please help me understand a way to search a pdf to a file the selected value in a drop-down list. The document is used at work stations which have NO keyboards, only a mouse. I made many attempts on my onw without success. Any help would