Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Pause Between External Loads...any Help Please.



alright, I am pretty much a newbie. so please help.
my site uses a primary movie which all else is loaded into. between the first movie (preloader) and the second movie, there is a black screen which flashes in the movie. it dosen't matter if one is on dial up or broadband, it happens everytime. I can not figure it out. Just to clarify my jabber, I would like to get rid of the black screen that flashes.

thanks
cW

site.
http://www.mindteadesign.com



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 02-25-2004, 10:32 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Pause Between External Loads...any Help Please.
alright, I am pretty much a newbie. so please help.
my site uses a primary movie which all else is loaded into. between the first movie (preloader) and the second movie, there is a black screen which flashes in the movie. it dosen't matter if one is on dial up or broadband, it happens everytime. I can not figure it out. Just to clarify my jabber, I would like to get rid of the black screen that flashes.

thanks
cW

site.
http://www.mindteadesign.com

External Movie Loads, But The Dynamic Text That Loads With It Won't Render HTML?
I have a set of SWFs that load when a button is pressed on the parent SWF file...they all load into an empty placeholder, and each contains it own dynamic text field. the problem i'm having is, the text loads, but the HTML won't render, so i get plain text and html tags

the script in my external SWF files is as follow.


var lv = new LoadVars;
lv._parent = this;
lv.onLoad=function(success){
if(success)this._parent.home.text = this.guide;
}

lv.load("guide.txt");


everything is filled out correctly in the Property menu, someone PLEASE help

Shared Font Library Causes Pause After Preloader Loads Main Movie
Man I never saw this coming. I finally built my first preloader for a small navigation banner and the shared font library it uses is messing up the preloader. Basically, after the main movie loads, the preloader disappears and there is a pause while the shared font library downloads - the dumb thing is like 21KB*. On a 56K modem, this takes about 8 seconds. What can I do?

*
Code:
Font Name Bytes Characters
---------------------- --------- --------------
Verdana 20479 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ˆ˜–—‘’‚“”„†‡•…‰‹›€™

Loading External Swf Which Loads An External Txt/xml
Hey!
how you doin? fine? goood!

kay, here we go

im working with external swf files, same way you'll find it on http://www.kirupa.com/developer/mx/p...transition.htm

One of the external swf files contains an extension (called newsblock found on http://flashcomponents.net/components.cfm)
this extension works with an external xml file, called newsblock.xml

The swf on its own works great, it does everything i want it to do.
but if i load it into my main movie... everything is visible except the xml output...

following the preloader-transition tut:
when the transition MC goes to and plays "opening", the extension lay-out is visible but the xml output (the text itself) stays behind...

when loading other swf movies everything works fine..

then i tried just to load an external txt file instead of using the newsblock extension, only the textarea is visible but the text itself isnt

the swf with the extension on its own works fine and so does the swf with the normal txt file loading into it, but when i try to see it in the main movie it doesnt display text at all..


hope somebody knows an answer, cause i cant find any,
tried searching the forums but came up with nothing..

thx

xx

Loading External Swf Which Loads An External Txt/xml
Hey!
how you doin? fine? goood!

kay, here we go

im working with external swf files, same way you'll find it on http://www.kirupa.com/developer/mx/p...transition.htm

One of the external swf files contains an extension (called newsblock found on http://flashcomponents.net/components.cfm)
this extension works with an external xml file, called newsblock.xml

The swf on its own works great, it does everything i want it to do.
but if i load it into my main movie... everything is visible except the xml output...

following the preloader-transition tut:
when the transition MC goes to and plays "opening", the extension lay-out is visible but the xml output (the text itself) stays behind...

when loading other swf movies everything works fine..

then i tried just to load an external txt file instead of using the newsblock extension, only the textarea is visible but the text itself isnt

the swf with the extension on its own works fine and so does the swf with the normal txt file loading into it, but when i try to see it in the main movie it doesnt display text at all..


hope somebody knows an answer, cause i cant find any,
tried searching the forums but came up with nothing..

thx

xx

External Swf Loads On Top
hi

i have a button called LUNCH, when pressed it plays an external swf
if i keep clicking the button, the swf keeps loading on top of one another

all i want it to do is for me to press the button ONCE, Load the SWF, and Not load again even if i do press the button over and over...perhaps restart the movie from beginning would be ideal..

iv tried to place .removeEventListener but its not working
what am i doing wrong

(code below does not contain the removeEventLis...)

thank you




Code:
var lunch:lunch1 = new lunch1();
lunch.x = 106
lunch.y = 360
addChild(lunch);
lunch.buttonMode = true;
tween1 = new Tween(lunch, "y", Bounce.easeOut, 360, 80, 1, true);
tween2 = new Tween(lunch, "alpha", Regular.easeOut, 0, 1, 1, true);
tween1.addEventListener(TweenEvent.MOTION_FINISH, inziFinish);
lunch.addEventListener(MouseEvent.CLICK, clickinzi);
}
function clickinzi(e:MouseEvent){
var feedinginzi:Loader = new Loader();
feedinginzi.load(new URLRequest("feedingInziFinal.swf"));
addChild(feedinginzi);
feedinginzi.x = 50
feedinginzi.y = 400
}

On Key Press Loads An External .swf
Good day! I would like to know how can i load an external .swf when i press a numbers both in top and left(the numbers with numlock) part of the keyboards.
eg. when i press 01 - this will load my profile.swf page
02 - portfolio.swf page etc.
cheers,
gio

External JPG Loads Every Other Time
I made a blank movie clip that, in each instance, loads a different external JPG.

The problem is that the movie that is found on the upper layer (there are six layers that each cintain an instance of the same movie but call up different jpgs) only loads the JPG every other time.

See attached file. Layer "JPG One" only loads every other time. If you switch the layer order that problem will then affect the higher layer.

The actionscript used on each blank movie clip looks something like this:

onClipEvent (load) {_root.MovieInstanceName.loadMovie("http://www.whatever.com/whatever.jpg");
}

This file was created using Flash MX on a Mac running OSX.

Thank you very much

[F8] External Text Loads Again And Again
Hi. I made a art gallery thing using flash and I have the buttons load a piece of text using LoadVars when you rollover a button. (swf here. click on fanart)

Instead of having 14 separate txt files, I compiled all of them into a single text file and have variables separated with ampersands. The code I have running this is as follows:


PHP Code:



on (rollOver) {    myData = new LoadVars();    myData.onLoad = function() {        artdesc.html = true;        artdesc.htmlText = this.desc1;    };    myData.load("artdesc.txt");}on (release) {    //Goto Webpage Behavior    getURL("/sketchies/hedgehogstyle/amy_rose.jpg","_blank");    //End Behavior}




Ignore the onRelease. I know this code loads the txt file (artdesc.txt) to obtain the variable (this.desc1). My problem is, with each rollover, even on the same buttons, it'll keep loading this txt file again and again.

Is there a way to make this external text load only once and have the Loadvars refer to that? Sorry if I'm confusing or using the wrong terms. I'm still learning AS.
Thanks.

Preloader Loads External Swf
Hi!

My problem is that I want my 200x200 px preloader to be centered on the page and then load a flash movie which is 1200x900 px.

I can do it by centering the preloader on a page, and then using navigateToUrl to the main movie, but this obviously isn't very seamless.

so any ideas? Would I use JavaScript to alter the dimensions?

thanks!

Loads An External Movie
Can someone help me?

im on a proyect that requires an external movie clip to load on a main movie. That's easy, the hard part is that i need that the loaded to be movie loads without adapt the settings of the main movie (main movie: height=100%, width=100%) so if the main movie works as a fullscreen background the loaded to be movie retain the actual size w 500 x h 300. Thanks in advance.

Help External .swf Loads But Does Not Play
First of all, let me say, please don't kill me for cross-posting!! I noticed at the end of the tutorial, the guy said that if you have any trouble that those in the Flash MX 04 forum would be more than happy to help. So please don't kill me for cross-posting!

I followed this tutorial on here for making a reusable actionscript preloader (link: http://www.kirupa.com/developer/act...ecliploader.htm). Works fine when loading a .jpg, but when attempting to load a .swf it doesn't work. It says it's loaded, but the .swf doesn't play!!! In fact, the .swf doesn't even show up!!! Is there some code I need to add to make a .swf play when loaded? Here's the code which went into a frame in the actions layer. It's the exact same code as in the source example for the tutorial, I just chopped out the buttons part of the code, and the fade in part and replaced the jpg URL, with my .swf URL. Sorry if it's really simple, I'm not an expert at AS.


bar._visible = false;
border._visible = false;
var empty = this.createEmptyMovieClip("container", "100");
empty._x = 0;
empty._y = 0;
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
container._alpha = 0;
bar._visible = true;
border._visible = true;
pText._visible = true;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
container.fadeIn();
border._visible = false;
bar._visible = false;
dText._visible = false;
trace(targetMC+" finished");
};
//default image
my_mc.loadClip("http://www.peacefulvalleyfarm.com/Flash/Sadie.swf", "container");

Button Loads External Pix
CAN YOU CREAT A BUTTON THAT LOADS A EXTERNAL PICTURE?
IF YES.. HOW?!
THANK YOU SO MUCH

Loads An External Movie
Can someone help me?

im on a proyect that requires an external movie clip to load on a main movie. That's easy, the hard part is that i need that the loaded to be movie loads without adapt the settings of the main movie (main movie: height=100%, width=100%) so if the main movie works as a fullscreen background the loaded to be movie retain the actual size w 500 x h 300. Thanks in advance.

Progres Of External Loads
on the first frame of my main stage i want it to have a loading bar
but i want to include the loading of 5 external movie clips in that bar also and have them loaded

how would i do this please
thanx alot in advance

External Clip Loads Over And Over
Hello,
I created an old fashion content design in the mainTIme line. I left the first key blank to add a preloader later. I start my actions on the second kf. There are 12 pages and 12 buttons. butt_1 goes to page2, butt_2 goes to page3, etc.

In my actions I have the following code:

Code:

var loader:Loader = new Loader();
loader.load(new URLRequest('movieClip.swf'));
interviewCon.addChild(loader);


When testing the movieClip.swf loads perfectly and plays. If I go to page 3,4,5,6,7,8,9,10,11,12,etc. it hovers there playing right along as content under it changes with the button clicks. The problem is when I return to page 2 - the first content page. It loads again and starts playing a duplicate. It is as though the AS does not know it already loaded the clip, and it does it again.

Any ideas?

Thank you,
Odisey

Stay Pressed Until An External Mc Loads?
Can I get a button to stay pressed, displaying its down state until an external mc loads?

External .swf Loads In Wrong Place?
I'm making a site that loads external .swf files into an empty movie clip. this is the action attached to each of the buttons...

on (release) {
loadMovie("folder/name.swf", _root.container_mc);
}

the files are loaded fine. the issue is that while the empty movie clip (container) is positioned where i want the .swf's to load on the stage, they actually load much farther down and off to the right. why is this happening and how can i fix it??

thanks!

Clint

Preloader That Loads An External Movie
Is there a way to have one movie with a preloader on it that loads another movie? Is so, how would I go about doing that?

Thanks

External Movies - Bg Shows Between While Next Loads
I'm just hoping someone can suggest an idea here...

I have a main Flash movie with an empty movie clip that lays over top it. When a navigation button is chosen, an external swf loads into the movie clip. This is fine for the transition between "main" and the first in-coming swf, but once another nav. button is pushed from the new swf, it loads another swf.

The problem is that: when the next swf is about to come in, you can see the "main" movie sitting in the background for a split second, as the new one loads. It doesn't flow well in the scheme of things & well... it doesn't look pretty for that split second.

Has anyone else had this problem, before & figured out a solution? Does anyone have any suggestions?

~Vik

Position Of MC Loads An External Image
I have a circular navigation with 12 movieClips that rotates. What i want to happen is that as the navigation rotates, when the images hit a x,y position on the stage an external swf loads

Any ideas

Many thanks

External Movie Loads In Netscape But Not IE Help
please help me real quick? I made an eyeball movie for my website that loads after the _root movie loads. There's a button at half alpha of it that loads the eyeball when you rollover it. It works perfect in Netscape but doesn't work at all in IE. i tried it on my Mac IE and on my PC IE too! below is my code:
Code:
on (rollOver) {
loadMovieNum("eye.swf",1);
_root.play();
}
I put the _root.play(); in there so the main movie goes forward one frame and i get rid of the the loader alpha button. below is a link to my site so you can see it, but again, it only works in netscape it seems and i can't figure out why.
http://www.threebrain.com
if the eyeball does work on your IE hollaaa at me too and tell me. I'd appreciated. weird! stuff usually works in IE but not netscape

External Swf Loading Prob.....nothing Loads HELP PLZ
(THIS IS NOT A DOUBLE POST!)I had some problems posting before, i dont know why this wont upload the file...Ok Ive done all i could and im relying on somebody here to find the solution... There is a button on the top that says "contact" and has the action: on(release){loadMovie("contact.swf","mc_contact"); }
But when i publish it in html and i preview it, it does NOTHING....Please help

Combobox That Loads External Swf In An Mc Placeholder
nid help again to all flash gurus. am using flash 8 and planning to make a combobox that whenever a viewer choose an item in the combobox list. it would load an external swf in a level or target mc placeholder.

thanks in advance any help or sample fla wud be nice.

Marquee That Loads An External Text
Hi,

Did someone know which is the script to make a marquee that loads an external .txt file text? So I can easily update the text of the marquee?

Also, how can I control the size, font, color and the speed ?
Im using Flash MX.

Thanks in advance.

DAVID

Menu Then Loads External SWF Or Projectors
I'm trying to make a menu that loads (for now) two external files. I would prefer that they be exe, but if that involves a BAT file then they could be SWFs. At the moment, I am trying to take baby steps and have two buttons on the screen. You press one and A.swf/A.exe opens full screen. You either close that file and see the menu behind it, or there is a button on it that closes it and takes you back to the menu.

I've searched for this, but can only find posts about opening a swf into a movie clip or doing something other than what I need.

Any advice would be great. I've checked CyanBlue's 5,000th post, but I am not sure what terms I am looking for.

Thanks.

Displaying External Swf Once Page Loads
I currently have ActionScript displaying the external swf when you click on a button. This works however when the external swf loads the button is faded out to show you are currently on that so called page. So there should be no need to click and just let it load automatically as it is the first thing you see when the file is loaded. Another issue is that you can see the external swf load briefly for about 2 seconds and then it disappears.

How do you prevent it from appearing when it's loading and how do you get it to display automatically after the main stage is done displaying the animations, etc?

Here is my ActionScript code:


Code:



// Create the Loader to contain the external swf files and position on stage
var externalClip:Loader = new Loader();
addChild(externalClip);
externalClip.x = 250;
externalClip.y = 100;

// Set UI initial enabled state
home.enabled = true;
home.alpha = 1;
biography.enabled = false;
biography.alpha = .5;
media.enabled = false;
media.alpha = .5;
contact.enabled = false;
contact.alpha = .5;


// Load first swf file
var request:URLRequest = new URLRequest("news.swf");
externalClip.load(request);

// Register function to respond to COMPLETE event for the externalClip swfs
externalClip.contentLoaderInfo.addEventListener (Event.COMPLETE, externalClipFirstLoadHandler);
function externalClipFirstLoadHandler(e:Event):void
{
// Remove need to listen for COMPLETE event of externalClip swfs
externalClip.contentLoaderInfo.removeEventListener (Event.COMPLETE, externalClipFirstLoadHandler);

// Alternative method that uses local scope
//e.currentTarget.removeEventListener (Event.COMPLETE, externalClipFirstLoadHandler);

// Type the content of the externalClip as a MovieClip
var mc:MovieClip= MovieClip( e.currentTarget.content );

// Register local function runOnce to listen for the ENTER_FRAME event of the
// external loaded swf
mc.addEventListener(Event.ENTER_FRAME, runOnce);
function runOnce(event:Event):void
{
// External swf in the externalClip played last frame
if (event.currentTarget.currentFrame == event.currentTarget.totalFrames)
{
// Cancel listing to ENTER_FRAME event of externalClip
event.currentTarget.removeEventListener (Event.ENTER_FRAME, runOnce);

// Load the next swf into externalClip
var request:URLRequest = new URLRequest("biography.swf");
externalClip.load(request);

home.enabled = false;
home.alpha = .5;
biography.enabled = true;
biography.alpha = 1;
media.enabled = true;
media.alpha = 1;
contact.enabled = true;
contact.alpha = 1;


}

}

}

//externalClip.addEventListener(Event.ENTER_FRAME, externalClipEnterFrameHandler);
function externalClipEnterFrameHandler(e:MouseEvent):void
{
trace (MovieClip(externalClip.contentLoaderInfo))
}


// Register function to handle the home Mouse CLICK event
home.addEventListener(MouseEvent.CLICK, homeButtonHandler);
function homeButtonHandler(e:MouseEvent):void
{
//trace("home Clicked");
var request:URLRequest = new URLRequest("news.swf");
externalClip.load(request);
home.enabled = false;
home.alpha = .5;
biography.enabled = true;
biography.alpha = 1;
media.enabled = true;
media.alpha = 1;
contact.enabled = true;
contact.alpha = 1;

}


// Register function to handle the biography Mouse CLICK event
biography.addEventListener(MouseEvent.CLICK, biographyButtonHandler);
function biographyButtonHandler(e:MouseEvent):void
{
var request:URLRequest = new URLRequest("biography.swf");
externalClip.load(request);
home.enabled = true;
home.alpha = 1;
biography.enabled = false;
biography.alpha = .5;
media.enabled = true;
media.alpha = 1;
contact.enabled = true;
contact.alpha = 1;


}

// Register function to handle the media Mouse CLICK event
media.addEventListener(MouseEvent.CLICK, mediaButtonHandler);
function mediaButtonHandler(e:MouseEvent):void
{
var request:URLRequest = new URLRequest("media.swf");
externalClip.load(request);
externalClip.load(request);
home.enabled = true;
home.alpha = 1;
biography.enabled = true;
biography.alpha = 1;
media.enabled = false;
media.alpha = .5;
contact.enabled = true;
contact.alpha = 1;
}

// Register function to handle the contact Mouse CLICK event
contact.addEventListener(MouseEvent.CLICK, contactButtonHandler);
function contactButtonHandler(e:MouseEvent):void
{
var request:URLRequest = new URLRequest("contact.swf");
externalClip.load(request);
externalClip.load(request);
home.enabled = true;
home.alpha = 1;
biography.enabled = true;
biography.alpha = 1;
media.enabled = true;
media.alpha = 1;
contact.enabled = false;
contact.alpha = .5;
}

Managing Multiple External .swf Loads
Let's say I have 5 .swfs that I am loading into one movie. Am I better off having each .swf load one after the other? Let's say once the first one is 50% complete, the second one starts etc. This will help bring the individual .swfs on faster but it will probably cause the overall load to take longer. Is this a correct assumption?

External Swf Loads But Dont Works
hi my friends

i have a main swf where the extenal swf can be called on button click.

loadMovie("reseller_locations1.swf",this);

the external swf works perfectly outside.
but when it is loaded to main swf , it plays only upto first frame.
no button press or others works.

i am really STUCK on this problem.
can anyone please help me.

thanx in advance
arun

External MovieClip Loads Twice Into Container MC?
Has anyone had this problem? I have a button which loads an external SWF into a container MC on my stage. Every now and then (especially when the system's resources are taxed) the external movieclip loads twice into the container, and stopping it via the "pause" control only stops the first SWF--the other goes right on playing underneath it.

Here's my code:

Code:
btn01.onRelease = function() {
container.unloadMovie();
myMCL.loadClip("assets/01.swf",container);
}
Unloading the container before loading in a new SWF made the duplication happen less often, but it still happens now and then. Does anyone have any idea what might be going on here?

Thank you in advance for your help. I'll be presenting this project tomorrow!

Looking For Flash Player That Loads External Flv From PHP
Here's what I need:

SWF Player - with the fla source file
PHP Script tells it what FLV file to load
FLV file is a big archive of files.

So when you go to page:
mysite.com/player.php?id=3
It would grab the listing and location of the FLV file and feed it into the swf player and start playing.

I can probably make this myself but was hoping there was something like this already available?

Php Script Not Working When External Swf Loads
http://www.dashgraphics.com/new/wedding/comments.html

it is a guestbook in flash which is control through a php file & text file ,it works properly,to see in action click above url.

but when i embeded the same swf (which i emded in the above url ) in my site through loadmovie external swf file it can't work.when any one submit the form it shows thank u but the result is not shown in the comments area.

http://www.dashgraphics.com/new/wedding
see the 4th tab or picture of the main menu.

please fix the problem asap

thanx

Play Sound After External Swf Loads
I have a button that calls one of 220 external swfs (based on variables)
How do I play a sound from the root movie once the swf has completed loading?


ActionScript Code:
on (release) {
    loadMovie("219.swf");
}
//once movie has loaded, play sound which is already on root stage (in a movieclip)
 


Thanks

Slideshow That Loads External Photo
can someone show me the how to make a slideshow thats load the photo from an external file.

thanks all....

Text Field Loads From External Txt File
I need to build a website that needs constant updates. Want to use a .txt file to change out the information. My books don't show me how to do it. Is it a variable? Would someone show me and example please, thanks in advance.

Play Small Animation While External Swf Loads
I have a big animation that loads externally:

instance.loadMovie("file.swf");

While this external file is loading, I want a smaller animation to play that I've created.

When the external file has finished loading, I want the smaller animation to stop.

How can I do this?

Loadmovie That Loads An External SWF Which Calls Another SWF Inside
Hi Guys,

I need to do the following:

Ive got the root movie with a button. I want this button to load an external swf file in a target movie clip at the same time that this external SWF file that has just been loaded loads another swf inside it. I could simply put a loadmovie code in the first frame of the first external SWF file, but I cant...

Is there a way to do that with the button on the root movie?

Thanks in advance!

Preloader For Master.swf Which Loads All External Swf Files.
Hi all-

I'm having a bit of a problem. I have a flash site that I'm making (my first one) and I want to have a preloader load my master.swf file. My master.swf file loads all other external .swf and .jpg files with a nice progress bar etc. However, when I first vist master.swf in my browser I have to put a not so nice "LOADING PLEASE WAIT" ugh. All my code is below for you to take a look at.

Is there any way to load my master.swf file with a nice preloader like I want or should I go about doing this a totally different way?

I have export frame for classes set to 1.
trigger.swf - my shared library and probably the largest file size since it has all the fonts I use in it.
preloader.swf - the preloader the master.swf file uses when loading external .swf and .jpg files.
mainmenu.swf - my navigation for my site.
splash.swf - the splash page for my site.
music_player_fin.swf - my little juke box that I made.
To see the swf in action visit http://spazio.dvdfuture.com/flash/master.html

master.swf

Frame 1

Code:
stop();
// ------------------ MCL ------------------ \
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes) {
_level50._visible = true;
var preloaderPercent:Number = Math.round((loadedBytes/totalBytes) * 100);
_level50.preloader.gotoAndStop(preloaderPercent);
}

myListener.onLoadComplete = function (target_mc) {
_level50._visible = false;
}

myMCL.addListener(myListener);
// ------------------ /MCL ------------------ \

myMCL.loadClip("trigger.swf", 5);
myMCL.loadClip("preloader.swf", 50);
Frame 2:

Code:
stop();
myMCL.loadClip("splash.swf", 5);
myMCL.loadClip("mainmenu.swf", 20);
myMCL.loadClip("music_player_fin.swf", 10);
Below is the code in my mainmenu.swf

Frame 1:

Code:
stop();

//----------------<changeOptionColor options>-----------------\
var overFrame:Number = 2;
var outFrame:Number = 1;
MM_Button1._alpha = 20;
MM_Button2._alpha =20;

function changeOptionColor (myOption:MovieClip, myFrame:Number) {
myOption.gotoAndStop(myFrame);
}

//----------------</changeOptionColor options>-----------------\

//----------------<re-enable menu options>-----------------\
function reActivateBtns() {
MM_Button1.enabled = true;
MM_Button2.enabled = true;
MM_Button1._alpha = 20;
MM_Button2._alpha =20;
changeOptionColor(MM_Button1, outFrame);
changeOptionColor(MM_Button2, outFrame);
};
//----------------</re-enable menu options>-----------------\

//----------------<Button1 option>-----------------\
MM_Button1.onRollOver = function () {
this._alpha = 100;
changeOptionColor(this, overFrame);
};

MM_Button1.onRollOut = function () {
this._alpha = 20;
changeOptionColor(this, outFrame);
};

MM_Button1.onRelease = function () {
reActivateBtns();
this._alpha = 100;
this.enabled = false;
changeOptionColor(this, overFrame);
_level0.myMCL.loadClip("button1.swf", 5);
};
//----------------</Button1 option>-----------------\

//----------------<Button2 option>-----------------\
MM_Button2.onRollOver = function () {
this._alpha = 100;
changeOptionColor(this, overFrame);
};

MM_Button2.onRollOut = function () {
this._alpha = 20;
changeOptionColor(this, outFrame);
};

MM_Button2.onRelease = function () {
reActivateBtns();
this._alpha = 100;
this.enabled = false;
changeOptionColor(this, overFrame);
_level0.myMCL.loadClip("button2.swf", 5);
};
//----------------</Button2 option>-----------------\

Website On CD : What To Do With Internal/external Flash Loads?
Hi,

I would like to burn a CD of my website, whose structure is more or less :
-a main swf/html file(opening full screen) which loads other swfs if itself
-this swf file also opens swfs in EXTERNAL windows (opened with restrictions on window size)

My main question is,
in what format should I burn this ? Is it advisable to export to .exe ? Would there be a problem opening pup-ups then ?
Otherwise, is it better in html/swfs ? I was trying to open pop-ups at my local folders, and there was a problem opening them(I was unable to see the content of my file, but it works right on the net)

Thanks for the help,

Manojo

Input Text That Loads External Swf Without Using Php Or Server
help all friends of flash out there. am in a bit of a jam bin scrambling my head on how to make a query. u c am planning to have an input box on my site and a combobox that on select of an item in a combobox den input the text it would eventually, goes to a query loading an external swf in an emplty mc placeholder. not using any php or server purely actionscript.

thanks in advance.

External Text File No Longer Loads
I've just edited a page on my website to include a slide-in menu bar for users to sign up for my newsletter but when I add the Actionscript to the slide-in menu it seems to conflict with the script to externally load the text file with the content for that page. So now the slide in menu seems to work but my content won't load. I've saved the file as a Flash 8 file and am using AS 2. The AS I'm using for the menu and the external content is:

slider.menu_mc.click_btn.onRelease = function(){
slider.play(nextFrame);
}

myVars = new LoadVars();
myVars.onLoad = function(){
textbox.htmlText=this.Pitch;
};
myVars.load("about.txt");

stop();

I've uploaded the .fla file and the text file to my site at http://clearlygreendesign.com/cgd_about.zip in the hopes that someone can tell me how I've erred.

Stylish Scroller That Loads External HTML
I am looking for a decent looking scroller FLA that loads External files. SO everytime I want to add content to the scroller I can just upload the HTML file on the server instead of upading the FLA file. I haven't found something easy to use and stylish. I don't have enough actionscript knowledge to make one myself. Does anyone know of a code that does this??

Thank You

Preloader W External Swf Loads Movie Too Early
Hi all,
I've been tearing my eyes out trying to figure this one out. I have a game in a swf file, and I have another swf file which only contains my preloader. The preloader file has only 1 frame and 3 layers wich controls progess bar etc. My problem is that the movie is played before the actual movie has loaded 100%. Instead, when my loader reaches around 50% it disappears and the game swf is played which isn't good since every game component hasnt been loaded yet. Any ideas on why this is happening?

I'm using the tutorial
http://www.lukamaras.com/tutorials/p...preloader.html



Code:
siteLoader.loadMovie("game.swf");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function() {
kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;
kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;
if (percentage == 99) {
delete this.onEnterFrame;
}
}
I have also tried using loadMovieClip but I get the same effect. Why is my preloader exiting before the entire swf is loaded? Any help would be greatly appreciated.

Syntax For A Button That Loads External Swf In A Parent Mc.
So I am new to Flash but, bear with me. I am making a website in flash and making a photo gallery in my flash site. I need help with what i should do to write the proper actionscript sytnax for a thumbnail button inside a photo gallery movie clip in order for it to: scale up slightly on rollover ( i assume i should start from the larger resolution image), scale down on rollout, and ease to a fade out before loading an external .swf into a blank movie clip inside the gallery clip. Should I be using the code onClipEvent(enter Frame) to load the external .swf into the parent the movie clip and where should this code be placed I assume not in any layer or frame in the parent photo gallery clip but where should these actions for the thumbnail button go? I also will need these thumbnail buttons to be able to move on button releases. Any explanation of what I should do for actionscript or help would be appreciated.

-Jack

Script That Loads External Images And Positions
Hello all,

Hope this makes sense,

The below code loads external text and an external image
Which works fine, but I want button1 to be preloaded when the movie starts
and I want its position to be somewhere else,






Code:
/Create empty movieclip
_root.createEmptyMovieClip("imageHolder_mc", 1);
_root.imageHolder_mc._x = 120;
_root.imageHolder_mc._y = 0;


//Load Person1
button1.onRelease = function() {
loadVariablesNum("person1.txt", 0);
infoField._visible = true;
startLoading("person1.jpg");
};

//Load Person2
button2.onRelease = function() {
infoField._visible = true;
startLoading("person2.jpg");
loadVariablesNum("person2.txt", 0);
};

//Load Person3
button3.onRelease = function() {
infoField._visible = true;
startLoading("person3.jpg");
loadVariablesNum("person3.txt", 0);
};

//Load Person4
button4.onRelease = function() {
infoField._visible = true;
startLoading("person4.jpg");
loadVariablesNum("person4.txt", 0);
};

//Load Person5
button5.onRelease = function() {
infoField._visible = true;
startLoading("person5.jpg");
loadVariablesNum("person5.txt", 0);
};

//Load Person6
button6.onRelease = function() {
infoField._visible = true;
startLoading("person6.jpg");
loadVariablesNum("person6.txt", 0);
};

function startLoading(whichImage) {
loadMovie(whichImage, "imageHolder_mc");
_root.onEnterFrame = function() {
infoLoaded = imageHolder_mc.getBytesLoaded();
infoTotal = imageHolder_mc.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
infoField.text = percentage+"%";
if (percentage>=100) {
delete this.onEnterFrame;
infoField._visible = false;
}
};
}

Problems With My Preloader Which Loads External Images
I seem to be having trouble with my preloader. I have 7 categories of pictures with different picture totals for each group. They are to be loaded externally.
1. I made a scene before the main website with an empty movie clip offstage called introHolder.
2.Then I made looping code:

ActionScript Code:
picGrps = ["intro", "acc", "clt", "fd", "fun", "grm", "hm", "luv"];
picTotals = [8, 5, 3, 3, 5, 4, 6, 5];
//
function preloadPics() {
    _root.introHolder.loadMovie("pb_address.jpg");
    for (x=0; x<=picGrps.length-1; x++) {
        for (y=1; y<=picTotals[x]; y++) {
            _root.introHolder.loadMovie("pb_"+picGrps[x]+y+".jpg");
            trace(picGrps[x]+y);
        }
    }
}
This should load intro1.jpg all the way up to 8, then acc1.jpg all the way up to 5, etc. When I trace, it shows all of these names.

Then, about 5 frames later I have the typical preloader script:

ActionScript Code:
total_bytes = _root.introHolder.getBytesTotal();
trace(total_bytes);
//sets a variable equal to the bytes loaded of the movie
loaded_bytes = _root.introHolder.getBytesLoaded();
//sets a variable equal to what's left to load
remaining_bytes = total_bytes-loaded_bytes;
//coverts remaining bytes to an integer in percent
percent_done = int((loaded_bytes/total_bytes)*100);
//makes the bar movie go to the frame equal to the percent done
bar.gotoAndStop(percent_done);
if (percent_done == 100) {
    gotoAndPlay("placeholder", 1);
}
The frame after this has an action telling it to go back to the above script if not loaded.

So, the problem......

The pictures (when traced) say they're loaded, but they don't seem to be really loaded. The movie goes to the "placeholder" scene BEFORE all of these pictures are loaded...what am I doing wrong?

External Loaded Swf Loads, But Doesn't Play
I have used loadMovie to load my external swf file into an empty mc and that works fine instead the main swf.


ActionScript Code:
loadMovie("final_k.swf", "empty");

But when I interact with it, it doesn't "play". Is there something I'm missing to get my externally loaded movie to "play"?

Thanks for any help.

Controlling A Movieclip That Loads External Swfs...
I have a button that stops a movie clip, the only thing is when I load an external SWF and use that movieclip as the container, it stops working.

I gave the movieclip an instance name "trans" and when i use
[as]
trans.loadMovie("trans.swf")
[as]

To load an external SWF called trans the following AS

[as]
on (release) {
_root.trans.stop()
}
[as]

stops working... ANy suggestions

Mike

Button Loads External MC But 2clicks Neccasery
Hi Forummers,

I keep having a problem that, with several buttons running several on(Release) codes:

on(release) {
loadMovie ("portfolio_affiches.swf", "portfolio");
load_btn.onRelease=function(){
loadMovie ("portfolio_affiches.swf", "portfolio");
this.enabled = false;
};
}

it is always neccasary to click several times... there are simple preloaders in the MCs, but they don't show (to fast connection) and all of a sudden the MC shows.

Am I doing something wrong in the code ?

I run MX2004 and save as Flash5.

thx in advance,

grtz. marcel

Copyright 2005-08 www.BigResource.com, All rights reserved