XML Swf Player: Auto Start And Loop
Hello,First of all, the code: Code: var loader:URLLoader = new URLLoader();loader.addEventListener(Event.COMPLETE, onLoaded);lb.addEventListener(Event.CHANGE, itemChange);function itemChange(e:Event):void{ ta.source = lb.selectedItem.data;}var xml:XML;function onLoaded(e:Event):void{ xml= new XML(e.target.data); var il:XMLList = xml.dave.movie; for(var i:uint=0; i<il.length(); i++) { lb.addItem({data:il.href.text()[i], label:il.gary.text()[i]}); }}loader.load(new URLRequest("xml.xml")); As of right now, i can manually select and play swfs no problem. I followed a great tutorial on gotoandlearn, which got me up to speed on how CS3 handles XML. My question is two-fold. 1) How can I get the first node to start playing right away, and then how can I get them to loop? thanks a lot guys!
KirupaForum > Flash > ActionScript 3.0
Posted on: 07-10-2008, 11:19 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Auto Start?
I'm planning to do a CD-ROM flash presentation
I want the presentation to automatically start when you put the disc in, I'd like it to open a full screen environment (no browser, tool bar) and the main menu to be there ready for action!
any advice welcome
Auto Start For Mac AND PC
I, re-burning my portfolio cd, all done in flash. I cant remember what I do for an auto start. I know its a text file, but dont know what to type. I need to make a mac and a pc cd.
Thank you
Auto Start
Hi
I have finally finished my little flash project, thanks to all of you that have helped on these forums, but I have on last question. The project I have made is for a CD rather than a web site. Is there a way of making my presentation auto start when people put the CD in thr computer?
Auto Start
need to create a script to auto start a flash .exe any solutions?
thanx
CD Auto Start
How do I get my movie to auto start once the CD is in the player?
usually I have to include a "click here" button or a "start" button.
Auto Start SWf From Cd
Does anyone know how to make an .swf autostart from a cd?
will a "autorun.inf" file, with this in it work?
[autorun]
open=autoplay.swf
Projector Auto Start For Mac?
I am using flash MX and 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-
Auto Start Page
Does Anyknow know how to make an index.html page that would automatically link to my website.swf file, and in the process check to see if the person has flash, and then, if they dont, load it for them?
AUTO Start For MAC Projector
Wow!
I have until the end of this week to finish my sr. project. I know how to kind of create a hybrid disc that is not the problem. I dont know how to make a autorun.inf type of file for mac. Does anyone know the code for apple script or how to do this. I am basically loading a projector from flash.
Thanks
Colby webb
Auto Start Function...
hi, i'm looking for a function that check the download time remaining of a target MC, then calculate when it can start playing acording to the lenght of the MC.
i'm going to script it, but if somebody have sources, or advices, it could be sweet
peace.
Flash Plug-in On An Auto Start CD
I am putting together a CD presentation, and I want to put a Flash plugin on the CD so it will load if they don't have Flash available. How would I do this?
Thanks all
Full Screen And Auto Start
Hi can anyone help me. I want a projector file to start up automatically and start up in full screen mode. Any clues?????
Data Stick Auto Start
Hi, have to produce an auto starting data stick, the content has been produced as PDF. I need a self loading introductory page - when he data stick is inserted (PC only) a welcome page is automatically visibly. I thought of making the first page in Flash - from the PDF, any suggestions 'How to' most welcome. I have to finish it today, Sunday. Best wishes Meki G
Auto Start A Flash Movie
Hello Everyone!
Does anyone know how to make a movie created in Flash MX auto start?
I have created a Flash Movie (MX) and saved it on cd. I would like the Flash Movie to start automatically when the user puts the cd in their PC.
Hopefully someone has a solution for me.
Thanks so much!
Auto-start 2nd Flash File
My first flash file was too large to post it as one file (exceeded 16,000 frames) so I'm attempting to automatically start a second flash file when the first one ends.
I can't find a way to do it within the html I'm working in. Am I missing something or can it be done with javascript in the html. If it can't be done in the html, can it be done in flash?
Thank you!
jmb
Auto Start A Flash Mx Projector (PC) Cdrom
I need some help in understanding how to create an auto start of a flash mx, windows projector from a cdrom?
Is this possible for mac as well?
Any help would be much appreciated.
thanks
roodboy
Flash Loadsound Auto Start Issue
I'm having an issue with an mp3 player I wrote in Flash 8. This issue only happens in IE(6 & 7 so far). Here is the rundown.
When the page loads the flash movie the mp3 automatically starts to stream and play. Once the mp3 has completely downloaded and you refresh the page the mp3 shows 100% downloaded, but it does not automatically start playing like it should. I have to push the pause and play button to make it start. If I open a new IE window or new tab in IE 7 and go to the page, the MP3 shows 100% downloaded and starts playing immediately.
Here is a test page:
http://www.findmotive.com/flashautostart/
Any help would be greatly appreciated!
How To Prevent Auto Start Of Video In Flash?
Thanks for the help in advance.
I just need to NOT have the video start playing automatically when it loads. I use import video option in flash and then encode it, then publish it. I tried to put stop(); in frame/video but that didn't work and I don't see any properties when I click on the video object so I'm not sure how I can go about doing this. I just need to video to load as stopped. not auto-play. Thank you.
Edited: 12/08/2006 at 10:17:19 PM by michael12121212
NEWBIE: Auto-start Slide Show
Hello Flash Gurus,
I'm a newbie trying to do the following; I need a flash with actionscript able to:
. load images (and other info) from an external file (this is working, already)
. auto start a slide-show with images swapping with fade-out/fade-in.
Additionaly:
. possibly configure the size of the flash by also reading from the external file
. possibly read a different transition type from the external file
. possibly change the fade steps and swap speed from the ext. file.
I'm attaching a zip file with the .fla I'm working on (no images and 'img' subdir, because that was too big to attach > 74K). The exteranl reading and LoadMovie works, but I just can see the last image, no transitions, no intervals.
I've problems understanding (have no good manuals) the structure of the program. What triggers events and which events?
Thanks for suggestions and examples applicable to mine,
bye nIc
Button With Looped Sound In AS 3.0, No Auto Start
Hi there.
Trying to make a series of interactive buttons in AS 3.0
The button needs to be able to do the following :
- Does not start the MP3 loop automatically when the SWF is opened
- On click, loops forever until the user clicks another MP3 looping button
- Has up, over and down states
Any help on this would be great.
Thanks
Quicktime Auto Start In Explorer Doesn't Work
FLASH MX/ os 10.2.8
I have a button which has this code on it:
myBtn.onPress = function(movieStartUp) {
getURL("javascript:NewWindow=window.open('URL.html ','movieTitle','width=320,height=280,left=0,top=0, toolbar=No,scrollbars=No,status=No,resizable=No,fu llscreen=No'); NewWindow.focus();void(0)");
}
the html has this object embed code:
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="movie width" HEIGHT="movie height"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" BORDER="4"><PARAM NAME="SRC" VALUE="relative address to movie">
<PARAM NAME="AUTOPLAY" VALUE="TRUE"> <PARAM NAME="CONTROLLER" VALUE="TRUE">
<EMBED SRC="relative address to movie" WIDTH="movie width" HEIGHT="movie height" CONTROLLER="TRUE"
PLUGINSPAGE="http://www.apple.com/quicktime/download/"> </OBJECT>
works GREAT in Safari
but in Explorer...it just loads
and doesn't start playing automatically
any ideas?
I've tried loading the mov directly
now I have the mov embedded in html
either way
explorer just loads it, and doesn't start playing it (unless you click play)
also can I lose the quicktime logo...and just have it play the movie without advertising quicktime first...
thanks for any help on this
Change Button Fuction To Auto Start Video
hello i have a script for a button to start a movie.
script:
bPlay.onRelease = function(){
flvPlayback.play(video);
bPlay._visible=false;
}
I dont want to use the button I would rather have it start without this button.
how can i write this to start the video without the button?
Auto-loop
I've specified on all of my movies that it not be auto-loop, yet when I publish them, it loops automatically - which is really annoying... how do I ensure that the movies do not loop?
How Do I Auto Loop A Flv Video?
Ok I have a logo video clip streamed like this:
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("http://www.mysite.com/LogoSpin.flv");
This logo is a small high res clip of a spinning logo and I need to to play over and over without end.
What action script will make it repeat play?
I tried this without success:
Code:
listenerObject = new Object();
listenerObject.complete = function(eventObject){
theVideo.play();
}
theVideo.addEventListener("complete", listenerObject)
Auto/loop Sliding Images
I wanted to do the similar sliding images like the one at http://www.teochewrestaurant.com/htm...tus/index.html
Anyone willing to teach me?
Help Creating An Auto-play Loop
I had a post on here yesterday that addressed an issue I had with a loop, but since then I rewrote my actionscript and I believe it will work differently.
Basically, I have 4 images. Two of those images are identical, with the exception that the one that appears initially will not have a left arrow to go back to the previous image. Anytime you return to that image however, it will have a left arrow.
The user should have the ability to continue pressing the arrows to see the different images.
Here is my code:
Code:
stop();
// imports the easing and tween class for use globally
import mx.transitions.easing.*;
import mx.transitions.Tween;
var aTween:Tween;
// move clip functions
function scrollRight(curr:Number){
switch(curr){
case 0:
case 9:
_root.attachMovie("hampton_mc", "hampton2_mc", getNextHighestDepth(), {_x:544, _y:0});
_root.hampton2_mc.hampton_door.hamptonArrowL_mc.onRelease = _root.hamptonArrowL_func;
_root.hampton2_mc.hampton_door.hamptonArrowR_mc.onRelease = _root.hamptonArrowR_func;
break;
case 1:
_root.attachMovie("lacerise_mc", "lacerise2_mc", getNextHighestDepth(), {_x:544, _y:0});
_root.lacerise2_mc.lacerise_door.laceriseArrowR_mc.onRelease = _root.laceriseArrowR_func;
_root.lacerise2_mc.lacerise_door.laceriseArrowL_mc.onRelease = _root.laceriseArrowL_func;
break;
case 2:
_root.attachMovie("caruth2_mc", "caruth3_mc", getNextHighestDepth(), {_x:-544, _y:0});
_root.caruth3_mc.caruth2_door.caruth2ArrowR_mc.onRelease = _root.caruth2ArrowR_func;
_root.caruth3_mc.caruth2_door.caruth2ArrowL_mc.onRelease = _root.caruth2ArrowL_func;
break;
}
enterRightTween(curr);
exitRightTween(curr);
}
function enterRightTween(curr:Number){
switch(curr){
case 0:
case 9:
var clip = hampton2_mc;
break;
case 1:
var clip = lacerise2_mc;
break;
case 2:
var clip = caruth3_mc;
break;
}
var begin:Number = 544;
var end:Number = 0;
var seconds:Number = 1;
var useSeconds:Boolean = true;
aTween = new Tween(clip, "_x", Regular.easeInOut, begin, end, seconds, useSeconds);
}
function exitRightTween(curr:Number){
switch(curr){
case 0: var clip = caruth3_mc;
break;
case 1: var clip = hampton2_mc;
break;
case 2: var clip = lacerise2_mc;
break;
case 9: var clip = caruth_mc;
break;
}
var begin:Number = 0;
var end:Number = -544;
var seconds:Number = 1;
var useSeconds:Boolean = true;
aTween = new Tween(clip, "_x", Regular.easeInOut, begin, end, seconds, useSeconds);
}
function scrollLeft(curr:Number){
switch(curr){
case 0:
_root.attachMovie("lacerise_mc", "lacerise2_mc", getNextHighestDepth(), {_x:544, _y:0});
_root.lacerise2_mc.lacerise_door.laceriseArrowR_mc.onRelease = _root.laceriseArrowR_func;
_root.lacerise2_mc.lacerise_door.laceriseArrowL_mc.onRelease = _root.laceriseArrowL_func;
break;
case 1:
_root.attachMovie("caruth2_mc", "caruth3_mc", getNextHighestDepth(), {_x:-544, _y:0});
_root.caruth3_mc.caruth2_door.caruth2ArrowR_mc.onRelease = _root.caruth2ArrowR_func;
_root.caruth3_mc.caruth2_door.caruth2ArrowL_mc.onRelease = _root.caruth2ArrowL_func;
break;
case 2:
_root.attachMovie("hampton_mc", "hampton2_mc", getNextHighestDepth(), {_x:544, _y:0});
_root.hampton2_mc.hampton_door.hamptonArrowL_mc.onRelease = _root.hamptonArrowL_func;
_root.hampton2_mc.hampton_door.hamptonArrowR_mc.onRelease = _root.hamptonArrowR_func;
break;
}
enterLeftTween(curr);
exitLeftTween(curr);
}
function enterLeftTween(curr:Number){
switch(curr){
case 0:
var clip = lacerise2_mc;
break;
case 1:
var clip = caruth3_mc;
break;
case 2:
var clip = hampton2_mc;
break;
}
var begin:Number = -544;
var end:Number = 0;
var seconds:Number = 1;
var useSeconds:Boolean = true;
aTween = new Tween(clip, "_x", Regular.easeInOut, begin, end, seconds, useSeconds);
}
function exitLeftTween(curr:Number){
switch(curr){
case 0: var clip = caruth3_mc;
break;
case 1: var clip = hampton2_mc;
break;
case 2: var clip = lacerise2_mc;
break;
}
var begin:Number = 0;
var end:Number = 544;
var seconds:Number = 1;
var useSeconds:Boolean = true;
aTween = new Tween(clip, "_x", Regular.easeInOut, begin, end, seconds, useSeconds);
}
/* -- [ Begin attaching movieclips and adding events ] -- */
// Events that happen when right caruth button (initial one) is pressed
_root.caruth_mc.caruth_door.caruthArrow1_mc.onRelease = function() {
scrollRight(9);
};
// Events that happen when right hampton arrow is pressed
function hamptonArrowR_func() {
scrollRight(1);
}
// Events that happen when left hampton arrow is pushed
function hamptonArrowL_func() {
scrollLeft(1);
}
//Events that happen when right caruth button is pressed
function caruth2ArrowR_func() {
scrollRight(0);
}
//Events that happen when left caruth button is pressed
function caruth2ArrowL_func() {
scrollLeft(0);
}
//Events that happen when left lacerise button is pressed
function laceriseArrowL_func() {
scrollLeft(2);
}
//Events that happen when right lacerise button is pressed
function laceriseArrowR_func() {
scrollRight(2);
}
// start autoplay function
My issue here is that I'd like to create an Autoplay feature, so that the images just start progressing on their own from the start of the movie. If someone clicks an arrow, it would temporarily override the autoplay and go to the next image. The autoplay would then resume.
I wrote the actionscript so that there is a parameter to say what the current image is, I'm just not sure how to call that in a loop and create that autoplay.
I attached the file so you may have a better idea of what I am working with.
Does anyone have any ideas?
Thanks!
-Brian
Continuous Auto Scrolling Text Loop
im after achieving an effect similar to movie credits with text automatically scrolling upwards, im loading the text in via xml and have for example
item one
item two
item three
but need it to scroll so that user sees an endless loop
item one
item two
item three
item one
item two
item three
any ideas of the best way to do this please?
Continuous Auto Scrolling Text Loop
im after achieving an effect similar to movie credits with text automatically scrolling upwards, im loading the text in via xml and have for example
item one
item two
item three
but need it to scroll so that user sees an endless loop
item one
item two
item three
item one
item two
item three
any ideas of the best way to do this please?
Auto Slideshow, Play Btn Won't Loop Function
Hi,
I'm trying to get my Flash Movie to loop a function that advances a slideshow by one jpg. The script worked when a "back" and "forward" button was used to advance the jpgs. I'm trying to alter the script by using a function that will run through all the jpgs when a "play" button is pressed. I have added a call to the function on that button and there is a setInterval on that button as well...So far, the play button only fades out the place holder image that is loaded as soon as the movie starts (I want this image to continue to load without the play button being pressed)...the script isn't looping, it never loads another image. Would someone mind looking my code in the fla I've attached? I've attached a zip file for you to download. It includes the folder with the jpgs.
What I'm I doing wrong? I think I've just overlooked a minor detail...I'm I wrong? Thanks for your help
Continuous Auto Scrolling Text Loop
im after achieving an effect similar to movie credits with text automatically scrolling upwards, im loading the text in via xml and have for example
item one
item two
item three
but need it to scroll so that user sees an endless loop
item one
item two
item three
item one
item two
item three
any ideas of the best way to do this please?
Start And Stop A Loop?
Im new to mx, and am used to tell targets to control audio events.
What would be the easiest way to have a start and stop button that starts/stops the audio loop?
Html Start Loop & Mp3-swf Convertion
hello ,
I have read most of your excellent forum but I didn't see an answer to my small problems
I want to integrate loops to my site (HTML/php) ,I have already put musics ,
your loop music doesn't start alone ,I get un frame and I have to make a right clic et select read
here code i use :
<param name=movie value="iwox.swf">
<param name=quality value=high>
<param name="LOOP" value="false">
<embed src="iwox.swf" quality=high width="550" height="400" loop="false">
as for "loop" i try "open"/"read"/"start" but it doesn't work
Other thing I try to convert a mp3 music (online game) to swf but programm says
" Can't add one or more Files
(show Log for details). "
a idea ?
thank you
On First Loop Start Next Movie Clip
I have two movie clips sharing the same frame on my main outline (two different layers though). One movie starts first and it loops three times with this script:
_global.count = count+1;
if (count < 3){
gotoAndPlay(1);
} else {
stop();
gotoAndPlay(_parent.nextFrame());
}
Ok, I want the other clip to start after this movie clip does its first loop and starts its second. What action script can I put in to tell it to make this happen. Will I need script for both clips to tell the first one to start the second and to tell the second to wait for the first?
Please help
Thanks
Ryan
Loop, Change Visibility, Start Over...
I am using FlashMX 2004.
I have searched for a post regarding this situation, but have found nothing. If one is out there please direct me to it and sorry for the repost.
I am trying to make a loop of somesort where 5 images are continuously looped. I want the loop to count from 1 to 5 (each number representing an image at the end of the loop) In other words, the loop will start at one (showing the first image)then once a tween has been performed the count will move up one to number two and the second image will become visible and the others will become invisible. I want it to do this for all 5 images and then start over at one again. If you need more explanation please ask, I have been working on this for a couple days. Thanks in advance for any help offered.
Keith
Need To Loop Flv Between Midway Start And End Points
Does anyone know how to create in and out markers that you could drag along a scrub bar. These would allow you to set the start and end position anywhere along the scrub bar and then loop within the two markers. I see it being used on this FLV play:
http://www.vanderbilly.com/Guitar-Lesso ... 741,1.html
I think I've stumbled across the right approach. Although it doesn't work! I should be using a scrub handle to set an Actionscript cuepoint for the start and another for the end. Then setup a listener to loop at the end scrub cuepoint back up to the start scrub cuepoint. Now I need to know where to find the coding. I've already setup the scrubStart and scrubEnd onPress and onRelease functions. But I don't know what to do next. Here's what I have: This is not php. It's actionscript.
PHP Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.setBufferTime(30);
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);
}
};
//plays video
ns.play("flv_test.flv");
//Control Buttons
//playButton
playButton.onRelease = function() {
ns.pause();
};
autoRewind
//stopButton
stopButton.onRelease = function() {
ns.stop();
};
/*
//rewindButton
rewindButton.onRelease = function() {
ns.seek(0);
}
*/
var videoInterval = setInterval(VideoStatus, 100);//set this so it may be cleared later on during scrubing.
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function (obj) {
//onMetaData is an undocumented feature.
//onMetaData sends an information object. In the object is the duration
//onMetaData only works if FLV is created with an app that uses a
//flash video exporter 1.1 or greater.
duration = obj.duration;
//catch the duration object. duration will be the total length in seconds
};
function videoStatus() {
amountLoaded = ns.bytesLoaded/ns.bytesTotal;
loader.loadbar._width = amountLoaded*250;// 250 = width of scrub bar, animates loader along loadbar
loader.scrub._x = ns.time/duration*250;//animates scrub along x axis of the loadbar. "time" returns
//current position of playhead in seconds.
}
/*Begin basic scrub*/
var scrubInterval;
loader.scrub.onPress = function() {
clearInterval(videoInterval);//clear var in prep for scrubbing
scrubInterval = setInterval(scrubit, 10);
this.startDrag(false,0,this._y,250,this._y);// allows scrub to be dragged the full length of scrub bar
};
loader.scrub.onRelease = loader.scrub.onReleaseOutside=function () {
//event triggered in or outside the scrub hit area
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus, 100);
this.stopDrag();
};
function scrubit() {
ns.seek(Math.floor((loader.scrub._x/250)*duration));// 250 is full width of scrubBar
}
/*End Basic Scrubber*/
var scrubStartInterval;
var scrubEndInterval;
/*begin Start scrub cue*/
loader.scrubStart.onPress = function() {
clearInterval(videoInterval);
scrubStartInterval = setInterval(Startscrubit,10);// 250 is full width of scrubBar
this.startDrag(false,0,this._y,250,this._y);// allows scrub to be dragged the full length of scrub bar
};
loader.scrubStart.onRelease = loader.scrubStart.onReleaseOutside=function () {
videoInterval = setInterval(videoStatus, 100);
this.stopDrag();
};
var myStartCP:Object = new Object();
function Startscrubit() {
myStartCP.time = Math.floor((loader.scrubStart._x/250)*duration);
myStartCP.name = "StartCP";
ns.addASCuePoint(myStartCP);
}
/*begin End scrub cue*/
loader.scrubEnd.onPress = function() {
scrubEndInterval = setInterval(Endscrubit,10);// 250 is full width of scrubBar
this.startDrag(false,0,this._y,250,this._y);// allows scrub to be dragged the full length of scrub bar
};
loader.scrubEnd.onRelease = loader.scrubEnd.onReleaseOutside=function () {
//scrubInterval = setInterval(videoStatus,100);
this.stopDrag();
};
var myEndCP:Object = new Object();
function Endscrubit() {
myEndCP.time = Math.floor((loader.scrubEnd._x/250)*duration);
myEndCP.name = "EndCP";
ns.addASCuePoint(myEndCP);
}
// Listener
ns.onCuePoint = function(cue) {
if(cue.name == "EndCP") {
ns.pause();
}
}
// begin right click menu
var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.Menu = theMenu;
var item1:ContextMenuItem = new ContextMenuItem(":::::: Video Controls :::::", trace);
theMenu.customItems[0] = item1;
var item2:ContextMenuItem = new ContextMenuItem("Play / Pause Video", pauseIt, true);
theMenu.customItems[1] = item2;
var item3:ContextMenuItem = new ContextMenuItem("Replay Video", replayIt);
theMenu.customItems[2] = item3;
var item4:ContextMenuItem = new ContextMenuItem("Copyright 2008 Rick Bale", trace, true);
theMenu.customItems[3] = item4;
function pauseIt() {
ns.pause();
}
function replayIt() {
ns.seek(0);
}
function restartIt() {
ns.seek(0);
}
// begin audio mute button
_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(100);
mute.onRollOver = function() {
if (so.getVolume() == 100) {
this.gotoAndStop("onOver");
} else {
this.gotoAndStop("muteOver");
}
};
mute.onRollOut = function() {
if (so.getVolume() == 100) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("mute");
}
};
mute.onRelease = function() {
if (so.getVolume() == 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
} else {
so.setVolume(100);
this.gotoAndStop("onOver");
}
};
/*can my listener be this simple:
ns.onCuePoint = function(cue) {
if(cue.name == "the name of a cuepoint set by the scrubEnd ") {
ns.pause("the seconds set by the scrubStartInterval");
}
}
*/
*edited your thread and added php tags to your code sample. Makes it easier to read. Check this forum's guidelines.
gparis
Start And Restart Sound Loop...
So I have a menu.swf that has 4 buttons that load seperate director EXE's entire new projects.
I have looping background music going on in the menu and I have it set so when the user clicks the first project1.exe it stops the song playing in the menu.swf so it can load and play all the effects etc... from the project1.exe. When the user clicks exit on that project and comes back to menu.swf, the music is still stopped (no surprise).
Is there any way to make the music start back up or continue where it left off when the user comes back to the menu.swf.
Knowing my luck, I am sure it's really simple.
Thanks.
Flv Player Auto Hide
Hi, I was wondering if someone could helf me to include an auto-hide function for a flv-player. I was thinking about adding all the control components to a mc, which you could fade in and out (mc roll-over). I did it already, but is wasn't working, just flickering. I think I have to change the rooting or the levels, but I have no idea how.
example: http://vimeo.com/
gotoandlearn flv code
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);
}
}
stopButton.onRelease = function() {
ns.pause();
}
ns.play("Showreel_fs.flv");
playButton.onRelease = function() {
ns.pause();
}
rewindButton.onRelease = function() {
ns.seek(0);
}
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 * 208.9;
loader.scrub._x = ns.time / duration * 208.9;
}
var scrubInterval;
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,208,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/208)*duration));
}
var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.menu = theMenu;
var item1:ContextMenuItem = new ContextMenuItem("::::: Video Controls :::::",trace);
theMenu.customItems[0] = item1;
var item2:ContextMenuItem = new ContextMenuItem("Play / Pause Video",pauseIt,true);
theMenu.customItems[1] = item2;
var item3:ContextMenuItem = new ContextMenuItem("Replay the Video",restartIt);
theMenu.customItems[2] = item3;
var item4:ContextMenuItem = new ContextMenuItem("© 2005 Lee Brimelow",trace,true);
theMenu.customItems[3] = item4;
function pauseIt() {
ns.pause();
}
function stopIt() {
ns.seek(0);
ns.pause();
}
function restartIt() {
ns.seek(0);
}
_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(100);
mute.onRollOver = function() {
if(so.getVolume()== 100) {
this.gotoAndStop("onOver");
}
else {
this.gotoAndStop("muteOver");
}
}
mute.onRollOut = function() {
if(so.getVolume()== 100) {
this.gotoAndStop("on");
}
else {
this.gotoAndStop("mute");
}
}
mute.onRelease = function() {
if(so.getVolume()== 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
}
else {
so.setVolume(100);
this.gotoAndStop("onOver");
}
}
Stop & Start Buttons For Sound Loop
Hi, I'm new to flash and I'm experimenting having a looped sound that is controlled by a stop and start button.
http://www.tarotrealm.co.uk/flashtest.htm
Why is it on this page the stop button manages to stop the looped wave sound but after a few seconds the sound starts playing again?! And when the sound is stopped after pressing the button, the play button doesnt seem to work? Ive used the actionscript play and stop movie controls for the buttons.
Any help appreciated!
Auto Detrct Flash Player
is there an actionscript that can detect if a user already has flash player installed on their computer?
Thanks
Auto-detecting Flash Player
hi guys
can any body tell me how to auto-detect the flash player
can i do it using publish settings or javascript?
Auto Detect Flash Player
does flash mx automaticly detect flash 6 player and if it is not present it send you to macromedia.com/downloads?
Auto Update To Flash Player 8
hello, is there a way to have flash player auto update to the latest version without people having to download the plugin?
Need To Auto Detect Flash 8 Player
I need to find a way to have a swf movie detect whether or not flash player 8 is installed. If it is not installed, It needs to direct them to where they can get it. I made a navigation in flash 8 and it won't show up on any computer that doesn't have flash player 8 installed.
Auto Install Flash Player
Hi,
I know how to detect see whether the flash player has been installed or not in the system but I don't know how to make it auto install after detected the system don't have it. So, I wondering if anyone here know how to write a coding to auto install the flash player into our system after detected it?
Auto Install Flash Player From CD
I am creating flash/projector content to be used in an interactive enhanced section for the CD release of our forthcoming album. Amongst other things I'm using it to play a video we have had shot for one of our songs. This uses features that need flash player 6. It runs fine on my computer but when tested on another, the video wouldn't play because of an old flash player.
If I include the installation program for the player on the CD, is there anyway I can get it to autodetect and install??
Auto-Scrolling An MP3 Player Listbox
I'm curious if anyone has worked on this problem:
I've created an MP3 player based on the now classic code at:
http://www.thegoldenmean.com/technique/mp3player01.html
One of the shortcomings of the player (that users seem to notice) is that the listbox doesn't scroll to reveal the currently selected item when the player is in "continuous" mode. The selected items disappear from view. I'm wondering if using FListbox.getScrollPosition and FListbox.setScrollPosition could be used to get the listbox menu to update and scroll the current selection to the top of the menu screen. If the listbox data object siimply returns an index number it seems like that number could be used to feed the getScrollPosition function.
I'm spending the holidays with relatives (away from my computer) so I can't actually test this. Has anyone else found a fix?
Cheers.
|