[Plugin: Audio Player] Editing source, where to put? (1 post)

  1. not2bug
    Posted 5 years ago #

    I have this code that plays m4a files. I can throw it in a frame in a Flash file (I'm using CS4) and it plays the file wonderfully.

    I've looked through the source .fla and associated class files, but I can't find where the player actually starts playing the file to substitute this code in it. Of course, I'd have to change some of these variables so that they're not hardcoded.

    var mySound:SoundTransform;
    var connect_nc:NetConnection = new NetConnection();
    var stream_ns:NetStream = new NetStream(connect_nc);
    stream_ns.client = this;
    mySound = stream_ns.soundTransform;
    mySound.volume = .5;
    stream_ns.soundTransform = mySound;

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.