Continuously Looping Swf File
I'm sure this is a retarded question - but...... I have imported a SWF file into my fla. However, when I try to publish the fla. file as a SWF, the original SWF is on a continuous loop. This despite me going into the original SWF and changing publishing settings, the instance behaviour to play once and anything else I can think of.
I have also tried changing these things in my fla. file before publishing, but I can't stop it looping.
If anyone could help I'd be extremely grateful.
Dan.
FlashKit > Flash Help > Flash Newbies
Posted on: 03-19-2002, 09:00 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
2 .swf Files Continuously Looping, One After Another
I have 2 swf files. How can I get one to play and then the other play + have them continually loop, one after another?
I'm ok with having this happen in a browser, but since they are large swf files and I'd like to have them loop uninterruptedly, I'd prefer to have one executable projector file that just keeps the whole thing going smoothly.
Ideas?
Continuously Looping Image Without Being Cut
view this url: http://axishift.com/testcenter/slider3.html
what i have right there is a looping image that is being cut when the image finished scrolling, what can i do to prevent that? my problem is on the last image i want it to be able to follow once the image is almost done the last part of it will follow so it wont look like it was chopped.
any ideas?
Continuously Looping Background?
There's a tutorial: http://www.flashkit.com/tutorials/Ge...-199/index.php
On how to do one... which basically just says to take a really long image and motion tween it, but he also says this:
" After reading this tutorial some expert users of Flash will comment that we can save trouble by using actionscript. "
Could someone tell me how to do this using actionscript instead? THanks.
Continuously Looping Background
I've been trying to find a script for a "Continuously Looping Background". I would like to create a "cloudy sky" background, similar to http://thekillersmusic.com/
I hope someone can help, thanks, peace
desolve.com.au
Continuously Looping Slideshow...
Hey guys... long time watcher first time poster...
anyway, I need some assistance... A little background... I'm a front end designer, and not as much as a back end programmer
I'm trying to make a gallery/slideshow that loops and starts again at the beginning... but the catch is it uses the Tweening class and a slider full of images.
I'm trying to get the slider to duplicate once it's end is visible, and repeat...
so if I have 3 images visible on the stage [OOO] the brackets being the stage... when it gets to the end it wil...
[OOO]
O[OO ]
OO[O ]
OOO[ ]
I need it put the first image after the last one...
I know you can do it with two instances back to back, and when one leaves off the other begins, but I can't think of how to code it.
Any help or referring documentation would be great...
It's getting late for me, and my brain hurts from thinking about this, so my post may make little sense...
Thanks in advance!
Richie
Continuously Looping Image Without Cut
as you can see here:
http://axishift.com/testcenter/slider3.html
im trying to figure-out how to continuously loop and an image without being cut.
i did adjusted a lot of things on the frame's but could get my desired output. problem is at the end, it wont attached it self on the last image.
how can i do this? the image is just one.
Continuously Looping Text Message?
I am designing my first flash site and at the bottom of it I need a text field with 'latest news' to continuously horizontally scroll.
I have achieved everything except being able to have it loop again once the the string has finished.
this is the code for what I have done:
onEnterFrame = function() {
if(headline_txt.hscroll <= headline_txt.maxhscroll) {
headline_txt.hscroll += 1;
//this is what I need to figure out:
}else if ( headline_txt.hscroll >= headline_txt.maxhscroll) {
headline_txt.hscroll = (1);
}
};
headline_txt.text = " thank you "
Im sure this is very basic stuff but I have a very basic flash brain at the moment so your help would be so great.... thanks guys.
Continuously Scrolling / Looping Xml Thumbnails
I am trying to make the bar in the Simple Flash XML Photogallery (http://www.tutorio.com/tutorial/simp...l-photogallery) continuously loop and having a hard time. Any help would be great.
I don't really care if the mouse would control the thumbnails, just trying to have the thunbnails move left continuously.
I have put two tutorials together and made the mouse control the thumbnails. this may help some people. I used the "Simple Flash XML Photogallery" and the "Scrolling Thumbnail Panel" from http://www.gotoandlearn.com and came up with the file below.
Anyone wants to work with me to figure out how to make this continuously loop or scroll that would be awesome. Hope this file helps people.
http://www.bassettandbrush.com/clien...moving_xml.zip
Looping A .flv File?
Hi All.
I am using the Flash 8 video player component that has a component panel which I can input one .flv path url. How can it tell it to LOOP a second .flv after the first one is done?
Please advise.
Thank you!
My .swf File Keeps Looping
The .swf file that I published won't stop on the last frame. I've already made sure that Loop is not checked in in the playback section of the publish settings. Coud it have something to do with how the file is embedded into the web page? The code from the web page that I'm trying to play the video on is attached at the end.
Now, on the last frame of the .fla file there is a button and I added some actionscript to that frame so that it will advance to the next page. Here is what the actionscript looks like...
import flash.events.MouseEvent;
/*This script will send a page submit command to the survey.*/
function gotoNextPage(event:MouseEvent) :void
{
var nextSurveyPage:URLRequest = new URLRequest("javascript:submitpage(1)");
navigateToURL(nextSurveyPage);
}
nextPage_btn.addEventListener(MouseEvent.CLICK,gotoNextPage);
Any suggestions as to what the problem might be and what the solution is would be very helpful.
Thanks
Attach Code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="417" id="myMovieName">
<param name="movie" value="http://static.targetrx.com/mm/slideshows/swf_controller.swf?csConfigFile=http://static.targetrx.com/mm/slideshows/sean/sean_config.xml"/>
<param name="quality" value="high"/>
<param name="menu" value="false"/>
<param name="bgcolor" value="#FFFFFF"/>
<param name="FlashVars" value="csConfigFile=gttp://static.targetrx.com/mm/slideshows/sean/sean_config.xml"/>
<embed src="http:..static.targetrx.com/mm/slideshows/swf_controller.swf?csConfigFile=http://static.targetrx.com/mm/slideshows/sean/sean_config.xml" FlashVars="csConfigFile=http://static.targetrx.com/mm/slideshows/sean/sean_config.xml" quality="high" bgcolor="#FFFFFF" width="600" height="417" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
File Keeps Looping
I created a document in fireworks and imported it into Flash. I decided to add the timeline effect, transition. The .jpg now loads a section of a time from the top until the whole file is displayed. this I can live with, but the loopin' of it. I've made sure all options pertainin' to looping are turned off but it still restarts once picture is finally loaded. I'll appreciate any help to end my frustration.
Thankz
Looping FLV File
Hello,
I simply want to loop an external FLV file.
Using flash 8, with the standard Import Video wizard.
I have put my FLV file on my server already.
I have seen a couple of topics about it and some mentioned about NetStream... well... the codes seamed complete and working, however, what, when, where how do I add it to my project!
thanks
File Keeps Looping
I created a document in fireworks and imported it into Flash. I decided to add the timeline effect, transition. The .jpg now loads a section of a time from the top until the whole file is displayed. this I can live with, but the loopin' of it. I've made sure all options pertainin' to looping are turned off but it still restarts once picture is finally loaded. I'll appreciate any help to end my frustration.
Thankz
Stoping A Swf File From Looping
I only have access to this Swf file not the Fla. the current swf file loops over and over I was wondering is there a way to stop this. It will need to sit on a html web page.
Cheers.
This File Won't Stop Looping
I have built a simple interactive movie to view my portfolio. It uses two arrows, one that goes forward to the next image and one that goes backwards to the previous images. The problem occurs when you click continuously too fast on an arrow. The image that loads loops repeatedly. Then every image that loads after that loops repeatedly as well. I have put the code below.
To view the page use the link below and click on portfolio link http://www.cthrugraphix.com/htm_homepage.htm
//passes a value of 1 to the function to load the first image
counter=1;
photochange(counter);
//next button that either sets the value to 16 or adds a value
// to the variable counter
next_btn.onPress=function() {
if (counter>=16) {
counter=16;
photochange(counter);
} else {
photochange(counter+=1);
}
}
//back button that either sets the value to 1 or subtracts a value
// from the variable counter
back_btn.onPress=function() {
if (counter<=1) {
counter=1;
photochange(counter);
} else {
photochange(counter-=1);
}
}
//function that passes counter to load images
function photochange(counter) {
slideshow_mc.loadMovie("photo"+counter+".swf");
loadVariablesNum("des"+counter+".txt",0);
loadVariablesNum("bod"+counter+".txt",0);
loadVariablesNum("email.txt",0);
}
Looping Through External File
hello!
i have an external xml file which i am trying to get flash to loop through and extract the data from, i've written one loop for it which i learnt from actionscript.org but this won't work.
the xml file i'm trying to loop through is here:
http://www.suckmyrazor.org/blog/flash.xml
and as you can see it has a parent node <blog> and then children nodes of <item> (each with there own children) and this is as deep as it'll go (for the moment)
the loop i have is this:
Code:
function processBlog(xmlDoc_xml) {
for (var n = 0; n<xmlDoc_xml.firstChild.firstChild.childNodes.length; n++) {
trace(xmlDoc_xml.firstChild.firstChild.childNodes[n].firstChild.nodeValue);
}
}
what i really need is a loop that loops through each <item> node and then loops through each child node of the <item> node, it tried doin this :
Code:
function processBlog(xmlDoc_xml) {
for (var n = 0; n<xmlDoc_xml.firstChild.firstChild.childNodes.length; n++) {
for (var j = 0; j<xmlDoc_xml.firstChild.firstChild.childNodes.length; j++) {
trace(xmlDoc_xml.firstChild.firstChild.childNodes[j].firstChild.nodeValue);
}
}
}
but this crashed flash! oh btw, i'm using mx 2004 pro publishing in as2 flash 7...
please help!
Looping A Sound File
Hi i want to add a sound loop to my site to allow a soft bit of music to play in my background, can i ask how i make the loop continously play if i have placed my sound file in a single keyframe?
thanks
Looping Through A Text File
I've been trying to find tutorials on this all morning. I have a text file that looks like this:
Code:
&myVar1 = Text1&myVar2 = Text2&myVar3 = Text3
I have a flash file:
Code:
var my_lv = new LoadVars();
my_lv.onLoad = function(ok)
{
if (ok)
{
my_mc.i_text.text = this.myVar
}
Else
{
trace("an error has occured");
}
};
my_lv.load("textfile.txt");
My idea was to take a variable like "x" and have it increase by 1 each time the movie loops. Then I would add myVar+x to get myVar2, myVar3 and so on. I know how to do this in ASP... lol, it's not the same in Flash. Any suggestions or pointing me in the right direction would help!
Thanks
MP3 Looping & Pulling URL From .txt File
Hello! I'm working on a file and I've run into two problems. The first is I cannot get the sound/mp3 file to loop. The second problem is I'd like the "Order Photos" to be a button and for the URL to be pulled from the .txt file.
You can view what I have at:
http://www.visbuilder.com/flash/wedding/wedding2.html
You can download a .zip file of the flash file, mp3, .txt file, etc. at:
http://www.visbuilder.com/flash/wedding/wedding.zip
I'm using Flash MX 2004.
Thanks in advance for your help!
Michelle
Looping Audio File Using AS
Hi,
I have this code to load in an audio file from a different source on the internet.
Code:
// Create a new Sound object to play the sound.
var songTrack:Sound = new Sound();
// Create the polling function that tracks download progress.
// This is the function that is "polled." It checks
// the downloading progress of the Sound object passed as a reference.
function checkProgress (soundObj:Object):Void {
var numBytesLoaded:Number = soundObj.getBytesLoaded();
var numBytesTotal:Number = soundObj.getBytesTotal();
var numPercentLoaded:Number = Math.floor(numBytesLoaded / numBytesTotal * 100);
if (!isNaN(numPercentLoaded)) {
trace(numPercentLoaded + "% loaded.");
}
};
// When the file has finished loading, clear the interval polling.
songTrack.onLoad = function ():Void {
trace("load complete");
clearInterval(poll);
};
// Load streaming MP3 file and start calling checkProgress(),
songTrack.loadSound("sounds/intro.mp3", true);
var poll:Number = setInterval(checkProgress, 100, songTrack);
How do I get it to loop? What bit of code would I need to add to this?
Thanks
Looping Audio File Using AS
Hey,
I have this code:
Code:
// Create a new Sound object to play the sound.
var songTrack:Sound = new Sound();
// Create the polling function that tracks download progress.
// This is the function that is "polled." It checks
// the downloading progress of the Sound object passed as a reference.
function checkProgress (soundObj:Object):Void {
var numBytesLoaded:Number = soundObj.getBytesLoaded();
var numBytesTotal:Number = soundObj.getBytesTotal();
var numPercentLoaded:Number = Math.floor(numBytesLoaded / numBytesTotal * 100);
if (!isNaN(numPercentLoaded)) {
trace(numPercentLoaded + "% loaded.");
}
};
// When the file has finished loading, clear the interval polling.
songTrack.onLoad = function ():Void {
trace("load complete");
clearInterval(poll);
};
// Load streaming MP3 file and start calling checkProgress(),
songTrack.loadSound("sounds/intro.mp3", true);
var poll:Number = setInterval(checkProgress, 100, songTrack);
I want to be able to loop the imported Audio sound, does anybody know how to do this?
Thanks
Looping External Mp3 File
hello all!
need some help on figuring out how to make my external streaming mp3 file loop. I tried a few things but i'm having no luck. here is my code where everything works fine now minus the code for looping.
thanks for looking.
houston
playList = ["url"];
currentSong = 0;
maxSongs = playList.length -1;
function startStreaming(){
mp3 = new Sound();
mp3.loadSound(playList[currentSong], true);
mp3.onSoundComplete = function(){
currentSong ++;
if (currentSong > maxSongs){
currentSong = 0;}
delete mp3;
}
}
startStreaming();
stop();
stop();
Looping Through File-directory XML
I was wondering if this is possible using e4x/nodes (possibly in combination?)
I have an xml file that has a file/directory structure - it's got nested directories (naturally) so i'm not sure how to read through the XML file..or if it's even possible given how XML works...
Here is my output:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<structure>
<DIR>
<file>/Users/Chris/Sites/_resources/_images/image1.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/image2.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/image3.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/image4.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/image5.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/image6.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/image7.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/image8.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/image9.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/left.psd</file>
<file>/Users/Chris/Sites/_resources/_images/middle.psd</file>
<file>/Users/Chris/Sites/_resources/_images/right.psd</file>
<file>/Users/Chris/Sites/_resources/_images/thumb1.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/thumb2.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/thumb3.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/thumb4.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/thumb5.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/thumb6.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/thumb7.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/thumb8.jpg</file>
<file>/Users/Chris/Sites/_resources/_images/thumb9.jpg</file>
</DIR>
<DIR>
<DIR>
<file>/Users/Chris/Sites/_resources/_packages/_gallery/AC_RunActiveContent.js</file>
<file>/Users/Chris/Sites/_resources/_packages/_gallery/gallery.as</file>
<file>/Users/Chris/Sites/_resources/_packages/_gallery/image.as</file>
<file>/Users/Chris/Sites/_resources/_packages/_gallery/thumbnail.as</file>
</DIR>
<DIR>
<file>/Users/Chris/Sites/_resources/_packages/_gallery2/gallery.as</file>
<file>/Users/Chris/Sites/_resources/_packages/_gallery2/image.as</file>
<file>/Users/Chris/Sites/_resources/_packages/_gallery2/thumbnail.as</file>
</DIR>
<DIR>
<file>/Users/Chris/Sites/_resources/_packages/_preloader/preloader.as</file>
</DIR>
</DIR>
<DIR>
<file>/Users/Chris/Sites/_resources/_xml/gallery.xml</file>
</DIR>
<file>/Users/Chris/Sites/_resources/AlphaMasking.zip</file>
<file>/Users/Chris/Sites/_resources/ape_a045.zip</file>
<file>/Users/Chris/Sites/_resources/BloodEffect.as</file>
<file>/Users/Chris/Sites/_resources/dropMenu.ZIP</file>
<file>/Users/Chris/Sites/_resources/Example.zip</file>
</structure>
As you can see, there is some nested DIR's - can anyone point me in the right direction to loop through this - my main goal would be to add it all into a multi-dim array where each directory is a new array and it's items are files. Other suggestions are welcome, of course.
Am I going about this totally wrong?
Can anyone point me in the right direction for reading through this xml file?
Looping External Swf File
I am working on a project that includes a basic scene with a few layers. On one layer I have the company logo, and on the other layer I have an action in the first keyframe to load an external swf file.
This external swf file was given to us by the client, and is basically a video converted to swf. However, it doesn't loop. I need it to loop continously. It would loop great if it would just "loop"
Is there any script I could use to add to my current code that will make the swf loop.
ActionScript Code:
_root.createEmptyMovieClip("container", 1);
loadMovie("3.swf", "container");
container._x = 0;
container._y = 200;
I am using Flash mx
GD
Looping Through A Txt File & AttachMovie()
hey out there,
just read the tutorial at http://www.kirupa.com/developer/mx/externaldata.htm and it got me thinking...
i've gotta load of cd track listings i need to show. all the info is in text files, and i can format it to look like:
totalTracks=2
&trackInfo1=Square One
&trackFile1=01_Square_One.mp3
&trackInfo2=What If?
&trackFile2=what_if.mp3
i've been trying to use this actionscript to loop through each track and attach it to the stage:
Code:
stop();
loadText = new LoadVars();
loadText.load("cd1.txt");
loadText.onLoad = function() {
//count the number of tracks
arrayLength = this.totalTracks;
//each movie clip has to be offset
vertOffset = 55;
//loop through each value in the array
for (i=0; i<arrayLength; i++) {
//attach the clip
var tClip = this.attachMovie("trackInfoMc", "track"+i, this.getNextHighestDepth());
trace(tClip);
//set it's y position
tClip._y = vertOffset+(tClip._y+vertOffset)*i;
//set the txt inside the new mc to the current value
tClip.trackInfo.text = this.trackInfo[i];
tClip.trackFile.text = this.trackFile[i];
}
};
the final idea is to turn each loop into a click link that loads the mp3 into a media player - i need to get this working 1st!
at the moment, nothing appears on the timeline.
can anyone see what i'm doing wrong or am i approaching this the wrong way...
anything would be great!
many thanks,
jake
Looping External Mp3 File
hello all!
need some help figuring out how to make my external streaming mp3 file loop. I tried a few things but i'm having no luck. here is my code where everything works fine now minus the code for looping.
thanks for looking.
houston
playList = ["url"];
currentSong = 0;
maxSongs = playList.length -1;
function startStreaming(){
mp3 = new Sound();
mp3.loadSound(playList[currentSong], true);
mp3.onSoundComplete = function(){
currentSong ++;
if (currentSong > maxSongs){
currentSong = 0;}
delete mp3;
}
}
startStreaming();
stop();
stop();
Loading An .swf File Without It Looping?
Hi,
I enjoyed your tutorial on how to build an entire website from flash. The tutorial provided the information on how to load an .swf file by clicking on one of the menu buttons. The example in the tutorial used swf files that were only 1 frame in length.
I've done this for a site that I've created, however, when I load the .swf file it will continue to loop over and over again. The swf files I'll load are contain up to 80 frames and will continue to loop. How do I get them to not loop?
Thanks!
Ted
How Do You Stop SWF File From Looping
Hi all
Not sure if this has been posted before, but I have just started using flash and I have created a simple animation. However, when I test the movie or double click on the .swf file for it, it will play but then loop and play it again.
I was therefore wondering if anyone knew how to stop it from looping. I have already tried inserting keyframes at the end of the movie with the stop option, it doesn't stop it from looping.
Thanks
Problems Looping Wav File
I am trying to make a sound file loop x amount of times while my movie plays, I create a new layer and click in the first frame of it and then drag my wav file onto the stage.Then in properties I check START in the sync options and loop is set to 10. No loop, does anybody know where i'm going wrong.
peace
Looping *.wav File - HELP Needed
Hi, I have problem looping wave file... I am unable to loop it infinitely and to make that seamless loop (no pause between loops, somehow like www.djisaac.com)...
If you can help, I would much appreciate (dunno what that means but sound like I would be thankful ^^) your help.
Looping A Sound File
can anyone tell me why flash adds silence to the beginning and at the end of my sound file. i have a mp3 file looped in sound forge. when import it into flash, it add silences.
why is this being done? and how can i fix this?
Variables From A Text File; Looping Vs. Go To
I've read a few of the tutorials that deal with reading variables from a text file. My problem is that in the ones i've read, it is always recommended to go to and play a particular frame (and then another and another perhaps), which will then check to see if all the variables have been loaded before proceeding to use them. I am new to flash, but experienced with director and lingo. I am a huge fan of sticking to one frame and having all the 'action' occur there through scripts. So attempting to load files, i run a loop to check for the final variable of my file, but unfortunately this loop slows flash and eventually freezes the program before uncovering any variables. Is there no other way but to use 'go to' in checking for my variables?
~julia using flashmx
Looping A Shorter Imported File?
Hi -
Obviously I'm pretty new at this.. I'm trying to figure out how to take a file that is, say, 30 frames total, and keep it looping throughout another movie which is not only much longer but starts and stops.
I'm hoping this is easy..
Thanks
Andrew
Stop A Swf File From Looping Eeep
i just want to know the simple command to stop the swf file from looping, and i dont need to know the html command because i know by going into file>publish settings>html it has a loop stop but thats just for the html content...
anyone,
thanks in advance
HELP Integrating Non-looping External FLV File
I have a slideshow. At the bottom of the stage is a scrolling array of thumbnails. When you click on one, the larger image (which is loaded externally) appears suddenly in a container in the black vacuum of the center of the stage.
This is where I am at now. It looks cool and kicks butt.
I need to have captions for each clip (as per instructions), and I want them to appear to the left of each image, vertically oriented. Then I had an idea:
Make an animation of a screw covering the text at the beginning and winding down to the bottom to reveal the text. I made the animation with Maya, which sucks compared to MAX, and made it into an FLV file.
Each time you click a thumbnail, the image loads AND I WANT the screw animation to play in a new container I made over the text (don't worry about the revealing-text part, yet. I was able to do this.
BUT IT WON"T STOP LOOPING.
Any help?
Download the files to work with yourself and post back to me, if you can. Source animation is copyrighted.
Problems Looping Swf File In Dreamweaver
Hi,
I have made a very simple banner comprised of jpgs transitioning into one another. Exported a swf file and used this file as the banner of a website. I want this banner to loop. I thought it was as easy as clicking *autoplay* to get it to start and *loop* to gt it to repeat, but that doesn't seem to be working.
Somehow it loops back to the first frame stops and goes white and stays white for ten seconds and then starts again at frame 1.
Any help would be much appreciated!
Help How To Stop Looping Loaded Swf File
Hi I’ve looked everywhere for a solution but I simply can't figure it out. Please help if you can, I'm new to flash and I’m coming up to a deadline where I’m am no where near finished thanks!
I'm making a character select menu and have buttons which load an external animated swf which shows a character profile within an empty movieclip.
I've placed the following code on the button
on (press) {
loadMovie("WB1.swf", "container");
Thing is the animation swf "WB1" loops, I've placed stop(); code at the end of the swf animation and even tried mc_WB1.stop(); as well as trying out placing the code in the character menu but no luck.
Any ideas or different approaches.
Thanks
Cs3 Help How To Stop Looping Loaded Swf File
Hi I’ve looked everywhere for a solution but I simply can't figure it out. Please help if you can, I'm new to flash and I’m coming up to a deadline where I’m am no where near finished thanks!
I'm making a character select menu and have buttons which load an external animated swf which shows a character profile within an empty movieclip.
I've placed the following code on the button
on (press) {
loadMovie("WB1.swf", "container");
Thing is the animation swf "WB1" loops, I've placed stop(); code at the end of the swf animation and even tried mc_WB1.stop(); as well as trying out placing the code in the character menu but no luck.
Any ideas or different approaches.
Thanks
[CS3] Pausing A Streaming FLV File Before Looping
//set screen of Flash Player
fscommand("fullscreen", true);
fscommand("allowscale", false);
fscommand("showmenu", false);
//load and loop sound
_root.createEmptyMovieClip("holder",1);
var sound_1:Sound = new Sound(holder);
sound_1.loadSound("atmosphere.mp3",true);
sound_1.onSoundComplete = function() {
sound_1.start(0,999);
};
//load Video
myNetconnection = new NetConnection();
myNetconnection.connect(null);
stream_ns = new NetStream(myNetconnection);
videoFrame.my_video.attachVideo(stream_ns);
stream_ns.play("video1.flv");
//Problem. I want the flv file to pause for 5 seconds before it repeats.
var timeInt:Number = setInterval(checkPauseTime, 5000, stream_ns);
function checkPauseTime():Void {
if (stream_ns.time == 33) { //the flv file runs for 33 seconds
stream_ns.pause();//not sure if this is correct.
clearInterval(timeInt);
}
}
//repeat Video
stream_ns.onStatus = function(info) {
if (info.code == "NetStream.Play.Stop") {
stream_ns.seek(0);
}
}
Looping An External Audio File
Hello all ,I know how to laod external audio file with action script ,but realy I need to loop that external file without importing it to the flash file ,would you please help me which action script should I use .
I appreciate you .
Sincerely yours Mohsena
Keeping Swf File From Looping With Stop ()
Hi there. I’m working with a Flash movie (about 9 MB) and I want to keep the file from looping indefinitely. I’ve learned that I would need to insert a key frame at the end of the movie and after highlighting the new key frame insert stop () action script.
It does the trick and the movie won’t loop anymore.
But now the movie is twice the size, which entails a whole new set of issues.
Is there another way? Where did I go wrong? Why is that?
I’m obviously a novice when it comes to Flash and I’m learning as I go. So any ideas and pointers would be greatly appreciated. Thanks.
Looping Mp3 File And Event.SOUND_COMPLETE
Dear all,
I am trying to find a workaround to the problem of looping mp3 files, basically the silence in the transition (from end to start). I could use wav files but I need to load the file externally, which makes not possible to use wav. So I did this
HTML Code:
var channel:SoundChannel = myMp3.play();
channel. addEventListener (Event.SOUND_COMPLETE, onComplete);
function onComplete(event:Event){
channel = assets.sounds.piston.play();
}
Then after some time a use this code to stop and remove the listener:
HTML Code:
channel.stop();
channel.removeEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
However the problem is still there
Edit: Now I know it is not a problem of flash, it is problem of the mp3 format itself. Any way, is there a workaround?
Thanks in advance
Looping An Existing SWF File With No Source
I have a swf file but not the original source. As a novice to Flash, is it possible to cause the swf file to loop. At the moment it is embedded in an HTML file and I noticed that there is a parameter called Loop. However, setting this to true makes no difference. The movie still stops and does not loop back to the beginning.
Your help would be much appreciated!
Clive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer."
Paul Ehrlich
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: FAQ102-5096
My Flash File Loads Repeatedly.... Looping
My flash file loads repeatedly. It has to stop after loading initial frames. But it doesn't. I guess i need to set the looping to false. I couldn't find it in the flash MX.
Can anybody know how to turn it off?
siva
Keeping A Sound File Looping Between Scenes.
hello all,
I've got a sound clip that I'm using as background music. Just a loop. But I'm trying to get it to play regardless of the scene the user goes to. (i have 5 buttons going to 5 different scenes). I have no clue how to define this in actionscript or just using the interface because I don't know what commands, if any, override scene selections.
Thanks
Html For Flash File .swf, Looping Issue
hi,
I have the following html:
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" type="application/x-shockwave-flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="movie" value="dev1.swf" />
<param name="quality" value="high">
<param name="play" value="true">
<param name="loop" value="false">
</object>
is looping when the page loads, how to disable looping?
Looping Through Images In Flash From Filenames In A Text File
Hi,
What I want to do is have a text file with a list of filenames to pictures. Ex:
/images/pic1.jpg
/images/pic2.jpg
And I want the Flash file to loop through showing these pictures.
How can I do this, making them fade in and out.... I have no idea how to with using the text file. Can anyone help me out and give me some tips (or a short tutorial)?
|