Looping a swf movie
ive been looking the other posts involving this and they just
wont work for me,
all i want to do is loop my little movie for my website but
it just wont loop ive clicked the loop button and all that but it
just wont loop, can anyone please help , ive imported my movie to
the stage and selected progressive download etc and the movie is
there its just what to do next
You mean you want to loop an FLV, correct? That is more
involved then just looping a movieclip. Make sure you put a stop
action on the frame and follow my directions from the other threads
about giving the component an instance name of vid and using the
actionscript...
var vidList : Object = new Object();
vidList.complete = function() {
vid.play();
vid.addEventListener ("complete",vidList);
stop();
Similar Messages
-
Replace one swf movie with another
I have a flash movie on my web page and I have made some of
the text inside the movie into buttons. The movie only takes up a
portion of the page. I would like to replace the movie with another
movie when somebody clicks the button.
I'm sorry if this is a really basic question but I have spent
ages trying to find out how to do it and I keep getting an error
when I try to search this forum.
Thanks for your help.Thanks for your help so far. I seem to be having more and
more trouble though!
I have a swf file (sunnyserv.swf) that contains a pre-loader
and then opens another swf file (downturn.swf). The downturn.swf
contains the buttons that I want to listen to, and swap out the
movies.
If I open sunnyserv.fla in flash and test the movie, it loads
downturn.swf, listens to the mouse click and runs the
communication.swf movie (although it doesn't clear all of the
children from downturn.swf).
However, if I export all three movies and open my web page
nothing happens! If I change the xhtml to load downturn.swf that
works ok. Any idea why it would work in test movie but not when
loaded into an xhtml page?
Also, can you see a reason why all of the children are not
being removed in the commClickHandler function?
Code below:
sunnyserv.swf (container)
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest("downturn.swf"));
function loop(e:ProgressEvent):void
var perc:Number = e.bytesLoaded / e.bytesTotal;
percent.text = Math.ceil(perc*100).toString();
function done(e:Event):void
addChild(l);
removeChildAt(0);
percent = null;
downturn.swf
import flash.events.MouseEvent;
import flash.events.EventDispatcher;
import flash.display.MovieClip;
var l:Loader = new Loader();
// add listeners for each button
btn_communication.addEventListener(MouseEvent.CLICK,
commClickHandler);
function commClickHandler(event:MouseEvent):void {
for(var i:int = 0; i < numChildren; i++){
removeChildAt(i);
l.load(new URLRequest("communication.swf"));
addChild(l);
stop();
Hope somebody can help! -
Using InDesign CS4, I've placed a SWF movie. In Object > Interactive > Movie Options, I chose to embed the movie in PDF, choose a JPG file as the poster, Mode: Play Once Then Stop, and turned on Show Controller During Play.
Exporting the InDesign document to PDF, choose the Smallest File Size preset, Compatibility: Acrobat 8, Include Interactive Elements, and Embed Multimedia.
The problems are that in the resulting PDF file:
the controller bar does NOT show
the movie loops repeatedly instead of playing only once
Can anyone help?You could always use the Change Property behavior to swish
that layer
offscreen to the top left, e.g., change "top" to -10000 and
"left"
to -10000.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"lsb235" <[email protected]> wrote in
message
news:e3ebpf$qoq$[email protected]..
> Tricky question for you.....
> I've placed an swf movie in my main layout table and
when I change the
> visibility of my layers, it doesn't hide like everything
else does.
> Can it be done?
> It always appears infront of the upper most layer.
> Cheers
> Laini
> -
Flash Player not showing SWF movie
Hi Everyone-
First off thank you for anyone that is willing to send advise my way.
I am using Windows 7 - Indesign CS5
I have created a SWF movie exported from Flash with playback component.
I have imported that SWF into Indesign CS5 and created an interactive SWF with a SWF movie embedded.
This SWF works beautifully on my machine and others that have access to the same server - however when I remove the file with Resources foldes to another machine/ location the SWF movie will not display. It DOES display the playback component (looping continuously) but NO SWF movie.
My guess is that I am missing a file in the Resources folder but I am clueless as to what additional file I could be missing.
Thanks for your help!Thanks! I posted my issue there first......no one has an answer as of yet.
-
RH 7 - How can I get .swf movies to work inside CHM output on Windows 7
Hi RHelpers,
I'm using RoboHelp Html (RH 7, latest patch) on my Win 7 64-bit machine to provide a HtmlHelp (CHM) output.
Now that we're close to releasing, I've been doing some testing, and I've noticed that my SWF movie files do not play inside of Windows 7 when viewing them inside of the CHM file. It keeps asking to install the Adobe Flash Player. But I've already clicked Yes several times to that message, and it still doesn't play the file. I've even manually downloaded and installed it as an administrator, restarted my system and still no go. It just shows a red X in the container where the movie should be playing.
However, viewing the same topic inside of RH's preview window (or inside a browser) seems to work fine. Also, I've copied and pasted the problem CHM onto a virtual machine running 32-bit Vista, and the movies display fine there. This tells me it's something to do with how how compiled files are handled in 64-bit environments.
Has anyone else experienced this? Any solutions out there?I see the answer here:
http://forums.adobe.com/thread/781427?tstart=2
Also I verified that our software does use the 32-bit hh.exe so I'm only seeing this when running the help by itself, outside of our software. That's good news. -
Can an swf movie be opened on a specific frame?
When I call up an Flash-generated swf movie in its own
browser window via a navigation bar button, it always open on its
first frame. Is there a way to tell the browser in conjunction with
the getURL command to open at a specific frame other than frame 1?
I can't find an Actionscript code sample that allows this while
using getURL. Or is there some other way -- e.g. appending the swf
file with frame number in its HTML page in some way, using
Javascript, FSCommand, etc?
JodyMaybe this will help
http://www.adobe.com/devnet/flash/articles/deep_linking.html -
Hi,
I've been working on a CD-Rom presentation with Flash and so
far I was mostly using AS1 and AS2 to built it. I started to learn
some AS3 for a part of the presentation but now I'm running into
issue, here's the main one:
I'm loading different SWF movie one on top of the other, and
unloading them as needed, now this is very easy with AS1 (loadmovie
and unloadmovie function are simple to use), but when I'm loading
my file built with AS3 I can't figure out how to unload it. The AS3
movie is loaded on the Level 5, I just want to make sure that when
I'm unloading the file it's not unloading everything else.
Can anyone help me.
Yann PoirierDisregard, I found my answer
-
Using loadVariables with nested SWF movies
I have a .swf with a dynamic text box that loads an external
text file. Using both loadVars and loadVariables I can see the that
text is loaded when i play just that file but when i nest the .swf
into a movie clip in a container movie the text doesn't appear.
I've used many different path and variable variations but with no
joy. The nested .swf is loaded using this syntax...
loadMovie("storyboard.swf",'_root.mainmask.inside_loader');
the syntax I'm using on the storyboard.swf movie to load the
text are variations on
loadVariables("news.txt" this);
I've tried playing with _parent and _root to get from the top
level of the container movie to the nested one but can't hit the
spot.
Thanks in advance for any help.if you use loadVariables() (AND you correct your syntax) in
storyboard.swf, then you should check to see if the variables are
loaded before assigning their value(s) to the text property of your
textfield. if the textfield is on the same timeline that contains
the loadVariables code, you don't need to use an explicit path.
in any case, you can always use trace(this) on
1. the timeline where you want to put your code assigning the
text property and
2. on the timeline that contains your loadVariables()
statement and
3. on the timeline that contains your textfield.
with those three trace statements you can get explicit help
for the correct path if you're still having trouble. -
Problem in importing swf movie
I imported an SWF movie into my captivate project. The problem is that when I pause the project then the movie is not paused. How can I solve the problem?
Hi there,
Welcome to Adobe Community.
May I know how have you inserted the movie file? Is that a video?
Also which version of captivate you are using?
Thanks! -
Swf movie starts before preloader is finished
Hi,
I tried to implement a simple preloader for an existing swf movie. I've created a new flash document and added the Loader as well as a ProgressBar component. In the action script of the key frame 1, I implemented the following:
import mx.controls.ProgressBar;
loader.contentPath = "myMovie.swf";
pBar.setStyle("themeColor", "0xF49417");
pBar.setStyle("color","0x3D566F");
pBar.labelPlacement = "bottom";
pBar.label = "LOADING %3%%"
pBar.scaleY = 150;
pBar.conversion = 1024;
pBar.source = loader;
pBar.mode = "polled";
loader.load();
The problem is now that the movie starts playing (i.e. its sound) before the progress bar is completely finished. This usually happens around 80%. How can I avoid that the movie starts before the progress bar reaches 100%?
Thanks,
PatrikThanks for your replay! I added an empty keyframe to the first scene of the existing flash movie with a stop() action in it. Additionally, I modified the preloader with an action listener that is called in case the movie is loaded completely. The action script of the preloader does now look like follows (without sytle settings):
import mx.controls.ProgressBar;
loader.contentPath = "myMovie.swf";
var pbListener:Object = new Object();
pbListener.complete = function(evt_obj:Object) {
trace("movie loaded");
play();
pBar.addEventListener("complete", pbListener);
pBar.source = loader;
pBar.mode = "polled";
loader.load();
It seems now that this play() does not reference to the swf movie (myMovie.swf) with the stop in the first frame since the movie does not start playing after its loaded. How do I reference the play action to the loaded movie?
Thanks,
Patrik -
Keep image size unchanged when fullscreen the swf movie
Hi,
i am including a image on SWF file (using Flash CS4) i want images to keep its original dimension whether user fullscreen the SWF movie or play it on windows.
currently i do not have any action script or coding on my .fla file. when i publish the movie and fullscreen it, the image i put in fla file get all stretched out and blur. Please help me to figure out how to keep the dimension unchanged.
Thank youAll you have to do is to set the scalemode of the stage to "noscale"
In AS3 add the following code:
import flash.display.StageDisplayState;
stop();
stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;
There is a similar code for AS2, i think infact its the same this
Stage.scaleMode = "noScale";
Thanks
Karthik
P.s. if this post is helpful, please change the thread to answered. -
How to keep new cursor on top of swf movie
I've got a website I made in Flash, and on the main page I'm doing two things: playing an external SWF movie file and changed the cursor to a custom shape. The cursor works, but it won't show up on top of the movie; it keeps going behind it when I try to go over it. How do I fix that?
On my main page I have the simple code of:
loadMovieNum("home.swf",1)
stop();
Mouse.hide();
startDrag("cursor", true);
"home.swf" is the movie that's playing that takes precedence to the cursor. -
FLV video to appear in front of SWF movie
Hi, I have a FLV video with a transparent background that plays in front on a HTML based website perfectly fine. But when place in front of a website that's a SWF movie in a HTML shell it comes up fine in Mac based browsers, but appears underneath the SWF file in PC based browsers. Does anyone know how I can get the FLV to appear in front of the SWF in alll browsers?
Have you tried setting the wmode="transparent" in the html embedding code for the swf file. That normally causes an swf to drop down to page level z-wise. Normally Flash will otherwise sit above other content.
-
Robohelp 10 & scalable SWF movies
Hello everyone!
I've inserted *.swf movies into my topics, and pubished a browser based help. The issue I'm having is the videos stay their default size no matter how I resize the browser.
I have edited the HTML to
<object id="object1" data="Navigate A.swf" type="application/x-shockwave-flash"
style="border: none;" width="100%" height="100%">
<param name="movie" value="Navigate A.swf" />
<param name="quality" value="high" />
</object>
however when I do this the movies shrink to a super small size, and don't resize at all.
Any ideas on how to get my movies to scale when a user resizes their browser?
The main reason I need to do this is to accomodate for users' different screen resolutions.
Thanks in advance!
Jerry**UPDATE**
I figured it out, the SWF publish settings wouldn't allow it. Nothing to do with RH10. Everything to do with Captivate 6... -
¿How i make a Browser Detect swf movie?
Hi, i use a simple embed swf movie in one of many pages i own, but recently I build a new page in html5. But i tested in Internet Explorer and doesnt work well. What i need its a script code in AS3 to use in my swf movie that detect the browser and if the browser its IE9 load an old page, but if its other browser is like mozilla or chrome, load the new page in html5.
It is possible to do that in AS3 right?
Thanks to all
FirefawxYou can simply say "I want an animation to play before it decides which page to load" and we'd get it. So you want to show your logo animation.
Use the tutorial link I gave you and look at the code. It is a full example of browser detection using both actionscript and javascript. ActionScript needs JavaScript to get the information on what browser it is. All of the information and code examples are there to show you how to detect the browser.
Spanish translation:
Usted puede simplemente decir "yo quiero una animación para jugar antes de que decida lo que se cargue la página" y que sería para nosotros. Así que usted quieremostrar su animación de la insignia.
Utilice el enlace tutorial que te di y mirar el código. Se trata de un ejemplo completo dela detección del navegador utilizando tanto ActionScript y JavaScript. ActionScriptnecesita JavaScript para obtener la información del navegador que es. Todos los ejemplos de la información y el código están ahí para mostrar la forma de detectar el navegador.
Maybe you are looking for
-
Creative X-Fi2 A/V cable problems
I received the cable in the post today, when I tried it out on the TV, the audio & video was distorted beyond the point of watchable, I tried switching the playback between PAL, NTSC & NTSC-J but with no progress, I've tried it on different TVs with
-
Compressing blob field in an existing table
Hi, I have a table of 1.5TB that contains blob field in binary format. I want to compress the BLOB field to save disk space. The oracle version is 10.2.Can anyone help me out. Thanks in advance. Siddh
-
Dynamic charting in J2ME using SVG - based on SQL query from a web server
Hi I am creating a J2ME application which needs to generate dynamic charts for the user. The data for generating the charts is stored on a web server. In order to have minimal computations on the mobile device, I want to generate the charts on the we
-
64-bit version of FCP coming???
So since uncle Stevie demo'd 32-bit and 64-bit apps side-by-side at WWDC last month, I'm wondering if they intend to ship a 64-bit version of Final Cut in our lifetimes? I mean a 2.5GB memory limitation and other limits in the coding could be elimina
-
Confirmation saving in Goods Movemnt TAB
Hi, This is related to order confirmation. How to make the order confirmation saving mandatory/not mandatory for co11n trx in goods movement tab and how to see the component list in that TAB. where to configure this. Please let me know how to do this