HELP?! Jquery calling symbol in itself??

I want to create on the symbol an mouse over event that address the same symbol.
i've tried
this.css("display","none");
with no success..
please help..
thank you, Elijahu.

Yes, I understand your were talking about using 'this'. The 3rd example is what you need to use.
1- does not work
sym.$('btn').click(function(){
          this.css('background-color','red');
2- works
sym.$('btn').mouseover(function(){
          sym.$('btn').css('background-color','red');
3- works
sym.$('btn').mouseout(function(){
          $(this).css('background-color','green');

Similar Messages

  • Droid X Makes Calls All By Itself

    Starting having problems with this about a month ago. Phone is sitting on my dresser and NOBODY is near it and it makes calls all by itself! In the past 2 weeks, it's done it at least 15 times. And the REAL pain is: It does it at 3 o'clock in the morning!!!! People are getting mad at me for waking them up AND scaring them (thinking something is really wrong).
    Last night I was watching TV and I heard voices coming from my phone. It had called my BOSS at 11:15 pm (and woke him up). He was not happy. It calls my voice mail. Several of the people it has called are people I haven't called (or them call me) in over a year! It even called my wife this morning and I wasn't aware of it and she got worried something was wrong.
    One of the other things it has done is downloaded pictures and apps. Nothing "dirty" but a couple weeks ago it was background photos and "skins" for my phone and there were like 300 of them!!! I deleted them all and then another batch came through a couple days later. I'll have my phone charging and when I go to look at it, it's actually "surfing" on some web site that I have never (and WOULD never) visit. Again, nothing like porn. But just weird stuff.
    Am I being hacked? Do I have some kind of virus? Are there really ghosts in the machine?
    HELP!!!  I'm about ready to throw this thing away and get a different phone. Any ideas???

    That's very strange ...  It does sound like you somehow picked up a Virus or rogue App. If it is somewhat reproduceable (e.g., happens every night), you COULD try just running in SAFE MODE for a few nights. Just put it in SAFE MODE before you go to bed and see if it happens again. If it doesn't occur anymore during this test period you most likely have a rogue app that you downloaded.
    Other options? Maybe do this in the following order.
    - go back an uninstall any/all 3rd party Apps that you got in the last month (when this all started)
    - Clear Cache form the Power Up method.
    - as a silver bullet, the (gulp) factory reset  ...  but if you decide to do this, make sure you don't just download and install all your apps right away ... run in "Stock mode" for a duration that you feel like the problem is solved.  (ps, if you go to Verizon with your problem they will likely do this anyway.)
    good luck .. you certainly have a unique problem. if you need instructions on how to do any of this just ask, or do a search in the forum for the procedure.  Please let us know if you're able to fix this and what the solution is.

  • When I change the size of a symbol in itself, it is never updated outside the symbol.

    Hello,
    I created a symbol there some time ago with graphics and elements inside. This symbol has well-defined dimensions according to the elements it contains, and is used several times in my project.
    For some reason, later I need to change the elements in this symbol. So I have to resize the size of the symbol within itself.
    This works fine inside, but outside, my symbol still keeps the original size, and, whatever happens.
    So it can create problems if I need to change the position of my symbol or change the alignment relative to the elements of the same level.
    For information it's been a while since I worked with Animate and I always had the problem, whatever the version ...
    Is there a way to fix this?
    Or maybe the problem is known and will be part of the next update?
    Thanks for reply

    Hi LP700CR7,
    This is a default behavior, I am afraid, its not possible to stop this behavior at this stage within Muse.

  • Help me :calling c dll for get cluster data

    I have read the .d7d data files with the DWDataReaderLib.dll in labview,i can get the data and time_stamp through allocate memory (data and time_stamp) then call DWGetScaledSamples ,but when i want to allocate the DWChannel structures then call DWGetChannelList to get channel list properties,it will fail .In fact,now i don't konw how to get channel list .In my program,i have allocate the DWChannel structures ,but it doesn't export the data ,and when i wire the array of channel list,the labview will destroy.thanks
    Attachments:
    read DWdata.zip ‏870 KB

    duplicated post: http://forums.ni.com/t5/LabVIEW/Help-me-Calling-C-dll-to-get-cluster-data/td-p/1556722

  • Need help - method call error cannot resolve symbol

    My code compiles fine but I continue to receive a method call error "cannot resolve symbol - variable superman" - can't figure out why. Here is my code:
    public static String caesar(String message, int shift)
    {   [b]String result = "";
    for(int i = 0; i < message.length(); ++i)
    {   [b]char newChar = message.charAt(i + shift);
    result += newChar;
    return result.toUpperCase();
    I entered "superman" for message and "3" for the shift. Can someone please help? Thanks!

    Your post worked great - especially since it made me realize I was going about it all wrong! I was attempting to convert "superman" to "vxshupdq" - basically a cipher shift starting at index 0 and shifting it 3 character values which would result in s changing to v. I restructured my code:
    public static String caesar(String message, int shift)
    {   [b]String result = "";
    for(int i = 0; i < message.length(); ++i)
    {   [b]char newChar = message.charAt(i);
    result += (newChar + shift) % message.length();
    return result.toUpperCase();
    But it's displaying the result as a "60305041". How can I get it to display the actual characters?

  • Region Observer to help jQuery issues

    So I have been working on this for a bit and can't seem to get anywhere. I have read multiple posts about issues with SPRY regions conflicting with jQuery and other javascript inside of SPRY regions. I can't seem to get it to fly. I my region observer doesn't seem to be helping.
    I have jQuery and tinyMce inside my SPRY region that won't fly. Example code (greatly simplfied!)
      <div spry:region="ds1" id="myRegion">   
                <input name="title" type="text" id="title" value="{Title}" size="70" maxlength="70" />
                <input type="text" id="eventDate" value="{EventDate}" name="eventDate" /></td>
    </div>
    The EventDate input area is supposed to call the jQuery DatePicker but it does not work if it is inside the region. It is called by this simple code
    <script>
      $(document).ready(function() {
        $("#eventDate").datepicker();
    </script>
    I read that it has something to do with what loads first and how the region loads before the datepicker has a chance and renders it useless and I am to use a region observer to fire it off.
    Spry.Data.Region.addObserver("myRegion", { onPostUpdate: function() { datepicker.init(); }});
    It does nothing. I am assuming that I would do the same thing to fire the tinyMCE WYSIWYG inside this area as well. I know enough about javascript to be slighly dangerous, but this one has rendered me useless!
    Thanks for any help.

    var ds1 = new Spry.Data.HTMLDataSet("datasets/indEvent.asp?id=<% response.Write(request.queryString("id")) %>","events");
    var myObserver = function(nType, notifier, data) {
        if(nType == 'onPostUpdate'){
            $(function() {
               $('#eventDate').datepicker();
               $('#description').tinyMCE.init();
       Spry.Data.Region.addObserver('myRegion', myObserver);
    </script>
    What you are doing there with your jquery code is:
    When the DOM Ready event is fired... Execute .datePicker and .tinyMCE. But then the Spry Region is drawn the DOM is already loaded. So it might not execute propperly what i would advice is to do:
    Spry.Data.Region.addObserver( "myRegion", {
         onPostUpdate:function(){    
                   $('#eventDate').datepicker();
                    $('#description').tinyMCE.init();
    Also remove the:
    <script>
      $(document).ready(function() {
        $("#eventDate").datepicker();
    </script>
    From your page

  • Help on calling proc in another schema

    Hi,
    How to call a procedure that resides in another schema?
    i used the following syntax
    declare
    v_id number;
    BEGIN
    EXECUTE IMMEDIATE 'DECLARE
    BEGIN
    fnm.PERFVESTADJUSTASOF@to_cefsd001('||v_id||',SYSDATE,null, null, FALSE, FALSE);
    END;';
    EXCEPTION
    WHEN OTHERS THEN
    vj_debug_fasb('mat1',sqlerrm);
    END ;
    but i get the error:
    ORA-06550: line 3, column 50: PLS-00103: Encountered the symbol "," when expecting one of the following: ( ) - + case mod new not null others <an identifier> <a double-quoted delimited-identifier> <a bind variable> table avg count current exists max min prior sql stddev sum variance execute multiset the both leading trailing forall merge year month DAY_ hour minute second timezone_hour timezone_minute timezone_region timezone_abbr time timestamp interval date <a string literal wit
    If i execute this from the other schema(where the proc resides) it works.
    Any idea about this???
    Thanks in advance for ur help....
    thanks,
    Mathew

    Now i am getting another error:
    declare
    BEGIN
    Execute immediate 'declare
    v_id number;
    BEGIN
    fnm.PERFVESTADJUSTASOF@to_cefsd001 (v_id,sysdate , -1,-1, FALSE, FALSE);
    commit;
    END;';
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(substr(sqlerrm,1,200));
    END ;
    Error:
    ORA-00164: autonomous transaction disallowed within distributed transaction
    any idea on this?

  • Very URGENT: PLS HELP:canno resolve symbol session.setAttrribute

    hi everbody,
    i'm new at this and have got a presentation after 1 day!....pls help
    when i compile the servlet i get :
    cannot resolve symbol
    metod: setAttribute (java.lang.String,java.lang.String)
    location: interface(javax.servlet.http.HttpSession)
    the servlet that gets te error when comiled is:
    * Authenticate.java
    // this places all user variables in session
    //to access use session.getAttribute
    //dispatcher stuff
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    * @author Gudiya
    * @version
    public class Authenticate extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {
    HttpSession session = request.getSession(true);
    Connection con=null;
    String sessionid;
    String deptcode;
    String desig;
    String add1;
    String add2;
    String contname;
    PrintWriter out = response.getWriter();
    try
    response.setContentType("text/html");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:SACFA","","");
    System.out.println("connection established");
    catch(ClassNotFoundException e){
    System.out.println("database driver not found");
    System.out.println(e.toString());
    catch(Exception e){System.out.println(e.toString());
    // ServletContext context=getServletContext();
    String username=request.getParameter("username");
    String password=request.getParameter("password");
    try{
    PreparedStatement stmt=con.prepareStatement("SELECT * FROM AUTHENTICATION,mb_add where AUTHENTICATION.NAME=? AND AUTHENTICATION.PASSWORD=? AND mb_add.DEPT_NAME=?");
    stmt.setString(1,username);
    stmt.setString(2,password);
    stmt.setString(3,username);
    ResultSet rs=stmt.executeQuery();
    boolean rowfound=false;
    rowfound=rs.next();
    if (rowfound==true)
    sessionid=session.getId();
    System.out.println(sessionid);
    //context.setAttribute("userid",sessionid);
    // session.setAttribute("user",username);
    rs.beforeFirst();
    while (rs.next())
    deptcode=rs.getString("DEPT_CODE");
    desig=rs.getString("DESIGNATION");
    add1=rs.getString("ADDRESS1");
    add2=rs.getString("ADDRESS2");
    contname=rs.getString("NAME");
    session.setAttribute("dept_code",deptcode);
    session.setAttribute("designation",desig);
    session.setAttribute("address1",add1);
    session.setAttribute("address2",add2);
    session.setAttribute("cont_name",contname);
    //context.getRequestDispatcher(request.getParameter("dispatcho")).forward(request,response);
    }          out.println("<html>");
              out.println("<head>");
              out.println("<title>Successful Login Screen</title>");
              out.println("</head>");
              out.println("<body bgcolor='ORANGE'>");
    out.println("<script language='Javascript'>");
    out.println("<!--function send_onclick(mydispatcho) {var dispatcho;if(mydispatcho=='Noc'){ dispatcho='/Noc1';}if(mydispatcho=='Ce'){ dispatcho='/Ce1';} if(mydispatcho=='Bye'){ dispatcho='/Bye1';}}-->");
    out.println("</script>");
    out.println("WELCOME MEMBERS FROM "+ username);
    //print decorative html statements here
              out.println(" SELECT NY ONE ACTION:-");
    out.println("<form Action="+"\"servlet/noc\""+" method =post>");//call for your noc servlet
    //print decorative html statements here
    out.println("<INPUT TYPE=submit VALUE='GENERATE NOC' NAME='NOC' language='javascript'>");
    out.println("</form>");
    //print decorative html statements here
    out.println("<form Action="+"\"servlet/comments\""+" method =post>");//call for your comment servlet
    out.println("<INPUT TYPE=submit VALUE='ENTER/ MODIFY COMMENTS' NAME='COMMENTS' language='javascript' >");
    out.println("</form>");
    //print decorative html statements here
    out.println("<form Action="+"\"servlet/bye\""+" method = post>");
    out.println("<INPUT TYPE=submit VALUE=EXIT NAME=EXIT language='javascript' >"); //place javascript fucction for exiting window
    out.println("</form>");
              out.println("</body>");
              out.println("</html>");
    con.close();
    } catch( SQLException e){ }
    out.close();}
    NOTE: I'M USING JDK1.3 and jsdk2.0
    pls help me....
    Thank u all,
    ashna

    HTTP Status 404 - /mywork/servlet/Authenticate
    hi dheeraj,
    thank u so much the servlet comiled!!!
    now i have a new problem....the Tomcat server cannot find its class file. i have placed the class file in C:\Program Files\Apache Group\Tomcat 4.1\webapps\mywork\WEB-INF\classes.
    the error it shows is as follows:
    type Status report
    message /mywork/servlet/Authenticate
    description The requested resource (/mywork/servlet/Authenticate) is not available.
    Apache Tomcat/4.1.18-LE-jdk14
    PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11

  • Help - cannot find symbol error

    Can someone help me? I am getting "cannot find symbol" error in my code and cannot figure out why. Here is my code:
    public class toyInventory
    private String[] toyInventory = {"ball", "bat", "bear", "car", "doll", "game", "glove", "playstation", "train"};
    private int[] nineArray = {0,0,0,0,0,0,0,0};
    int invItems = 0;
    public void countToy()
    String orderInput[] = {"bear", "train", "car", "ball", "doll", "ball", "train", "doll", "game", "train", "bear", "doll", "train", "car", "ball", "bat", "glove", "bat", "b", "doll", "bear", "ball", "doll", "bat", "car", "glove", "train", "doll", "bear"};
    int noMatch;
    for(int a = 0; a < orderInput.length; a++)
    noMatch = 0;
    for(int b = 0; b < toyInventory.length; b++)
    if(orderInput[a] == toyInventory)
    noMatch = 1;
    break;
    if(noMatch == 0)
    invItems = 1;
    public void printItems()
    for(int c = 0; c < toyInventory.length; c++)
    if (countToy[c] > 4)<-------- cannot find symbol error here
    System.out.print("*");
    System.out.print(toyInventory[c] + "\t" + countToy[c] + "\n"); <----cannot find symbol error here also
    System.out.print("The number of invalid items in the order is" + invItems);
    public static void main( String[] args)
    toyInventory collection = new toyInventory ();
    collection.countToy();
    collection.printItems();

    public void countToy()
    String orderInput[] = {"bear", "train", "car", "ball", "doll", "ball", "train", "doll", "game", "train", "bear", "doll", "train", "car", "ball", "bat", "glove", "bat", "b", "doll", "bear", "ball", "doll", "bat", "car", "glove", "train", "doll", "bear"};In the above code you have declared countToy() as method and while in the below lines you are calling countToy[] as an array. So please check that...
    if (countToy[c] > 4)<-------- cannot find symbol error here
    System.out.print("*");
    System.out.print(toyInventory[c] + "\t" + countToy[c] + "\n"); <----cannot find symbol error here also
    }

  • Help! Firmware lock activated itself after Deja Vu backup

    My friend just called in a panic. He and another Mac friend have been trying to revive his blue screened Powerbook. His friend says that the firmware lock has been enabled, and they don't have any idea what the code could be, especially as it seemed to have set itself. Has anyone heard of this? If so, what could be the fix? Thanks for any and all help!

    you can take it to Apple service provider in your area, they should be able to reset it.
    http://www.apple.com/buy/locator/service.html

  • Help with missing symbols

    What do i need to "import" for these:
    -> sqrt()
    -> charAt()
    -> toLower()
    i have already imported:
    import java.lang.Math;
    import java.lang.String;
    but still these 3 symbols cant be found.. help? >.<

    SozoS wrote:
    Thanks!
    This helped for the sqrt and toLowerCase.. but for charAt it still doesn't work.. how come?
    I did something like this...
    import java.lang.String;
    class text
    private String content;
    public void outputcharacter (String input, int pos)
    System.out.println(input.charAt(pos));
    }Can someone tell me why still can't find symbol? >.<Like with arrays, Strings index their characters starting at zero. So if you have the string "hello" and you want to get the 'e', you have to call charAt(1), eventhough it's the second character in the string. If you're getting an ArrayOutOfBoundsException, then this might be your problem.

  • ActionScript 3 Noob Help - 1180: Call to a possibly undefined method addChild.

    Hey everyone, i'm in the process of learning ActionScript 3. I'm woking on my first OOP game with a class other than the document class.
    Right now, my game has a preloader library symbol called PreLoader and one called MainMenu (they have been exported for actionscript). All other objects are subobjects of these Movie Clips. My code si split into three actionscript files called Main.as (the document class. I had planned this to load and unload the preloader, mainmenu, and game itself) MainMenu.as (meant to controll the main menu's buttons and listeners) and PreLoader.as (which has the pre-Loader code in it.) I was having a lot of trouble with unloading the main menu and preloader after I was finished with them, so I let the document class handle them, which led to a series of errors as follows:
    C:\Users\...\hamletgame\Main.as, Line 19    1120: Access of undefined property mainMenu.
    C:\Users\...\hamletgame\Main.as, Line 20    1180: Call to a possibly undefined method addChild.
    C:\Users\...\hamletgame\Main.as, Line 20    1120: Access of undefined property mainMenu.
    C:\Users\...\hamletgame\Main.as, Line 21    1180: Call to a possibly undefined method removeChild.
    C:\Users\...\hamletgame\Main.as, Line 21    1120: Access of undefined property preLoader.
    C:\Users\...\hamletgame\Main.as, Line 25    1180: Call to a possibly undefined method removeChild.
    C:\Users\...\hamletgame\Main.as, Line 25    1120: Access of undefined property mainMenu.
    Thank you all very much in advance. I'm sure its something simple i've missed. My code is posted below.
    Main.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class Main extends MovieClip
            var preLoader:PreLoader;
            var mainMenu:MainMenu;
            public function Main()
                preLoader = new PreLoader;
                addChild(preLoader);
            static public function loadMainMenu():void
                mainMenu = new MainMenu();
                addChild(mainMenu);
                removeChild(preLoader);
            static public function loadGame():void
                removeChild(mainMenu);
    PreLoader.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class PreLoader extends MovieClip
            //Declare Variables Here
            //Constructor Function
            public function PreLoader()
                gotoAndStop(1);
                addEventListener(Event.ENTER_FRAME, loading);
            //Functions
            private function loading (event:Event):void
                var total:Number = stage.loaderInfo.bytesTotal;
                var loaded:Number = stage.loaderInfo.bytesLoaded;
                loadingBar.scaleX = loaded/total;
                if(loaded==total)
                    gotoAndStop(2);
                    removeEventListener(Event.ENTER_FRAME, loading);
                    playButton.addEventListener(MouseEvent.CLICK, startMovie)
            private function startMovie (event:MouseEvent):void
                removeEventListener(MouseEvent.CLICK, startMovie);
                Main.loadMainMenu();
    MainMenu.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class MainMenu extends MovieClip
            //Constructor Function
            public function MainMenu()
                addEventListener(Event.ENTER_FRAME, onFrameEnter);
            //Other Functions
            private function onFrameEnter(event:Event):void
                if(currentFrame==30)
                    stop();
                    playGameButton.addEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                    instructionsButton.addEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                    creditsButton.addEventListener(MouseEvent.CLICK, onCreditsButtonClick);
                    removeEventListener(Event.ENTER_FRAME, onFrameEnter);
                else
                    removeEventListener(Event.ENTER_FRAME, onFrameEnter);
            private function onPlayGameButtonClick(event:MouseEvent):void
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
                Main.loadGame();
            private function onInstructionsButtonClick(event:MouseEvent):void
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
            private function onCreditsButtonClick(event:MouseEvent):void
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);

    I'm not sure why I'm not able to use all 3 of your classes as intended.  I read that you cannot access the Document Class from other classes directly.  So This is what I have:
    Main.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class Main extends MovieClip
            var preLoader:PreLoader;
            var mainMenu:MainMenu;
            public function Main()
                preLoader = new PreLoader;
                addChild(preLoader);
                                  trace("Main");
            public function loadGame():void
                                  trace("loadGame start");
                //removeChild(mainMenu);
                                  trace("loadGame finish");
    MainMenu.as
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        public class MainMenu extends MovieClip
            //Constructor Function
                        var playGameButton:PlayGameButton;
                        var instructionsButton:InstructionsButton;
                        var creditsButton:CreditsButton;
                        var main:Main;
                        var mainMenu:MainMenu;
                        var preLoader:PreLoader;
                        var container1_mc:MovieClip;
            public function MainMenu()
                                  trace("MainMenu");
    PreLoader.as  (this is where the heart of your app is)
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
              import flash.display.Loader;
              import flash.display.LoaderInfo;
        public class PreLoader extends MovieClip
            //Declare Variables Here
                        var playGameButton:PlayGameButton;
                        var instructionsButton:InstructionsButton;
                        var creditsButton:CreditsButton;
            var main:Main;
                        var mainMenu:MainMenu;
                        var preLoader:PreLoader;
                        var loadingBar:LoadingBar;
                        var playsButton;
                        var container_mc:MovieClip;
            //Constructor Function
            public function PreLoader()
                gotoAndStop(1);
                addEventListener(Event.ENTER_FRAME, loading);
            //Functions
            public function loading (event:Event):void
                var total:Number = stage.loaderInfo.bytesTotal;
                var loaded:Number = stage.loaderInfo.bytesLoaded;
                                  loadingBar=new LoadingBar();
                                  addChild(loadingBar);
                                  loadingBar.x=50;
                                  loadingBar.y=50;
                                  var playsButton=new PlaysButton();
                loadingBar.scaleX = loaded/total;
                if(loaded==total)
                                            removeChild(loadingBar);
                                            //stop();
                                            trace("loaded equals total");
                    gotoAndStop(2);
                    removeEventListener(Event.ENTER_FRAME, loading);
                                            addChild(playsButton);
                                            playsButton.x=50;
                                            playsButton.y=250;
                    playsButton.addEventListener(MouseEvent.CLICK, startMovie);
            public function startMovie(event:MouseEvent):void
                //removeEventListener(MouseEvent.CLICK, startMovie);
                                  trace("startMovie");
                                  loadMainMenu();
                         public function loadMainMenu():void
                        var main:Main;
                        var mainMenu:MainMenu;
                        var preLoader:PreLoader;
                        var container1_mc:MovieClip;
                                  trace(currentFrame+"cf");
                                  trace("loadMainMenu start");
                                  container1_mc= new MovieClip();
                                  addChild(container1_mc);
                                  playGameButton=new PlayGameButton();
                                  trace("1");
                                  instructionsButton= new InstructionsButton();
                                  creditsButton = new CreditsButton();
                                  playGameButton.x=100;
                                            playGameButton.y=100;
                                            instructionsButton.x=200;
                                            instructionsButton.y=100;
                                            creditsButton.x=300;
                                            creditsButton.y=100;
                                            trace(creditsButton.name);
                                            trace(creditsButton.x);
                                            trace(creditsButton.y);
                                            trace(container1_mc.x);
                                            trace(container1_mc.y);
                                  addChild(playGameButton);
                                  playGameButton.name="playGameButton";
                                  instructionsButton.name="instructionsButton";
                                  creditsButton.name="creditsButton";
                                  trace(creditsButton.name);
                                  trace("2");
                                            addChild(instructionsButton);
                                            addChild(creditsButton);
                                  trace("loadMainMenu finish");
                                  MainMenus();
                        public function MainMenus():void
                addEventListener(Event.ENTER_FRAME, onFrameEnter);
                                  trace("MainMenus");
                                  //loadMainMenu();
            public function onFrameEnter(event:Event):void
                                  trace("AA");
                if(currentFrame==0)
                                            if(creditsButton.name=="creditsButton"){
                    stop();
                                            trace("frame 30");
                                            trace(currentFrame);
                                            trace(creditsButton.name);
                    playGameButton.addEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                    instructionsButton.addEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                    creditsButton.addEventListener(MouseEvent.CLICK, onCreditsButtonClick);
                    removeEventListener(Event.ENTER_FRAME, onFrameEnter);
                else
                    removeEventListener(Event.ENTER_FRAME, onFrameEnter);
            public function onPlayGameButtonClick(event:MouseEvent):void
                                  trace("A");
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
                //main.loadGame();
            public function onInstructionsButtonClick(event:MouseEvent):void
                                  trace("B");
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
            public function onCreditsButtonClick(event:MouseEvent):void
                                  trace("C");
                playGameButton.removeEventListener(MouseEvent.CLICK, onPlayGameButtonClick);
                instructionsButton.removeEventListener(MouseEvent.CLICK, onInstructionsButtonClick);
                creditsButton.removeEventListener(MouseEvent.CLICK, onCreditsButtonClick);
    I've exported each button and movie clip which resides on the stage in the Library.  I've removed them from the stage/Timeline and just have the Exports in ActionScript on Frame 1.  I also noticed I couldn't access frame 30 and had to change the code to "if(currentFrame==0)....."
    I hope this gets you started in the right direction though I'm not sure what I've done is what you're looking for.

  • Vibrate going berserk, Headphone/call volume changing itself

    I've been having quite a few problems with my phone. I will try and explain as best I can.
    1. I keep finding that the vibrate is going mental in my pocket, pulsing. Even if i am not moving so it's not me catching the silent switch on the side.
    2. When listening to the ipod, I find the volume either goes to its loudest or quietest. when changing this on the phone i find it just corrects itself to the loudest or vice-versa. This too is mainly in my pocket but also happens when plugged into the aux in my car. This also happens when making calls
    3. The phone also sometimes locks itself just after I have unlocked it. Along these lines also, sometimes when i do unlock it, and touch the screen anywhere, it relocks.
    4. I will sometimes pull the phone out my pocket and find that the red bar to turn it off is showing, again, I do not see how I can press 2 buttons simutaniously in my pocket.
    Its driving me mad, and short of re-booting the whole thing and taking off all my data, I do not know what to do. Anyone else experienced any of these problems.
    Thanks

    Did you try to reset your phone by holding the sleep and home button until you see the Apple logo? Ignore the turn off slider and keep holding until the logo comes up.
    If this doesn't help, restore the phone from your backup, if you had these problems when you made your last backup, restore it "as new iphone".
    If restoring brings no change, call Apple to get it serviced.
    Backing up and restoring: http://support.apple.com/kb/HT1414

  • Need help with calling method

    I'm new to Java, trying to pass a required class so I can graduate this semester, and I need help figuring out what is wrong with the code below. My assignment is to create a program to convert celsius to fahrenheit and vice versa using Scanner for input. The program must contain 3 methods - main, convert F to C, method, and convert C to F method. Requirements of the conversion methods are one parameter which is an int representing temp, return an int representing calculated temp after doing appropriate calculation, should not display info to user, and should not take in info from user.
    The main method is required to ask the user to input a 1 for converting F to C, 2 for C to F, and 3 to end the program. It must include a while loop that loops until the user enters a 3, ask the user to enter a temp, call the appropriate method to do the conversion, and display the results. I'm having trouble calling the conversion methods and keep getting the following 2 compiler errors:
    cannot find symbol
    symbol : method farenheitToCelsius(int)
    location: class WondaPavoneTempConverter
    int celsius = farenheitToCelsius(intTemp);
    ^
    cannot find symbol
    symbol : method celsiusToFarenheit(int)
    location: class WondaPavoneTempConverter
    int farenheit = celsiusToFarenheit(intTemp);
    The code is as follows:
    public static void main(String[] args) {
    // Create a scanner
    Scanner scanner = new Scanner(System.in);
    // Prompt the user to enter a temperature
    System.out.println("Enter the temperature you wish to convert as a whole number: ");
    int intTemp = scanner.nextInt();
    System.out.println("You entered " + intTemp + " degrees.");
    // Prompt the user to enter "1" to convert to Celsius, "2" to convert to
    // Farenheit, or "3" to exit the program
    System.out.println("Enter 1 to convert to Celsius, 2 to convert to Farenheit, or 3 to exit.");
    int intConvert = scanner.nextInt();
    // Convert temperature to Celsius or Farenheit
    int celsius = farenheitToCelsius(intTemp);
    int farenheit = celsiusToFarenheit(intTemp);
    while (intConvert >= 0) {
    // Convert to Celsius
    if (intConvert == 1) {
    System.out.println("Celsius is " + celsius + " degrees.");
    // Convert to Farenheit
    else if (intConvert == 2) {
    System.out.println("Farenheit is " + farenheit + " degrees.");
    // Exit program
    else if (intConvert == 3) {
    break;
    else {
    System.out.println("The number you entered is invalid. Please enter 1, 2, or 3.");
    //Method to convert Celsius to Farenheit
    public static int celsiusToFahrenheit(int cTemp) {
    return (9 / 5) * (cTemp + 32);
    //Method to convert Farenheit to Celsius
    public static int fahrenheitToCelsius(int fTemp) {
    return (5 / 9) * (fTemp - 32);
    I readily admit I'm a complete dunce when it comes to programming - digital media is my area of expertise. Can anyone point me in the right direction? This assignment is due very soon. Thanks.

    1) consider using a boolean variable in the while statement and converting it to true if the input is good.
    while (inputNotValid)
    }2) put the code to get the input within the while loop. Try your code right now and enter the number 30 when your menu requests for input and you'll see the infinite loop.... and why you need to request input within the loop.
    3) Fix your equations. You are gonig to have to do some double calcs, even if you convert it back to int for the method return. Otherwise the results are just plain wrong. As a good test, put in the numbers -40, 0, 32, 100, and 212. Are the results as expected? (-40 is the only temp that is the same for both cent and fahr). I recommend doing double calcs and then casting the result to int in the return. for example:
    int a = (int) (20 + 42.0 / 3);  // the 42.0 forces the compiler to do double calc.4) One of your equations may still be plain wrong even with this fix. Again, run the test numbers and see.
    5) Also, when posting your code, please use code tags so that your code will be well-formatted and readable. To do this, either use the "code" button at the top of the forum Message editor or place the tag &#91;code&#93; at the top of your block of code and the tag &#91;/code&#93; at the bottom, like so:
    &#91;code&#93;
      // your code block goes here.
    &#91;/code&#93;

  • Little help for calling report from a form

    hi,
    I AM NOT ABLE TO CALL THE REPORT WITH THE FOLLOWING CODE. PLEASE TELL ME WHERE I AM DOING WRONG! THANKS A LOT!!
    It is Oracle 9i and Reports 6i.
    -> I have a form with only one BUTTON.
    -> I have a REPORT with only one USER PARAMETER 'P_1' which is a number.
    -> I have only one query INSIDE the report. It is "SELECT * FROM EMP WHERE EMPNO = :P_1'
    -> I added the report to form in the OBJECT NAVAVIGATOR of FORM and the NAME OF REPORT is 'REOPRT4'
    here is the code on the form:
    ================================
    When_button_pressed
    DECLARE
    vid report_object;
    vname varchar2(100);
    BEGIN
    vid := find_report_object('Report4');
    vname := run_report_object(vid);
    END;
    ==================================
    -> the FORM and REPORT are in "c:\helloworld" directory.
    -> the error I am getting is 'internal pl/sql error'
    -> I WANT THE USER TO ENTER THE RUNTIME PARAMETER FOR THE REPORT AT RUNTIME, so no need to worry about supplying the parameter through code!!!
    Thank You very much. I appreciate your kind help!!

    I think that you have to add some code, see page 15 in this:
    http://otn.oracle.com/products/forms/pdf/277282.pdf
    Helena

Maybe you are looking for

  • Can Apple assist with adding Mavericks to my Apple purchase history?

    I have Snow Leopard(Macbook air a1237) and Mavericks is the latest OS for me. I wanna upgrade my macbook to OS X Mavericks.

  • Oracle 9 startup and shutdown

    i have installed oracle9. there is not Svrmgrl file in Bin folder as like Oracle 8 and 8i. how i start and shut down databse in oracle 9.

  • Volume levels in playback on a Bose.

    Since when downloading many tunes from various groups, albums, artists, etc., I find that many (most) downloads come through on playback at many differing volume levels. Is there a way to 'level out' the output volume thereby eliminating having to co

  • System Time +Calendar using Swing

    Hi I'm trying to create Swing Appliation that displays the System time.but i don't know how to display it on the window.I imported package from java.util.calendar.* but i dont know how to use it. Also how can i create Calendar with help swing appliat

  • Portal Server 7.2 and Portlet

    Hi , I have a serious problem with Portlet and Sun Portal 7.2 I don't understand how I can retrive user information (like username,password, email..) from a portlet. I read about Map userInfoMap = (Map) request.getAttribute(PortletRequest.USER_INFO);