Problem button

i have an problem that its only the first button "paris_btn" that works and its defined in this line any know why ?
my hair has almoast turned gray here now
var buttons : Array = [paris_btn,london_btn,hongkong_btn,newyork_btn];
import caurina.transitions.*;
var hongkongX : Number = 0;
var londonX : Number = -800;
var parisX : Number = -1600;
var newyorkX : Number = -2400;
var buttons : Array = [paris_btn,london_btn,hongkong_btn,newyork_btn];
for (var i:int = 0; i< buttons.length ; i++){
buttons[i].addEventListener(MouseEvent.CLICK,navigate);
buttons[i].buttonMode = true;
}function navigate(event:MouseEvent):void{
switch (event.target){
  case (hongkong_btn) : setTween(hongkongX);
  break;
  case (london_btn) : setTween(londonX);
  break;
  case (paris_btn)  : setTween(parisX);
  break;
  case (newyork_btn) : setTween(newyorkX);
  break;
function setTween(tweenX:Number):void{
Tweener.addTween(content_mc, {x:tweenX, time:1, transition:"easeInOutCubic"});

There isn't anything wrong with that particular buttons coding.  There may be something that makes that button different such that using   event.target  may not be appropriate.  Try using   event.currentTarget  and see if that improves anything.
Other than that, for the code you show, there is a misplaced " { " ... }function navigate.... it belongs at the end of the function.

Similar Messages

  • Disappearing Report a Problem button iTunes 10.6

    OS 10.6.8 iTunes 10.6
    I am an iTunes match user and I have a song that I purchased a year or so ago that will not stream or download. The song it by the Ting Tings "That's Not My Name" Anyway, I try to report the problem from my account purchase history but when I click on the report a problem button it just disapears LOL!!! and no form shows up. Is this how apple handles problems now?

    I think what is happening is the button disappears then there are links "Report a problem) next to each item in the purchased list. However, I still think it is odd that the button disappears. I guess now I have to just search through the lists to find the item that I am having trouble with.

  • Trying to get a refund on an app that do not work, but the report a problem button is grey out

    Hi
    I'm trying to get a refund on an app that do not work, but the report a problem button is gray out & Apple wants £20.00 for support
    where do I go from here
    Thanks

    To report a problem less than 90 days:
    http://reportaproblem.apple.com
    Sign in with the AppleID and Password used for the purchase.
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/HT1933
    To report a problem greater than 90 days:
    http://www.apple.com/support/itunes/store

  • GUI update problem: button take time to be disabled

    I have a Stop button. In the actionPerformed() method for the button, I disable the button and also some other buttons (using setEnabled(false)) then there are some other codes that include Thread.sleep() method. Then again I enable some other buttons. Problem is the Stop button take time to be disabled. The time exactly equals sec provided in the sleep() method. I tried by puting the button disabling buttons' code in another thread that is called from SwingUtilies.invokeLater() method just before the sleep() method. It is very important to disable some buttons before Thread.sleep() is called. And only after the sleep() method I can enable some other buttons.
    Please help me.

    Hello Experts! I can't hear you. 1) Swing related questions should be posted in the Swing forum
    2) Quit bumping your question, you only posted it 30 minutes ago. People will answer when they have the time.
    Your code in the actionListener needs to be executed in a separate Thread, so that when you invoke the "sleep" method the separate Thread sleeps, not the Event Thread.

  • Problem button Controller

    Hi , I'm very new to OAF and have this problem:
    I have a page with 2 buttons (A) and (B). (A) is added via personalization.
    when user click (A) have to disable button ( B ), under some conditions. ( ( A) action is to return in the same page ( refresh ) )
    I've extended a OAF Conroller class, compile it, and add it on the server ( in oracle/apps/pa/package/webui ).
    My problem is: how to tell OAF about this controller?
    I've tried to the specify in the personalization item, extend field, the path of the uploaded controller. I had an exception ( OAF doesn't recognize this class )
    Is any place in OAF I can specify the new Controller?
    I really need this info, anybody can help me? Thanks a lot!

    Hi,
    You can set the controller through Personalization also. Click on Personalize Page link which is on top of the page.
    --Personalization Structure
    Complete View - check it and also click on Expand All
    Then search for the region in which the buttons A & B are attached. Click on Personalize link[Pencil].
    There is a property over there name Controller Class. I have given below a example of it. Just add you controller there.
    Controller Class---> oracle.apps.csf.portal.task.webui.CsfPoTaskUpdateMainCO
    One thing also whenever you are making your own page or extending seeded region or CO, VO, AM then you should make a separate directory structure like
    companyname.oracle.apps.fnd.framework.toolbox.tutorial.....
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problems: button with image

    hallo,
    i have the following problem:
    I've written this class:
    import java.awt.*;
    public class ImageButton
    extends Button
         private Image img;
         public ImageButton(String fname)
         img = getToolkit().getImage(getClass().getResource(fname));
              MediaTracker mt = new MediaTracker(this);
              mt.addImage(img, 0);
         try {
              //Warten, bis das Image vollst�ndig geladen ist,
              //damit getWidth() und getHeight() funktionieren
              mt.waitForAll();
              } catch (InterruptedException e) {
              //nothing
         public void paint(Graphics g)
              int a=(this.getWidth()-getPreferredSize().width)/2;
              int b=(this.getHeight()-getPreferredSize().height)/2;
              g.drawImage(img,a,b,this);
              super.paint(g);
         public void update(Graphics g)
              paint(g);
         public Dimension getPreferredSize()
              return new Dimension(
              img.getWidth(this),
              img.getHeight(this)
         public Dimension getMinimumSize()
              return new Dimension(
              img.getWidth(this),
              img.getHeight(this)
    when the frame appears, where the button is shown, the icon is shown. But when I click on the button, the icon is away and i don't know, where is the problem.
    I don't use swing because i don't like the perfomance.
    why is the image away, when i'm clicking on the button or another frame is over the button and disappears.

    just do not call super.paint(g) in paint() implementation

  • Slideshow problem - buttons not working

    Here's the site in development:
    http://magnavino01.businesscatalyst.com/index.html
    Just below the header there's a slideshow with nav buttons on the bottom. They are not working. They're apparently not working because of a div, within the slideshow div. This was copied from firebug:
    <div id="slideshowu765" class="SlideShowWidget clearfix grpelem wp-slideshow-playing">
    <div id="u450" class="browser_width grpelem" style="width: 1722px; margin-left: -281px; left: 0px; margin-right: -2003px; padding-right: 0px;"></div>
    </div>
    Deleting the above div (bold and in red) in firebug does not seem to affect the function of the site, other than allowing the buttons to work, that is.
    Is there a fix or workaround for this problem (bug?)?
    Thanks for any help.

    I haven't seen the .muse file, but from the website it appears you have an empty 100% browser width box (or perhaps a text frame) that's on top of this area in Muse Design view. It's blocking the buttons from getting mouse events. Delete that and all should be fine. (You should be able to find it with Select All. Be sure to turn on and unlock all Layers and Object > Unlock All On Page, and check both the page and the applied master pages.)

  • HT1933 The Report a Problem button in iTunes re-directs to this website? The website says to go back to iTunes. Infinite loop!!! I want to report a problem!

    How can I report a problem in iTunes, when iTunes re-directs to the apple website? Is there an email address?

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report your issue to the iTunes Store.
    Regards.

  • I press the report a problem button on the email receipt and it says too many http redirects help?

    I can't report a problem in my email that apple sent me please help

    Susiebwb wrote:
    Can any one please assist me.... I paid twice for an app by mistake.... ...
    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Problem: button action triggers backbean function

    Hi all,
    Please let me know if I did anything wrong. I am really really puzzlled and open to any suggestions.
    This is the code for button in jsp page
    <h:commandButton value="wtf" action="myBean.myFunction" />
    <h:commmdButton value="works" action="gotoSomePage" />This is the backbean function
    public String myFunction() { System.out.println("wtf man!!!");When first button is clicked, no error or exception is raised but this s.o.p line is not printed?! However second button will direct me to the correct page mapped in faces-config.xml
    I have my backbean registered in faces-config.xml and the function name used in jsp is correct o/w it will raise a parsing exception. How can this function NOT getting called?!
    Btw, to filter out some suggestions:
    1. I did redeploy my application every time I made changes
    2. the server is running and the stderr and stdout streams are set correctly (I did even go to the server logs and check for errors in case it gets redirected)
    3. this backbean properties can be display properly on the page so this back bean is mapped properly
    Any ideas will be appreciated.
    Thanks very much in advance.
    fab3

    btw, the function does have a return null in there. I forgot to put it there.
    I also tried the one with void but still no line is printed.

  • Windows 8 via Bootcamp Brightness Problem, Buttons working.

    I've installed windows 8 via bootcamp on my 2011 mbp and installed the drivers from apple. But the brightness(backlight off my screen can't go to full, except the first seconds when booting into windows. When is push the function keys the brightness doesn't go higher. Because the windows brightness menu says that the screen is at full brightness. When I lower the brightness (In the menu or with the buttons) the screen goes completly black when the bar says that the brightness is at a quater. Does anyone have any solutions? If you guys need screenshot I can provide. Thnx in advance!

    I have been having the issue of no brighness control when running windows through bootcamp for about 6 months now and have not found any applicable solution online.
    While messing around trying to figure it out yet again I noticed that my monitor driver was signed by team viewer...
    Sure enough clicking the roll driver back button resolved the issue by rolling the driver back to the Microsoft driver...
    So long story short:
    Right click "My Computer" click properties
    Click device manager (lop left of window)
    Expand Monitors section
    Double Click monitor
    Click driver tab
    If the driver here is not signed by Microsot or Apple click the roll back button. My driver version is 6.1.7600.16385 (Driver date 6/21/2006)
    Rolling this back instantly resolved my issue. I will now propagate this post to all the threads I saw regarding this issue.
    I am running windows 7 x64 Ulti on a 15" rMBP.
    Best of luck

  • Problem with mute button

    my daughter's iphone 3 is experiencing problems moving (on its own accord) from loud to silent and vibrating - with the bell symbol being displyed...I am guessing this is a button problem (button top left side). It is out of warranty with Apple. I note there are apple repair services with 24 hour turnaround, but by daughter feels that Apple will replace the phone for around £120....any similar problems out there and subsequent advice would be appreciated? Thanks

    The switch is broken. It happens. It's one of the few moving parts. Sometimes they fail.

  • I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. Please help

    I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. I am accessing it via strong wireless connection and it works fine on other devices. Please help.

    zapgrap wrote:
    there is no information of locations.
    Then no information exists.  Use the Report a Problem button within the app to report it.

  • Why is it that whenever I download a song from Itunes that a small grey round button appears next to the song (apparently this is the download progress button), but when I press on it to resume, the song disappears. This wasn't happening before.

    Why is it that whenever I download a song from itunes that a small grey button appears next to the song (apparently this is the download progress) but whenever I hit it to resume, the song disappears. I am getting annoyed with having to copy the songs manually onto my phone. Thanks for anyones help. Cheers

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the dodgy tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • How can I report a problem with downloading?

    I purchased a rather long album and halfway through downloading it gave me the message, "We could not complete your istore request. The network connection timed out. Error 8003." The only guidance it offers is to check the network connection. Nothing wrong there. Now I can get into the store and the balance of the album no longer shows up under downloads, just old stuff that really shouldn't even be there. I went into my account, and under purchase history clicked onto "Report a problem." All I got out of that is the same page minus the report a problem button.
    I'm frankly sick of this iphone and all the problems I've encountered with their upgrade failures, but this disappearig report a problem just tells me they really don't want to hear from you and no one is minding the store.
    Any other places to report a problem? Or advice onto how to get the missing songs?
    Thanks., I've just spent the last 1-1/2 hours on this board and going back and forth in the istore and am very frustrated.

    Click here and fill out the form for assistance.
    (35548)

Maybe you are looking for