SoundChannel and Preloader problem

Ack - know I've run into this one before but for the life of me I cannot get it worked out. Essentially, I am playing a sound in one swf, when I press a button I fade the sound out using the sounds channel, a soundTransform object and TweenLite. It works great... until I use my preloader. When the main swf is loaded by the preloader all the sound still works, but it seems the soundChannel assignments are ignored - I can't do channel.stop() and I can't fade the sound - nothing happens - the sound just keeps on playing.

if that's what happened (creating two same-named soundchannel variables), i would expect you would be unable to affect your original soundchannel.
you would be playing the same sound simultaneously (if both play() methods were created simultaneously) and might not notice one playing over the other.  if the play() methods were staggered you would notice the two sounds.

Similar Messages

  • Sound and preloader problems

    Hello, I need some help with correct playing of Mp3 in my
    flash site. When I test it local on my computer, everything is ok,
    but when it´s uploaded to FTP and played within a browser,
    there are few problems:
    1. Firstly, the sound has an offset, which I don´t want
    to. The sound starts playing approximately 1-2 sec later. I´am
    affraid it´s problem of computer/internet speed etc., which
    cannot be repaired.
    2. My preloader doesn´t work after adding sound to
    timeline, however, sound isn´t in the first frame. All content
    is loading automatically (flash space is black), then quickly runs
    manual preloader. You can view it by clicking link below.
    In current fla, the sound is added to timeline of movieclip
    from library. I´ve tried start it by ActionScript, but
    it´s the same. I haven´t tried to load it by AS from URL
    (function loadSound() ), because I think the preloader might be not
    functional, like in this situation.
    Thanks for solving.
    Site here:
    http://www.rafanda.cz/flash/
    FLA here:
    http://www.rafanda.cz/flash/web.rar
    - 43MB zipped (yet available)

    Finally I uploaded the .fla file (I had few problems with
    FTP). The link has changed.
    I think that´s not so easy to solve, but the least you
    might do is try it. Thank you.

  • JPGencoder and Preloader problem

    Hi guys, I have an swf which allows the user to take a snapshot of the stage, which works fine on its own.
    When I use an external preloader with it i get the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at over/frame1()
    I have tried importing the JPGEncoder into the preloader but still get the same error.
    This is the preloader code:
    [AS]
    import com.adobe.images.JPGEncoder;
    var B:Loader = new Loader();
    B.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
    B.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
    B.load(new URLRequest("someurl.swf"));
    function loop(e:ProgressEvent):void
              var perc:Number = e.bytesLoaded / e.bytesTotal;
              percentText.text = Math.ceil(perc*100).toString();
    function done(e:Event):void
              removeChildAt(0);
              percentText = null;
              addChild(B);
    }[/AS]
    And the JPGEncoder code:
    [AS]
    import com.adobe.images.JPGEncoder;
    //============================================================================
    var matrix:Matrix = new Matrix();
    matrix.translate(stage.width, stage.height);
    snap_btn.addEventListener(MouseEvent.CLICK, snapShot );
    function snapShot( evt:MouseEvent ):void
        displayCapturedBitmapData();
    function getBitmapData( target:DisplayObject ) : BitmapData
    if ( bd )
    bd = null;
    //target.width and target.height can also be replaced with a fixed number.
    var bd : BitmapData = new BitmapData( 920 ,760 , true, 0x00000000);
    bd.draw( stage);
    var jpgEncoder:JPGEncoder = new JPGEncoder(90);
    var byteArray:ByteArray = jpgEncoder.encode(bd);
    var SERVICE_PATH:String = "SERVICEPATH.php";
    var imageFileName:String = "testjpg.jpg";
    // create a URL loader to send the data to the server
    var loader:URLLoader = new URLLoader();
    var url:String = SERVICE_PATH + "?name=" + imageFileName;
    var req:URLRequest = new URLRequest(url);
    // make sure the server knows it is getting an image
    req.requestHeaders =  new Array(new URLRequestHeader("Content-Type", "image/jpeg"));
    loader.dataFormat = URLLoaderDataFormat.BINARY;
    req.contentType = "image/jpeg";
    req.method = URLRequestMethod.POST;
    req.data = byteArray;
    // send the file
    loader.load(req);
    return bd;
    function displayCapturedBitmapData():void
    var bmp:Bitmap = new Bitmap( getBitmapData( stage ) );
    addChild(bmp);
    bmp.x = 695.65;
    bmp.y = 56.76;
    bmp.height = 190;
    bmp.width = 230;
    //==============================================
    [/AS]

    wrap all your code (except your functions and import statement) in an init function and add:
    this.addEventListener(Event.ADDED_TO_STAGE,init);
    your code is difficult to read because it's unformatted, so i'm not sure this is all the code not in a function but your new code should look something like:
    import com.adobe.images.JPGEncoder
    this.addEventListener(Event.ADDED_TO_STAGE,init);
    var matrix:Matrix
    function init(e:Event):void{
    matrix= new Matrix();
    matrix.translate(stage.width, stage.height);
    snap_btn.addEventListener(MouseEvent.CLICK, snapShot );
    p.s.  it looks like you're nesting named functions.  you should unnest them.

  • Another preloader problem

    all,
    i'm also having a strange problem. i am also using the lynda.com tutorial. i got frustrated when it didn't work, then recreated my movie step by step.
    rebuilt the file with all layers on frame 2. frame 1 is blank except for the dynamic text/preloader code in the actions layer.
    everything tested fine.
    later, as i built the movie out (to about frame 500), the preloader counter stopped working*.
    *i just figured out the counter issue: under properties panel (with a movie clip selected), under the 'export for actionscript' the option to 'export in frame 1' selected, disables the visual counter in my preloader.
    next, i comment out the entire 1st frame coding (stop and preloader text) and the movie plays fine and stops at the end.
    when i enable the "stop();" code, the playhead stops on the 1st frame—so that part works.
    the problem comes when i remove the comment in the preloader text:
    • test mode: frame stops at 2 (only the background shows, the playhead doesn't continue)
    the problem of the playhead staying at frame 2 still exists. it's making me crazy!
    i'm on a mac, osx (snow leopard), mac pro dual/quad core, 8gb ram
    any help would be greatly appreciated.
    the file can be downloaded here:
    http://www.roguedog.com/files/design/clients/d1r3.fla.zip

    when loading is complete you're directing the play head to the next frame (2) and stopping it.  if you want the playhead to advance to the next frame and play use:
    stop();
    //Preloader
    loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
    function updatePreloader(evtObj:ProgressEvent):void
         //container for the progress of the site (download)
         var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
         preloader_txt.text = percent+"%";
         if (percent==100) {
             play();

  • Java Audio Metronome | Timing and Speed Problems

    Hi all,
    I’m starting to work on a music/metronome application in Java and I’m running into some problems with the timing and speed.
    For testing purposes I’m trying to play two sine wave tones at the same time at regular intervals, but instead they play in sync for a few beats and then slightly out of sync for a few beats and then back in sync again for a few beats.
    From researching good metronome programming, I found that Thread.sleep() is horrible for timing, so I completely avoided that and went with checking System.nanoTime() to determine when the sounds should play.
    I’m using AudioSystem’s SourceDataLine for my audio player and I’m using a thread for each tone that constantly polls System.nanoTime() in order to determine when the sound should play. I create a new SourceDataLine and delete the previous one each time a sound plays, because the volume fluctuates if I leave the line open and keep playing sounds on the same line. I create the player before polling nanoTime() so that the player is already created and all it has to do is play the sound when it is time.
    In theory this seemed like a good method for getting each sound to play on time, but it’s not working correctly.
    At the moment this is just a simple test in Java, but my goal is to create my app on mobile devices (Android, iOS, Windows Phone, etc)...however my current method isn’t even keeping perfect time on a PC, so I’m worried that certain mobile devices with limited resources will have even more timing problems. I will also be adding more sounds to it to create more complex rhythms, so it needs to be able to handle multiple sounds going simultaneously without sounds lagging.
    Another problem I’m having is that the max tempo is controlled by the length of the tone since the tones don’t overlap each other. I tried adding additional threads so that every tone that played would get its own thread...but that really screwed up the timing, so I took it out. I would like to have a way to overlap the previous sound to allow for much higher tempos.
    I posted this question on StackOverflow where I got one reply and my response back explains why I went this direction instead of preloading a larger buffer (which is what they recommended). In short, I did try the buffer method first, but I want to also update a “beat counter” visual display and there was no way to know when the hardware was actually playing the sounds from the buffer. I mentioned that on StackOverflow and I also asked a couple more questions regarding the buffer method, but I haven’t received any more responses.
    http://stackoverflow.com/questions/24110247/java-audio-metronome-timing-and-speed-problems
    Any help getting these timing and speed issues straightened out would be greatly appreciated! Thanks.
    Here is my code...
    SoundTest.java
    import java.awt.*; 
    import java.awt.event.*; 
    import javax.swing.*; 
    import javax.swing.event.*; 
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundTest implements ActionListener { 
        static SoundTest soundTest; 
        // ENABLE/DISABLE SOUNDS 
        boolean playSound1  = true; 
        boolean playSound2  = true; 
        JFrame mainFrame; 
        JPanel mainContent; 
        JPanel center; 
        JButton buttonPlay; 
        int sampleRate = 44100; 
        long startTime;  
        SourceDataLine line = null;  
        int tickLength; 
        boolean playing = false; 
        SoundElement sound01; 
        SoundElement sound02; 
        public static void main (String[] args) {        
            soundTest = new SoundTest(); 
            SwingUtilities.invokeLater(new Runnable() { public void run() { 
                soundTest.gui_CreateAndShow(); 
        public void gui_CreateAndShow() { 
            gui_FrameAndContentPanel(); 
            gui_AddContent(); 
        public void gui_FrameAndContentPanel() { 
            mainContent = new JPanel(); 
            mainContent.setLayout(new BorderLayout()); 
            mainContent.setPreferredSize(new Dimension(500,500)); 
            mainContent.setOpaque(true); 
            mainFrame = new JFrame("Sound Test");                
            mainFrame.setContentPane(mainContent);               
            mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
            mainFrame.pack(); 
            mainFrame.setVisible(true); 
        public void gui_AddContent() { 
            JPanel center = new JPanel(); 
            center.setOpaque(true); 
            buttonPlay = new JButton("PLAY / STOP"); 
            buttonPlay.setActionCommand("play"); 
            buttonPlay.addActionListener(this); 
            buttonPlay.setPreferredSize(new Dimension(200, 50)); 
            center.add(buttonPlay); 
            mainContent.add(center, BorderLayout.CENTER); 
        public void actionPerformed(ActionEvent e) { 
            if (!playing) { 
                playing = true; 
                if (playSound1) 
                    sound01 = new SoundElement(this, "Sound1", 800, 1); 
                if (playSound2) 
                    sound02 = new SoundElement(this, "Sound2", 1200, 1); 
                startTime = System.nanoTime(); 
                if (playSound1) 
                    new Thread(sound01).start(); 
                if (playSound2) 
                    new Thread(sound02).start(); 
            else { 
                playing = false; 
    SoundElement.java
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundElement implements Runnable { 
        SoundTest soundTest; 
        // TEMPO CHANGE 
        // 750000000=80bpm | 300000000=200bpm | 200000000=300bpm 
        long nsDelay = 750000000; 
        long before; 
        long after; 
        long diff; 
        String name=""; 
        int clickLength = 4100;  
        byte[] audioFile; 
        double clickFrequency; 
        double subdivision; 
        SourceDataLine line = null; 
        long audioFilePlay; 
        public SoundElement(SoundTest soundTestIn, String nameIn, double clickFrequencyIn, double subdivisionIn){ 
            soundTest = soundTestIn; 
            name = nameIn; 
            clickFrequency = clickFrequencyIn; 
            subdivision = subdivisionIn; 
            generateAudioFile(); 
        public void generateAudioFile(){ 
            audioFile = new byte[clickLength * 2]; 
            double temp; 
            short maxSample; 
            int p=0; 
            for (int i = 0; i < audioFile.length;){ 
                temp = Math.sin(2 * Math.PI * p++ / (soundTest.sampleRate/clickFrequency)); 
                maxSample = (short) (temp * Short.MAX_VALUE); 
                audioFile[i++] = (byte) (maxSample & 0x00ff);            
                audioFile[i++] = (byte) ((maxSample & 0xff00) >>> 8); 
        public void run() { 
            createPlayer(); 
            audioFilePlay = soundTest.startTime + nsDelay; 
            while (soundTest.playing){ 
                if (System.nanoTime() >= audioFilePlay){ 
                    play(); 
                    destroyPlayer(); 
                    createPlayer();              
                    audioFilePlay += nsDelay; 
            try { destroyPlayer(); } catch (Exception e) { } 
        public void createPlayer(){ 
            AudioFormat af = new AudioFormat(soundTest.sampleRate, 16, 1, true, false); 
            try { 
                line = AudioSystem.getSourceDataLine(af); 
                line.open(af); 
                line.start(); 
            catch (Exception ex) { ex.printStackTrace(); } 
        public void play(){ 
            line.write(audioFile, 0, audioFile.length); 
        public void destroyPlayer(){ 
            line.drain(); 
            line.close(); 

    Thanks but you have never posted reply s0lutions before ?? And F 4 is definitely not 10 times faster as stated before I upgraded !!

  • Preloader problems - disappears at 60%

    Hi,
    I have two Preloader problems for a project I'm working on right now.
    1. The Main Site preloader disappears when 60% is loaded...with a blank screen lag until moving to the main screen
    2. My external .swf Preloader is still on screen after an external .swf has loaded. I can hear the external .swf playing while watching my loader bar at about 20-40%.
    I'm going to show the code I have for each...hopefully someone can help. Thanks!
    Main Site Preloader:
    var yChange = 109.2;
    var yStart = 330.2;
    myInterval = setInterval(preload,100);
    function preload() {
    var current = _root.getBytesLoaded();
    var total = _root.getBytesTotal();
    var pctLoaded = Math.round(current/total*100);
    mask_mc._y = yStart - yChange/100*pctLoaded;
    if (current >= total) {
      clearInterval(myInterval);
      gotoAndStop("Main",1);
    External SWF Preloader:
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    mcLoader.addListener(myListener);
    myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
    extLoader_mc._visible = true;
    var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
    extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
    if (bytesLoaded >= bytesTotal) {
      extLoader_mc._visible = false;

    change soundHandler in the fla to:
    // this code below is on the main timeline?
    var soundHandler:AdobeCaptivate.rdSoundHandler = new AdobeCaptivate.rdSoundHandler(this);
    and change rdSoundHandler:
    import AdobeCaptivate.rdSound;
    import flash.display.MovieClip;  // if this is as3
    class AdobeCaptivate.rdSoundHandler extends Object
    var m_sounds:Object;
    var m_movieSound:rdSound;
    var mainMC:MovieClip;
    function rdSoundHandler(mc:MovieClip)
      m_sounds = new Object();
      m_movieSound = null;
      mainMC=mc;
    function attachSound(key:Number, id:String):rdSound
      var sound:rdSound;
      if(m_sounds[key] == undefined || m_sounds[key] == null)
      { //attach new sound to the handler
       var newSound:rdSound = new rdSound(mainMC);
    // and now you have to find rdSound() class and post that
       newSound.attachSound(id);
       sound = m_sounds[key] = newSound;
      else
       sound = m_sounds[key];
       sound.stopSound();
      return sound;
    function detachSound(key:Number)
    { //remove the sound object from the handler
      if(m_sounds[key] != undefined && m_sounds[key] != null)
       var sound:rdSound = m_sounds[key];
       sound.stopSound();
       m_sounds[key] = undefined;
    function playAllSounds(bPause:Boolean)
      if(bPause == true)
      { //pause all sounds
       if(m_movieSound != null)
        m_movieSound.pause();
       for(var key in m_sounds)
        m_sounds[key].pause();
      else
      { //resume all sounds
       if(m_movieSound != null)
        m_movieSound.play();
       for(var key in m_sounds)
        m_sounds[key].play();

  • Logic 8 and memory problems

    Hello,
    First of all I am using........
    G5 Duel 2 gig
    mac osx 10.4.11
    4 gigs internal memory
    192 digital interface
    Logic Studio 8
    Protools 7.4
    I am experiencing a new problem since I upgraded to Logic Studio, With only 1 instance of Ivory and one instance of Omnisphere I am maxing out the memory and getting a error box that says i have exceeded the memory limits.
    My question is there a way to set the computer up memory wise so this does not happen. I never had this problem with 7.
    I can't open projects in 7 with mutiple tracks because of this problem.
    Any advice?
    Mark

    Hi Mark,
    One instance of Ivory and One instance of Omnisphere could easily exceed the 1.4 Gig or less there is probably left of your RAM (OS X needing 250 MB, Logic needing anything from 250 MB (very much depends on what else is loaded in a project). The only advice is: use a very light Ivory preset to work with, and when the MIDI is done, load the full Ivory you really want and bounce it to audio. Then load the Omnisphere and work with that in a similar fashion. The only other option is to max out your RAM to 4 GB and hope that is enough...
    +Another possibility might be to tweak voice streaming, buffer and preload settings in both Ivory and Omnisphere - but I own neither, so I don't know if you can and how. Maybe someone else can shed light on that?+
    To monitor how much memory is being used, install this freeware thingy: http://www.pure-mac.com/diag.html#menumeters.
    You can configure it to show all sorts of activity in the menu bar. Here you can see that I still have 543 MB of free RAM left.
    regards, Erik.

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • BOSD, Battery issues and Heating problem after iOS 8 upgrade

    i have upgraded my iPad mini to iOS 8. Ever since I upgraded to iOS 8 am facing blue screen issues and heating problem as well. This is really frustrating even the patch iOS 8.0.2 dint solve the problem. Are you guys listening our complaints. When will you fixing it.

    The same thing happened to me on my 2012 Subaru Outback.  I'm not sure this will help you since you have a Honda, but I'm posting this just in case.
    I paired the audio on my car with my iPhone 6.  However, when I turned the car off and back on again, the iPhone would not pair automatically.  I had to manually connect the iPhone with the car.  Turns out there are two separate bluetooth pairings on my car: one for phone which allows up to 5 devices and one for audio which allows only one device.  So I did the second bluetooth pairing for the phone (had already done the audio), and that fixed it.  YMMV

  • I am making code to try to make a game and my problem is that my code......

    I am making code to try to make a game and my problem is that my code
    will not let it change the hit everytime so im getting the first guy to hit 1 then next hits 8 and so on and always repeats.
    Another problem is that I would like it to attack with out me telling it how much times to attack. I am using Object oriented programming.
    Here is the code for my objects:
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class rockCrab {
         //Wounding formula
         double sL = 70;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 50;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         rockCrab() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              double done = rint(fH - fA);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("Rockcrab hit" +done);
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class self {
         //Wounding formula
         double sL = 1;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 1;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         self() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("You hit" +done);
    }Here is the main code that writes what the objects do:
    class fight {
         public static void main(String[] args) {
              self instance1 = new self();
              rockCrab instance2 = new rockCrab();
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
    }when the code is run it says something like this:
    you hit 1
    RockCrabs health is 9
    RockCrab hit 7
    your health is 38
    you hit 1
    RockCrabs health is 8
    RockCrab hit 7
    your health is 31
    you hit 1
    RockCrabs health is 7
    RockCrab hit 7
    your health is 24
    you hit 1
    RockCrabs health is 6
    RockCrab hit 7
    your health is 17
    my point is whatever some one hits it always repeats that
    my expected output would have to be something like
    you hit 1
    RockCrabs health is 9
    RockCrab hit 9
    your health is 37
    you hit 3
    RockCrabs health is 6
    RockCrab hit 4
    your health is 33
    you hit 2
    RockCrabs health is 4
    RockCrab hit 7
    your health is 26
    you hit 3
    RockCrabs health is 1
    RockCrab hit 6
    your health is 20
    Edited by: rade134 on Jun 4, 2009 10:58 AM

    [_Crosspost_|http://forums.sun.com/thread.jspa?threadID=5390217] I'm locking.

  • Remote and IR Problem

    A rather odd and annoying problem has recently been occuring on my MBP. A couple days ago my remote (after working without fail for over a year now) suddenly stopped working. Yesterday night and this morning it started working again but after a while it stopped again. I've read dozens of support articles which haven't really helped because there seems to be another problem.
    Most articles have stated that there is an option to disable the IR receiver in the "security" window under system preferences. When the IR and remote are not working this option disappears but when they are working the option is present. I have also tried replacing the battery without any result.
    I am now thinking that it might have something to do with heat buildup because it is mainly occuring after the laptop has been on for about a half hour, so I am going to try to borrow someone's fan.
    If anyone has any suggestions to solve this I would appreciate it if you could help. Thanks!
    MacBook Pro 1.83 GHz   Mac OS X (10.4.9)  

    check out this thread. Seems to be the same problem.
    http://discussions.apple.com/thread.jspa?messageID=4701905&#4701905

  • LG Ally text message and gps problems

    hello. ive been with verizon for about 10 years maybe. ive been overall happy with the service and customer service. but the prices should be alot lower.lol. i started out with the motorolas then switched to the lg phones. only problem with the motorola was the speakers. not loud enough. could never hear the phone ring. the lgs usually suffer from the same problem.
    i had a few phone problems but nothing like this lg ally. im on my second one and about to be my 3rd one in about 3 months. 1st phone i had every problem under the sun. this phone i am suffering from text message problems and gps problems. i suffer from what everyone else has problems with. the messages wont send. they will eventually lock up. it will show the envelope with the red explanation point ( i think thats the graphic). then usually everytime when i sent a text the texts will close. it will send then bounce back and show up as a draft and i have to resend it and wait for it to go thru. finally the last problem with the texts. when i send a text a phone number from my contacts shows up and freezes on the screen. its in white text with a black background. its the same number every time. it stays on the screen until i restart or pull my battery out.
    gps. when i open up google gps that comes with the phone i make sure the gps is on... when the directions are found and the map pops up 9 out of 10 times it just keeps saying searching for gps. the turn by turn never is found. the 1 time it does it takes a good 10 minutes to be found. atleast on my first one ally the gps did work 8 out of 10 times. it just took a good 5-10 minutes for gps to be found and show turn by turn.
    anyone else have these problems? where you able to fix them or did you need to get a new phone? the 2.1 update was supposed to fix problems. i think they just made it worse. the ally is supposed to have 2.2 froyo. where is it. is it ever going to get it. i got this phone because i like the lgs and the keyboard. also the sales representative on the phone was giving the lg ally rave reviews. why couldnt he say dont buy this go with a motorola droid. this phone is the biggest junk ever made

    I do apologize you are having trouble with your device I looked in our information system on the LG Ally in reguards to issues you are having it states if you have the Free Droid Security anti virus protection application down loaded it will cause the phone to lock up or freeze. Check and make sure you do not have the application on your device. Check you GPS settings and make sure correct. Go to Settings; Location & Security; make sure GPS is on wireless network. If this does not fix issue you can try doing a Master Reset on your device. Make sure your contacts are saved in your G-mail account or through Back Up Assistance.
    Master Reset/Soft Reset:
    Factory Reset option 1
    From the main screen, touch menu tab
    Touch Settings
    Touch Privacy
    Touch Factory Data reset
    Touch Reset Phone
    Warning: This will erase all data from your phone, including:
    Your Google account
    System and application data and settings
    Downloaded Applications
    It will not erase: Current System software and bundled applications; SD Card files, such as music or Photos
    Factory Reset option 2  - Warning this will reset device back to original factory settings.
    Turn off the phone
    Press and hold "home" + "end" + "volume up or down" keys together for a few seconds when the device is power off
    Once device displays boot information, release keys.
    Soft Reset
    Press the Power key.
    Touch Power off.
    Touch OK.
    Press the Power key to power on the device.
    or
    Remove battery cover, remove battery and reinstall.Also there is a new update for LG Ally it will be the Froyo 2.2 but there is not release date available at this time it will post on your device when available. Hope this Helps. Leslie

  • I am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!

    i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
    When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
    Please HELP!!!!!! Getting second thoughts on Lion!!!!

    Hi b,
    Have you restarted yet?

  • How do I fix my ipod classic that says very low batter after I have charged it and the problem persists?

    I have an Ipod video 30g that says Please wait very low battery. I charged it for about a day and the problem persists. I've tried using some solutions on the internet and none of them worked including: holding the menu and select, holding select and play to put it in disk mode with no avail. Is there anyone who can help me!!!

    Have you read this post written by another forum member?
    The Sad iPod icon.
    However, as your iPod was purchased on Boxing Day, why not get it serviced under the warranty?
    You can arrange online service here.
    Service request.
    Or if an Apple store is near you, take it there and have them check your iPod.
    You can make an appointment by using this link.
    Genius Bar Appointments.

  • It's so annoying!! I have created a new Apple ID but after I click verify it just goes back to the previous page!!! It''s really frustrating I have tried for more than 4H, and the problem is not about the apple ID. I can download apps with the apple ID, w

    It's so annoying!! I have created a new Apple ID but after I click verify it just goes back to the previous page!!! It''s really frustrating I have tried for more than 4H, and the problem is not about the apple ID. I can download apps with the apple ID, which means IMessage is the problem! I restarted my iPad, I logged in and out of the apple ID in the store, AND YET IT STILL WON'T WORK, PLEASE HELP!

    Hi Vmanfromusa!
    It sounds like you are having an issue with activating your iMessage app on your iPad. An article outlining some troubleshooting steps for this issue can be found here:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

Maybe you are looking for

  • Another Mavericks Random Restart issue...

    I've seen lots of discussions about these issues, but nothing definitive that will simply fix our problems. For the last month I've been trying the various suggestions offered on these forums: turning off the Energy Saver stuff, auto logging in, etc,

  • DataBase Adapter Rollback option for Logical/Physical Delete in SOA  11g

    Hi All, We have a requirement where we need to rollback the logical delete performed by the DB Adapter (after polling a table) if there is any failure in the process down the line. We are trying to implement this using Mediator or OSB. For example if

  • IDoc to HTTP: Using acknowledgments

    Hi friends. I know the HTTP Adapter does not support acknowledgments. But we had a scenario in which we send an IDoc from SAP and transformed it in a HTTP Call. We get back to the SAP system a aleaud Ack IDoc from PI. It reports that the communicatio

  • Error: Requested resource does not exist with SAP WebAS..deployed an ear

    hi, i deployed an application using SDM gui deployement manger.   the application is built using struts,spring etc. I have also created a datasource with Oracel 9i succesfully and hav associated it with the application. When i try to access the appli

  • What do we mean by constant-time versus log-time?

    Can any one help in understanding that. 1) HashSet is much faster than TreeSet ( constant-time versus log-time for most operations ). I am unable to understant this constant-time versus log-time.