[FCS3]Checking External SWF In Levels
Hello all.
I'm new to working with levels, and I'm trying to test which .swf is currently loaded into a certain level. Is there a way to do this?
What I'm attempting is to load content for a portfolio into the main swf. However, if the "home" content is already loaded and the "home" button is clicked, I don't want it to reload.
By the way, I'm using AS 2.0
Also, is there an easy way to split the scenes in a .fla into separate .fla's?
Thank you for any advice you can give me!
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 05-16-2008, 03:57 PM
View Complete Forum Thread with Replies
Sponsored Links:
[FCS3]How To Call External SWF's
I am creating an eLearning class using Flash CS3.
I would like to use basic controls to control the class (i.e. play, next, back). What I am trying to figure out is how to each new slide.
Example: At the main menu screen users have three different chapters they can go to, each chapter is a seperate .SWF file. How do I call this SWF so that it loads and plays, without it being in a seperate FLV playback window?
Anybody have any ideas on how to do this? I am sure it is possible, but I am new and ignorant.
I do not want to use the slide show application becaquse it only supports AS 2.
View Replies !
View Related
Levels & Checking If They Are Loaded
Hi Guys (I am a newbie so bear with me )
My website is made up of lots of graphics loaded on to separate levels:
Frame 1 looks like this:
loadMovieNum("graphic1.swf", 1);
loadMovieNum("graphic2.swf", 2);
loadMovieNum("graphic3.swf", 3);
loadMovieNum("graphic4.swf", 4); etc
Frame 2 is blank
In frame 3 the following checks to see if the 1st level is fully loaded:
if (_level1._framesloaded < _level1._totalframes) {
gotoAndPlay(2);
} else {
play();
}
If it is loaded it goes to the next frame and the same thing happens for level2 and so forth.
My problems are:
1. I am rubbish at actionscript!
2. It sometimes doesnt load all the levels as if it is going to the next frame even if the level is still loading.
My framerate is 60 could this be causing problems?
If I was good at actionscript I would have one frame that loads all the animations and checks to see if they are all loaded.
Please help, sorry if I am not making sense!
View Replies !
View Related
Checking If Content In Various Levels Are Preloaded.
Hi,
I am faced with a bit of a dilemma, where I am trying to check to see if the content on certain levels are loaded.
Level 0 is set to load 3 swf's into 3 levels (1,2 and 3). I have a preloader on the first frame of each swf. When they are all equal to 100%, Level0 will then begin to play swf's sequentially, starting with 1.
on level0 in the first frame:
the clips are loaded into their designated levels.
on level0 on a MC, I have attached:
onClipEvent (enterFrame) {
if (_level1.pct==100 && _level2.pct==100 && _level3.pct==100) {
// do something, play the first swf.
}
}
// pct a name of the varible in the preloader script present in each swf.
// pct = Math.round((_root.getBytesLoaded()/tkb)*100);
This is what I have tried so far and I am unable in getting it to work successfully. Am I on the right track?
Can someone help me out with this. Any help would be greatly appreciated. Thanks in advance.
kas
View Replies !
View Related
Problem Checking If Movies In Other Levels Are Loaded
Hi. I am trying to check and see if all the sub-movies are loaded before I move onto the next frame in my movie. The sub-movies are loaded in levels 1 through amt (amt is a variable).
This is my code (on frame 11):
// check all levels to make sure they're all loaded
for (i = 1; i <= _root.amt; i++)
{
theClipLevel = eval("_level" + i);
if (theClipLevel._framesloaded < theClipLevel._totalframes)
{
// if not loaded, go back to frame 10
gotoAndPlay(10);
}
}
However, the code doesn't seem to work. It goes to frame 12 even when the movies aren't totally loaded. It's confusing, I don't know why. I don't think this line is working:
if (theClipLevel._framesloaded < theClipLevel._totalframes)
any help will be greatly appreciated...
~jimmy.
View Replies !
View Related
[fcs3] External Mp3s, Multiple Play Buttons,1 Stop Button With Fade Out - Please Help
Hey Guys,
I've been trying to set up an Soundboard as a personal project where I have about 30-40 buttons, which each are linked to an external mp3.
Currently I have it set up as 40 Separate Play and Stop Buttons using the code below. Now I'm not sure how to do this next part, but how can I modify this code, to have only 1 Stop Button for 40 Separate External Mp3 Files. (Please Don't Suggest stopAllsounds(); like someone did on another forum, that's not want I wanted)
I First Posted this on here on August 9th, and had no help, and I'm hoping that this time I can get some help for this.
On the Frame/Button:
Code:
Sound = new Sound(this);
theme.loadSound("song1.mp3");
on(release){
theme.stop();
theme.start(0,1);
}
On The Stop Button:
Code:
on(release){
this.onEnterFrame = function(){
so = _root.theme;
rate = 5;
newVolume = so.getVolume() - rate;
if(newVolume > 0) {
so.setVolume(newVolume);
} else {
so.setVolume(0)
so.stop();
so.setVolume(100);
this.onEnterFrame = null;
}
}
}
on(keyPress "<Space>"){
this.onEnterFrame = function(){
so = _root.theme;
rate = 5;
newVolume = so.getVolume() - rate;
if(newVolume > 0) {
so.setVolume(newVolume);
} else {
so.setVolume(0)
so.stop();
so.setVolume(100);
this.onEnterFrame = null;
}
}
}
View Replies !
View Related
Checking What Frame In External Swf
i have a movie with an empty movieclip container that i am loading an external swf into. I have four different swf that will be loaded into that container. When the 1st swf is finished play (reaches the last frame) i want to loaded the second, when the second.swf reaches the last frame...load the 3rd.swf. and so on.
i want to be able to check each movie to see if it is the last frame.
basically.
if (lastframe of 1st.swf)
load the next one.
i usually work in flashmx and am not that familiar with flash 5. this project requires flash5.
can someone help me.
one thing i tried was to set a var on the last keyframe of each exteral.swf and then in my main movie check for that variable...cant get that to work for some reason.
can someone help me here?
what i have now is this...and have tried variations of this.
stop ();
loadMovie ("motorcycles.swf", "loader");
clip1playing = "true";
// just to check variable
trace ("clip 1 playing "+clip1playing);
if ("motorcycles.swf",_currentframe == 266) {
clip1finished = "true";
trace ("clip1 finished finished playing "+clip1finished);
}
please hep me! pulling hair.
View Replies !
View Related
Checking Bytes Loaded For External Mc
FlashMX
I am trying to build a preloader that runs everytime an external mc is loaded into a placeholder mc on the main timeline. As is I have preloaders built into the begining of each movie clip. The problem is that my progress bar is getting it's scale from the main timeline instead of the movie that is loading so it is always at 100%. Either I want to know how to get it to work as is, or I would like to know if there is a way to build a preloader in an external movieclip and have it run everytime data is loaded into the targetLayer. Thanks in advance.
View Replies !
View Related
Checking If External JPGs Have Loaded
hey people,
Ive got a script which takes external jpg images from a folder and loads them into a movieclip.
I want to know how can i, if possible, check to see if the images have been loaded.
I want to have a dynamic text field that says "loading" if a jpg is being loaded and "end of gallery" after the last image is displayed.
thanks
View Replies !
View Related
Checking External Server Connection.
Hi guys and gals,
I've got a swf called checkconnection.swf and basically this runs off and checks to see if it can get info from our online catalogue servers, however this swf is hosted at our IPS and our servers are here at our building on a different network with a different net address.
When I run the program from the flash program it works fantastic. When I transfer my swf over to our ISP it fails. Can flash check an external source?
So lets say, for example my flash file is hosted at myISP.com and my server is at myServer.com can flash view, post and get things over a different domain? Is there a way to force flash to do this?
Thanks to anyone that can help.
View Replies !
View Related
Checking External Server Connection.
Hi guys and gals,
I've got a swf called checkconnection.swf and basically this runs off and checks to see if it can get info from our online catalogue servers, however this swf is hosted at our IPS and our servers are here at our building on a different network with a different net address.
When I run the program from the flash program it works fantastic. When I transfer my swf over to our ISP it fails. Can flash check an external source?
So lets say, for example my flash file is hosted at myISP.com and my server is at myServer.com can flash view, post and get things over a different domain? Is there a way to force flash to do this?
Thanks to anyone that can help.
View Replies !
View Related
Checking If External Movie Is Loaded
ok - this is killing me. have a timeline and i want that time line to sit on the first frame until 2 external movies has loaded, and then play. You can see in my code below that I'm loading my movies into empty clips and then checking to see if the bytes loaded = bytes total, but it's not working - the timeline is playing anyway.
The progress bar with the same scripting is working fine, but for some reason this isn't...any thoughts why?
ActionScript Code:
this.onEnterFrame = function(){
if (_global.movtoload==undefined){
_global.movtoload = _global.home;
}
if(_global.flag == true) {
_root.oldphoto.overmain.mainload.unloadMovie();
_root.oldphoto.overmain.image.unloadMovie();
_root.oldphoto.overmain.mainload.loadMovie(_global.movtoload);
_root.oldphoto.overmain.image.loadMovie("loadimg/image"+_global.pic+".jpg");
_global.flag = mypause;
trace("load");
}
if (_root.oldphoto.overmain.image.getBytesLoaded()==_root.oldphoto.overmain.image.getBytesTotal() && _root.oldphoto.overmain.mainload.getBytesLoaded()==_root.oldphoto.overmain.mainload.getBytesTotal()) {
this.play();
_global.bkload = false;
_global.contentload = false;
_global.flag = false;
delete this.onEnterFrame;
trace("DELETED");
}
}
stop();
View Replies !
View Related
[F8] Talking About Levels..controling Levels, Loading Swfs Into Levels, Etc
Hello, people!
I have a little tweaking i need to adjust.
To get to the point:
if (1==1)
{
loadMovieNum("test.swf", 3);
_level3.gotoAndStop(10);
}
else (...)
The problem is that on the if cycle, it doesnt consider the level as being loaded. I've tryed a while to wait for the level to load, nothing worked.
I've tested with a button to see if the level exist and is possible to control it and it is, with the onRelase.button etc etc.
Any ideas?
Ricardo
Thanks!
View Replies !
View Related
Checking For Loaded External Text Files
hello - need some help on external .txt files.
i'm loading a load of variables up from a text file to create a dynamic links page.
how can i make a simple loop that checks whether or not the text file has loaded, before moving onto attaching my links and displaying stuff?
there needs to be a pause between the two events (loading and displaying) as when i tested it, it doesn't execute the display function until it is bumped a few frames ahead of the loadVariables() script.
cheers in advance
vince
View Replies !
View Related
Preloader Checking Root And External File
Hi
I have a movie (bookMovie) in the main scene with an external swf attached to it.
I have a preloader on the first frame of my timeline. I want the preloader to check both the root and the external file before it starts.
here is the sample of my code (it's actually an old solution posted on macromedia forum, but somehow it doesn´t work!):
this.onEnterFrame=function(){
if(((_root.getBytesLoaded()+_root.bookMovie.getByt esLoaded())==
(_root.getBytesTotal()+_root.bookMovie.getBytesTot al()))&&
(_root.bookMovie._url!=this._url)){
gotoAndPlay(1);
this.onEnterFrame=null
}
}
can anybody please give me a hint??
thankx so much
vbpaixao
View Replies !
View Related
Checking The Current Frame Of An External Loaded SWF?
Hello,
I have a main movie and into it I am loading an external SWF, using loadMovie("myclip", target_mc). I want my main timeline to be able to tell where my loaded movie is, and when the loaded mc (myclip.swf) reaches frame 20, i want my main timeline to do another action (like, start playing a sound). How do I accomplish that? How do I check what is the current frame of the external mc??
Thank you.
View Replies !
View Related
Loading An External Swf And Checking # Of Frames Loaded
Hi,
I'm developing a (sort of-) document viewer in Flash/AS3 and I have to load an external movie where every frame represent a page in the document.
While loading the entire document, I want to show the frames that are already loaded but I can't find a way: with the Loader class and the ProgressEvent.PROGRESS event I can check only the number of bytes loaded (that isn't useful for my purpouse) and it seems that I can't convert the Loader content to a MovieClip before the loading is complete...
Can someone help me?
Thanks!
View Replies !
View Related
Checking For External Clip Filesize And If It's Loaded
I don't need a percent loader but I don't want the movie to progress if the external clip isn't loaded. Is there a way to use getBytesTotal() and getBytesLoaded() for an external clip from the main 'loader' movie?
Here's what I had in mind
Code:
loadMovie("group1.swf", _root.fadingPeople);
totalBytes = _root.fadingPeople.getBytesTotal();
loadedBytes = _root.fadingPeople.getBytesLoaded();
if (totalBytes != loadedBytes) {
_root.gotoAndPlay(1);
} else {
_root.movieFrame.gotoAndPlay(2);
_root.gotoAndPlay(3);
_root.accordionMenu.index1.custCare.gotoAndPlay("start");
}
So I load the movie, set the variables and then do the check but obviously in the above code I'm checking against an empty movie clip (fadingPeople) that would load instantly.
If I need to elaborate, let me know. Thanks for any help.
View Replies !
View Related
Loading An External Swf And Checking Number Of Frames Loaded
Hi,
I'm developing a (sort of-) document viewer in Flash/AS3 and I have to load an external movie where every frame represent a page in the document.
While loading the entire document, I want to show the frames that are already loaded but I can't find a way: with the Loader class and the ProgressEvent.PROGRESS event I can check only the number of bytes loaded (that isn't useful for my purpouse) and it seems that I can't convert the Loader content to a MovieClip before the loading is complete...
Can someone help me?
Thanks!
View Replies !
View Related
Levels?...external .swf
Having a "stinker" of a time working on my personal site.
My situation:
Main layout has some buttons that call seperate external .swf's into level 1 (or whatever)
Each section (external .swf) has the same intro sorta..basically a preloader animation type thingy... BUT they all start out sort of "masking" in...so you see the initial "bacground" image..then when you click on button 1 it gradually comes in "masking" over the initial wallpaper. This is all good so far..that is the effect I would like to keep...the "masking" in over the initial image.
But when I click on the next button..the same should happen...but it doesnt because it is an external .swf loading into the same level (and hence unloading the previous button 1's external .swf)so it starts out with a white background and then masks in...(no previous background image to "mask" in on)
I changed the button 2's level it loaded into to level 2...this obviously works...but when I want to visit button one again..it loads underneath the other buttons previous external .swf's
(I hope someone is following this still...LOL)
I am not sure what my options are to remedy this...anyone have any advice?
I am wondering about changing all the levels of the "content" to level 2...and taking the background images out of the "content" .swfs....putting the "background" images into their own external .swf's and load them at a time where the "mask" effect I am using "fades/tweens" out the previous "content" .swf and sneak it in there...the only thing I do not knwo how to do..if even possible...is how can I (since this is my preloader animation) tell if an external .swf has been loaded and then to go with the preloader ending..or whatever.?..
Can you use the loadmovie action to load Movie Clip inside FLASH? If so..how?...Woudl you use a place hold MC?..an EMPTY one?..would you have to drag the MC you want loaded in there to the stage somewhere?
Then I wouldnt have to worry about checking to see if an external .swf was loaded.
Or if any one has a better way...it will be difficult to visualize..so I will send the files to look at so you can understand...or even upload them if need be.
View Replies !
View Related
External Swf Levels
Hi,
anyone know how i can solve this problem:
i have a gallery of work.
each thumbnail pic is a external swf.
When you click on the thumbnail you get more info from the same swf
but because swfs have to be put in levels which ever swfs are higher up in the level order overide anything else.
is there a way to put all swfs on the same level?
cheers,
G
View Replies !
View Related
External Swf Levels
Hey all, im tryin to load 3 external swfs into a container on the main fla's timeline. As onRollOver script, i am simply trying mask the external swfs ontop of each other so that the swf loaded is masked/animated straight on top of the previous swf. I assume I have to set a script for each swf to be loaded at the highest level possible. I hope that makes sense.
Heres a link of the file that i am trying to apply this to: http://www.coldspark.com/index_flash2.html - its on the center flash swf (rollover the btns) - thanks yall!
View Replies !
View Related
Levels / External Swf
Hi,
I would like to specify the levels of several external swf's.
In this case I want two.swf on the top of one.swf
Where/ how in the code do i specify that?
emptymc7.loadMovie("one.swf");
emptymc7._x = -230;
emptymc7._y = -178;
emptymc8.loadMovie("two.swf");
emptymc8._x = -230;
emptymc8._y = -178;
thanx for helping!
Mel*
View Replies !
View Related
Levels Within External .swf's
New** Please scroll to the last question on this page, I've sort of given up on this method and hope this next method will work better (lol...or at all..)**
First off, am I wrong to say that when you load an external .swf into a main .swf all of the level information applies in the same level order as in the main .swf. For example, something loaded into level2 in the external swf should stay level2 when loaded into a different swf or is it 2 levels above the swf it was loaded from?
* My problem is that I am calling a swf to open on level3, however, in THAT swf I have another clip that is to open on level2, thus appearing underneath of the originally loaded swf...but my level2 swf always opens above the level3 clip.
To call the level3 clip the code is as follows:
PHP Code:
on (press) {
this.createEmptyMovieClip("door", 3);
door._x = 24;
door._y = 10.5;
loadMovie("dhome.swf", "door");
}
The code in level3 (dhome.swf) is simply:
PHP Code:
loadMovie("phome.swf", 2);
So I dont understand why phome.swf would assume to load OVER my level3 info..
*Note: I've also tried to get the level2 swf to load into an empty movie clip already on my main .swf but it doesn't recognize the empty clip.*
as always
~ Seretha
View Replies !
View Related
Problem With External Swf's & Levels...
I'm designing a site at the moment & I've run into a minor snag. I am loading about five external swf's, for each page of the site, from the main 'home' page. you can view it here Trouble with levels I can load the movies fine, but what I want is to load each new movie into a higher level than the last, as each movie appears with a mask (for an example have a look at the site I've done then click on the 'Contact Us' button - that is what I want to do on all of the pages...) all of the swf's are loaded into level one with the exception of the 'Contact Us' page. (By the way, there is no 'News' page yet)
The very simple code I used to load the movies is:
Code:
on (release) {
loadMovieNum("contact.swf", 2);
}
I hope you understand what I'm trying to get at.
Cheers
Z
View Replies !
View Related
Loading External .swf's In Levels
so i just learned how to load external .swf files into sepparate (or the same) levels with AS2 with this li'l beauty
on(release){
loadMovieNum("ExternalFile.swf",1);
}
only to find out 2 minutes later that that code doesnt work with AS3.
any equal(ly simple) code that does the same in AS3?
View Replies !
View Related
Problem With External Swf's & Levels...
I'm designing a site at the moment & I've run into a minor snag. I am loading about five external swf's, for each page of the site, from the main 'home' page. you can view it here Trouble with levels. I can load the movies fine, but what I want is to load each new movie into a higher level than the last, as each movie appears with a mask (for an example have a look at the site I've done then click on the 'Contact Us' button - that is what I want to do on all of the pages...) all of the swf's are loaded into level one with the exception of the 'Contact Us' page. (By the way, there is no 'News' page yet)
The very simple code I used to load the movies is:
Code:
on (release) {
loadMovieNum("contact.swf", 2);
}
I hope you understand what I'm trying to get at.
Cheers
Z
View Replies !
View Related
Loading External Movie Into Levels
I have movie that loads 4 external .swfs into level 1, the external movies are a bit large and seem slow to load, and would like to pre-load them, is there a way to go ahead and load them at the beginning of the movie and then move thim into and out of level 1 without seing them until they have been loaded into that level?
View Replies !
View Related
Loading External .swfs Into Levels
im loading a .swf into level 1 and it loads all great and stuff by clicking a button. now, after the movie is done loading and everything and if i click that same button again the movies loads all over again like it wasn't in my temporary internet files.. what's going on?!!?
View Replies !
View Related
Loading External Swfs On Different Levels?
i im finally finished with the movie, and now im in the process of breaking it up into different sections because the original is way to big (5 megs), so i want each section to load on a different layer and then close that layer when you close the section but im running into 2 problems
1. i cant get the movie to load im using :
on (release) {loadMovie("portrait.swf", 1);
to try and get it to load but it doesnt load
2. My rollovers dont work on the first menu ever since i broke it up. any answers why they dont work?
Thanks again guys
View Replies !
View Related
Loading Mc's Into Levels From External Swfs
Hey errbody,
So, I have a main movieclip that has an external swf loaded on the first frame. This swf is a navigation bar which is loaded with loadMovieNum on the level 2. When the user selects one of the buttons on the navigation mc I would like it to load another mc on the layer beneath it (level 1). The problem is that i'm not sure what the code should reference in the button.
main movie = main.swf
navigation bar = nav.swf
second external mc = test.swf
In the nav.swf, code for button should be:
on (release) {
(what goes here? Main movie? _root?)loadMovieNum("test.swf", 1);
}
Thanks in advance.
View Replies !
View Related
How To Call External SWF's That Have Been Loaded Into Levels?
Hi all,
Well ive read through a lot of threads of loading external SWF's and i am still in search of what i am looking for.
I have a real simple movie.swf (Flash 8)that loads external.swf's when called so by buttons with the loadMovie("exernal.swf") function, into an empty movieclip("Container") on the main timline. I understand that the container mc will replace the external.swf's as new ones are loaded into it, leaving the previous external.swf to load again when called upon.
I guess my question or concern is that when an external.swf is loaded, their is too much of a delay. I would like to load all the swfs as the user is looking at the main page, "behind the scenes."I think i have a grasp on levels and loading the swfs into levels,(loadMovie("external.swf",1) but once they are loaded into levels, how are they then called from the button to play? And are these levels within my container MC?
I am searching for some/any suggestions about the method i should take here to load these swfs.
Thanks everyone for reading this and helping out
Matt
View Replies !
View Related
External Loading Problem With Levels
I created two seperate flash files. One that only has a menu and the other that has the bulk of content. Well I am loading images and text externally into the content movie using a blank movie clip. So now I want to use a loadmovieNum from the menu movie and have it load the content movie. But when I do so and it loads the content.swf when i run through that none of my external pictures and text show up in my blank movieclip. Does anyone know why? What can I do to make this work?
View Replies !
View Related
AS2: Levels And Accessing Components Within External SWF
Hi,
Hopefully this should be a relatively straightforward question.
I am currently building an application that loads in external SWF files via the Loader Component.
I have no problems in loading the content - the problem lies in passing values to other UI components within the loaded content (following other guidance, I included the components in the library of the main movie, using lockroot, and exporting the Player 7).
having placed a trace(this) statement in the movie to be loaded into the main movie, I get the following parameter:
_level0.loader.content
(I'm away from my main computer right now - the last part is something like 'content' - probably not exactly, but I'm cutting and pasting the trace output.).
Anyway, I would assume that this is the path to access components within the loaded movie clip. i.e.:
_level0.loader.content.myTextInput.text = "blah..blah..blah";
However, I seem unable to pass any values to these controls.
I assume I'm missing a very basic point here.
Any clues ?
Thanks
Neil.
View Replies !
View Related
Loading External Movies And Levels
Okay let me see if I can explain this the best I can. I have Movie1 loaded into the Maintime line and then Movie 1 has a button which calls another movie to load into the Maintime line. I cannot seem to get this loaded right.
Below is the code for my button
on(release) {
_root.createEmptyMovieClip("port", 5)
loadMovie("portfolio.swf", "port");
setProperty("port", _x, 100);
setProperty("port", _y, 20);
}
View Replies !
View Related
Problems Loading An External Swf With Levels
well, i will try to explain to you with my bad english.
I have a movie called plano.swf in a level 0, this movie has a button that load an external swf on level 1
but i have a problem with this:
the first movie (plano.swf ) contains a lot of buttons, and when a call an external swf, all this buttons are still there.
I don´t see it, but the cursor change (hand).
i want to block all the buttons on level 0, when i load an external swf
thanks a lot!!!!!!!
View Replies !
View Related
Having Trouble With External SWFs On Different Levels..
I have my main movie which loads each separate movie as an external SWF. In the main movie, when I click on a button (services), it loads an external SWF ("services_2.swf") movie into an empty container (container):
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "services_2";
container.loadMovie("services_2.swf");
} else if (_root.currMovie != "services_2") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "services_2";
container.play();
}
}
}
Once the "services_2" loads, I click on a button (music videos) within the "services_2" movie:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "Music_Videos";
container_1.loadMovie("Music_Videos.swf");
} else if (_root.currMovie != "Music_Videos") {
if (container_1._currentframe >= container_1.midframe) {
_root.currMovie = "Music_Videos";
container_1.play();
}
}
}
At this point it doesn't load the next movie "Music_Videos"
When I publish and preview "services_2" by itslef, and click on Music Videos, it loads it. But when i publsih my main timeline, click on "services_2" it loads that SWF, but won't load the next one linked to "Music_Videos."
There's something wrong with my code somewhere, but I can't seem to figure it out. Can anyone help me please?
View Replies !
View Related
Loading External Movies And Levels
Okay let me see if I can explain this the best I can. I have Movie1 loaded into the Maintime line and then Movie 1 has a button which calls another movie to load into the Maintime line. I cannot seem to get this loaded right.
Below is the code for my button
on(release) {
_root.createEmptyMovieClip("port", 5)
loadMovie("portfolio.swf", "port");
setProperty("port", _x, 100);
setProperty("port", _y, 20);
}
View Replies !
View Related
Problems Loading An External Swf With Levels
well, i will try to explain to you with my bad english.
I have a movie called plano.swf in a level 0, this movie has a button that load an external swf on level 1
but i have a problem with this:
the first movie (plano.swf ) contains a lot of buttons, and when a call an external swf, all this buttons are still there.
I don´t see it, but the cursor change (hand).
i want to block all the buttons on level 0, when i load an external swf
thanks a lot!!!!!!!
View Replies !
View Related
HELP In Stopping A Specific Number Of External SWF Levels
I have a main SWF which loads 50 SWF's individually, which I call pages. Now I need to add a menu that can jump around from one page (SWF) to another. The problem is I can't predict which page (SWF) they will be jumping FROM, so I need to turn off ALL the SWF levels except for the page they are jumping to. If I do not do this, BOTH of the pages (SWF's) will be playing at the same time.
Unfortunately, these pages (SWF's) cannot all exist on the same level, thus taking place of each other as they are called up.
Any ideas? Hope I made it clear enough!
Best Regards;
Ken
View Replies !
View Related
Loading External SWF's With Transitions + Auto Levels.?...
a site im working on has a setup where there is a root movie, with a menu, which loads individual project clips into a movieclip using loadMovie. There is one movieclip in the root and therefore only one project loaded at a time. They decided they wanted a full screen image in the background while the preloader loads meaning there is some delay on some projects before the preloader starts, as its loading in the backing image first.
they arnt happy with this, and want it to work so when you click a project, assuming one is open, the new movieclip doesnt appear until its loaded the background image and then the preloader kicks in as well. This is so at no point after one project has been loaded and clicking of other projects is the girl in the chair visible. the problem i have is when the button is clicked, the existing movie is unloaded immediately to make way for the one just selected and the gap while the image loads takes place. they asked about a preloader for the image, but i said thats overcomplicated and could require even more external SWF's to work effectively, above all i also think its pointless as the images average 45kb. It also wouldnt help, because they dont want anything to appear until the image has loaded
Im not sure how to do this, i dont know how to get around the gap while the preloader image works, and im not sure how load in the movies on top. Obviously projects can be loaded into levels, but as the projects can be loaded in any order im not sure how to approach that either.
Is there a way that you can use loadmovienum and just tell it to load into a layer +1 higher than the current movie, so whichever order they are clicked in the newone is always loaded higher(ie the tenth time you loaded any project, it would be on level 10)? my concern with this is that it wouldnt unload all the other movies and this would lead to poor performance?
can anyone help? does this have somethign to do with listener objects?
i have used transistions before, but they always unload one after an outro then bring in the new one, which wouldnt help. What i need is a situation where you have one clip open, you click a button, the open clip remains until the image has loaded and then displays the image and preloader above, whilst unloading the previous clip, meaning at no point do you see the permanet girl in chair background...
the site so far is http://www.lmplumbingheating.com/tkcreate
View Replies !
View Related
External Swf Files: Load/unload/levels ?
hey
i'm making a project and using multiple swf files for the purpose
it'll be easier if u can have a look at the prototype at:
http://www.geocities.com/mrmoonlite_xj/prototype.html
now i'm i'm using the gallery button on the top to load the gallery file "gallery_hd.swf" onto level one , using
Code:
loadMovieNum("gallery_hd.swf",1);
then when u press the color button u go back to the previous movie by:
Code:
on(Press){
unloadMovieNum(1);
_root.gotoAndPlay("first_1");
}
the problem now is that, whenever u press the gallery button ,it shows the preloader... i dont want it to show it after the first time
the structure of the site is something like this:
Base File: site_prototype.swf
this file contains two scenes: "loader", and "first"
when the movie opens it plays "loader"
after loading the file it goes on and plays "first"
Gallery File: gallery_hd.swf
this file contains the preloader in the first frame
the animation is in the subsequent frames
all the buttons are in "site_prototype.swf"
View Replies !
View Related
3 Levels Deep Transitions Between External Swfs
I am having difficulty making the buttons of the 3rd level load the final set of external swfs and keep doing the smooth transitions they are supposed to, with midframes and outros. Somehow I am messing up the paths.
I have several buttons in each level and they all work fine except the very last level.
Below are a characteristic string of button AS for each level:
Main timeline:
on (release) {
if (_level0.currMovie == undefined) {
_level0.currMovie = "firm";
menu.loadMovie("firm.swf");
} else if (_level0.currMovie != "firm") {
if (menu._currentframe >= menu.midframe) {
_level0.currMovie = "firm";
menu.play();
}
}
}
inside firm.swf:
on (release) {
if (_root.menu.currMovie == undefined) {
_root.menu.currMovie = "assoc";
firmwin.loadMovie("assoc.swf");
} else if (_root.menu.currMovie != "assoc") {
if (firmwin._currentframe >= firmwin.midframe) {
_root.menu.currMovie = "assoc";
_root.menu.firmwin.play();
}
}
}
Inside assoc.swf:
on (release) {
if (_level0.menu.firmwin.currMovie == undefined) {
_level0.menu.firmwin.currMovie = "assope";
_root.assoc.loadMovie("assope.swf");
} else if (_level0.menu.firmwin.currMovie != "assope") {
if (_root.assow._currentframe >= root.assow.midframe) {
_level0.menu.firmwin.currMovie = "assope";
_level0.menu.firmwin.assow.play();
}
}
}
All buttons inside assoc.swf are not working. I played around with the paths, but obviously I am missing something very simple and very ellusive about pathing. If I change the path in firm.swf so that _root is _lever0, then THOSE buttons stop working.
Any help would be greatly appreciated.
View Replies !
View Related
External Swf Files: Load/unload/levels ?
hey
i'm making a project and using multiple swf files for the purpose
it'll be easier if u can have a look at the prototype at:
http://www.geocities.com/mrmoonlite_xj/prototype.html
now i'm i'm using the gallery button on the top to load the gallery file "gallery_hd.swf" onto level one , using
Code:
loadMovieNum("gallery_hd.swf",1);
then when u press the color button u go back to the previous movie by:
Code:
on(Press){
unloadMovieNum(1);
_root.gotoAndPlay("first_1");
}
the problem now is that, whenever u press the gallery button ,it shows the preloader... i dont want it to show it after the first time
the structure of the site is something like this:
Base File: site_prototype.swf
this file contains two scenes: "loader", and "first"
when the movie opens it plays "loader"
after loading the file it goes on and plays "first"
Gallery File: gallery_hd.swf
this file contains the preloader in the first frame
the animation is in the subsequent frames
all the buttons are in "site_prototype.swf"
View Replies !
View Related
[fcs3]
Hello, novice here
Right the basic problem is this:
I have one Main.swf file and I’m importing symbols from a seperate.swf using the import for runtime sharing options. What I have in the Main.swf is a container symbol and in the separate.swf file I have a symbol containing a bmp that needs to scale up at runtime when it is imported by the Main.swf to fit the size of the container symbol. Do you know if this is this possible?
I have the importing/exporting part working fine, it is just the scaling that I can’t get to work. Any ideas
View Replies !
View Related
[Fcs3]
hi, ive been trying to make myself a portfolio using flash cs3, and so far everythings been running pretty smoothly, ive been following a tutorials by cartoonsmart.com, but ive started running into some trouble now, i created a function that tweens out a section off to the side when i click on a new section, but for some reason the tween refuses to work with certain sections...even tho the code for each section is identical...
heres the code:
frame one(the function)
Code:
function swapSections(){
if (sectionVar == "home"){
new mx.transitions.Tween(home_section, "_x", mx.transitions.easing.Regular.easeOut , 95.0, 800, 30, false);
}
if (sectionVar == "about"){
new mx.transitions.Tween(about_section, "_x", mx.transitions.easing.Regular.easeOut , 75, 800, 30, false);
}
if (sectionVar == "contact"){
new mx.transitions.Tween(contact_section, "_x", mx.transitions.easing.Regular.easeOut , 95, 800, 30, false);
}
if (sectionVar == "sigs"){
new mx.transitions.Tween(sigs_ection, "_x", mx.transitions.easing.Regular.easeOut , 75, 800, 30, false);
}
if (sectionVar == "sites"){
new mx.transitions.Tween(sites_section, "_x", mx.transitions.easing.Regular.easeOut , 95, 800, 30, false);
}
}
frame 50(home)
Code:
new mx.transitions.Tween(home_section, "_x", mx.transitions.easing.Regular.easeOut , -700, 95, 30, false);
// function called to move out the old section (this function is on frame 1)
swapSections();
//variable used in the function above to determine the current section
sectionVar = "home";
stop();
frame 60 (about me)
Code:
new mx.transitions.Tween(about_section, "_x", mx.transitions.easing.Regular.easeOut , -700, 75, 30, false);
// function called to move out the old section (this function is on frame 1)
swapSections();
//variable used in the function above to determine the current section
sectionVar = "about";
frame 70 (contact me)
Code:
new mx.transitions.Tween(contact_section, "_x", mx.transitions.easing.Regular.easeOut , -700, 95, 30, false);
// function called to move out the old section (this function is on frame 1)
swapSections();
//variable used in the function above to determine the current section
sectionVar = "contact";
frame 80 (sigs)
Code:
new mx.transitions.Tween(sigs_section, "_x", mx.transitions.easing.Regular.easeOut , -700, 95, 30, false);
// function called to move out the old section (this function is on frame 1)
swapSections();
//variable used in the function above to determine the current section
sectionVar = "sigs";
View Replies !
View Related
[fCS3] Why? Just Why?
Sorry about the unclearness of the title but that's the question i have been asking myself all day!
I am making a part in my flash game where you can select the level. I have made an input text box and set the var name to levelinput. Then i made a button and gave it this code:
Code:
on(release, keyPress"<Enter>"){
if(levelinput.toLowerCase eq "tutorial"){
gotoAndStop("Scene 2", "tutorialstart");
}else if(levelinput.toLowerCase eq "level1"){
gotoAndStop("Scene 3", "hsstart");
}else{
gotoAndStop("Scene 1", "invalidlvl");
}
}
for some reason i always get the invalidlvl frame. I would really appreciate some help guys, cos i haven't even done the main part of the game yet, and i don't like moving on while things don't work.
oh, btw, i made sure the frame labels are correct and used the script assist to confirm it. nothing wrong with the code... I followed a tut on this kind of thing and that didn't work either....
View Replies !
View Related
|