Professional Web Applications Themes

Help on actionscript, newb question - Macromedia Flash Actionscript

Ive got a question, i cant import a song that is mp3 format into one of my flash animations. I try to import it, and it gets cut off a few seconds after it begins to play. the song is 1:10 minutes long. I dont think im doing anything wrong when im importing it, so heres the code i have on the first frame in my animation. I am a newb to flash, so try not to stick it to me too harshly =D firstSound=new Sound(); firstSound.attachSound("firstSound01"); firstSound.start(0,999);...

  1. #1

    Default Help on actionscript, newb question

    Ive got a question, i cant import a song that is mp3 format into one of my
    flash animations. I try to import it, and it gets cut off a few seconds after
    it begins to play. the song is 1:10 minutes long. I dont think im doing
    anything wrong when im importing it, so heres the code i have on the first
    frame in my animation. I am a newb to flash, so try not to stick it to me too
    harshly =D



    firstSound=new Sound();
    firstSound.attachSound("firstSound01");
    firstSound.start(0,999);

    Into The Blue Guest

  2. #2

    Default Re: Help on actionscript, newb question

    Try these things. Not sure if they will help, but give them a go anyway :)

    1) Try with a different mp3 file. DOes it happen here too? If not, its
    probably the file. Perhaps flash is using a different codec for playback??
    2) Is this the only code in the swf file? ARe you perhaps using the variable
    'firstSound' again later on and overwriting the original sound?
    3) Do you have a stop() command to halt the swf? If not, your swf may be
    looping and running the code again, and this may be doing something strange.
    Try palcing a stop(); command on the last frame of your main clip.

    Hope it helps or at least points you in the right direction,
    Pea

    Pea Guest

Similar Threads

  1. Newb question
    By The Eclectic Electric in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: December 27th, 02:35 AM
  2. Question (newb)
    By anand ganatra in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: September 3rd, 03:04 PM
  3. Newb question!!
    By sleeper in forum Macromedia Flash
    Replies: 0
    Last Post: August 6th, 02:22 AM
  4. Actionscript question.
    By castlestudio in forum Macromedia Flash Actionscript
    Replies: 3
    Last Post: March 2nd, 05:37 AM
  5. newB question: related tables question
    By Blue man in forum Microsoft SQL / MS SQL Server
    Replies: 1
    Last Post: June 30th, 04:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139