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




Xml Flv Autoplay Help Anybody



Hi i'm not much of a scripter but I was wondering how I can get the video to autoplay on start instead of waiting for the user to select the videohere is the script and everything works except I don't know how to code autoplay...Code: 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 objectthe_video.attachVideo(ns);// Set the buffer timens.setBufferTime(5);// Begin playing the FLV filens.play(currentFLV);// build sound objectthis.createEmptyMovieClip("snd", 0);snd.attachAudio(ns);audio = new Sound(snd);};playlist_lb.addEventListener("change", playlist_lbListener);



Actionscript 2.0
Posted on: Sat Aug 26, 2006 4:56 am


View Complete Forum Thread with Replies

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

Autoplay
Does anyone know how to do an autoplay program? I wish to put one in on my flash file so that when you put the CD into a computer it will play.

Autoplay
Does anyone know how to do an autoplay program? I wish to put one in on my flash file so that when you put the CD into a computer it will play.

Autoplay Help
i have this slideshow and got this AUTOPLAY button, but i dont know how to code to well so i dont know how to make it stop at a frame for a couple of secs before it goes to the next. someone help please and thanks

AUTOPLAY Swf Off CD
how is this done? i'm told i need an ini file for pc's..
pc or mac, how is this done and what's the easiest way of making it work?

thanks

AutoPlay Mp3
Hi,
I was wondering if anyone has used "setInterval" before or know a way of solving my problem?
I have a load track button...


song_mc.select_btn.onRelease = function(){

SetSong(this._parent.node);
}

What I want is for the play_btn to activate after an interval of half a second, without the user having to press it.
The play button is...

play_btn.onRelease = function(){
if (!isPlaying){
snd._sound.start(snd.position/1000);
snd.isPlaying = true;
}
}


I was thinking something like creating an interval...

autoPlay = setInterval(createDelay, 1000);
function createDelay() {
clearInterval(autoPlay);
delete autoPlay;
}

Can someone help please.
Thx
BRb

Flv Xml Autoplay Help
Hi i created a FLV player driven by an xml list and I can't figure out how to randomly autoplay a video on the list and add two buttons to skip foward and backwards through the list of videos here is my script.....any help would be much appreciated

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(url of xml goes here....);
playBut._visible = true;
playButt._visible = false;
pauseBut._visible = true;
pauseButt._visible = false;
stopBut._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 = true;
playButt._visible = true;
pauseBut._visible = true;
pauseButt._visible = false;
stopBut._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(1);
// Begin playing the FLV file
ns.play(currentFLV);
ns.stop(currentFLV);

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

};

playlist_lb.addEventListener("change", playlist_lbListener);

Flv Xml Autoplay Help
Hi I've been stuck trying to figure out how to autoplay my flv xml playlist for weeks any help would be much appreciated.....

and my model is based on the 1 I attached below

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);

AutoPlay
I have a swf that is loaded using loadMovie into main.swf. In that swf I want to have the onRelease function change the parameter on a video file to autoPlay = true.

here's what I have and it doesn't work.

sm_movie.onRelease = function() {
_root.mainmovie.flvPlayer.autoPlay = true;
_root.gotoAndStop("Dist_catalogs");
}

It goes to _root which is the main.swf then the frame label which has a loadMovie of the swf that contains the file with the flv that I want the script to change autoPlay to true.

Any help will be much appreciated. thanks.

Autoplay From Xml?
Ok guys I'm using Kirupa's MP3 Player and I was wondering if there's a way to autoplay the first song from and xml file? Here's my actionscript, see if you can figure it out:

Code:
XMLNode.prototype.moveBefore = function(beforeNode){
if (this == beforeNode) return (0);
beforeNode.parentNode.insertBefore( this.cloneNode(true), beforeNode);
this.removeNode();
}
Clamp = function(min, n, max){
if (n<min) return min;
if (n>max) return max;
return n;
}



var song_spacing = 20;
var over_node;
GenerateSongListing = function(playlist_xml, target_mc){

target_mc = target_mc.createEmptyMovieClip("list_mc",1);

var songs = playlist_xml.firstChild.childNodes;
for (var i=0; i<songs.length; i++){
var song_mc = target_mc.attachMovie("song", "song"+i, i);
song_mc._y = i*song_spacing;

song_mc.node = songs[i];
song_mc.title_txt.text = songs[i].attributes.title;
song_mc.moved = false;

song_mc.select_btn.onPress = function(){
this._parent.onMouseMove = function(){
if (!this.moved){
dragline_mc._visible = true;
dragline_mc._y = playlist_mc._y + this._y;
highlight_mc._visible = true;
highlight_mc._y = playlist_mc._y + this._y;
this.moved = true;
}
}
}

song_mc.select_btn.onDragOver = function(){
over_node = this._parent.node;
dragline_mc._y = playlist_mc._y + this._parent._y;
}

song_mc.onMouseUp = function(){
if (this.onMouseMove){
delete this.onMouseMove;
dragline_mc._visible = false;
highlight_mc._visible = false;
if (this.moved){
this.node.moveBefore(over_node);
GenerateSongListing(playlist_xml, playlist_mc);
}
}
}

song_mc.select_btn.onRelease = function(){
if (!this._parent.moved){
SetSong(this._parent.node);
}
}

}
}


var playlist_xml = new XML();
playlist_xml.ignoreWhite = true;
playlist_xml.onLoad = function(success){
if (success){
GenerateSongListing(this, playlist_mc);
}else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}
playlist_xml.load("mp3_playlist.xml");

dragline_mc._visible = false;
highlight_mc._visible = false;
show_mc._visible = false;


show_btn.onRelease = function(){
show_mc._visible = true;
var songs = playlist_xml.firstChild.childNodes;
show_mc.display_txt.text = playlist_xml;
show_mc.display_txt.text = show_mc.display_txt.text.split(">").join(">

");
}

Autoplay?
http://www.kirupa.com/web/xml/examples/MP3playlist.htm

hey, I'm trying to figure out how to get this to auto play... Does any one have any ideas or advice I should try?

thanks!

Autoplay?
hello,

I'm trying to get an xml playlist to auto play on load. I used this tutorial: http://www.kirupa.com/web/xml/examples/MP3playlist.htm

I can show you the script if you need to see it. Maybe some one can point me in the right direction, or give me some advice for this... you can actually download the example files from that tutorial . I'm thinking its something in the sound layer.

any help would be great!

thanks

Autoplay?
Hi, is there a way to say

on window.ready = function() {}

or something to the same effect, in actionscript.

What I need to do is make the first video from my playlist automatically play once the swf is loaded.

the actual videos are progressive download flvs so I dont need to wait for those to download before the function is called.

Thanks
James

Somebody Help Me With My Autoplay Please
Im using the photoslide template that comes with flash mx 2004, it works good but I need my slideshow to start with the autoplay function automatically, instead of clicking tha button , i mean like changing the buttons pause/autoplay so it appears with pause button not with autoplay, im a little bit new in actionscript so the easiest way the best for me,

thanxs in advance

Help With Autoplay
hi!
how I can get the video to autoplay on start instead of waiting for the user to select the video?
I don't know how to code autoplay or auto change movies
help me with autoplay and with auto change movies,
take a code

Code:

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var ending = false;
ns.setBufferTime(3);
tool._visible = false;
ns.onStatus = function(info) {
   if (info.code == "NetStream.Buffer.Full") {
      bufferClip._visible = false;
      ending = false;
   }
   if (info.code == "NetStream.Buffer.Empty") {
      if (!ending) {
         bufferClip._visible = true;
      }
   }
   if (info.code == "NetStream.Play.Stop") {
      //bufferClip._visible = false;   
      ns.close();
      theVideo.clear();
      //tool._visible = true;
      //ns.seek(0)
      //ending = false;
   }
   if (info.code == "NetStream.Play.start") {
      bufferClip._visible = true;
      ending = false;
   }
   if (info.code == "NetStream.Buffer.Flush") {
      ending = true;
   }
};
theVideo.attachVideo(ns);
pause_btn._visible = false;
pause_btn.onRelease = function() {
   pauseIt();
};
playbig_btn.onRelease = playButton.onRelease=function () {
   if (!started) {
      restartIt();
      ns.play(playflv);
      started = true;
   } else {
      pauseIt();
   }
};
this.createEmptyMovieClip("vFrame", this.getNextHighestDepth());
vFrame.onEnterFrame = videoStatus;
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function (obj) {
   duration = obj.duration;
   ns.duration = obj.duration;
   ns.duration = convertTime(duration);
};
function videoStatus() {
   amountLoaded = ns.bytesLoaded/ns.bytesTotal;
   loader.loadbar._width = amountLoaded*211;
   loader.scrub._x = ns.time/duration*211;
   newscale = Math.round(100*_root.theVideo.bytesLoaded/_root.theVideo.bytesTotal);
   _root.loader.loadbar._xscale = newscale;
   timer.display = convertTime(ns.time)+" / "+convertTime(duration);
}
loader.scrub.onPress = function() {
   vFrame.onEnterFrame = scrubit;
   this.startDrag(false, 0, this._y, 211, this._y);
};
loader.scrub.onRelease = loader.scrub.onReleaseOutside=function () {
   vFrame.onEnterFrame = videoStatus;
   this.stopDrag();
};
function scrubit() {
   ns.seek(Math.floor((loader.scrub._x/211)*duration));
   timer.display = convertTime(ns.time)+" / "+convertTime(duration);
}
createEmptyMovieClip("sound", 1);
sound.attachAudio(ns);
sc = new Sound(sound);
sc.setVolume(0);
volumeSliderWidth = slider.volumeBG._width;
slider.sliderBar._x = slider.volumeBG._width/1;
slider.onEnterFrame = function() {
   slider.volumeBG._width = this.sliderBar._x;
   sc.setVolume(this.sliderBar._x);
};
slider.sliderBar.onPress = function() {
   startDrag(this, false, 0, 0, volumeSliderWidth, 0);
};
slider.sliderBar.onRelease = slider.sliderBar.onReleaseOutside=function () {
   stopDrag();
};
function restartIt(playflv) {
   ns.play(playflv);
   playButton._visible = false;
   playbig_btn._visible = false;
   pause_btn._visible = true;
   if (ns.time == 17) {
      ns.pause();
   }
}
function pauseIt() {
   ns.pause();
   if (isPaused) {
      pause_btn._visible = true;
      playButton._visible = false;
      isPaused = false;
   } else {
      isPaused = true;
      playButton._visible = true;
      pause_btn._visible = false;
   }
}
if (timer != undefined) {
   timer.display = "00:00 / 00:00";
}
function convertTime(time) {
   if (!time) {
      time = 0;
   }
   var _loc2 = Math.floor(time/60);
   var _loc4 = Math.floor(time/60/60);
   var _loc1 = Math.floor(time%60);
   if (_loc1<10) {
      _loc1 = "0"+_loc1;
   }
   if (_loc4<10) {
      _loc4 = "0"+_loc4;
   }
   if (_loc2<10) {
      _loc2 = "0"+_loc2;
   }
   return (_loc2+":"+_loc1);
}
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(ok) {
   if (ok) {
      //process data
      var len = this.childNodes[0].childNodes.length;
      for (i=0; i<len; i++) {
         newPiece = side.thumbs.attachMovie('template', 'piece'+i, i);
         newPiece._x = i*newPiece._width;
         newPiece.heading_txt.text = this.childNodes[0].childNodes[i].attributes.heading;
         newPiece.load_btn.flvName = this.childNodes[0].childNodes[i].attributes.video;
         newPiece.holder_mc.loadMovie(this.childNodes[0].childNodes[i].attributes.img);
         newPiece.load_btn.onRelease = function() {
            restartIt(this.flvName);
         };
      }
      ns.play(side.thumbs[i].data);
   } else {
      side.er._x = 230.4;
      side.er._y = 32.4;
      side.er._visible = true;
      side.er.Error.text = "Cant load xml file";
   }
};
myXML.load('video.xml');

Autoplay
Hi everybody!

I'm preparing a project for my exam and one of the requests of the teachers was to make it "autoplay".
So when I burn it on a CD, and put it into my computer, my first .swf has to autoplay like an installation cd would.
Does someone have an idea how to achieve that?

Thx in advance!

Autoplay
Hello
I desperately need help, i have uploaded 4 .swf flash files to my webserver to be displayed on the homepage, 3 of them work fine, however the top main one does not, it like kind of loads the first image then stops, if i right click the image and choose play then the animation continues to play however i need it to automatically play as soon as the website is loaded.
I have tried to right click the flash file in my web page design program, and edit the properties of it to "autoplay, loop" etc. it still does not work

Please if anyone has any advice it would be much appreciated

Autoplay Button
Does anyone know of a way to have an if then conditional statement that allows you to on press of a "play" button to have a flash movie play through igonoring all lablel and actions untill another button is pressed?

Bacisly I'm trying to figure out how to make an autoplay button for a flash animation(tutorial) that can be deactived once you press another btton like a next button that allows you to then step through the animation untill you deside to press the autoplay button again.

Thanks in adavnce for an help anyone can offer. :P

Do All .swf's Autoplay When Opened?
im using flash4 and i made a presentation and i dont want it to play as soon as it is opened. i'd much rather have the customer press "play" when they are ready.

any way of doing this?

Autoplay .swf File
Hello.
I only have a .swf File. When I double-click it, it doesn´t start to play till I right-click on it and set "Play". How let I start it automatically??

Thanks a lot!

Please Help.. Autoplay Loop :(
Dear all,

Below is my code for my family picture viewer using external JPEGS

Now I want to add a button for AUTOPLAY... that is, when this button is clicked, the movie keeps loading next jpeg automatically .
and a companion stop button..


can someone help me with it ?


Thanks
------------------------------------------------------------------
fscommand("fullscreen", "true");
fscommand("showmenu", "false");
fscommand("allowscale", "true");
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("sds.xml");
slides_xml.ignoreWhite = true;
targetClip._alpha = 0;
//
// Show the first slide and intialize variables
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
updateSlide(firstSlideNode);
}
}
//
// Updates the current slide with new image and text
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
// added this to create a temp mc that can be removed
// _root.createEmptyMovieClip("temp_mc", -500);
// added this to get the alpha fading to work properly
// _root.temp_mc.onEnterFrame = function()
onEnterFrame = function () {
if (targetClip._alpha>10 && fadeOut) {
targetClip._alpha -= 10;
}
if (targetClip._alpha<10) {
targetClip.square_clip.loadMovie(imagePath);
targetClip2.square_clip.loadMovie(imagePath);
fadeOut = false;
fadeIn = true;
}
if (targetClip._alpha<100 && fadeIn && !fadeOut) {
targetClip._alpha += 10;
}
else {fadeIn = false;}
if (input>30)
{
input = 30;
}
slideText = newSlideNode.firstChild.nodeValue;
styleId = newSlideNode.attributes.ID;};
}
//
//
// Event handler for 'Next slide' button
next_btn.onRelease = function() {
nextSlideNode = currentSlideNode.nextSibling;
if (nextSlideNode == null) {
break;
} else {
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
if (currentIndex<30 && !fadeIn && !fadeOut) {
fadeOut = true;
currentIndex++;
input = currentIndex;
}
}
};
//
// Event handler for 'Previous slide' button
back_btn.onRelease = function() {
previousSlideNode = currentSlideNode.previousSibling;
if (previousSlideNode == null) {
break;
} else {
currentSlideNode = previousSlideNode;
updateSlide(previousSlideNode);
if (currentIndex>1 && !fadeIn && !fadeOut) {
fadeOut = true;
currentIndex--;
input = currentIndex;
}
}
};

Flashtrak Autoplay
Is there anyway to autoplay the flashtrak console when it's finished loading the data.swf? I've gone through all the actionscript and can't seem to find where to do this. Thanks

Justin

Autoplay A Component?
could anyone help me with the code to autoplay a swf

http://www.chrisberkner.com/

The 'play cd' link I can't seem to get autoplay to work

Autoplay .swf Files?
I'm trying to make an autoplay file to open my .swf but it doesn't seem to work. Is it even possible to open an .swf? Also is it possible to autoplay a file in a folder?

[F8] CD Autoplay And SharedObject
I have a game that is a series of swfs. I have the sharedObject in the main.swf that keeps track of the user's high score. I want to put this project on a CD and have the main.swf autoplay when the CD is put in, so it would need to be a .exe right? Will a multi swf project be ok on CD btw? Which when i launch the main.exe file the project stills runs fine, but I notice that the sharedObject doesn't work, but works fine when i launch the main.swf. What's going on?? How can I fix this?? I really need the autoplay feature to work so the user doesn't have to hunt for which one to launch off the CD, yet I still really would like to be able to keep track of the user's high score. Does anyone know a work around for this?? Thanks for any guidance you can give.

[F8] Autoplay After A Few Seconds
Hey,

I would like to have my movie automatically perform this function:


Code:
navi.vor.onRelease = function() {
nextFrame();
nostop = 1;
video_mc.onEnterFrame = function() {
if (nostop == 0) {
delete this.onEnterFrame;
} else {
this.nextFrame();
}
};
};


As I am using a button for play/pause, this should work like this:

If I press on play, a variable
Code:
(autoplay = 1;)
gets set. This should make the movie perform the function, after a wait time of a few seconds.

Any help is greatly appreciated...

.swf Slideshow Autoplay?
I have made a website for my employer, as I am apparently the only computer literate employee

Anyway, the site is www.thegoopguys.com

As you can see, the .swf file loads perfectly, and will autoplay if you hit the autoplay button on the control panel.

My question to you is: HOW on earth do I get that slideshow to just START autoplaying when the page itself loads up?

Can't Get The AutoPlay To Work?
Here is my code, I can't seem to get the autoPlay to commit to false. I don't want it to start playing when it is loaded. Any Help?


package {

import flash.display.MovieClip;// movieClip with timeline
import flash.events.*;// events triggered by interface controls
import fl.controls.Button
import fl.video.*;// methods and properties for working with FLV playback
import flash.text.TextField;// timecode field text



public class movie extends MovieClip {

// creating variables for timeCode

private var currentTime:uint;
private var allTime:uint;




//the constructor function
public function movie() {

vidPlayback.autoPlay = false;
vidPlayback.playButton = playPlayback;
vidPlayback.pauseButton = pausePlayback;
vidPlayback.backButton = backPlayback;
vidPlayback.muteButton = mutePlayback;
vidPlayback.seekBar = seekPlayback;
vidPlayback.bufferingBar = bufferPlayback;
vidPlayback.volumeBar = volumePlayback;
vidPlayback.fullScreenButton = fullScreenPlayback;
vidPlayback.fullScreenTakeOver = false;
vidPlayback.source = "moreCar.flv";

vidPlayback.autoRewind = true;



//continuously listns to the current time

// Add listener that will listen for playhead updates convert from milliseconds to mm:ss
vidPlayback.addEventListener (VideoEvent.PLAYHEAD_UPDATE, setTimeCode)

}

NetStream Autoplay
is it so much to ask for NetStream.autoplay to be false?

I am loading a using the NetStream class but dont want the video to run when the page fires up mroe when you press play ?

I thought it would be something like NetStream.autoPlay = false but i get

1119: Access of possibly undefined property autoPlay through a reference with static type flash.net:NetStream.

Is there a simple way to do this other than set functions etc and pause without needing to?

AutoPlay Parameter
Hi,

I've encoded a wmv file to a flv file using Flash 8. There is a parameter for autoPlay that can be set to true or false. My question is, can this be set after the fact in the html code generated. For example, this is the code generated:

<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="

Autoplay Banner
I am a NOOB...I am having problems getting my banner to play once I press ctrl+ enter to preview my movie without having to press enter to start. and then have it stop on the last keyframe of my movie. Any suggestions? Are there any good tutorials that would give me good ground work moving forward on creating animations and AS? Thanks All...

How To Turn Off Autoplay
Hi guys

I am trying to turn off auto play, but everything that I'm trying is not working.

So far I have included a stop(); action in the flash it's self, and added the autoplay = false lines.

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="

Disable Autoplay
I inherited a web site that has flash (swf) videos. As soon as the pages open the videos start to play. Some pages have multiple videos (very obnoxious when they all auto play). I need to know how to turn the autopaly off. Thanks for any help you can give me.

Here is the script that is on the page:







Attach Code

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','400','height','267','src','promo_reel','loop','false','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#fffdf8','movie','promo_reel' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="400" height="267">
<param name="movie" value="promo_reel.swf" />
<param name="quality" value="high" /><param name="BGCOLOR" value="#fffdf8" /><param name="LOOP" value="false" />
<embed src="promo_reel.swf" width="400" height="267" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#fffdf8"></embed>
</object>

Autoplay On Load
Hi,
I have the kirupa xml mp3 player working but i need the first track to autoplay when the swf loads.
Any advice?
cheers.

CB

Autoplay Flash .exe
Hi,


I published a flash .exe and wrote it to a CD and made an autorun.ini with the lines:

[AUTORUN]

open=filename.exe
When I insert the CD it doesn’t run, I get a window's window that says open files, play (plays the background music of the .exe) or no action. I have to open the files go in and run the exe by clicking it


Anyone have any ideas how to fix this?



Thanks

Autoplay In XML Slideshow
Can anyone tell me how to get this gallery to autoplay instead of the use of previous and next buttons? any and all help is appreciated, Thanks

the link to the tutorial:

The XML tutorial

Autoplay In Xml Gallery
I'd like to add an autoplay function to my xml gallery.
Here's the Code...

Code:
spacing = 10;
containerMC._alpha = 0;
var pArray = new Array();
var tArray = new Array();
var descArray = new Array();
var cur;
MovieClip.prototype.loadPic = function(pic) {
clearInterval(id);
containerMC._alpha = 0;
this.loadMovie(pArray[pic]);
cur = pic;
this._parent.onEnterFrame = function() {
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
bar._visible = 1;
per = Math.round((l/t)*100);
if (l == t && containerMC._width>0 && containerMC._height>0) {
var w = containerMC._width+spacing, h = containerMC._height+spacing;
border.resizeMe(w, h);
bar._visible = 0;
picinfo.info.text = tArray[pic];
picinfo.desc.text = descArray[pic];
delete this.onEnterFrame;
} else {
bar._width = per;
//gives the bar a max width 100
picinfo.info.text = per+" % loaded";
picinfo.desc.text = per+" % loaded";
}
};
};
MovieClip.prototype.resizeMe = function(w, h, pic) {
trace(w);
var speed = 3;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;


if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
this._width = w;
this._height = h;
containerMC._x = this._x-this._width/2+spacing/2;
containerMC._y = this._y-this._height/2+spacing/2;
containerMC._alpha = 100;
delete this.onEnterFrame;
}
};
};
function galleryChoice(a) {
cur = 0;
pArray = new Array();
tArray = new Array();
descArray = new Array();
var gallery_xml = new XML();
gallery_xml.ignoreWhite = true;
gallery_xml.onLoad = function(success) {
if (success) {
var gallery = this.firstChild.childNodes[a];
for (var i = 0; i<gallery.childNodes.length; i++) {
tArray.push(gallery.childNodes[i].attributes.title);
pArray.push(gallery.childNodes[i].attributes.source);
descArray.push(gallery.childNodes[i].attributes.desc);
}
id = setInterval(containerMC, "loadPic", 100, 0);
} else {
title_txt.text = "Error!";
}
};
gallery_xml.load("quotes.xml");
}
prevb.onRelease = function() {
cur--;
if (cur<0) {
containerMC.loadPic(pArray.length-1);
} else {
containerMC.loadPic(cur);
}
};
nextb.onRelease = function() {
cur++;
if (cur>pArray.length-1) {
containerMC.loadPic(0);
} else {
containerMC.loadPic(cur);
}
};
galleryChoice(0);
for (var i = 0; i<8; ++i) {
var btn = this["but"+i];
btn.id = i;
btn.onRelease = function() {
galleryChoice(this.id);
};
}
stop();
Could someone help with the code for this? thanks

CD Autoplay Flash
My church band is making a CD and I volunteered to try and do some sort of flash content for the CD... what is the best format to export to for that? any ideas?

Autoplay Flash
How can I make a flash lets same named main.swf autoplay in a disc when I interset it and how can I make the flashs' icon to be the disc icon?

URGENT Somebody Help Me With My Autoplay Please
Im using the photoslide template that comes with flash mx 2004, it works good but I need my slideshow to start with the autoplay function automatically, instead of clicking tha button , i mean like changing the buttons pause/autoplay so it appears with pause button not with autoplay, im a little bit new in actionscript so the easiest way the best for me,

thanxs in advance

Flash 4 Autoplay Button
Does anyone know of a way to have an if then conditional statement that allows you to on press of a "play" button to have a flash movie play through igonoring all lablel and actions untill another button is pressed?

Bacisly I'm trying to figure out how to make an autoplay button for a flash animation(tutorial) that can be deactived once you press another btton like a next button that allows you to then step through the animation untill you deside to press the autoplay button again.

Thanks in adavnce for an help anyone can offer. :P

How Do I Make Flashtrack Autoplay?
I have flashtrack player in my file...but the end user has to click the play button to play the music....how do I change this so that it's set to play instead of stop after it loads. Thanks!

Button Autoplay Sound
how do i make my button play music automaticly right after my site loads. how do i do that?

Script For Autoplay Button?
I'm being lazy - I need to do a presentation in Flash that has both a manual mode (with buttons for next previous, etc - no problem there), as well as a self-running AutoPlay mode - and am having trouble coming up with the proper approach for accomplishing the AutoPlay element. My thinking is that basically there should be a button that is either on or off, and scripting that checks that state to determine whether to advance automatically (Auto), or wait for the user to make a choice (Manual). Any suggestions on the most efficient way of achieving this? Thank you in advance.

Autoplay Embedded Swf Movie?
Hi all,

I created a piece of moving 3d text in swift 3d and exported it to the swf format. I then successfully imported the swf file into a flash MX movie I am working on that also contains a soundtrack. When I preview the movie in flash it appears to work fine and the animation occurs and sound score plays, however when I look at publish preview I hear music but no text animation.....8-{ what gives am I not telling flash to do something, I have searched the tutorials on here but nothing seems to answer my question directly

Hope You can Help

Jimmy The Hand

Plz Help With Autoplay Loop/similar :(
Dear all,

Below is my code for my family picture viewer using external JPEGS

Now I want to add a button for AUTOPLAY... that is, when this button is clicked, the movie keeps going to the next jpeg automatically .
and a companion stop button..

can someone help me with it ?


Thanks
------------------------------------------------------------------
fscommand("fullscreen", "true");
fscommand("showmenu", "false");
fscommand("allowscale", "true");
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("sds.xml");
slides_xml.ignoreWhite = true;
targetClip._alpha = 0;
//
// Show the first slide and intialize variables
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
updateSlide(firstSlideNode);
}
}
//
// Updates the current slide with new image and text
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
// added this to create a temp mc that can be removed
// _root.createEmptyMovieClip("temp_mc", -500);
// added this to get the alpha fading to work properly
// _root.temp_mc.onEnterFrame = function()
onEnterFrame = function () {
if (targetClip._alpha>10 && fadeOut) {
targetClip._alpha -= 10;
}
if (targetClip._alpha<10) {
targetClip.square_clip.loadMovie(imagePath);
targetClip2.square_clip.loadMovie(imagePath);
fadeOut = false;
fadeIn = true;
}
if (targetClip._alpha<100 && fadeIn && !fadeOut) {
targetClip._alpha += 10;
}
else {fadeIn = false;}
if (input>30)
{
input = 30;
}
slideText = newSlideNode.firstChild.nodeValue;
styleId = newSlideNode.attributes.ID;};
}
//
//
// Event handler for 'Next slide' button
next_btn.onRelease = function() {
nextSlideNode = currentSlideNode.nextSibling;
if (nextSlideNode == null) {
break;
} else {
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
if (currentIndex<30 && !fadeIn && !fadeOut) {
fadeOut = true;
currentIndex++;
input = currentIndex;
}
}
};
//
// Event handler for 'Previous slide' button
back_btn.onRelease = function() {
previousSlideNode = currentSlideNode.previousSibling;
if (previousSlideNode == null) {
break;
} else {
currentSlideNode = previousSlideNode;
updateSlide(previousSlideNode);
if (currentIndex>1 && !fadeIn && !fadeOut) {
fadeOut = true;
currentIndex--;
input = currentIndex;
}
}
};

Detecting Player And Autoplay
Hi all. This is my first message and hope someone can help!

I've created a flash advertisment for my company, and I need to burn it to CD. How do I?

a) Autodetect the existance of Flash Player on the users pc (I've done this through Dreamweaver, but not sure how to do it otherwise)

b) Have the movie (or flash detector) autoplay when the disk is inserted

Thank you in advance!

Streaming Sound Autoplay
Flash MX 2004 Pro

Well I'm trying to create a music player, in essence. What I have right now is the 3 frames, one for each song, and the sound stopping bet/ each frame.

The problem I'm having is trying to load streaming mp3's within each frame [that way my friends won't have to load all three from the startup] and make them play on the same frame..

If you guys have any suggestions, they will be greatly appreciated.

Thanks in advance

[F8] Problem With Autoplay Gallery
i have created a gallery and have a start / pause button which assigns a variable (autoplay = 1 or 0) to the clip, but I don't get it to work really. The main problem is that the movie won't stop sometimes but somehow remembers the old actionscript which lets the clip wait for a while until it goes to the nextframe...

you can download the .fla (1,3 Megabyte) here:

http://www.testabase.com/content_boxnew8.fla

any help is greatly appreciated...

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