Missing right paren and left brace

Hello !
I can't rid of  :
1084: Erreur de syntaxe : rightparen est attendu devant semicolon.
1084: Syntax error : expecting rightparen before if
1084: Syntax error : expecting rightbrace before leftbrace
The code :
import fl.transitions.Tween;
import fl.transitions.easing.*;
var tween:Tween = new Tween(texte, "y", Strong.easeOut, 0, 0, 30);
var tween:Tween = new Tween(texte2, "y", Strong.easeOut 0, 0, 60);
tween.stop()
var urlLoader:URLLoader = new URLLoader()
urlLoader.addEventListener(Event.COMPLETE, completeXMLHandler)
function completeXMLHandler(evt:Event)
var xml:XML = new XML(evt.target.data)
texte.texte.htmlText = xml.descendants("texte")[0].text()
texte2.texte2.htmlText = xml.descendants(("texte2")[0].text()
if(texte.height>masque.height){
if(texte2.height>masque2.height){
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler)
urlLoader.load(new URLRequest("xml.xml"))
texte.texte.autoSize = TextFieldAutoSize.LEFT
texte2.texte2.autoSize = TextFieldAutoSize.LEFT
texte.y = masque.y
texte2.y = masque2.y
texte.mask = masque
texte2.mask = masque2
function mouseMoveHandler(evt:MouseEvent)
/*on recupere la position de la souris par rapport au masque*/
var p:Number = (mouseY-masque.y)/masque.height
var p:Number = (mouseY-masque2.y)/masque2.height
if(p<0)p=0
if(p>1)p=1
tween.continueTo(masque.y-p*(texte.height - masque.height),30)
tween.continueTo(masque2.y-p*(texte2.height - masque2.height),30
Part of the code must be bad... but I'm not able to fix it !
I have two texts... A mouse scroll animation is added based on the mouse position... So, I can scroll through all text...
Message was edited by: danae830

in order for you code to work it should look like this:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var tween:Tween = new Tween(texte, "y", Strong.easeOut, 0, 0, 30);
var tween1:Tween = new Tween(texte2, "y", Strong.easeOut, 0, 0, 60);
tween.stop()
var urlLoader:URLLoader = new URLLoader()
urlLoader.addEventListener(Event.COMPLETE, completeXMLHandler)
function completeXMLHandler(evt:Event)
    var xml:XML = new XML(evt.target.data)
    texte.texte.htmlText = xml.descendants("texte")[0].text()
    texte2.texte2.htmlText = xml.descendants("texte2")[0].text()
    if(texte.height>masque.height)
        if(texte2.height>masque2.height)
            stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler)
urlLoader.load(new URLRequest("xml.xml"))
texte.texte.autoSize = TextFieldAutoSize.LEFT
texte2.texte2.autoSize = TextFieldAutoSize.LEFT
texte.y = masque.y
texte2.y = masque2.y
texte.mask = masque
texte2.mask = masque2
function mouseMoveHandler(evt:MouseEvent)
    /*on recupere la position de la souris par rapport au masque*/
    var p:Number = (mouseY-masque.y)/masque.height
    var p:Number = (mouseY-masque2.y)/masque2.height
    if(p<0)p=0
    if(p>1)p=1
    tween.continueTo(masque.y-p*(texte.height - masque.height),30)
    tween1.continueTo(masque2.y-p*(texte2.height - masque2.height),30)
first - why did you give to both of your tween objects the same name?
in the line -
texte2.texte2.htmlText = xml.descendants("texte2")[0].text()
there was a redundant '('.
and in the line -
tween1.continueTo(masque2.y-p*(texte2.height - masque2.height),30)
there was a missing ')' (i've also renamed the tween object to 'tween1')
that should do it i think

Similar Messages

  • Using Right-justified and left zero-filled condition in message mapping of

    Hi,
    My Interface is outbound Interface.
    Suppose source field named 'MobNumber' is mapped with Target field named 'MobileNumber'.Condition is AS IS(Right-justified and left zero-filled).
    How should i do this mapping?
    Thanks,
    Sanghamitra

    Hi Sanghamitra,
         Similar question ahs been answered earlier in this thread
    Re: Message Mapping using Left justified, right blank/space filled
    just replace the filler variable by zero in my post
    One small request, if you think your questions are being answered correctly and properly, please kindly, if possible, close down the threads. This way forum members/users  who later look up for solutions to similar problem, they know for sure that the problem was finally solved, with the solutions provided in the thread.   
    regards
    Anupam
    Edited by: anupamsap on Aug 3, 2011 11:27 AM

  • Drag and Drop feature in start menu between right side and left side

    Hello , I think it is a good idea to allow the user to drag items and apps from the left side of start menu and drop them in the right side, and vice versa. Such feature make life easier than clicking right button and choose unpin or pin to start.

    If you want your idea/opinion heard, please use the Feedback app.
    Posting at the forums won't get their attention, I don't think.

  • Magic Mouse-Right click and left click reversed?

    Hello! Thanks in advance for any info you can provide regarding my problem. My wireless keyboard and magic mouse recently has been disconnecting from Bluetooth. A few days ago they both quit, and after a call to apple tech support, I tried everything, including re-loading my system software(Mac Pro, Snow Leopard 10.6.2) When my keyboard and mouse finally came back up, when I de-selected the right click, the mouse wouldn't click. The cursor moves around, but no click. I have to plug in another mouse and select right click, and then the mouse will click, but the right and left click are reversed.
    At one point, when plugging in an old wired mouse, I was able to select whether I wanted to enable the right or left click, and when I selected left click, the mouse quit clicking. I can't seem to get thatoption now with a wired mouse, and that might not even be related.
    Can anyone help! I'd like to get my Magic mouse working correctly!
    Thanks for all your help!
    Mark S.

    Hello ms:
    Welcome to Apple discussions.
    Try trashing a preference file (com.apple.bluetooth.plist) and restarting.
    Barry

  • Right hand and left hand click without mouse

    Hi, i'm novice in using mac. I'm not to sure how to use right hand or left hand click without using mouse. For instance, how do i click download when i gonna download mp3 files? Pls help

    Did you mean how to do a normal click and a right-click?
    For normal click, you can either use the big button below the trackpad or you can tab the trackpad (Note that tabbing is disabled by default, you can enable it from System Preferences>Mouse&Keyboard).
    To right click, tab trackpad with 2 fingers.
    Hope this helps

  • V32 no right click, and left clicking sporadically works

    Since the v32 upgrade I have no right click functionality. Left clicking works on some things and not on others, notably menu buttons.
    Disabling ALL addons does not fix problem
    Safe mode works fine
    Reset does not fix problem
    Mouse OK outside FFox

    You can try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    You need to close and restart Firefox after toggling this setting.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration

  • Right() and Left() method

    Hello,
    Is there an Right(x) and left(x) alternative for the VB Right and Left.
    The meaning is to return the x Right or x Left characters from a String.
    kind regards

    805380 wrote:
    This one i know.
    There seems to be no other alternative.No, there is. Write it yourself. Here's a "left" for you:
    public static final String left(String s, int n) {
       return s.subString(0, n);
    }I'll leave the arguments as to why it wasn't put in String up to others, but "why bother" sounds like a good start to me
    And I'll leave "right" up to you.
    Winston

  • Query is throwing an error like missing right paranthesis.,

    Hi,
    The below query is throwing an error like missing right paranthesis.,
    and Is there any way to write the same query in a simpler way ?
    SELECT AVALABLEBALANCE
    FROM (
    ( SELECT SUM(TH1.TRANSACTIONAMOUNT)
    FROM TRANSACTIONHISTORY TH1,
    TRANSACTIONTYPE TT,
    CARDDETAIL CD,
    P2P_CARDDETAIL P2P
    WHERE TH1.TRANSACTIONTYPEID = TT.TRANSACTIONTYPEID
    AND TH1.CARDID = CD.CARDID
    AND CD.CARDID = P2P.CARDID
    AND TH1.CARDID = 6013
    AND TT.TRANSACTIONTYPECODE IN ('WITHDRAWAL_CHECK_FEE')
    AND TRUNC(TH1.TRANSACTIONDATETIME) = TRUNC(TH3.TRANSACTIONDATETIME)
    GROUP BY TH1.TRANSACTIONTYPEID,TH1.CARDID,TRUNC(TH1.TRANSACTIONAMOUNT)) -
    ( SELECT SUM(TH2.TRANSACTIONAMOUNT)
    FROM TRANSACTIONHISTORY TH2,
    TRANSACTIONTYPE TT,
    CARDDETAIL CD,
    P2P_CARDDETAIL P2P
    WHERE TH2.TRANSACTIONTYPEID = TT.TRANSACTIONTYPEID
    AND TH2.CARDID = CD.CARDID
    AND CD.CARDID = P2P.CARDID
    AND TH2.CARDID = 6013
    AND TT.TRANSACTIONTYPECODE IN ('FUND_TRANSFER_RECEIVED')
    AND TRUNC(TH2.TRANSACTIONDATETIME) = TRUNC(TH3.TRANSACTIONDATETIME)
    GROUP BY TH2.TRANSACTIONTYPEID,TH2.CARDID,TRUNC(TH2.TRANSACTIONAMOUNT))
    ) T , TRANSACTIONHISTORY TH3
    WHERE TH3.CARDID = 6013

    Hi Sekar,
    Here is your formatted code:
    /* Formatted on 2007/11/16 16:42 (Formatter Plus v4.8.0) */
    SELECT avalablebalance
    FROM ((SELECT SUM (th1.transactionamount)
    FROM transactionhistory th1,
    transactiontype tt,
    carddetail cd,
    p2p_carddetail p2p
    WHERE th1.transactiontypeid = tt.transactiontypeid
    AND th1.cardid = cd.cardid
    AND cd.cardid = p2p.cardid
    AND th1.cardid = 6013
    AND tt.transactiontypecode IN ('WITHDRAWAL_CHECK_FEE')
    AND TRUNC (th1.transactiondatetime) =
    TRUNC (th3.transactiondatetime)
    GROUP BY th1.transactiontypeid,
    th1.cardid,
    TRUNC (th1.transactionamount))
    MINUS
    (SELECT SUM (th2.transactionamount)
    FROM transactionhistory th2,
    transactiontype tt,
    carddetail cd,
    p2p_carddetail p2p
    WHERE th2.transactiontypeid = tt.transactiontypeid
    AND th2.cardid = cd.cardid
    AND cd.cardid = p2p.cardid
    AND th2.cardid = 6013
    AND tt.transactiontypecode IN ('FUND_TRANSFER_RECEIVED')
    AND TRUNC (th2.transactiondatetime) =
    TRUNC (th3.transactiondatetime)
    GROUP BY th2.transactiontypeid,
    th2.cardid,
    TRUNC (th2.transactionamount))) t,
    transactionhistory th3
    WHERE th3.cardid = 6013
    -Edit: Lol this forum's text box does not have a proper formatter to show our codes perfectly :(.. Very sorry about the expected format here.. Lol !!
    ***Lol Poor Format***
    Message was edited by:
    user599090
    I replaced the '-' with MINUS Keyword. That was the mistake you made i guess.

  • Error 1158 "missing left brace"

    the following is my code. as you can infer from it's
    simplicity, I am inexperienced.
    import flash.events.MouseEvent;
    import flash.events.IEventDispatcher;
    fatmax.addEventListener(MouseEvent.MOUSE_OVER,extend);
    function extend(event:MouseEvent)void:
    trace("extended");
    the compiler gives the error of: 1158: Syntax error: missing
    left brace ({) before the function body.
    Yet, as can be clearly seen, there is a left brace.
    also, i do not intend for this to be void, but am just trying
    to get the button to work right now. When I later want it to play a
    motion tween that is on a different layer, how do I do that?

    Hi,
    import flash.events.MouseEvent;
    import flash.events.IEventDispatcher;
    fatmax.addEventListener(MouseEvent.MOUSE_OVER,extend);
    function extend(event:MouseEvent)
    :void
    trace("extended");
    You can then use the gotoAndPlay / myMovieClip.gotoAndPlay
    function.

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • Using Rollup to get subtotals and grand total - missing right pren error

    Hello,
    I am trying to create sub totals by person_id and a grand total row in my APEX report but I get a "missing right pren error." I finally figure out that I need to eliminate column alias names to fix this problem, however, I now get an ambigous column reference. I am making this change in my main SQL report statement, however, I was wondering if I should be using the "group by Rollup" somewhere else while using "Break Formatting."
    I would appreciate any help.
    Thanks
    leh

    Can you post the Query please?

  • Hi, Just switched from CS6 to PS CC. I am used to using ACR in CS6 with it's preview checkbox in the upper  right-hand corner. I do not see that checkbox in PS CC. I see that they have added side-by-side, right and left and top and bottom before and after

    Hi,
    Just switched from CS6 to PS CC. I am very comfortable using ACR in previous versions. I liked to use the preview checkbox located in the upper right-hand corner to see before and afters. That checkbox is no longer in my version of PS CC. I see that they have side-by-side, top and bottom and right and left before and after options in the lower right-hand corner in this version. Is there anyway to get that legacy preview checkbox back so that I can use it?

    Hi Warunicorn,
    Thank you very much. I just could not find it on my own. I will have more questions as I get into it.
    Jim

  • At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs

    At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs every time I open Firefox. How can I stop or disable this?
    == This happened ==
    Every time Firefox opened
    == Several weeks ago.

    See http://kb.mozillazine.org/Software_Update (Software Update not working properly)
    Remove the files in the ''updates'' and ''updates\0'' folder:
    Vista/Windows7:
    C:\Users\&lt;user&gt;\AppData\Local\Mozilla\Firefox\Mozilla Firefox\ (updates)
    C:\Users\&lt;user&gt;\AppData\Local\VirtualStore\Program Files\Mozilla Firefox\ (updates)
    %LOCALAPPDATA%\Mozilla\Firefox\Mozilla Firefox\updates\

  • I forgot my ipod 5 passcode. i do all the steps itunes tells my to do. when i get to the right page and it says "restore ipod" i click it. it works for about 11minutes left and then it says like 'error cod erXX011210021" PLEASE HELP ME!!!!!!!!!!!

    my iPod is I 5th generation. I forgot my passcode and typed in the wrong thing too many times, so now on the lock screen it says "connect to iTunes" I did all the steps your supposed to. I unplugged all cord from iPod connecting to my computer, I held the home button and plugged my iPod back in, and then I keep holding the home button until the iTunes sign showed up. I got to the right page and then clicked restore. A small window came up saying " restore and update" I clicked it, I agreed to the terms and agreements and the updating started. The updated finished with =out a problem. I t was when I clicked "restore " that I had a problem. The restoring lasted until I had about 10 or 11 minutes left. that is when I saw a alert of my screen saying "iTunes could not finish restoring,. an unknown error occurred. error code: 0xE8000065" I tried restoring and updating my iPod about three or four times now! PLEASE, PLEASE, PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!

    See this support document, iTunes: Resolve USB-related alerts - Apple Support or this one regarding the same error and Windows. iOS: Unknown error containing '0xE' when connecting to a Windows PC - Apple Support

  • Editing issue with DVCpro 50, blak lines right and left

    Hello to everyone, I am editing in native DVCpro 50. In the canvas I get a thin black line left and right, so the footgae is not completely covering the canvas view. Should I resize the footgae a little bit to match this?
    My problem is that I am bringing pictures to the project so I dont know if I should adjust them to the cambas or to the slightlt smaller fame of the footage, this would be a hard work to make everything equal
    Thanks for your help

    If this is for TV, the lines will be outside the safe action area anyway, so they will not be seen.
    You will see them on a computer though.
    If you really need to zoom in slightly, do it when your edit is locked to one clip.
    Right click that clip in the timeline and copy it.
    Highlight all the other clips, right click and go to Paste Attributes then select Basic Motion.
    That will change all the others to match.

Maybe you are looking for

  • No volume, Volume isnt showing up or working iPod touch 2nd gen version 4.2.1

    My volume isn't working and the volume bar isn't showing up when try to play my music. I turnt off my ipod touch 2nd generation verison 4.2.1 but the volume came back for a while but it stop working again. Is there anyway to fix this problem? I dont

  • Battling Skype for over a year on overcharges rela...

    I have been battling Skype for over a year on overcharges related to my Skype telephone number subscription and frankly I am sick to death of the overcharges, inability to modify my subscription, the incompetence of the online chat tech support profe

  • I need help getting new authorization codes for digital copies

    I need help getting new authorization codes for digital copies of movies. Can someone help me out?

  • External monitor use

    Hi bought the  convertor cable to connect my TV which I use at as a monitor and connected it up. The monitor only works when the lid/screen/clamshell is closed. On my windows laptop I can use the keyboard and the external monitor, is this not possibl

  • How to hide the data in any object(keyfiguer)

    hi expects,        What is the procedure to hide the data under an object. In my case i supposed to hide the data which is under Tax column, I don't want to be viewed by others. pl. help me in this. thanks vijay