Need help playing 2 SWFs in sequence
I have two SWFs that I want to play in sequence, using a
third SWF (that has nothing besides this code). This should be
simple -- play the first, wait for its timeline to end, then play
the second. Problem is I can't get the timeline to wait.
To load the first movie in frame 1, I have this, which works:
this.createEmptyMovieClip("mcHolder", 1);
var oListener:Object = new Object();
var mclLoader:MovieClipLoader = new MovieClipLoader();
mclLoader.loadClip("first movie.swf", mcHolder);
mclLoader.addListener(oListener);
In frame 10, I want to unload the first, then load the
second. That happens, but w/o waiting. Here's what I have, so far:
stop();
if (_level1.currentFrame == _level1.totalFrames) {
// unload first movie
mclLoader.unloadClip(mcHolder);
// now load next movie
this.createEmptyMovieClip("mcHolder2", 1);
var oListener2:Object = new Object();
var mclLoader2:MovieClipLoader = new MovieClipLoader();
mclLoader2.loadClip("second movie.swf", mcHolder2);
mclLoader2.addListener(oListener2);
I suppose there's something wrong with my If statement, but
what?
So other than the fact that my code was riddled with errors,
it was fine!
After implementing your instructions, I created an interval
that runs the if-then statement 10x a second, then cleared the
interval immediately after the If statement.
One more question, though: the reason I was unloading the
first movie was to clear up some memory. Are you saying that isn't
necessary, since I'm now loading the second movie into a higher
level?
Similar Messages
-
Please I need help with swf folders.
Hi everybody,
I install adobe flash and when i surf on the internet it is
working. But I have a lot of swf flash folders stored in my disk c.
When I go to open them It appears like adobe flash is not install
in my disk to be able to open these files. I only can open this
files with firefox or microsoft explorer. Adobe flash is only
installed in my system and as i told you i am able to see all the
flash folders which i find on the internet when I enter to any
website with flash adobe folders. I installed and unistalled adobe
flash several times. But this is not resolved.
Please I need help.
Many thanksClick here and follow the instructions to change the iTunes Store country.
(82303) -
Need help with swf auto slider...
Hi,
I downloaded a flash auto slider from one site. But I don't
know how tu use it. It has a lot of AS external files. I imagine,
that it should read data from an xml file, and there is AS file,
which calls xml, but I need help, to create that xml, or to show
how to use that auto slider...
This slider is simillar like this one in observer.com main
site (with 4 thumbnails).
Here is all files need in slider.
Click here for
download.
Thanks for any help...you have in the same directory the .swf, html page, flv., and
the actual video? -
Wrt54g i need help playing c&c online it keeps losing connection
i need help bad with getting command and conquer generals to play online because i never had a problem before with connection prior to getting the router but now i can't stay on for more then 30 seconds and i am really frustrated, can u please help me?
Hi…Every game works on different TCP or UDP ports. You need to forward these ports on your router and reduce the MTU to 1365. So get the port no required by your game, forward the port for the IP address of your PC.
-
What Do Users Need to Play SWF
I am creating a training video with Captivate 2 for our
federal government agency. When I'm finished, I'm going to publish
it as an .SWF file. One of the guys who designs on our web pages
asked me what program users need to view the Captivate.swf file.
The answer is apparently is either Shockwave or the Adobe Flash
Player. Or could it be either one? I'm obviously confused about
this. If the users in our federal govt. agency don't have the
correct software, they can't play the .swf file.
Can someone please clarify this issue for me? Do the users
need Shockwave, Adobe Flash, or can both applications play .swf
files?
Thanks,
RobertWhat generation of iPod Touch? If it has the older 30-pin connector, just plug it into the dock. If it has a new lightening connector, you need lightening to 30-pin cable from Apple ($39 online at the Apple US store).
-
Need help with SWF page transitions please :)
I am having an issue recreating something I have seen on
other flash sites... (For example on 2Advanced.com) It is hard to
explain but I will do my best. I am advanced in design, layout,
tweening, and am a beginner to intermediate action scripter. So
even if your solution is a point in the right direction to some
code I could pick up and noodle around with that would be great.
That having been said, on to the issue, it's a 2 parter:
Part 1:
I have a Master FLA (or SWF) containing navigation that loads
secondary SWF pages into movie clip containers for the 5 additional
pages of the site. These load above the Master movie clip masking
it (Navigation floats above) so the loaded pages are sandwiched in
between.
View page in it's current state here:
http://sky.prohosting.com/tk421808/rwip/gallery_MAIN.html
This works ok right now, but I have the SWFs replacing one
another in one single movie clip container. What I would like to do
is similar to shuffling 5 cards... if you want the 4th card down
you pull it out, it goes to the top and slides over the last
visible card on top. So I would like the first page clicked to
slide in covering the master MC, the second page clicked, to slide
in covering that one, and so on and so forth. This would be easy if
the pages were linear, then I could just stack the movie clips, but
since the user will click out of order I need a way to load one
into MC_2 (on top), Then when another is clicked have the MC_2 SWF
move down a level (Swap MC?) to allow the second to slide in above,
and then delete the movie that has moved down into level one
(Bottom) then have this repeat when another movie is clicked. This
way it will look like the page you clicked is always sliding in
over the one you are leaving.
Part 2:
I have no idea how to do this next part but... I believe it
involves a gotoAndPlay. I would like to have animation in the movie
that is unloading after the button for the next page to load is
clicked... in other words, you have loaded a page, you click on
another link, and before the new external SWF page loads, the
current performs a gotoAndPlay where I have animated some
de-constructing swipes that remove the text, shapes holding the
text, and the image. ONLY THEN does it start to load the movie for
the link it selected. I think what I am trying to ask here is how
does it carry the link through the unloading animation until it's
done and then execute the loading of the new external SWF of the
link they just clicked?
I pray this makes sense... If not I would be happy to explain
further. :) Thanks in advance for any help!>> I have no idea how to do this next part but... I
believe it involves a
gotoAndPlay. I would like to have animation in the movie that
is unloading
after the button for the next page to load is clicked... in
other words,
you
have loaded a page, you click on another link, and before the
new external
SWF
page loads, the current performs a gotoAndPlay where I have
animated some
deconstructing swipes that remove the text, shapes holding
the text and them
the image, and ONLY THEN does it start to load the movie for
the link it
selected. I think what I am trying to ask here is how does it
carry the
link
through the animation until it's done and then execute the
loading of the
external SWF of the link they just clicked?
<<
You don't use frames. I'd probably use Fuse for this - which
is a sequencing
engine. (www.mosessupposes.com) You can call a function when
the sequence is
done animating - using what's known as a callBack function.
That'd be the
best way, IMO.
For part one, you could either place mutliple empty movie
clips, or just
create them using createEmptyMovieClip - which is a MovieClip
method, and
then load your swfs into them with MovieClipLoader. You can
use swapDepths
for layer control, in order to have any given clip move above
another, layer
wise.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Need help loading .swfs one by one, in specific order
i have been trying to figure this out for weeks now, and have
even posted on other forums about this, but nobody seems to be
willing to help me. i have a main swf, which is the basis for my
image gallery. once this page loads, a thumbnail should start
loading with a preloader displaying the precentage loaded. once the
percentage hits 100%, the image shows up, and the next thumbnail
starts, and so on. there are 15 thumbnails total that have to be
loaded. each one should load with a 10 pixel gap all around, and i
want to have 5 images load per row. i think i need to create empty
movie clips for each thumbnail to load into, but i'm not sure.
hell, i don't even know how to code this so it will work correctly.
would someone be willing to put this together for me? i am a
beginner actionscripter, and if people simply tell me "add this
line in so this will happen," i will have no idea what to do, so
that is why i need the code put in for me. i'm hoping someone here
is nice enough to do this for me, because being ignored on two
other forums has made me just want to say "screw it."
so PLEASE, can someone help me?
i have uploaded my files into a .zip file. i have only
uploaded 6 of the pictures, so that i can see if the code (that
someone will hopefully make) works when i asked for 5 thumbnails
per row.
file is located here:
http://www.arielseri.com/fla_files.zipi completely understand. i've actually come up with a
semi-working solution!
i have 15 thumbnails total, but when i play the movie, all 15
load on one line and after 5 show up, the rest go off the stage. i
would like to set it up so that there are 5 .swfs per row. i have
one main .swf file, and two .as files. the code for each is as
follows (the ========== is just to separate the code):
main .swf code (called test.swf):
==========
fscommand("fullscreen", "false");
fscommand("allowscale", "false");
// A container clip for our thumbnails
var thumbnails_mc:MovieClip =
this.createEmptyMovieClip("thumbnails_mc",
this.getNextHighestDepth());
// An array holding the paths to our thumbnails
var thumbnailPaths_arr:Array = ["1.swf", "2.swf", "3.swf",
"4.swf", "5.swf", "6.swf", "7.swf", "8.swf", "9.swf", "10.swf",
"11.swf", "12.swf", "13.swf", "14.swf", "15.swf"];
// Our ThumbnailManager
var thumbnailManager:ThumbnailManager = new
ThumbnailManager(thumbnails_mc, thumbnailPaths_arr);
==========
ThumbnailManager.as code:
==========
import Thumbnail
class ThumbnailManager
private var counter:Number = 0;
private var root_mc:MovieClip;
private var thumbnailPaths_arr:Array;
public function ThumbnailManager (target:MovieClip,
paths:Array)
root_mc = target;
thumbnailPaths_arr = paths;
(thumbnailPaths_arr.length > 0)? createThumbnail() :
null;
private function createThumbnail ():Void
var thumb:Thumbnail = new Thumbnail(this,
thumbnailPaths_arr[counter], root_mc, counter);
counter++;
public function onThumbnailLoaded ():Void
if (counter < thumbnailPaths_arr.length)
createThumbnail();
else
==========
Thumbnail.as code:
==========
import AsBroadcaster
import ThumbnailManager
class Thumbnail
public var addListener:Function;
public var removeListener:Function;
public var broadcastMessage:Function;
private var thumbnailWidth:Number = 88;
private var thumbnailHeight:Number = 61;
private var thumbnailOffsetX:Number = 10;
private var thumbnailOffsetY:Number = 10;
private var view_mc:MovieClip;
private var image_mc:MovieClip;
private var loader_mcl:MovieClipLoader;
public function Thumbnail (manager:ThumbnailManager,
url:String, target:MovieClip, d:Number)
AsBroadcaster.initialize(this);
this.addListener(manager);
render(url, target, d);
private function render (url:String, target:MovieClip,
d:Number):Void
view_mc = target.attachMovie("thumbnail", "thumb_"+d+"_mc",
d);
view_mc._x = (d * thumbnailWidth) + (d * thumbnailOffsetX);
view_mc._y = 0;
image_mc = view_mc.createEmptyMovieClip("image_mc",
view_mc.getNextHighestDepth());
image_mc._x = 0;
image_mc._y = 0;
loader_mcl = new MovieClipLoader();
loader_mcl.addListener(this);
loader_mcl.loadClip(url, image_mc);
public function onLoadError (target:MovieClip,
error:String):Void
broadcastMessage("onThumbnailLoaded");
public function onLoadProgress (target:MovieClip, bL:Number,
bT:Number):Void
public function onLoadInit (target:MovieClip):Void
broadcastMessage("onThumbnailLoaded");
==========
can anyone help me out with what code to put where? i have
uploaded a .zip file which contains all of the files here:
http://www.arielseri.com/thumbnails.zip -
Need help in Creating a sequence
Hi,
I need to create a sequence which starts with the value one more than max value of one of the columns in a table. Can anyone help me in this regard?
Eg: I have a table 'User_Details' with one of the columns as 'ID', I need to create a sequence for this table which starts with one more the 'max(ID)' if there are any records already existing.
Thanks,
RaghuAssuming that you have some way to identify which columns of which tables will be populated by sequences in the new release, the you could write PL/SQL code to automatically generate this. In this example I have assumed that you need a sequence created forthe (single) numeric PK column of each table in a particular schema, and that the sequence name will always be table_pk_seq.
DECLARE
l_max NUMBER;
BEGIN
FOR r IN (SELECT c.table_name, cc.column_name
FROM user_constraints c, user_cons_columns cc
WHERE c.constraint_name = cc.constraint_name and
c.constraint_type = 'P') LOOP
EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM '||r.table_name INTO l_max;
l_max := l_max + 100; --just to be safe
EXECUTE IMMEDIATE 'CREATE SEQUENCE 'r.table_name||'_pk_seq '||
'START WITH '||l_max||' INCREMENT BY 1';
END LOOP;
END;John -
Hello. The last few weeks I have come along way in flash,
being new to the whole software. I have watched numerous video
tutorials, one from www.entheosweb.com about creating a simple
gallery.
http://www.entheosweb.com/Flash/video_tutorials/basic_slideshow.asp
So after this, he saves as fla. I want it to be a movie I
embed on my flash website, labeled gallery. I have tried different
ways to do this, import to library. I exported my gallery as an SWF
movie, AND of course, FLA so I can go back and tweak as needed.
When I import the SWF to the library, so I can place it in
the gallery frame of my master movie, it brings in ALL the pictures
and next and prev buttons. It brings in all the frames into the
library, AND the SWF file. When I convert the swf to a movie clip,
and stick it in the page, its there in my gallery page, but its
playing REALLY fast, and all the action script I wrote for this
gallery has gone away. The prev and next buttons don't work. What
am I doing wrong?
I have read where I have to use file>open to library and
import the .FLA, but thats like 17 frames, and not a flattened
movie. What do I do then?
Thanks, I'm SOOOO ready to cry or punch my monitor.You need to use loadMovie();
Do some searches in the forum for that... -
Need help viewing SWF on my site
I'm using DW 8, Cute FTP Pro & GoDaddy.
My first attempt at uploading and properly viewing a SWF file
has resulted in a problem that I can't seem to figure out.
Since I'm new at this, I think that it is a matter of a
missed setting and/or improper or missing code.
The Page and SWF Play properly in the Design view of my DW 8
program however, the SWF Plays Full Screen on the website.
That is, when I enter the page on the site, the page comes up
properly, I press Enter to 'Activate' the Flash control, click the
'Play' button (I have to make 2 Single Clicks), the SWF loads, the
page disappears and then the SWF plays Full screen.
What I'm trying to figure out is how I can make it so that
the SWF plays within the page and not jump into a Full Screen mode.
The Page is located here;
Samantha
Sings
(and the code can be viewed by Right-Clicking on the page,
then > View Source)
I would like to know if someone can help me resolve this.
With appreciation,
Charlesdownload the 8.1 DW updater which will contain the code to
get around the
security issue with Flash. Once you have the update
installed, open the page
in DW and it will update the code. Then reload the page to
the server, along
with the scripts folder it will create.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"CSUjr" <[email protected]> wrote in message
news:f6jlk8$8ah$[email protected]..
> I'm using DW 8, Cute FTP Pro & GoDaddy.
>
> My first attempt at uploading and properly viewing a SWF
file has resulted
> in
> a problem that I can't seem to figure out.
>
> Since I'm new at this, I think that it is a matter of a
missed setting
> and/or
> improper or missing code.
>
> The Page and SWF Play properly in the Design view of my
DW 8 program
> however,
> the SWF Plays Full Screen on the website.
>
> That is, when I enter the page on the site, the page
comes up properly, I
> press Enter to 'Activate' the Flash control, click the
'Play' button (I
> have to
> make 2 Single Clicks), the SWF loads, the page
disappears and then the SWF
> plays Full screen.
>
> What I'm trying to figure out is how I can make it so
that the SWF plays
> within the page and not jump into a Full Screen mode.
>
> The Page is located here;
>
http://www.journeyintoheaven.com/SamanthaSings2.html
> (and the code can be viewed by Right-Clicking on the
page, then > View
> Source)
> I would like to know if someone can help me resolve
this.
>
> With appreciation,
> Charles
> -
Need help please swf html not working right
Hello everyone,
I created a game in keynote for my HS kids with links to the right slide according to whether or not they are the correct answer.
I exported it to flash. I got two files xxx.swf when I click on this on my desktop it opens in safari with a black background and it plays.
the second file is xxx.html when I click on this on my desktop it opens in safari and plays in a smaller frame with a white background.
So I uploaded my swf to idisk and I copied the content of the HTML in a snippet. I thought it would work. It does not.
I could not care less about the background I just want one or the other to work but I can figure it out.
Thank you in advance for your help
MireilleUpload the SWF and the HTML file to your website folder in Finder/Go/iDisk/My iDisk/Web/Sites.
Create a link on any web page to the HTML file....
http://web.mac.com/username/WebsiteName/xxx.html
... and select "open in a new window" if you want.
Clicking the link should then open your movie to play in a new window. -
Need help: playing songs in order, strangewindow message, upgrading I-Tunes
I have 2 situations I hope someone can help me with:
1: PLAYING SONGS IN ORDER; WINDOW MESSAGE
I have CDs of music that when I load them onto my pc laptop the song names don’t come up—each song lists as “track 01” “track 02” etc.
When I try to play the album thru I-Tunes on my laptop, the songs won’t play in order. i.e. ALL the “track 02”s will play before going to “track 03,” then ALL the “track 03”s will play, etc. So I made a playlist of each CD.
Now when I try to play the Playlist, I get a window message that says, “The song “Track 01” could not be used because the original file could not be found. Would you like to locate it?” I can choose ‘yes’ or ‘cancel.’ YES takes me to folder selections. I find the song and click on it and then it plays.
There must be an easier way. I don’t want to search for each song one at a time in order to play an entire CD in order.
2: UPGRADE
I need to upgrade. I have I-TUNES 7.0.2. I went online to apple.com and couldn’t find any upgrade option, so I clicked on “download I-tunes”. I got a window that says “download complete.” But how do I tell if it’s really installed? Where do I go on my computer to see what version number it shows?
Any help is appreciated,
Carolyn in Las Vegas2. Help->About iTunes
1. You have done something that has confused iTunes about the location of the files in its library. Without knowing what happened, it's hard to make a specific recommendation, but if you moved your files around manually, move them back, and then, if you want to change the location, do it only by setting it in iTunes preferences and then using Consolidate Library. -
Need help playing sound via AS3
Hi all,
First time I have tried playing a sound through AS3. I found an example from kirupa, but for whatever reason I can not get it to play the sound. I'm not getting any errors etc, and I have my .wav file inside the same directory as my .fla/.swf I have tried playing from inside the flash pro interface and from a personal webpage server.
Is there something that I am missing? I just have a action layer with the below code inside the first from of the movie.
var soundClip:Sound;
function init() {
soundClip = new Sound();
soundClip.load(new URLRequest("mysound.wav"));
soundClip.addEventListener(Event.COMPLETE, soundLoaded);
soundClip.addEventListener(ProgressEvent.PROGRESS, soundLoading);
init();
function soundLoaded(e:Event) {
soundClip.play();
function soundLoading(e:ProgressEvent) {
// preloader information goes here
Any help would be greatthanks for that kglad that solved that problem. what I am trying to do is play the sound 1 time for a session only. I'll have multiple pages that use the same .swf, I just want the sound to play 1 time when the user first visits and then not to play for all other requests.
This is an example I found, to you does it look right? I'm not getting any errors, but I'm not getting the sound to play either.
import flash.net.SharedObject
//Use anything in place of "sounds"
var so:SharedObject = SharedObject.getLocal("sounds");
//Check if the sound has not been played
//Use anything in place of "specificSoundPlayed"
if(so.data.specificSoundPlayed == false)
//Play the sound
var snd:Sound = new Sound();
snd.load(new URLRequest("my.mp3"));
snd.play();
//Set the shared object property so we know the sound was played
so.data.specificSoundPlayed = true; -
Help I am new, and this is my first big job. The basics: all
the files uploaded to the website, and they are in the same folder:
the html file which is the web page, the swf file, the flv file and
all of the necessary players. I created the video file with
Macomedia Flash 8 Video Encoder. I have 2 animations on the same
page, my swf and the video.
When I PREVIEW the page locally on my computer using either
the dreamweaver preview or previewing in a browser, the swf and the
video play fine. However, when I go to the site on the web, the
video does not play. One of my swf files works fine the other file
the flv does not work at all. There is a space where the flv should
be, however the video does not play.
I am new to this stuff please help. What am I doing wrong?
Here is the address to the page:
http://www.ad-e-learning.com/test2.html
Text
I've also attached the code:you have in the same directory the .swf, html page, flv., and
the actual video? -
Hello,
I have a swf file which is 800px x 600px however I have
another swf file which is 475px x 750px. I wish to link these two
files together however I understand that this will be a problem.
Does anyone know how I can link together two swf files which
are of different size without there being a visual problem?
Is it possible to change the dimensions of the screen for one
swf file and then change it back when another one plays?
Any help would be great
Cheers
Garythanks for quick respond
So the first of all my main.swf would load, within it i would have a button. If i click on button will take me to frame 40 ( just example ) where i will have this.loadMovie("first.swf"), when this file will be loaded i want to have other button with in the first.swf which will take me back to main.swf and now you are suggesting to use this.removeMovie("first.swf")?
I am not sure if i got you answer right
Thanks again for help i am quite new to ActionScript as you can tell.
Maybe you are looking for
-
Hi PI Experts, IDoc to AS2 (HTTPS) scenario. I am using AS2 Rece Channel with HTTPS Transport Protocol. PI Receiving the data from ECC and while sending the data from PI to Third Party Partner getting below error .Please help me on this issue.I wil
-
SXMB_MONI : Error in Persistence Layer : XML Message Not Found
Hi Team, There are some messages in our Production system and is in Scheduled state in SXMB_MONI and when we try to re-process those messages, we are getting message : Error in Persistence Layer and when we double click on message, we are getting the
-
HI...similar problem to my recent post...cannot access this printer either..installation produced an error message a below also...grateful (very) for any help Process: HPIO Trap Monitor [1249] Path: /Library/Printers/hp/hpio/HPIO Trap Monitor.app/Con
-
Hi I want to buy a PowerMac G5 but am stuck on which model to try and buy off eBay. I want to buy a PowerMac in the short term whilst i save for a Mac Pro - so that all i need to do is swap the tower (..ish) I am a 16 yr old student and use the follo
-
Synchronous Java Proxy Server template - filling reponse message elements
Hi ! I'm writing a java proxy server for a synchronous interface. I'm somehow new in java...and I don't know how should I create elements for my response message inside the java method used to process the request message. The response message format