Differences in AS2 and AS3 MP3 Playback?

This works in AS2 and plays fine:
var my_sound:Sound = new Sound();
my_sound.loadSound("
http://download.podango.com/mediatracker/1/67943/ApplePhoneShow_46.mp3",
true);
This is chopping in AS3:
var snd:Sound = new Sound(new URLRequest("
http://download.podango.com/mediatracker/1/67943/ApplePhoneShow_46.mp3"));
snd.play();
Is there something I don't know about how MP3's are handled
in AS3?
Thanks,
bmorrise

Crazy, right after reading your post I check my current
project online using FireFox and IE 6 and noticed they are
inconsistent. I am also loading an external image into Flash and
with FireFox it seems that it doesn’t recognize the image
instantly however with IE it does (hence with your issue it
doesn’t know the width of the image). Comparing your code
with mine, we are both using an onEnterFrame event handler and Fuse
script. So those would be the culprits. I think you are using an
older version of Fuse then I (I am using the latest version). With
your code, you can use the MovieClipLoader class to retrieve the
bytes loaded for the loading image instead of onEnterFrame. That
might solve your issue. If I find out a solution I will post back
here.
But this is not uncommon, finding one browser acting
different then the other, I have witnessed it several times.

Similar Messages

  • As2 and As3 on same Flash Player

    If i set AS2 codes to play in Flash Player 9, is it possible
    that this swf can load an As3 swf at the same Flash Player using
    As2 codes???
    These swfs both play in same virtual machine which is player
    version 9 but the other is coded with As2 and the other is coded
    with As3. How can an AS2 load a swf coded in AS3 on same Flash
    player?
    Is this possible?
    If yes, how? if no, why not?

    AS2 and AS3 swfs cannot exist in the same Flash Player
    virtual machine - each Flash Player instance (version 9 and
    greater) create different address spaces/virtual machines because
    the requirements of AS3 and AS2 are so different.

  • Do AS2 and AS3 all play together with Director?

    Hi,
    I am about to make some incremental changes to a AS2 and Dir CD UI design.
    I like the AS3 for making a new movie player and its handling of XML.
    I need to share variables between all of them.
    Do I need to worry about this mixed environment?
    Thanks,
    Jim

    Sean,
    Yes normally do that. I am in the paper/planning stage. I am trying to assign functions to Dir and Flash.
    It is simple (first) and elegant I am trying to design towards
    I am testing some of the feature with AS2 SWF right now. On rmore issue to debug, and I will need to make a descision on my souce for XML.
    I really want to use AS3 in the long run. Although AS2 is better for my newbie programmers (they really only change text strings and add instance names).
    AS3 stuff will be singletons that they never get to modify - play movies, run EXE's, open PDF's, goto URL's, tooltips, read XML (for them to supply unique info to external items), etc..
    Greensock has some exelent AS3 addons that make it easy to do all of these thing and other XML related (in my design) features and minimize memory use and leaks.
    Thanks

  • Player 10 - Slow and Distorted MP3 Playback.

    I began experiencing this problem once I download Flash
    Player 10. The mp3 playback is slow and sounds very distorted.
    This only seems to occur with mp3s at a 48k sample rate. Mp3s
    at a sample rate of 44.1k sound normal. Is there a way to fix this
    without converting the sample rate? Is Adobe working on a solution?
    Thank you.

    I'm getting the same thing. Are all of you on Apple platform? It seems to be the only place this is showing up.
    Macbook Pro - OSX 10.5.6
    When I uninstall flash player and reinstall 9 it works fine. On another not when using CS4 at work the same thing happens locally when I test the movies.
    It's sounds like music on nitrous in hell. .. . .

  • Are there any known problems with Macs and the mp3 playback in Adobe Connect ?

    One user using an Apple Mac has complained of not being able to hear the mp3 sound playback in a meeting.
    Is this a problem with Apple Mac and mp3 compatibility or is it an individual soundcard issue ?

    I use several Macs with Adobe Connect and I have even created MP3 files for playback in the room. Works fine on all my macs. It's basic Flash. Suggest they clear their browser cache, replace their host-add-in if using one. Run the audio wizard as well to make sure sound is working in Connect.
    All of the Adobe Connect Government engineers use Macs all the time so we've never had an issue with MP3's.

  • HTML Link -AS2 fine, AS3 weird behaviour

    Hi Guys, I'm working on a project at the moment, and am
    seeing weird behaviour with the way my swf handles html links
    inside dynamic textboxes. When rendered as a AS2 file, the link
    works on a release as expected. When its inside a AS3 file the link
    will only work if the user right click and chooses 'open in new
    window' was there a change in behaviour how AS3 handles these
    links, or is there now an declaration needed to be made to allow
    these link to have the old behaviour?
    The project calls for xml data and embedded in that is a html
    link. Originally I thought it might have been the way I'd formed
    the xml so I tried with a hardcoded version instead (dynamic
    textbox, add text -> highlight -> add link through properties
    tab). But I still see the same behaviour between the as2 and as3
    versions.
    Any help would be greatly appreciated.
    Cheers.

    Actually, the ''href'' attribute is supposed to direct the browser to a new URL, etc., not run a script. Instead, use the ''onclick'' event attribute:
    ''<a onclick = “$('.div-feedback').fadeIn();”></a>''.
    Happy coding!

  • Major gaming system Migration from AS2 to AS3

    I have a major project entirely in AS2. It is made of a
    Multimedia Application, which provides access to functions needed
    to load games, save information, insert *.jpg files... The 50+
    games each have their own graphic.swf and engine.swf, where the
    graphics deal with gameplay and the engine communicates with the
    Multimedia Application.
    If the Multimedia Application is migrated to AS3 but the game
    swf files remain the same, will the functions still be able to
    communicate (call functions and send references to objects)?

    No, AS2 and AS3 are absolutely different animals. There are
    some techniques (search for as2 as3 bridge in the net) that create
    a bridge which are cumbersome in my view.

  • Using swf and AS3 on supercomputer

    I (might) have an opportunity to run my ActionScript 3 project on a Cray supercomputer in couple of weeks.
    How can I be sure that I benefit of the multiple processors an big memory space?
    And I need to understand how will I benefit?
    Is window="gpu" embed tag all it takes, or should I use Alchemy and different ASC?
    That gpu -tag is said to give benefits only in some occasions, would this be the occasion?
    Maybe there is readymade versions of Flash-Player that will use multiprocessor?
    Filesize is below 100kt, but...
    My demo is huge fractal with graphics in several (hundreds) nodes, and it can be made even bigger...
    I will also use real time generated sounds in background.
    Mac mini is already having trouble with it, it would be interesting to see how supercomputer will manage.
    Any information?

    AS2 and AS3 swfs cannot exist in the same Flash Player
    virtual machine - each Flash Player instance (version 9 and
    greater) create different address spaces/virtual machines because
    the requirements of AS3 and AS2 are so different.

  • AS2 with AS3 integration

    Hi.
    I have loads of games in AS2 but a freelancer is developping games in AS3. Can I use a container movie in AS3 and load both AS2 and AS3 games in. Otherwise I would have to update all games into AS3. Would all games have to be published to the same flashplayer? ie: FS7 etc...

    you can use an as3 swf to load as2 swfs.  if you need to communicate between the two swfs, use the localconnection class.

  • As2.0 and As3.0 communicatioin

    Hi,
    i m updating my e-learning course player project with Flash
    cs3 and AS3.0. the old version of course player was in As2.0. which
    load cousre swf files .
    it was working fine Flash8 As2.0.
    the player load course swf. the loaded course swf on a
    specifec frame call a method like this
    _level0.setButton(2) method from course player;
    The setButton(parameter) method defination is in new courser
    player. the loaded movie which is in Actionscritp2.0 not finding
    this method
    in new course player which in Actionscript3.0. its working
    well with the old course player.
    can any one give me solution to solve the issue.
    i can't make changes in course swf files b/c there are
    thousand of course files

    thank for your reply i have used it but it is two way
    communication , as i mentioned in my question
    i can't make changes in my As2.0 course swf files. b/c there
    are thousand of these course files.

  • Help Converting AS2 to AS3 Drag and Drop Event

    Hi All,
    This is the second post on help for converting AS2 to AS3. This code is used in Captivate to allow a drag and drop action between two areas (User presses down, drags, and releases in a second area - They are not dragging any object). If anyone can help me convert this please let me know.
    Source for Drag and Drop: (Note: Single MovieClip)
    // pause the Captivate movie
    _root.rdcmndPause = 1;
    // when the user's mouse is let go check if there was a successful drop
    _root.onMouseUp = function(){
              // If the source area's center coordinate is nearby the destination area's center coordinate then advance the slide
              if ( Math.abs(_root.sourceX + _root.sourceWidth  / 2 + _root.sourceParentX - (_root.destX + _root.destWidth  / 2)) < (_root.destWidth  / 2) &&
                         Math.abs(_root.sourceY + _root.sourceHeight / 2 + _root.sourceParentY - (_root.destY + _root.destHeight / 2)) < (_root.destHeight / 2) )
                        _root.rdcmndNextSlide = 1;
              } else {
                        // show error movie clip for 2 seconds (60 frames at 30 frames per second)
                        _root.showErrorMessage = 60;
      mc.onEnterFrame = function(){
              // continuously update the source area's coordinates and size
              _root.sourceX = mc._x;
              _root.sourceY = mc._y;
              _root.sourceWidth = mc._width;
              _root.sourceHeight = mc._height;
              _root.sourceParentX = _parent._x;
              _root.sourceParentY = _parent._y;
    mc.onPress = function(){
              // Uncomment following line to have control click capabilities
              //if(key.isDown(Key.CONTROL))
              // when user clicks on the source area click start the drag
                        startDrag(this);
    mc.onRelease = function(){
              // stop drag when user releases the source area
              stopDrag();
    Source for Destination Area (Single MovieClip named destArea)
    // Set a root variable to control when the error message is displayed
    _root.showErrorMessage = -1;
    // Use setCoords variable so we only set the destination coordinates once
    var setCoords = 0;
    destArea.onEnterFrame = function(){
              if (setCoords == 0){
                        // set the destination x, y, width, and height
                        _root.destX = _parent._x;
                        _root.destY = _parent._y;
                        _root.destWidth = _parent._width;
                        _root.destHeight = _parent._height;
              // destination coordinates have been set, change setCoords so it doesn't get set again
              setCoords = 1;
    Code for the Error Message (Single MovieClip named errorMessage)
    // Don't display the error message initially
    errorMessage._alpha = 0;
    errorMessage.onEnterFrame = function (){
              // If the drag and drop method detects a missed drop
              // then show this error message by setting _alpha to 100
              if (_root.showErrorMessage > 0){
                        errorMessage._alpha = 100;
                        // decrementing this variable controls the time the
                        // error message will be displayed
                        _root.showErrorMessage--;
              } else {
                        // Don't display the error message
                        errorMessage._alpha = 0;

    use:
    MovieClip(parent.parent.parent).rdcmndPause=1;
    this.addEventListener(KeyboardEvent.KEY_DOWN,keydownF);
    function keydownF(e:KeyboardEvent):void{
    fscommand("KEYPRESSED", e.keyCode);
    if(e.keyCode==32){
    MovieClip(parent.parent.parent).rdcmndNextSlide=1;

  • Main movie in AS2 and MC AS3

    Dear all,
    I have a main movie is coding AS2 which contains a movieClip called MC_header.
    And I have an external movie is coding with AS3.
    My question is :
    Can i loadmovie the external movieclip in the main movie????
    if yes, how?
    thanks
    MELAS

    Nope. If the original movie is AS3 you can load in an AS2 clip and it will run as an AVM1 (ActionScript Virtual Machine 1, which understands AS1 and 2) Movie. But the AVM1 has no idea about AVM2 (which understands AS3) so you can't go the other way.
    Even when you do load an AS2 into and AS3 file the communication between the main file and the loaded AVM1 movie is quite limited and you won't be able to control it the way you would if they were both of the same flavor -- if that is important to your project.

  • My itunes playback and transfered mp3 files are corrupted and sound garbled...***? All software is updated.

    Recently my itunes player and sync mp3's play sped up and garbled. All software is updated
    and all obvious logical attempts to fix it have failed. My  files play fine on Media Player, and
    burn fine using Nero. Problem's gotta be in itunes.
    Any ideas?

    I've uploaded a new version of my DeDuper script which should be able to detect when the same file is on two different paths and act appropriately. The script preserves ratings, play counts and playlist membership and can recycle real duplicates while keeping hold of an original copy each duplicated track. See this thread for background, this post for detailed usage instructions, and please take note of the warning to backup your library before deduping.
    Test with the duplicated tracks of a single album first just to get a feel for it. It can take some time to run as it makes 5 passes over the selection, so you'll need to be patient if you are not able to use it with the progress bar active. If it detects the possibility (as it will in your case) that two seemingly different paths point to the same file it will prompt you to confirm the correct path to the media folder. This should be the C:\Users\<User>\Music\iTunes\iTunes Media one, please correct it if it detected the wrong folder before proceeding.
    tt2

  • Translating tellTarget from AS2 to AS3

    Hi all!
    I am truely a beginner and here is my problem.
    I have been working on a Flash website in coded in AS3. Now, I have found a stright-forward turorial on adding a Sound ON/OFF button coded i AS2!
    What I want to do is to translate the piece of AS2 code below to AS3:
    on (release) {
    tellTarget ("supernovastar.mp3") {
    stopAllSounds();
    on (release) {
    nextFrame();
    I am aware of the on (release) has been changes to EventListners in AS3 but I cannot figure the rest out.
    I am greatful for any advice and help!
    Thanks!

    tellTarget is AS1, not AS2, and is replaced with dot notation coding (aka OOP).  But since the command in this case is to stop all sounds, targeting an object doesn't seem necessary since it is a global command.  The replacement for it would be to import the SoundMixer class (early on) and call its stopAll() method.
    import flash.media.SoundMixer;
    SoundMixer.stopAll();
    For the second on(release) section, nextFrame is still valid in AS3

  • Looking for a copy of Patrick Mineault's AS2 to AS3 converter.

    Anybody have a copy of Patrick Mineault's AS2 to AS3 converter sitting around?  His website closed down in May and he changed careers.
    Thanks!

    See if this is it:
    http://download.info.apple.com/Apple_Support_Area/Manuals/powerbooks/0301677CPBU G.PDF

Maybe you are looking for