REMOVED_FROM_STAGE event firing when it shouldn't...
Hello everyone,
Wondering if someone has seen this before. I have an application that has a few navigation points on the main timeline. The document class stops the movie at the first frame, and the "home" movieclip's class has Event.ADDED_TO_STAGE and Event.REMOVED_FROM_STAGE listeners on it. Funny thing is, it is calling the ADDED function as normal, then firing the REMOVED function immediately after. However, when I run it, it doesn't actually remove the movieclip from the stage. It is still there. When I navigate to a different section ("remote" or "assist") and navigate back to "home", it doesn't fire a second time, everything works properly after the first time.
So I guess my question is, what would fire the REMOVED_FROM_STAGE event without actually removing the object from the stage? And why would it only happen once?
Thanks for looking!
-Nick
Here is some code as well as a screen shot of my main timeline:
package src.modules {
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import src.utils.greensock.TweenLite;
import src.utils.greensock.easing.*;
public class ModHome extends MovieClip {
private static const DISTANCE:int = 700;
private static const TWEEN_DURATION:Number = 1.0;
private var _currentPage:int = 1;
private var _isDone:Boolean = true;
public function ModHome() {
super();
// trace("home initialized");
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
private function onAddedToStage(evt:Event):void {
trace("home added to stage");
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage, false, 0, true);
// BUTTONS
pageLeft_btn.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);
pageRight_btn.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);
private function onRemovedFromStage(evt:Event):void {
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
// BUTTONS
pageLeft_btn.removeEventListener(MouseEvent.CLICK, onMouseClick);
pageRight_btn.removeEventListener(MouseEvent.CLICK, onMouseClick);
// trace("home removed from stage");
private function onMouseClick(evt:MouseEvent):void {
if(_isDone) {
switch (evt.target.name) {
case "pageLeft_btn" :
movePages("left");
break;
case "pageRight_btn" :
movePages("right");
break;
default :
// trace("home -- nothing");
break;
// SCROLLING WINDOW
private function movePages(thedirection:String):void {
_isDone = false;
var x1:int;
switch (thedirection) {
case "right" :
if (_currentPage > 1) {
_currentPage = _currentPage - 1;
x1 = pages_mc.x + DISTANCE;
TweenLite.to(pages_mc, TWEEN_DURATION, {x:x1, ease:Quint.easeInOut, onComplete:onTweenComplete});
} else {
_isDone = true;
break;
case "left" :
if (_currentPage < 3) {
_currentPage = _currentPage + 1;
x1 = pages_mc.x - DISTANCE;
TweenLite.to(pages_mc, TWEEN_DURATION, {x:x1, ease:Quint.easeInOut, onComplete:onTweenComplete});
} else {
_isDone = true;
break;
private function onTweenComplete():void {
_isDone = true;
pageMarker_mc.gotoAndStop(_currentPage);
// trace("complete");
No reason in particular, when I created the class, FlashBuilder put it in there (I'm using Flash Pro CS5 + Flash Builder 4). I read that it calls it by default when the class is constructed, so having it in or out didn't really matter. I did comment it out with no luck, but I ended up shifting around the timeline quite a bit today and the problem has gone away. It seemed to only do it when it was in the first frame.
Thanks for your help, I'm going to investigate it further when I have time just for reference, I'll post anything I find here.
-Nick
Similar Messages
-
Event Fired when a mxml component is shown on screen
hello,
I have following application structure nested up to 2/3 level.
Application
linkbar connected to viewstack
viewstack
NavigatorContent
mxml Component
NavigatorContent
mxml Component
mxml componet in turn has similar structure
componet
linkbar connected to viewstack
viewstack
NavigatorContent
mxml Component
NavigatorContent
mxml Component
and end component is form which is shown and actions performed
I want to execute specific code when the form is first time shown
which will collect data from server and will show for further actions.
User will edit/delete/update data with various button clicks.
I tried activate event on end component but it seems that it wont get
fired at all. End components are enclosed in BorderContainer or Group.
To test activate event I have used Alert.show only but popup is not shown
when I select link button on penutimate linkbar.
If I am doing something wrong please let me know as well please
guide me which event shall I use so that whenever linkbutton is
pressed on linkbar it will fire that event. In that event I can check
whether it has been called earlier by checking some variable which
will be null in creation complete and set in event fired when linkbutton is pressed.
Thanks and regards
RajaI think 'creationComplete' is the closest event to what you are looking for.
-
AfterValueChange event trigged when it shouldn'tbe...
Hi there,
I'm hoping that someone out there has experienced the following (and
knows why it is happening. ) :-)
I have a couple of windows on which the AfterValueChange event is
triggered on a field upon hitting the delete key.
We all know that this should only happen upon leaving the field, ie. the
field loosing focus. The problem is that I'm trying to recreate this in
a simple test class, but now it won't happen. I still have the original
windows on which it is happening, but I would like to construct
something small and simple to send to Forte.
Any ideas as to why this could be happening?
Many thanks in advance.
Jaco
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Thanks for the replies so far, but this is not the problem. I know about
the "Validate on keystroke" option and it is definitely swithed off.
I was rather thinking along the lines of this being be a 'funny' in
Forte. Has anyone seen this before? Here is more information:
1) The windows that it is happening on all have parent windows.
2) The fields with this problem are all part of a mapped gridfield, ie.
it has a type.
However, I have constructed a test class with these characteristics, but
it is no good. There must be something else that could cause this. Any
ideas?
-----Original Message-----
From: Rottier, Pascal [SMTP:[email protected]]
Sent: Friday, October 09, 1998 10:53 AM
To: Fouche, Jaco
Cc: Forte Users Mailing list
Subject: RE: AfterValueChange event trigged when it shouldn't be...
Hi Jaco,
Check if the option "Validate on keystroke" is set
to true on the widget that posts the AfterValueChange.
If so, than that's the reason. Turn it off and your
problem will go away.
Pascal
Hi there,
I'm hoping that someone out there has experienced the following (and
knows why it is happening. ) :-)
I have a couple of windows on which the AfterValueChange event is
triggered on a field upon hitting the delete key.
We all know that this should only happen upon leaving the field, ie.
the
field loosing focus. The problem is that I'm trying to recreate this
in
a simple test class, but now it won't happen. I still have the
original
windows on which it is happening, but I would like to construct
something small and simple to send to Forte.
Any ideas as to why this could be happening?
Many thanks in advance.
Jaco
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
AltKey Uniqueness Rule firing when it shouldn't
Hello,
I am using JDev 11.1.1.4.0.
I have a 'Name' field that has Altkey for uniqueness rule. It works fine. In fact, it works too well that the rule fires when it shouldn't.
So I was looking for an example to execute the validation conditionally, for my case only when 'Save'.
Any suggestion/comment appreciated.
Thank you
Bones JonesNo reason in particular, when I created the class, FlashBuilder put it in there (I'm using Flash Pro CS5 + Flash Builder 4). I read that it calls it by default when the class is constructed, so having it in or out didn't really matter. I did comment it out with no luck, but I ended up shifting around the timeline quite a bit today and the problem has gone away. It seemed to only do it when it was in the first frame.
Thanks for your help, I'm going to investigate it further when I have time just for reference, I'll post anything I find here.
-Nick -
Event firing when XML data is imported via Acrobat
When a user in Acrobat imports xml data into a form, what event gets fired? I have a couple of actions that occur on change, but when I import xml into the form (to fill in values, etc), this event doesn't fire. Is it on initialize?
Yea, I dug a little deeper and ended up using the initialize event. What I did was on the initialize event I execute the exit script. So it's the same as the user physically putting the value in. Plus, I dont have to have the same code in two places.
In the initialize event code:
myThingie.execEvent("exit");
Pretty cool little function if you find it useful. Thanks for the reply. -
MediaPlayback - event fired when file not found?
I want to have a playlist containing mp3 from multiple sites.
I would like to use the MediaPlayback component to play these. If
we try to play an mp3 that is not currently available we'd simply
like to skip to the next mp3. I don't see any event or anyway to
detect if a file was not found.
We'll be using the "complete" event to know when to start the
next mp3. Unfortunately this event it not fired in the scenario
where the file is not available.
Any suggestions (other than using the Sound object directly)?
Thanks in advance.Hi,
Refer these links for Java i\o operations.
http://www.java2s.com/Code/Java/File-Input-Output/CatalogFile-Input-Output.htm
http://download.oracle.com/javase/tutorial/essential/io/check.html
http://www.roseindia.net/java/example/java/io/
For java mapping help, pls search in sdn, you will find lots of helpful blogs
Regards -
Hi,
everything is in the title.
I want to set a page at the beginning of the book where the reader will have to wait until the book is fully loaded in iBooks.
(A kind of onLoad event but for the whole book)
This will be usefull to prevent lags when reading the fixed-layout epub.
Thank you.Hi Oliboy50,
I believe the iBooks app handles this for you.
Are you able to use the DOMContentLoaded event listener like this to solve your problem? There is a function in ibooks.js to initialise all js, you could potentially add your functionality to that once iBooks as done the init. Have a look around line 200.
window.addEventListener("DOMContentLoaded", function() {
// Your code here
}, false);
Hope that hepls.
Seb -
Re: AfterValueChange event triggered when it shouldn'tbe
<[email protected]>
Hi there,
I'm hoping that someone out there has experienced the following (and
knows why it is happening. ) :-)
I have a couple of windows on which the AfterValueChange event is
triggered on a field upon hitting the delete key.
We all know that this should only happen upon leaving the field, ie. the
field loosing focus. The problem is that I'm trying to recreate this in
a simple test class, but now it won't happen. I still have the original
windows on which it is happening, but I would like to construct
something small and simple to send to Forte.
Any ideas as to why this could be happening?
Many thanks in advance.
JacoIs the "Validate on KeyStroke" property turned on for the widget in the
original window? I believe the AfterValueChange gets triggered every
time you hit a key if it is.
I can't think of anything else, off the top of my head. I haven't had my 1st
pot of coffee yet....
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hello Jaco,
i could not reproduce the problem you have. The best way for a help in your
case is a little sample which may be modified by others (forte-users).
Please attach your PEX-Code in your next reply and describe it.
I'am absolutly sure that we are able to give an helpfull answer.
One question forward: 'Do you use the FunktionKey-Event in your Window(s)?'
Sorry, but no other way exists to resolve your problem (We/I'am too far,
for making a visit :-) ).
At 08:14 09.10.98 GMT, you wrote:
<[email protected]>
Hi there,
I'm hoping that someone out there has experienced the following (and
knows why it is happening. ) :-)
I have a couple of windows on which the AfterValueChange event is
triggered on a field upon hitting the delete key.
We all know that this should only happen upon leaving the field, ie. the
field loosing focus. The problem is that I'm trying to recreate this in
a simple test class, but now it won't happen. I still have the original
windows on which it is happening, but I would like to construct
something small and simple to send to Forte.
Any ideas as to why this could be happening?
Many thanks in advance.
Jaco -
What business event executes when a Party is updated
Hi,
What business event executes when a Party is updated ?
I tried with
oracle.apps.ar.hz.Organization.update
oracle.apps.ar.hz.CustomerProfile.update
None of these seems triggering when Party information is updated example: Customer Profile, Customer Name itself.
Thanks
SaikrishnaPlease see if (Customers Workbench: No Business Event Firing When Activating/Inactivating An Account Contact (Doc ID 1553927.1)) helps.
Thanks,
Hussein -
Which event will be fired when I after set JFrame.setVisible(false)
Experts.
I want to know which event will be fired when I after set JFrame.setVisible(false)?
Because I need to check a thread is finished it job or not.
I have checked windowClosing event, but it doesn't work.
Thanks
FrancisOh....
Sorry, I find it will fired on componentHidden event.
Very sorry. -
Lync Phones Disconnect Events are Firing when a call is answered
Im working with Lync client SDk 2013. I am trying to write a simple desktop application to determine when a call is Ringing, Answered, and Disconnected. I testing my application using Lync Desk phone (polycom phones). When i call my Lync phone, i get a "Notified"
event, and when That call is answered, i get a "Disconnected" event.
private static LyncClient _client;
private static void Main()
_client = LyncClient.GetClient();
_client.ConversationManager.ConversationAdded += ConversationManager_ConversationAdded;
_client.ConversationManager.ConversationRemoved += ConversationManager_ConversationRemoved;
Console.ReadLine();
static void ConversationManager_ConversationAdded(object sender, ConversationManagerEventArgs e)
e.Conversation.Modalities[ModalityTypes.AudioVideo].ModalityStateChanged += Program_ModalityStateChanged;
static void Program_ModalityStateChanged(object sender, ModalityStateChangedEventArgs e)
Console.WriteLine("Modality state changed "+ String.Format("{0} => {1}", e.OldState, e.NewState));
static void ConversationManager_ConversationRemoved(object sender, ConversationManagerEventArgs e)
//....some code.
}output from this code isModality state changed Disconnected => NotifiedModality state changed Notified=> DisconnectedI did come across few nice articles, but those don't seem to help me.http://blog.thoughtstuff.co.uk/2013/01/tracking-lync-conversations-in-code/http://msdn.microsoft.com/en-us/library/office/hh345194(v=office.14).aspxIs there any way to determine when the call is answered and disconnected?ThanksHi,
You might post the issue on Lync MSDN forum and more developing expert will help to verify if this can be achieved using Lync SDK. Thank you for your understanding.
http://social.msdn.microsoft.com/Forums/en-US/communicatorsdk/threads
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support -
What event is fired when notification close ?
Hi,
I've subscription "oracle.apps.wf.notification.close" event,but when notification close my codes don't still work and have no exception come out !
I've try my codes by subscription "oracle.apps.wf.notification.send" event , and when notification send it can work ! I'm sure that there have no different between the subscription "oracle.apps.wf.notification.close" and the subscription "oracle.apps.wf.notification.close" in the subscription step .
Doesn't when notification closing raise the "oracle.apps.wf.notification.close" event?
I need your help!
thanks,
Your friend, yao!Pl post details of OS, database and EBS versions. Is the "oracle.apps.wf.notification.close" event enabled ?
HTH
Srini -
SQL dependency OnChange event constantly when using a specific database on SQL server
Hello
I did some prototype dev using a new db I created on our dev SQL server instance and OnChange events only when the underlying data was changed. I tried the same thing with another database on the same server which is a replica of our live database. With
this it just kept firing the event regardless of what activity there was in the table. I even created a totally empty table and used that for the query and it still fired on an empty table.
Is there anything obvious that I need to do to this database to stop this? I'm pretty sure my c#is ok just confused by this
Thanks,
Dave.On the db where it works the properties in the SqlNotificationEventArgs are different to the one that does not work:
So it looks as though for some reason it never gets to subscribe to this event.
I tried using ssbdiagnose but to be honest I don't know what the From Service and To Service parameters are in my case.
Here's what I got anyway:
C:\Program Files\Microsoft SQL Server\100\Tools\Binn>ssbdiagnose -E -d BMC_Ecomm
erce CONFIGURATION FROM SERVICE /test/initiator TO SERVICE /test/target
Microsoft SQL Server 10.50.1600.1
Service Broker Diagnostic Utility
D 29997 W28SDEV05 Transport Service Broker GUID is identical to tha
t of database DynamicRouting on server W28SDEV05
D 29997 W28SDEV05 Transport-TempRename Service Broker GUID is identical t
o that of database DynamicRouting on server W28SDEV05
D 29912 W28SDEV05 BMC_Ecommerce Service /test/initiator was not found
D 29912 W28SDEV05 BMC_Ecommerce Service /test/target was not found
D 29931 W28SDEV05 BMC_Ecommerce There is no route for service /test/tar
get
D 29931 W28SDEV05 BMC_Ecommerce There is no route for service /test/ini
tiator and broker instance BB64B7AA-5C39-404B-B7A9-81D3756A4C60
D 29964 W28SDEV05 BMC_Ecommerce The master key was not found
7 Errors, 0 Warnings
Worth noting that the one that worked gets the same results with ssbdiagnose
SELECT service_broker_guid
FROM sys.databases
WHERE database_id = DB_ID();
ran in DynamicRouting gives : 4AC2C25B-E612-44B2-BC43-687F918ABD16
SELECT service_broker_guid
FROM sys.databases
WHERE database_id = DB_ID();
ran in BMC_Ecommerce gives : BB64B7AA-5C39-404B-B7A9-81D3756A4C60 -
Revision: 11159
Author: [email protected]
Date: 2009-10-26 12:12:10 -0700 (Mon, 26 Oct 2009)
Log Message:
Updating unit test with a check to all expected events firing properly.
Modified Paths:
osmf/trunk/framework/MediaFrameworkIntegrationTest/org/osmf/content/TestContentElementInt egration.ascamickr wrote:
Do you really expect us to read all that code to try and understand what you are attempting to do?
If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
http://homepage1.nifty.com/algafield/sscce.html
Absolutely not, I wouldn't post such a large amount of code expecting people to read it. I indicated that I believe my error only lies within one of two classes, and that I highlighted the two methods with comments.
I was told to create an SSCCE as you have mentioned, but I believe all of this code is necessary for the program to run properly, so I only provided it all for compilation purposes.
I'll check the examples posted, and if I need to I'll see if I can change my methods to use the swing timer class as the first reply mentions, but I did not think this would be necessary.
Edited by: Drew___ on Nov 29, 2007 3:28 AM
I have just figured out what my problem was, sorry it was quite a simple mistake. When checking for user input, I was immediately resetting the eventFlag or something afterwards. This meant the object would stop moving as it couldn't remember my last keypress. Thanks for your help, those tutorials are really good. -
Event firing multiple times (et_Got_Focus)
Hi,
I just noticed while debugging my Add On code that the et_Got_Focus event which I have added to my event filters is triggered 64 times when I change a field value and then move to a different field. This not only happens in the matrix when changing field values and tabbing through but also in the header fields.
This has got to be a bug and it is not only slowing down the A/P Invoice form but it is potentially very dangerous to have an event firing 64 times when it should only be fired once.
To test this all one needs to do is add the et_Got_Focus event to the event filter with the A/P Invoice form, then add a debug statement to write out the itemvalue properties and you will see once you edit a value and tab you will get 64 statements that are the et_Got_Focus event, BeforeAction false for the same field or column when it should only occur once.
I have a very digrunted client that is very frustrated due to the amount this slows down data entry in the A/P Invoice. I cannot get rid of this event because there is a particular field I am monitoring for the got focus event so I can stop it under certain circumstances.
If anyone else has experienced this or knows how to resolve this please let me know. I guess if I don't find out why this is happening I will post a CSN to SAP.
Thanks very much,
David Wall
Here is a sample of my debug output messages for one update of a single field and then tabbing out:
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - False
et_GOT_FOCUS - - FalseHi David,
We at Self Informatique France have the same problem of getfocus firing many times at one of our customers in Algeria although wae are not using formated search.Any solution ?
Best Rgds.
Antoine Egeileh
President
Self Informatique
[email protected]
Maybe you are looking for
-
Hello, Is there someone who tried to export CAD models (created in Catia V5R17 and converted to A3D with PRC conversion )with PMI data ? Is it a successful process ? I mean ,is the PMI data lost when exporting to STEP ? Thx in advance
-
Drop Down Menus problem with DHTML in Navigator 6
I realized that Navigator6 does not support "layer" architecture anymore. So, I need to modify the code like following. I think Navigator6 supports "style" instead, but could not find any documentaion in Netscape website what type of DOM they support
-
Hi, I'm trying to use a proxy (BTGuard) with my Mac Mini and MacBook that are connected to a 2wire 3800HGV-B (Uverse). I've tried opening the ports that the proxy is using to no avail. When I try it as a PC (running Paralells) is works fine, which le
-
E71 + Windows Live Messenger server settings
Hi all, Any idea what the server settings are for Messenger/IM? ie. Under IM -> Settings -> Servers: There is a field that asks for "web address". What should the input for this be? Thanks in advance!
-
BT Tech Helpdesk corrupted registry
At the beginning of June 2010 I lost my wireless connection and phone Tech helpdesk. Advisor proceeded to do a remote access assistance to sort the issue. He then DELETED my Network Adapter Driver without my permission and in doing do corrupted the r