Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




I Want The CD With Flash Content To AUTOSTART. How Do I Do That?



I want the CD with Flash content to AUTOSTART when you load the cd in the cd-rom. How do i do that?
can i do that?

thanks in advance!!
//
Marcus Tinnerholm
Virtual Visions Scandinavia



FlashKit > Flash Help > Flash MX
Posted on: 04-15-2004, 06:38 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Autostart On Flash Movies?
I have made a flash movie and it works fine when i test it as I'm making it, but when I upload it to the server and view it on the webpage, the movie doesn't start automatically, I have to right click it then hit play. Is there something that I did wrong when I made the movie. Any help would be much appreciated.

Thanks in advance

Flash Buttons Don't Autostart
Sorry if the question doesn't make a lot of sense. I'm really really new to Flash.

I'm using IE 6 and 7 (2 different pc's) to test on.

If I view a swf file that has animation it starts as soon as the page loads however, if I load a swf with a button on it (like one with a hover effect) I can not get it to start unless I click on the control first and then hover over it.

When I hover over the button the tooltip says, "Click to activate and use this control"

So I have to click on the control and then it works, but animations do not require this action. They start up as soon as the page loads.

Is there a setting or something in IE or in flash itself that I should have enabled to allow the buttons or menu to autostart as soon as the page loads?

Thanks, and again sorry if this doesn't make sense.
-Dave

Autostart Flash Exe File From Win 98 When I Switch On PC
Please all the flash guru help me how to autorun flash exe from win 98 whenever I switch on the computer.

Autostart CD ROM
HI,
I wonder if anyone can help me. I've created a flash movie which I want to burn onto a cd rom. I've saved the projector file and everything, but I want it to start automatically when you insert the cd, is there a FS command or some actionscript to do this? It's for use on a mac and I am using a mac.
Thanks in advance for any help.

Autostart CD In OSX?
hi all

is there a way you can make a CD autostart a projector in OSX ????????

i can do it for OS9 in toast and PC with autorun.inf but not OSX, any help would be great

Cheers

Autostart
okay this should be easy.... i am creating a flash movie and publishing it as a projector for a mac platform... how to initial an autostart so the program automatically starts when placed in the cd rom drive....


thank you in advance

Autostart Cd-rom
I need to autostart a CD with a mac projecter file and a PC exe file on it.
I would like the relevent file to automaticly open when you insert it into the drive.
Can anyone tell me how to go about doing this?

Autostart Cd Help
how can i make a pc cd that autostarts using flash mx?
i need it to automatically starts the flash movie, and the movie will have a password script in it.
thanks sooo much for your help.
aleloop

Autostart
When someone puts a cd (my movie) into their cd drive, does anyone know how to make it autostart?

XML Autostart
Howdy I was wondering if anybody in this forums could help me auto start my videos and lead in right into the next video i've pasted the code and attached the "sample"........

Thanks Chuck

var playlistXML:XML = new XML();
playlistXML.ignoreWhite = true;
var currentVideo:String;
var currentFLV:String;
playlistXML.onLoad = function() {
var tempArray = new Array();
for (var i = 0; i<this.firstChild.childNodes.length; ++i) {
tempArray[i] = new Object();
tempArray[i].label = this.firstChild.childNodes[i].attributes.vdate+newline+this.firstChild.childNod es[i].firstChild.nodeValue;
tempArray[i].data = this.firstChild.childNodes[i].attributes.flv_url;
}
playlist_lb.dataProvider = tempArray;
};
playlistXML.load("video_list.xml");
playBut._visible = false;
pauseBut._visible = true;
playlist_lbListener = {};
var playlist_lbListener:Object = new Object();
playlist_lbListener.change = function() {
currentVideo = playlist_lb.selectedItem.label;
currentFLV = playlist_lb.selectedItem.data;
playBut._visible = false;
pauseBut._visible = true;
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.setBufferTime(0);
ns.onStatus = function(object) {
// rewind and pause on stop
};
// Attach the NetStream video feed to the Video object
the_video.attachVideo(ns);
// Set the buffer time
ns.setBufferTime(5);
// Begin playing the FLV file
ns.play(currentFLV);


// build sound object
this.createEmptyMovieClip("snd", 0);
snd.attachAudio(ns);
audio = new Sound(snd);

};

playlist_lb.addEventListener("change", playlist_lbListener);

CD Rom Autostart
I'm thinking about making a CD Rom with Flash and I was wondering about how to make the autostart on the CD. Is it difficult? Probably not. Can anybody tell me how?
Tx

Autostart Help
Hello all. I've been trying to learn more about sound and flash lately and have an existing mp3 player that I need help with.

I've built my own simple mp3 player so far, but this one is a bit more complicated and I'm stuck on one thing...

What needs to be added/changed so that this player will not autostart?

I have tried changing this.sound_obj.loadSound(file,true) to this.sound_obj.loadSound(file,false) but it still autostarts.

I'm still a newbie when it comes to Flash and I've tried searching on this topic for something that will answer my questions for this particular player, but no luck.

So, any help is greatly appreciated. Source code is below.

Thanks,

Opusmx

---------------

stop();
playlist = new XML();
playlist.ignoreWhite=true;
playlist.onLoad = function (success) {
if(success) {

_global.songname = [];
_global.songband = [];
_global.songfile = [];
for (var i=0; i<playlist.firstChild.childNodes.length; i++) {

_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
_global.songband[i] = playlist.firstChild.childNodes[i].attributes.band;
_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
//trace(songname[i]+" "+songfile[i]+" "+songband[i]);
}
}
_root.createEmptyMovieClip("sound_mc",1);
_global.song_nr = random(songfile.length);
_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr]);
}


function timer(sound_obj) {
time=sound_obj.position/1000;
min=Math.floor(time/60);
min=(min<10)?"0"+min:min;
sec=Math.floor(time%60);
sec=(sec<10)?"0"+sec:sec;
timeDisplay_txt.text=min+":"+sec;
}
MovieClip.prototype.songStarter = function (file, name, band) {
if (this.sound_obj){
this.sound_obj.stop();
delete this.sound_obj;
}
this.sound_obj = new Sound(this)
this.sound_obj.loadSound(file,true)
this.onEnterFrame = function () {
if(this.sound_obj.position>0) {
delete this.onEnterFrame;
this._parent.display_txt.text=name+" - "+band;
timeInterval = setInterval(timer, 1000, this.sound_obj);
} else {
this._parent.display_txt.text="loading..."
}
}
this.sound_obj.onSoundComplete = function () {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text="00:00";
(song_nr==songfile.length-1)? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr]);
}
this._parent.volume1.dragger.onPress = function() {
startDrag(this, true, 0, this._y, this._parent.volBG._width, this._y);
this.onEnterFrame = function() {
var p = (this._x/this._parent.volBG._width)*100;
this._parent._parent.sound_mc.sound_obj.setVolume( p);
};
}
this._parent.volume1.dragger.onRelease = function() {
delete this.onEnterFrame;
stopDrag();
};
this._parent.volume1.dragger.onReleaseOutside = function() {
stopDrag();
};

}

btn_play.onRelease = function () {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text="00:00";
this._parent.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr]);
}
btn_stop.onRelease = function() {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text="00:00";
this._parent.sound_mc.sound_obj.stop();
}
btn_fw.onRelease = function () {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text="00:00";
(song_nr==songfile.length-1)? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr]);
}
btn_rev.onRelease = function () {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text="00:00";
(song_nr==0)? _global.song_nr=songfile.length-1 : _global.song_nr--;
_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr])
}

playlist.load("jukebox.xml");

Anyway To Autostart From CD?
Well you know, I am making a interactive cd rom & I am looking for a way for it to start when someone inserts the cd, on mac & pc. I guess I need 1 exe file & something for mac?? If you guys have any idea or know of any software that does this please let me know. Thanks & happy holidays (love the theme)

Help With Autostart
I am a total n00bie with this so I apologize in advance for my ignorance.
I have this animation that refuses to start rotating unless I click on the animation and then hit the spacebar...

What can I do in order to get this stuff going?

Since i'm a new user the forum wont allow me to post the URL... PM if you have any ideas PLZ.

woodallcreative.com/proofs/strong/index.php

P

AUTOSTART IN MACINTOSH
AUTOSTART IN MACINTOSH

This has been put into the Newbies and Mac forum.

I read how to autostart a pc flash file.

How do I autostart a macintosh flash file?!

Autostart With Certain Program
hi there,

is it possible to create an autostart with a certain
program on a cd?
if so, how does it work?

as usual every help appreciated

Mac Autostart With Application
hi there,

my problem is to create an autorun for a cd-rom which
starts a html file with a browser.
autorun itself is working fine, unless u use os X. I think
they just skipped it, so it will work only on os 9 or earlier.
well, if i e.g. create a html file with dreamweaver, autrun will
open the html file NOT in a browser BUT in dreamweaver.
the windows autorun for the same thing works fine, if u use stuff
like runfile.exe in addition.
so does any1 have a clue, how to solve this or if there's a similar
utility for mac??

as usual every help appreciated

Autostart File For CD
How can I create a file that autostarts a flash movie called start.exe on a CD when the CD is inserted into the computer?

Thanks,
Jason

Loadmovie Must NOT Autostart. How To Do This?
Hello :-)

Maybe one of u knows the answer to this problem.
I have a swf, lets name it swf1. In swf1 a movieclip is playing. During the playing of swf1(the user is watching the movie) I load a second swf (lets name it swf2) with the ‘loadmovie’ action. I only want to do this because on the next page of my website swf2 is needed. So by ‘preloading’ it, it’s already in the browsers cache and the user doesn’t have to wait for swf2 to download when he surfs on. Now the problem. Swf2 is a movie clip with video and sound. When swf1 is playing and swf2 is fully loaded, swf2 begins playing to. I know this is the normal behaviour of AS and the loadmovie command. The result is that swf1 and swf2 are playing over each other. That’s not what I want.

1. Is it possible to give a loadmovie command the option NOT to start playing when it is loaded? When yes, how to do this?

2. If 1 is not possible, can i mute the sound of a loaded movie?

3. If 1 and 2 are not possible, are there other ways to ‘preload’ swf’s in the background (without playing them) for later use on the website?

Thanks in advance for the help.

Greetings, Luut.

Autostart For Macs (please Help)
creating a cd for co., and I was wondering if there is a code which would auostart a mac projecor file when the cd is put in the computer.

[F8] As 2.0 Video Autostart
Hello,

I have embedded a video in flash, and I do not want it to automatically start playing when the swf file loads. I want the rest of the movie to play though. Is there a way to do this ?

best,

Aaron

Want To Get FLV NOT To Autostart And NOT Loop
I clipped this code from a tutorial at gotoandlearn and am trying to figure out how to have the FLV NOT automatically start playing and once it completes, NOT loop but go back to first frame. Please help or offer suggestions. Thanks.


PHP Code:



var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);

ns.setBufferTime(10);

ns.onStatus = function(info) {
    trace(info.code);
    if(info.code == "NetStream.Buffer.Full") {
        bufferClip._visible = false;
    }
    if(info.code == "NetStream.Buffer.Empty") {
        bufferClip._visible = true;
    }
    if(info.code == "NetStream.Play.Stop") {
        ns.seek(0);
    }
}

ns.play("flv/#.flv");

playButt.onRelease = function() {
    ns.play();
    playPaus.play(1);
}

playButt.onRelease = function() {
    ns.pause();
    playPaus.play();
}

stopButt.onRelease = function() {
    ns.seek(0);
    ns.pause(true);
}

var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;

ns["onMetaData"] = function(obj) {
    duration = obj.duration;
}

function videoStatus() {
    amountLoaded = ns.bytesLoaded / ns.bytesTotal;
    loader.loadbar._width = amountLoaded * 238.6;
    loader.scrub._x = ns.time / duration * 238.6;
}

var scrubInterval;

loader.scrub.onPress = function() {
    clearInterval(videoInterval);
    scrubInterval = setInterval(scrubit,10);
    this.startDrag(false,0,this._y,238,this._y);
}

loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
    clearInterval(scrubInterval);
    videoInterval = setInterval(videoStatus,100);
    this.stopDrag();
}

function scrubit() {
    ns.seek(Math.floor((loader.scrub._x/238)*duration));


Autostart Mp3 Player
Hi, I have a flash mp3 player that only starts if I hit the play button. Is there a way to make it automatically start playing as soon as the movie loads?

Here is all the actionscript.




PHP Code:



stop();
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
    if (success) {
        _global.songname = [];
        _global.songband = [];
        _global.songfile = [];
        for (var i = 0; i<playlist.firstChild.childNodes.length; i++) {
            _global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
            _global.songband[i] = playlist.firstChild.childNodes[i].attributes.band;
            _global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
            // trace(songname[i]+"  "+songfile[i]+" "+songband[i]);
        }
    }
    _root.createEmptyMovieClip("sound_mc", 1);
    _global.song_nr = random(songfile.length);
    
};
function timer(sound_obj) {
    time = sound_obj.position/1000;
    min = Math.floor(time/60);
    min = (min<10) ? "0"+min : min;
    sec = Math.floor(time%60);
    sec = (sec<10) ? "0"+sec : sec;
    timeDisplay_txt.text = min+":"+sec;
}
MovieClip.prototype.songStarter = function(file, name, band) {
    if (this.sound_obj) {
        this.sound_obj.stop();
        delete this.sound_obj;
    }
    this.sound_obj = new Sound(this);
    this.sound_obj.loadSound(file, true);
    this.onEnterFrame = function() {
        if (this.sound_obj.position>0) {
            delete this.onEnterFrame;
            this._parent.display_txt.text = name+" / "+band;
            timeInterval = setInterval(timer, 1000, this.sound_obj);
        } else {
            this._parent.display_txt.text = "loading...";
        }
    };
    this.sound_obj.onSoundComplete = function() {
        clearInterval(timeInterval);
        this._parent.timeDisplay_txt.text = "00:00";
        (song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
        _root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
    };
    this._parent.volume1.dragger.onPress = function() {
        startDrag(this, true, 0, this._y, this._parent.volBG._width, this._y);
        this.onEnterFrame = function() {
            var p = (this._x/this._parent.volBG._width)*100;
            this._parent._parent.sound_mc.sound_obj.setVolume(p);
        };
    };
    this._parent.volume1.dragger.onRelease = function() {
        delete this.onEnterFrame;
        stopDrag();
    };
    this._parent.volume1.dragger.onReleaseOutside = function() {
        stopDrag();
    };
};
btn_play.onRelease = function() {
    clearInterval(timeInterval);
    this._parent.timeDisplay_txt.text = "00:00";
    this._parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
btn_stop.onRelease = function() {
    clearInterval(timeInterval);
    this._parent.timeDisplay_txt.text = "00:00";
    this._parent.sound_mc.sound_obj.stop();
};
btn_fw.onRelease = function() {
    clearInterval(timeInterval);
    this._parent.timeDisplay_txt.text = "00:00";
    (song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
    _root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
btn_rev.onRelease = function() {
    clearInterval(timeInterval);
    this._parent.timeDisplay_txt.text = "00:00";
    (song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
    _root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
playlist.load("playlist.xml"); 




Thanks for any solutions.

Disable Autostart
This is probably one of those things that is so simple and staring me in the face that I just don't see it however,

How do you disable the autostart on a flash clip? We are placing a flash clip on a website and want to have the flash clip default autostart setting set to disabled so that users who are not interested in the clip are not forced to listen to it against their will, while users who are interested can simply select the play button.

(Using Macromedia Flash Professional 8)

Thanks.





























Edited: 05/15/2007 at 07:36:49 AM by bytbb

Can't Turn Off Autostart
I'm using MX 2004 Pro.

I've created an .flv file from a QuickTime movie, audio only.

When I created the .fla and .swf, I UNCHECKED "Automatically Play" in the Media Playback Window of the Component Inspector - but the audio ALWAYS starts playing when the page loads, even though the controller says, "Paused."

I've tried all of these parameters in the code on the HTML page, to no avail:

<param name="play" value="false" />
<param name="autoplay" value="false" />
<param name="autostart" value="false" />


What's going on here, and how do I fix it?

Thanks,

How Do I Edit This To Not Autostart?
Code:

/***********************************************************************************
***********************************basic setup**************************************
***********************************************************************************/


//setup sound object
var s:Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(75);

//array of songs
var sa:Array = new Array();

//currently playing song
var cps:Number = -1;

//position of music at pausing
var pos:Number;

//position of the volume loadBar
var nlp:Number = 75;
volume.loadBar.gotoAndStop(nlp);

//pausePlay state
var songPlaying:Boolean = false;


//load the songs xml
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
   var nodes:Array = this.firstChild.childNodes;
   for(var i=0;i<nodes.length;i++) {
      sa.push(new Song(nodes[i].attributes.url,nodes[i].attributes.track,nodes[i].attributes.artist,nodes[i].attributes.link)); //keep an eye on this bit here
   }
   playSong();
   songPlaying = true;
}

xml.load("xml/songs.xml");



//play the mp3 file
function playSong():Void {
   s = new Sound(sHolder); //wipes out the current sound object and creates a new one   
   s.onSoundComplete = playSong; //this function is recursive, but needs to be adapted to implement shuffle mode
   s.setVolume(75);
   //mute.gotoAndStop("on");
   
   
   if(cps == sa.length-1) { //if the song array is at the end, set it back to the beginning
      cps = 0;             //this section will be the best to adapt for shuffle mode
      s.loadSound(sa[cps].url, true);
   }
   else {
      s.loadSound(sa[++cps].url, true);
   }

   trackInfo.text = sa[cps].artist + sa[cps].track;
   playPause.gotoAndStop("pause");
   textPos = 0;
   //numSongs.cpSong.text = cps+1;
   //numSongs.saLength.text = sa.length;
}


/***********************************************************************************
****************************transport controls**************************************
***********************************************************************************/

//button functionality*******************************************

playPause.onRollOver = function():Void
{
   if(this._currentframe == 1)
   {
      this.gotoAndPlay("pauseOver");
   }
   else if(this._currentframe == 10)
   {
      this.gotoAndPlay("playOver");
   }
}

playPause.onRollOut = function():Void
{
   if(this._currentframe != 1 && this._currentframe < 10)
   {
      this.gotoAndStop("pause");
   }
   else if(this._currentframe >= 11)
   {
      this.gotoAndStop("play");
   }
}

playPause.onRelease = function()
{
   if(songPlaying == true)
   {
      this.gotoAndStop("play");
      this._parent.pauseIt();
      songPlaying = false;
   }
   else
   {
      this.gotoAndStop("pause");
      this._parent.unPauseIt();
      songPlaying = true;
   }
}


nextSong.onRollOver = over;
nextSong.onRollOut = out;
nextSong.onRelease = function() {
   this._parent.playSong();
   songPlaying = true;
   playPause.gotoAndStop("pause");
}


prevSong.onRollOver = over;
prevSong.onRollOut = out;
prevSong.onRelease = function() { //this is the function that takes the songlist from the 1st song to the last
   if(cps == 0) {
      cps = sa.length - 2;
   } else {
      cps -= 2;
   }
   this._parent.playSong();
   songPlaying = true;
   playPause.gotoAndStop("pause");
}

// Mute Button
mute.onRollOver = function()
{
   if(this._currentframe == 1) this.gotoAndStop("onOver");
   else this.gotoAndStop("offOver");
}

mute.onRollOut = mute.onReleaseOutside = function()
{
   if(this._currentframe == 10) this.gotoAndStop("on");
   else this.gotoAndStop("off");
}

mute.onRelease = function()
{
   if(this._currentframe == 10)
   {
      this.gotoAndStop("offOver");
      s.setVolume(0);
   }
   else
   {
      this.gotoAndStop("onOver");
      s.setVolume(75);
   }
}



//button functions*************************************************

function over():Void
{
   this.gotoAndPlay("over");
}
function out():Void
{
   this.gotoAndPlay("out");
}


function pauseIt():Void
{
   pos = s.position;
   s.stop();
   songPlaying = false;
}

function unPauseIt():Void
{
   s.start(pos/1000);
   songPlaying = true;
}



/***********************************************************************************
*********************volume slider**************************************************
***********************************************************************************/

volume.scrub.left = 0;
volume.scrub.right = 100;
volume.scrub.top = volume.scrub._y;
volume.scrub.bottom = volume.scrub._y;

volume.scrub.onRollOver = function() {
   this.gotoAndPlay("rollOver");
}
volume.scrub.onRollOut = function() {
   this.gotoAndPlay("rollOut");
}

volume.scrub.onPress = volume.scrub.onReleaseOutside = function() {
   this.startDrag(false, volume.scrub.left, volume.scrub.top, volume.scrub.right, volume.scrub.bottom);
   this.isDragging = true;
}
volume.scrub.onMouseMove = function() {
   if (this.isDragging) {
      s.setVolume(this._x);
      currentVolume = this._x;
      nlp = this._x;
      volume.loadBar.gotoAndStop(nlp);
   }
}
volume.scrub.onRelease = volume.scrub.onReleaseOutside = function() {
   this.stopDrag();
   this.isDragging = false;
   s.setVolume(this._x);
   nlp = this._x;
   volume.loadBar.gotoAndStop(nlp);
   currentVolume = this._x;
}



/***********************************************************************************
*********************track info**************************************************
***********************************************************************************/

var size:Number = 45; //how many character slots are displayed
var textPos:Number = 0;
var intervalId:Number = setInterval(scroller,1000);

function scroller():Void
{
   var t:String = (sa[cps].artist + " - " + sa[cps].track);
   if(textPos + size < t.length)
   {
      textPos++;
      trackInfo.text = (sa[cps].artist + " - " + sa[cps].track).substring(textPos, textPos+size);
   }else
   {
      clearInterval(intervalId);
      intervalId = setInterval(scroller2,1000);
   }
}

function scroller2():Void
{
   var t:String = (sa[cps].artist + " - " + sa[cps].track);
   if(textPos > 0)
   {
      textPos--;
      trackInfo.text = (sa[cps].artist + " - " + sa[cps].track).substring(textPos, size);
   }
   else
   {
      clearInterval(intervalID);
      intervalID = setInterval(scroller, 1000);
   }
}
   
   
   
   
   
infoButton.onRollOver = over;
infoButton.onRollOut = out;

infoButton.onRelease = function():Void
{
   this.gotoAndStop("up");
   getURL(sa[cps].link,"_blank");
}

Looking For The Code To Create A Mac AutoStart?
I have a hqx file that I am trying to create a AutoStart program for. I know how to create the AutoRun for PC, just a little hung up on the Mac version any help would be greatly appreciated. Thanks

Autostart Issue-flv Player
I got this FLV player(click to download the source) and i ain't no genius in flash that's why I'll post this here if you please.

My problem is that the autostart won't work and i have no idea how to solve this problem.

I remember i tried, months ago, to put the code autostart=1 or true on the html code but that wasn't helpful at all so i guess there is something to do with the AS script to make this work

I know that the xml playlist is correct and there is nothing to change about it


Well,I hope ill get some help.

Pce folks

Help Needed In Clearing The Content Of The XML File Content Displayed In The Flash
I have developed a flash file with combo box which displayes all the XML files in the directory and after selecting a particular XML file the flash file reads the XML file and displayes the content of the XML file in flash in a fashion I have done. But, if I chose another XML file which is a blank XML file, still the flash file shows the previous file's content in the flash. How to clear that previous file's content?

If I chose someother XML file which is having some content then it shows correctly. But, if I chose some blank XML file, the flash file shows the previous content instead of showing it blank. pls help me how to clear the previous file contents?

Why Does Flash Re-load Content When Content Within Hidden/shown Area?
Hi all,

A purely academic question for someone about how Flash loads. I've written a simple Flash image scroller script, see: http://www.benjaminkeen.com/software/image_scroller/

On the page above, I separated the various content (installation instructions, demo, download file, etc) into separate pages, which get hidden/shown via JavaScript. Very straightforward.

My question is: why, when you go from the "Overview" to "A few examples" sections (both of which have a demonstration scroller), does the flash get "re-drawn" each time? I don't understand - I thought that it would simply get loaded the first time the browser calls it - not every time the content becomes display:blocked through javascript...?

I guess my follow up question is: can this be prevented?

Script To Make Projector Autostart On Mac?
I was wondering if there was a script that would make a projector auto start from a mac platform. As in, the user inserts the CD into their computer, and the flash movie automatically launches and plays. (not in a browser window, just through the projector)

I've had no trouble finding the script for a PC, just haven't had the same luck for the mac.

Thanks.
-nic-

[CS3] Media Player Component No Autostart
Okay,

I'm going insane here - I have checked the option on the component (on the stage) to not autostart - yet it autostarts the download anyways (it is set to false in the HTML as well). Driving me crazy here. Anyways, what I want is like an embedded You Tube movie, it places an icon over the start image and once the user clicks it then it starts the stream.

If I need to use Actionscript please inform me of where to place it (on the button, on the frame, etc), also of what form of AS to use. Thanks for the help.

--
Greg

Query - Audio Track Autostart
Hi there,
A quick question, I am using an audio track for a website.
A movie clip sits on the main timeline and is linked a .wav file.
The movie clip contains a button in frame 1 that uses the following code to start the audio playing:
on (release) {
s.start(0,100);
gotoAndPlay (1);
}

Frame 1 actions has the following code:
s = new Sound(this);
s.attachSound("mySound");
s.setVolume(100);

It works perfectly, but takes a user clicking the button to start the track.
I want it to auststart. Using an OnClipEvent to start the audio makes a huge mess! Any ideas?

Slideshow Autostart, Button And Music
I am about as new to Flash MX 2004 as you can get and need some help. I don't know much about code. Here is what I am trying to do: I created a slideshow using the template provided with Flash MX 2004 Profesisonal and placing it inside a web page. I would like to:

1. Have the slideshow start automatically
2. Have music play automatically
3. Eliminate the big start button that comes with the slideshow

Can someone help me? As Sargent Shultz said, "I know nothing, nothing!"

Thanks,

Big Mike

Query - Audio Track Autostart
Hi there,
A quick question, I am using an audio track for a website.
A movie clip sits on the main timeline and is linked a .wav file.
The movie clip contains a button in frame 1 that uses the following code to start the audio playing:
on (release) {
s.start(0,100);
gotoAndPlay (1);
}

Frame 1 actions has the following code:
s = new Sound(this);
s.attachSound("mySound");
s.setVolume(100);

It works perfectly, but takes a user clicking the button to start the track.
I want it to auststart. Using an OnClipEvent to start the audio makes a huge mess! Any ideas?

Music Loop Autostart Problem
Hi.
I created a player in Flash MX that loops an external MP3. However, this looping only starts playing automatically in Flash Mx test environment. When I put the SWF in the browser the music loop does not start automatically; I have to press my play button to get it started. Here's the actions frame.

myMusic = new Sound();
myMusic.loadSound("sample.mp3");
myMusic.start(0, 0);
myMusic.onSoundComplete = function() {
myMusic.start(.1, 0);
};

Any help is much appreciated.
Ivan



Scrolling Image Autostart? Code Included...Please Help
I am trying to make an image scroll from top to bottom. As ur mouse goes over it, you can scroll it back up or down. It stops at the top and bottom. But I can't get it to have a default scrolling speed and direction for when there is no mouse on it. Here is the code I have on the movie clip! Thanks!

onClipEvent (load)
{
ycenter=150;
speed=1/30;
}
onClipEvent (enterFrame)
{
var distance=_root._ymouse-ycenter;
_y+=(distance*speed);
if (_y > 800) _y=800;
if (_y < -535) _y=-535;
}



The if statements stop it at the top and bottom. I still need those to work after we get it to start scrolling. I need it to act as if the mouse is already at the top of the .swf file. Thank you!

-L

[CS3] How To Delay Html Content Until After Flash Content
I am working on a site where I want to have a few flash elements on the page ( i.e the navigation and the logo. ) to animate in before the the a block of text ( in a div) will be shown. The flash elements will stay on screen and be used after loading as the nav with interaction.

I don't want it to be a true flash intro before the site ( I already have one actually). I would rather it be a sequence that becomes visible as the page loads.

As I am typing I am wondering if this needs to be done in javascript or if it can be done via the embed parameters.

Any suggestions would be greatly appreciated

External Content Loader With Multiple Content Types (trouble Loading Graphics)
Hey all!

I am yet another new project. Our flash designer here isn't a big AS guy, and asked me to write a reusable class so that he can load a variety of content types using minimal amount of code on his part. It's also going to be the main component piece in a larger external content player once I'm done with the class itself, so I am making the loading functions into public methods of the loader object than can be called from a button, etc.

I have the code for the text and html parts working (although I can't get stage.width and stage.height to work in the class or from the frame).

The problem I have is that I can't get the graphics content to load (the swf/pic content). Could you please check my code and tell me what I'm missing? I'm sure it's something simple, like it always is.

thanks a million!

-Fish


-----------------------------


ActionScript Code:
package
{
   
    /**
    * External Multimedia Loader Class
    * @author $(DefaultUser)
    * Add new MultiLoader object and insert media type (all lowercase) and object path to control initial loaded object
    * To load a new object, call the MultiLoader.load* methods (loadText, loadPic, loadSwf, or loadHtml as appropriate), passing the path to the external file.
    */
   
    import flash.display.*;
    import flash.events.*;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.text.TextField;
   
    public class MultiLoader extends MovieClip
    {
        private var media:String;
        private var path:String;
        public var textObj:TextField = new TextField;
        public var picObj:MovieClip = new MovieClip;
        public var swfObj:MovieClip = new MovieClip;
        public var htmlObj:TextField = new TextField;
        private var objLoader:Loader = new Loader();
        private var objType:String;
        private var textLoader:URLLoader = new URLLoader();
       
       
       
        public function MultiLoader(mediaType:String,objPath:String)
        {
            media = mediaType;
            path = objPath;
           
            if (media == "text" || media == "TEXT" || media == "Text")
            {
                loadText(objPath);
            }
            else if (media == "pic" || media == "PIC" || media == "Pic")
            {
                loadPic(objPath);
            }
            else if (media == "swf" || media == "SWF" || media == "Swf")
            {
                loadSwf(objPath);
            }
            else if (media == "html" || media == "HTML" || media == "Html")
            {
                loadHtml(objPath);
            }
            else
            {
                trace("ERROR: Media type not supported. Media type must be 'text', 'pic', 'swf', or 'html'.");
            }
        }
       
        public function loadText(txtPath):void
        {
            objType = "text";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(textObj);
            this.textLoader.load(new URLRequest(txtPath));
            this.textObj.wordWrap = true;
            this.textObj.multiline = true;
            this.textLoader.addEventListener(Event.COMPLETE, addTextContent);
            //this.textObj.width = this.width;
            //this.textObj.height = this.height;
        }
       
        public function loadPic(picPath):void
        {
            trace("loadPic started");
           
            objType = "pic";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(picObj);
            this.objLoader.addEventListener(Event.COMPLETE, addObjLoader);
            this.objLoader.load(new URLRequest(picPath));
           
            trace("loadPic completed");
        }
       
        public function loadSwf(swfPath):void
        {
            trace("loadSwf started");
            objType = "swf";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(swfObj);
            this.objLoader.addEventListener(Event.COMPLETE, addObjLoader);
            this.objLoader.load(new URLRequest(swfPath));
           
            trace("loadSwf completed");
        }
       
        public function loadHtml(htmlPath):void
        {
            objType = "html";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(htmlObj);
            this.textLoader.load(new URLRequest(htmlPath));
            this.htmlObj.wordWrap = true;
            this.htmlObj.multiline = true;
            this.textLoader.addEventListener(Event.COMPLETE, addTextContent);
        }
       
        private function removeAllChildren():void
        {
            if (objType == "pic")
            {
                this.picObj.removeChild(objLoader);
            }
            else if (objType== "swf")
            {
                this.swfObj.removeChild(objLoader);
            }
            else
            {
                trace("objType != 'pic' or 'swf.' objType = '" + objType + "'.");
            }
           
            while ( this.numChildren > 0 )
            {
                this.removeChildAt(0);
            }
        }
       
        private function addObjLoader(event:Event):void
        {
            trace("addObjLoader started");
           
            if (objType == "pic")
            {
                trace("trying to load pic");
                this.picObj.addChild(this.objLoader);
                this.picObj.objLoader.removeEventListener(Event.COMPLETE, addObjLoader);
            }
            else if (objType== "swf")
            {
                trace("trying to load swf");
                this.swfObj.addChild(this.objLoader);
                this.swfObj.objLoader.removeEventListener(Event.COMPLETE, addObjLoader);
            }
            else
            {
                trace("ERROR: Cannot add object loader. The 'objType' variable does not contain correct media type. The function 'addObjLoader' should only be called when objType is 'pic' or 'swf'. In this case, objType is '" + objType + "' .");
            }
           
            trace("addObjLoader completed");
        }
       
        private function addTextContent(event:Event):void
        {
            if (objType == "text")
            {
                this.textObj.text = event.target.data as String;
                this.textLoader.removeEventListener(Event.COMPLETE, addTextContent);
            }
            else if (objType == "html")
            {
                this.htmlObj.htmlText = event.target.data as String;
                this.textLoader.removeEventListener(Event.COMPLETE, addTextContent);
            }
            else
            {
                trace("ERROR: Cannot add text content. The 'objType' variable does not contain correct media type. The function 'addTextContent' should only be called when objType is 'text' or 'html'. In this case, objType is '" + objType + "' .");
            }
        }

    }
   
}

Scroll Pane Content - Accessing Values Within Content Mc
hey all -

i'm having a bit of a problem. i need to access the .text value of various text fields within a mc that is presented in a scroll pane. i need to check the value against another value, and i'm having trouble grabbing it.

here's what's not working:
//within a for loop where "i" is incrementing

myContent = scroll_pane.getScrollContent();
myText = eval(myContent + ".text" + i +"_txt");
trace (myText.text);

when I run this, myText ends up equal to: _level0.scroll_pane.tmp_mc.text10_txt

where i=10 in this case (all the others increment no problem)

however, if I trace (myText.text) I get nothing (not undefined, just nothing). however, if i forcibly trace(_level0.scroll_pane.tmp_mc.text10_txt.text), it will show me the .text of this text field.

any ideas as to what is happening here?

thanks

oh - flash mx on os x

Hiding/Masking Off-stage Content (external Content)
Hi,

I'm loading an image gallery into another movie. The image gallery itself uses XML to generate a row of thumbnails dynamically. In it's own player, this is fine, but when loaded into the larger movie, the row of thumbnails extends far beyond the container clip.

I've set the size of the container clip with an onLoad function, but I have no idea how to appropriately mask it so there is no spillover. Using a mask in the gallery clip doesn't work because the gallery is 100% scripted (unless I'm missing something terribly basic).

Is there a general method to use, aside from creating infinitely large opaque boundaries around the stage?

Thanks for any tips or insight!

AS3 Loader.content Access To Partially Loaded Content
I have a main swf that loads an external swf. The external swf is a fairly large video embeded on the timeline.

Ive got my Loader all setup correctly, handling PROGRESS, COMPLETE and INIT events all fine.

What id like to do (which i could do in AS2 very easily) is start the playing and accessing variables in the loaded swf before it finishes loading. If i do these things when the video swf is loaded completely, everything works fine.

Any attempt to access Loader.content or the container clip ive placed Loader.content in, BEFORE its finished loading (when it reachs, lets say, 20%), i get error:

#2099 The loading object is not sufficiently loaded to provide this information.

Anyone have any ideas on how it could be possible to start messing with loaded SWF content before all of its frames are loaded? Thanks in advance for lookin over my post!!

Content-Length Of Mp3 Not Receving Form Content Server
Hi,

we have develop one course using flash player 7 and action script 1.0 in macromedia flash. In this course we are facing one problem with mp3 file. we have used sound object to load external MP3 files. When these files are downloaded from content server we are not reciving content-length for this file in IE 6 + Flash player 8. If anybody knows the solution for this problem Please help me.

thsnks in advance..........

Not Reciving Content-length Of Mp3 File From Content Server
Hi,

we have develop one course using flash player 7 and action script 1.0 in macromedia flash. In this course we are facing one problem with mp3 file. we have used sound object to load external MP3 files. When these files are downloaded from content server we are not reciving content-length for this file in IE 6 + Flash player 8. If anybody knows the solution for this problem Please help me.

thsnks in advance..........

Dynamic Content Presented Over All Normal Content
I have a bunch of generated movie clips that I am creating using the duplicate movie clip function.

The problem I am having is the generated clips are covering up content. Are there any options....(I really don't feel like creating both layer a and b dynamically.)


this is how the movie is publishing:

-----layer A----- (generated content)
-----layer B----- (normal non-generated content)
-----layer C----- (normal non-generated content)


this is how i want the movie to publish:


-----layer A----- (normal non-generated content)
-----layer B----- (generated content)
-----layer C----- (normal non-generated content)


thanks for your help,
Reid

Error On Page: Level0.content.content
Hey guys, I hope this is the right place to post something like this.

I am definately a newbie at Flash, and I recently made a site for my gaming clan. ( http://www.aechq.com ) I have fixes all the bugs on the site, save for one that I can't find the problem that is making it occur. After the loadtext comes up for each individual page, an error will flash ( the same error that shows up when the page cannot be found ) and then the page will load normally. The error that flashes in the background is
Code:
level0.content.content
This is rather annoying, because if you aren't paying attention, you won't see it but once you do, you can't help but see it every time. Being the "noob" that I am, I don't have a clue how to fix this one...and I can't find what's wrong. If I could get some input, I'm sure it's just something small that I can't figure out.

Any help is appreciated, and off topic suggestions are fine too.

Button To Reveal Content Then To Hide Content
I'm using Flash MX and I have been able to create a button that moves an image down the page and slowly allows text to appear in its place. now i can't figure out how to get everything to go back when i hit the same button again.


thanks in advance.

Flash Banner , Flash Buttons And Html Content
Hi!


I am working on this web project that needs to be like this :

Flash banner on the top, flash buttons under the banner and html content(the rest)

I have finished the banner and the buttons but i don't know how to make the rest (html content).

If anybody knows which software i need to use and what actions should i put to the buttons, please help!!!

Diverting Users W/o Flash Plugin To Non-flash Content
i have a quick job where i am designing two simple animated flash elements for someone's page. their client would like it so that if the user does not have the flash plugin, they see two static images instead.

i know i can make the static image the background img for the cell that holds the flash content, but is there a way to tell the browser that if it's missing the flash plugin to not indicate anything is missing and just display the bg img? or a jpg instead...

there is mention of something in the flash help about "Flash Dispatcher"... i don't have a "Goodies" folder in my Flash MX directory, is this something that is on the installer CD that you install separately? my CD is buried somewhere (probably under a million wires and dead PCI cards), but if i can find it, is this something that can do what I need?

here's the text from the help file:

When publishing Flash content on the Web, you can configure a Web server to make it easier to play Flash movies, using a script-based detector to determine whether a user has the Flash Player plug-in or ActiveX control installed. Called the Macromedia Flash Dispatcher, this detector is included in the Macromedia Flash (SWF) Deployment Kit, in the Macromedia Flash MX/Goodies folder.

The Dispatcher is a combination of JavaScript, VBScript, and Flash movie that screens incoming traffic to your Web site. The Dispatcher detects whether the user's Web browser has the Flash Player installed, and if so, what version. You can configure the Dispatcher to load a document with Flash content, load alternate content, or oversee the updating or installation of the player.

Copyright © 2005-08 www.BigResource.com, All rights reserved