Why tween don't reflect the value in textField.y?

Here are my codes:
function textReady(event:Event):void
    txtFormat.font = weiss.fontName;
    txtFormat.color = 0x000066;
    txtFormat.size = 24;
    //txtField.x = stage.stageWidth;
    //txtField.width = 800;
    txtField.autoSize = TextFieldAutoSize.LEFT;
    //txtField.height = txtField.autoSize
    txtField.wordWrap = false;
    txtField.text = event.target.data;
    txtField.setTextFormat(txtFormat);
    txtField.y = 350;
    txtField.embedFonts = true;
//load external texts
textLoad.load(textRequest);
textLoad.addEventListener(Event.COMPLETE, textReady);
txtField.x = stage.stageWidth;
addChild(txtField);
TweenLite.to(txtField, 30, {x:-stage.stageWidth*2.25, ease:None.easeInOut, delay:0.5, onComplete:myFunction});
function myFunction():void {
    textLoad.load(new URLRequest("inspiration.txt"));
    txtField.x = 150;
    txtField.y = 100;
    txtField.alpha = 0;
    TweenLite.to(txtField, 5, {alpha:1, onComplete:nextText});
    //slideXTween = new Tween(txtField, "alpha", None.easeNone, 0, 1, 70, true);
    //TweenLite.to(txtField, 30, {x:-184, ease:None.easeInOut, delay:0.5, onComplete:nextText});
    //trace("tween finished");
    trace(txtField.y);
function nextText():void{
    trace("tween done");
I did a trace on the txtField.y and it does show 100 in the myFunction. However, when the textLoad appears on the screen, it still appears at y=350. Any idea why this is happening?

Okay, here is my full code:
//import classes
import com.greensock.TweenLite;
import caurina.transitions.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
//end of importing
//start of sound section is for sound
var soundReq:URLRequest=new URLRequest("PaukenBrumfiel_AngelsOnHigh.mp3");
var sound:Sound = new Sound();
sound.load(soundReq);
sound.addEventListener(Event.COMPLETE, onComplete);
//end of sound section
//Loading external texts
var weiss:Font = new Weiss();
var slideXTween:Tween;
var txtAlphaTween:Tween;
var txtNextText:Tween;
var txtContainer:Sprite;
var txtField:TextField = new TextField();
var textRequest:URLRequest=new URLRequest("happyHoliday.txt");
var textLoad:URLLoader = new URLLoader();
var txtFormat:TextFormat = new TextFormat();
//end of loading external texts
function onComplete(event:Event):void {
    sound.play();
function textReady(event:Event):void
    txtFormat.font = weiss.fontName;
    txtFormat.color = 0x000066;
    txtFormat.size = 24;
    //txtField.x = stage.stageWidth;
    //txtField.width = 800;
    txtField.autoSize = TextFieldAutoSize.LEFT;
    //txtField.height = txtField.autoSize
    txtField.wordWrap = false;
    txtField.text = event.target.data;
    txtField.setTextFormat(txtFormat);
    txtField.y = 350;
    txtField.embedFonts = true;
//load external texts
textLoad.load(textRequest);
textLoad.addEventListener(Event.COMPLETE, textReady);
txtField.x = stage.stageWidth;
addChild(txtField);
trace("First txtField.y: " + txtField.y);
TweenLite.to(txtField, 30, {x:-stage.stageWidth*2.25, ease:None.easeInOut, delay:0.5, onComplete:myFunction});
function myFunction():void {
    trace("Second txtField.y: " + txtField.y);
    textLoad.load(new URLRequest("inspiration.txt"));
    txtField.x = 150;
    txtField.y = 100;
    trace("Third txtField.y: " + txtField.y);
    txtField.alpha = 0;
    TweenLite.to(txtField, 5, {alpha:1, onComplete:nextText});
    //slideXTween = new Tween(txtField, "alpha", None.easeNone, 0, 1, 70, true);
    //TweenLite.to(txtField, 30, {x:-184, ease:None.easeInOut, delay:0.5, onComplete:nextText});
    //trace("tween finished");
    trace("Fourth txtField.y: " + txtField.y);
function nextText():void{
    trace("tween done");
//end of loading external texts
Here are what the traces show:
First txtField.y: 0
Second txtField.y: 350
Third txtField.y: 100
Fourth txt/Field.y: 100
I believed I only have one textfield but again, I'm a beginner in action script.
Thanks for many of your help so far.

Similar Messages

  • Why don't match the values of printer ports, obtained through WMI in different ways?

    Why don't match the values of printer ports, obtained through WMI in different ways?
    $Ports = Get-WmiObject Win32_TcpIpPrinterPort -namespace "root\CIMV2" -ComputerName $ComputerName
    $Printers = Get-WmiObject Win32_Printer -namespace "root\CIMV2" -ComputerName $ComputerName
    Further, for example, on the same computer $Ports.Name returns me: (10.0.66.204 10.0.66.210 10.0.66.246 10.0.66.247)
    and $Printers.PortName (XPSPort: USB001 10.0.66.247 HPLaserJet400MFPM425dn 10.0.66.246 SHRFAX :) I.e. the values don't match to each other although they logically should be the same. Why so?
    In the end I need to get a binding the printer - the value (not the name) of the port. In Win32_Printer there is no such parameter, and there is no information about the printer in Win32_TcpIpPrinterPort. I wanted to connect them through port name but they
    don't match.

    Very unclear.
    Win32_Printer returns the bound port name.
    Get-WmiObject win32_tcpipprinterport -filter "Name='192.168.1.100_2'"
    ¯\_(ツ)_/¯

  • Apple TV - I Still Don't See The Value

    I have had an Apple TV for a couple of years now and unfortunately I don;t see the value in it anymore. Apple has paid no attention to what this thing can be. And while I know that the goal is to make money, it's a shame that so many digital components are being left out.
    For those of you who have an Xbox, you recently received Netflix and Last FM.
    For whatever reason, Netflix downloads almost instantly on the Xbox. Apple TV take a pretty long time, and at least 4 hours for HD movies. Why is this?
    Second, LastFm is like Pandora. While the addition to internet Radio is nice, why not bundle up with Pandora?
    Finally, why not intergrate this into other digital spaces like facebook, twitter and even Hulu..... The entire thing doesnt make sense.
    I currently only use this thing for Photos, and really that's even a pain in the *** because I need to have it identical to what's on my MAC. The whole system *****, and frankly not well thought out.
    In fact, I personally think that their should be an APP store on the Apple TV, like the Iphone..... There is so much they can do to make this system better. In the meantime, Xbox has gained ground, if not passed them as a entertainment hub for the TV.... and honestly, I think they have only scratched the surface.
    In a few years, I believe we will be capable of not needing cable, directtv, etc... We should be able to Pick "CBS" and pick a show...and watch....Through the internet. Not actually buying shows.

    While there may be groups of users who want it to be an all-singing all-dancing machine for certain tasks, not every group will want the same things. Therein lies the problem, what to develop particularly when many options won't be cash-cows.
    You presumably bought it for the feature set it had and it still has those things.
    I'd buy one tomorrow for music playback alone via the hi-fi - my wish here would be for it to support better quality PCM audio output (limited to 16 bit 44.1kHz for music).
    Mine get hours of use each day for family viewing, no messing around with VHS tapes or discs. Great.
    I wish they hadn't added YouTube in 1.01 to be honest and even some aspects of iTunes store annoy me on it, though on balance I prefer the store is present.
    I wouldn't use Twitter/Facebook and all that kind of stuff - not my thing really so it would be of no interest and just clutter menus, but I appreciate others would like them
    Adding apps/plugins would be a good way to address different wants for the system as you'd customise in line with what you wanted and wouldn't be forced to use things you didn't need.
    With regard to things like Netflix/Pandora etc many of these are country specific eg Pandora stopped those outside US from accessing it, Netflix is not available in UK. Last FM is great on the iPhone, I'd love it on the AppleTV. UK users would love BBC iPlayer, it would be useless to you.
    So without opening up the system to allow 3rd parties to deploy local content/features specific to each country I would imagine it would be very hard to target what to develop in house that would work universally.
    There are also usage concepts that annoy - syncing being one for a variety of reasons, I'd prefer a manual drag and drop method of populating it, but I mainly stream anyway. It's the AppleTV 'way' though so it won't change. USB port activation would also be incredibly handy either to backup material, extend playback storage or populate AppleTV. Again, unliklely to change.
    You presumably know the feedback link:
    http://www.apple.com/feedback/appletv.html
    AppleTV may not be perfect but I don't think there is a perfect device out there currently - the competition is certainly hotting up though.

  • Trace logs don't show the value of a procedure parameter.

    Hi;
    I am Facing a deadlock situation daily.
    I checked the alert.log and it look like this:
    ORA-00060: Deadlock detected. More info in file /oracle/admin/TEXP/udump/texp_ora_28966970.trc.Then i read the trace log, but it doesn´t show the value of procedure parameters.
    insert into estq_300 (data_movimento, codigo_transacao, nivel_estrutura, grupo_estrutura, subgrupo_estrutura,
    item_estrutura, quantidade, valor_movimento_unitario, valor_contabil_unitario, codigo_deposito, numero_lote,
    centro_custo, usuario_systextil, processo_systextil, tabela_origem, entrada_saida, numero_documento) VALUES
    (:v1, :v2, :v3, :v4, :v5, :v6, 1.00, :v7, :v8, :v9, 0, 0, :v10, :v11, 'ESTQ_300', 'E', :v12)
    End of information on OTHER waiting sessions.
    Current SQL statement for this session:
    UPDATE TB_Y SET QTDE_ESTOQUE_ATU = QTDE_ESTOQUE_ATU + :B11 , QTDE_ESTOQUE_MES =
    QTDE_ESTOQUE_MES + :B10 , DATA_ULT_ENTRADA = :B9 , DATA_ULT_SAIDA = :B8 , QTDE_ESTOQUE_F =
    QTDE_ESTOQUE_F + :B7 WHERE CDITEM_NIVEL99 = :B6 AND CDITEM_GRUPO = :B5 AND CDITEM_SUBGRUPO =
    :B4 AND CDITEM_ITEM = :B3 AND LOTE_ACOMP = :B2 AND DEPOSITO = :B1I sent the trace logs to the software supplier, but they want the parameter values.
    I'm reading the documentation and searching on the forum, but until now i can't find anything to help me. Is there any way to see the parameter value?
    This is a large database with a lot of users, so I can't trace all of them and wait the deadlock occurs.
    DATABASE:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    OS:
    AIX Version 6.1! Regards,

    sb92075,
    thanks for reply,
    This VW's helped a lot, but i have one doubt:
    Why some SQLs don´t show the value of it´s binds?
    The last captured is null too, why?
    Example:
    SELECT name, position, last_captured, value_string FROM v$sql_bind_capture WHERE sql_id LIKE '%ahfqand46px43%';
    NAME                           POSITION               LAST_CAPTURED             VALUE_STRING
    :V1                            1
    :V2                            2
    :V3                            3
    :V4                            4
    :V5                            5
    :V6                            6Thank's

  • I downloaded the new OSX mavericks in my macbook and why I don't have the new i-life and iWork

    I downloaded the new OSX mavericks in my macbook and why I don't have the new i-life and iWork

    Have you checked the Software update page at the App Store?
    And do you have iLife '11 and iWorks '09 installed? Only these versions are eligible to be updated to the new versions.

  • HT4623 I have a tmobile iphone 5 is their a reason why I don't have the update for ios7?

    I have a tmobile iphone 5 is their a reason why I don't have the update for ios7?

    Connect to itunes on your computer and try.

  • Why i don't see the verify email form apple in my gmail on my iPad ?

    Why i don't see the verify email form apple in my gmail on my iPad ?

    1. Check Spam folder
    2. Check Junk folder
    3. Check Rescue Email

  • S_jretop , s_jdktop and ADJVAPRG to reflect the value of JDK 6.0

    I am working to upgrade my 11i/9i environment to JDK 6 and am following note 401561.1.
    Oracle Solaris on SPARC (64-bit)
    s_jretop , s_jdktop shold point to the ADJVAPRG to reflect the value of JDK 6.0
    Edited by: 838982 on Apr 19, 2011 10:11 PM

    s_jretop , s_jdktop should point to the same?Please see [ID 1091824.1] and [ID 1087973.1]
    My existing s_jretop points to the embedded $COMMON_TOP/util/jre/1.1.8 as does ADJVAPRG - I was under the impression that the 1.1.8 version was to stay - that the new 1.6.1 replaces JDK only... Can you clarify?ADJVAPRG and AFJVAPRG should point to the JDK 6 executable.
    Thanks,
    Hussein

  • Why I don't see the option to download a preordered album?

    why I don't see the option to download a preordered album?

    You will probably get more information in Business Catalyst
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Why us don´t add the battery percentage on the iPod Touch?

    Why us don´t add the battery percentage on the iPod Touch?

    Apple has not said why. The terms of use for this Apple forum prohibit discussion about:
    Discussions of Apple policies or procedures or speculation on Apple decisions.

  • HT2534 Hello , why I don't have the none button ?

    Hello , why I don't have the none button ?

    How to Get Apps From the App Store Without a Credit Card
    http://ipadhelp.com/ipad-help/how-to-get-free-apps-from-the-app-store-without-a- credit-card/
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    http://support.apple.com/kb/ht2534
    If None is not available - On your computer launch iTunes and click "iTunes Store" in the left navigation pane. Click the "down arrow" next to your name at the top right side of the page and click "Account." Enter your username and password and click "View Account" to log into your account information. Next to your Payment Type, click "Edit." Select the "None" button and click "Done." Confirm that your card has been removed by returning to the Apple account information screen. Under Payment Type, it should say that there is no credit card on file.
     Cheers, Tom

  • Reflecting the value of the logged in user in an af:inputText Column

    Hi
    I have a Af:table with multiple Rows. In one of my Af:columns I want to reflect the logged in user and store this value when I commit the page.
    I am using JAZN security. Please Help.

    Please follow the guidelines available at the top of this forum when posting. As such give us more details about what version of JDeveloper you're using, and which technologies including the model layer like ADF BC you're using.
    If you're using ADF BC, at the EO attribute level there are history properties for defaulting an attribute's value to that of the JAZN user. This is an ideal location to set this if you're using ADF BC. But as you haven't included any information about what model layer technology you're using it is hard to help you further.
    CM.

  • Why Can't You Set The Value Of A Boolean Wrapper?

    I don't see any methods in the Boolean class that would allow you to set the value of the underlying primitive. It seems that once it's created, that's it.
    My reason for wanting to do this is that I have some synchronized code which is synchronizing on the value of boolean flag. Since you cannot synchronize on a primitive type, I decided to wrap it in a Boolean object....
    Do I have to create my own custom class for this? Not that it would be hard, but it just seems like I shouldn't have to.
    Thanks,
    John
    PS: If the above wasn't clear, the synchronized code looks like this:
    //client code
    synchronized (myBooleanFlag) {
      while (!myBooleanFlag.booleanValue())
        myBooleanFlag.wait();
    //code which changes the flag
    synchronized (myBooleanFlag) {
      myBooleanFlag.setValue(true); //WAIT!! There's no method to do this
      myBooleanFlag.notifyAll();

    Hi,
    You usually write it like this:
    Object variableLock = new Object();
    boolean variable = false;
    synchronized (variableLock) {
    variable = true;
    }So, you don't have to synchronize on the value that
    you want to change, just make all competing code
    synchronize on the same (guard) object.Yes. That's what I want. Once again, Kaj saves the day!
    Thanks,
    John

  • In log file output few 00's are appended why? (Don't run the attached vi. It disables all the devices in your system)

    Sorry wrongly posted here. Posted back in LabVIEW board.
    Message Edited by mathan on 11-17-2008 11:40 PM

    It seems that the length depends on the value you get out of the dll (dwARTLen). You have it wired as 100, so it seems the dll simply returns the input. Maybe you want to check the documentation for the dll on how to get the real lenght.
    A lot of your code is very confusing....
    You have multiple subVIs that are basically identical, but with different names. Wouldn't one of those be enough?
    What is the purpose of the FOR loop in the adhc.vi? Since you autoindex into a one-row array it will run only once and the result is the same as if you would delete the FOR loop.
    Your main VI is extremely repetitive with lots of duplicate code. You have 12 instances of the filename constant, one would be enough! Enable.vi is identical to disable.vi except for a diagram constant. Many identical string constant ("ATR:", "Card access for device: ", etc.), again one each is enough.
    Here a nice state machine would make all the difference.  You'll only need about 10% of the current code, eliminating all the repetitions.
    LabVIEW Champion . Do more with less code and in less time .

  • Formula problem, sometimes don't add the value

    Hi everybody,
    I'm trying to learn manage this tool (crystal report) I use visual basic 2005 with the crystal for visual basic. Actually I've a problem with some formula fields. My report has several summarize columns (I sum the values) , not all the columns have values so not all the result fields has values. The problem becomes because I have to sum the result fields, and if i do a formula with this:
    + {@horasTinsitu} + {@ConvertirEnSegundosTreal} + {@ConvertirEnSegundosTtaller}
    But only works if the three formulas has values, if one formula is empty the result looks empty, I think the problem was in the value of the formulas and I tried to evaluate with u201Cisnullu201D but neither.
    Please, somebody has an idea.
    Thanks everybody
    Well my English it's bad but I think it's possible understand it.

    I finally do it, this is the code
    local numbervar InSitu;
    local numbervar Remote;
    local numbervar Taller;
    local numbervar Phone;
    if isnull({@T_insitu}) then  //{@T_insitu} is the formula to summarize details and add their values...
        InSitu:= 0
    else
        InSitu:= {@T_insitu};
    if isnull({@T_remoto}) then
        Remote:= 0
    else
        Remote:={@T_remoto} ;
    if isnull({@T_taller}) then
        Taller:= 0
    else
        Taller:= {@T_taller};
    if isnull({@T_telefono}) then
        Phone:= 0
    else
        Phone:={@T_telefono} ;
    InSituRemoteTallerPhone;
    Now looks easy but it's very diferent of the visual code I usually do.
    well  THANK YOU VERY MUCH EVERY BODY...
    Dani

Maybe you are looking for

  • Customer running ledger balance

    i book invoices for customers in the table; create table tinv (ccode varchar(3), ctxnno number, cdate date, cei varchar2(1), camt number, cmemo varchar2(200)); insert into tinv values ('101',1,to_date('15/01/2009','dd/mm/yyyy'),'E',150,null); insert

  • Sound quality

    I'm making a music sampler Flash movie to play in my site. Just a simple one with play and stop buttons. My music file is MP3 which I set to stream. 44kHz, mono, 16 bit, MP3 compression, Quality set to Best. I have the mp3 on its own layer in the tim

  • How do I migrate my apps and itunes from my old email ID to my new one

    I moved and my previous cable provider shutdown my old email address and I have forgotten the password for that Itunes ID and I need to migrate it to my new ID/email.  Is there a way to do merge these 2 accounts for apps and music?  I have the origin

  • Getting EJB spec violation error - please help

    I'm getting following error while trying to deploy my stateless SB. 17:13:30,399 WARN [verifier] EJB spec violation: Bean : UnifiedMsg Method : public abstract UnifiedMsg create() throws CreateException, RemoteExcep tion Section: 7.10.6 Warning: The

  • Weblogic 8.0 and IIS 5.0 plug in issue

    hi, I have a computer with Windows 2000 server and IIS 5.0 installed. I am trying to open a connection with a Weblogic Server 8 SP3 on another machine. My iisproxy.dll and iisproxy.ini are on the folder: C:\WINNT\system32\inetsrv iisproxy.ini : WlFor