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




Load Movie Thing



Okay so Iv;e figure out how to load an externatl swf file (thanx Brandon)

But it doesn't quite work the way I need it. Here's teh code I used:
on (release) {
tellTarget ("_root.content") {
loadMovieNum ("Test.swf", 0);
}
}

And here's the result:
http://members.shaw.ca/terries/Html/Site02.html

As you can see I want the characters to lay over the bg, the brick wall. But still show the buttons to activate other loaded clips.

So I'm think I can either:
A) Load this file as a MC inside my main Fla. But under the buttons.How do I load an MC that's in the library?
or
B) Copy the background into the extenal swf and have it load under the buttons level. How do I go about doing this? I've tried loading it into _level1, _level2 etc But it still won't play under the button layer.



FlashKit > Flash Help > Flash ActionScript
Posted on: 05-21-2002, 07:59 PM


View Complete Forum Thread with Replies

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

Load Movie Thing...
Hi,
I´m about to make a new flash site, icluding one movie only. Therefore I have following question: If I make a menu at scene 1 together with some content, and by clicking on a button shall go to ex. scene 3, is it possible in a way to include the menu on all scenes...?

I hope somebody can help me out )

Regards
Thomas

Load Movie Thing?
I'd like to make a button in my fla movie to point to an avi, with sound. How can I do this seeing as the load movie option only allows me to import a .swf not anything else?
Also the movie, for the moment, is on my HD... so, presumably, later, once it's all working fine and on the net, all I need do is change the path to the file's url?
Anyway, one step at a time...
Thx in advance

Why Won't This Simple Thing Work? Load Movie
i really hope someone can help with this.

i have a main movie, with a button that tells another movie to load into a movie clip ("main_drop") in the main movie.

then, i want to tell the loaded movie clip to play a specific frame. i just cannot get this to work.


on (release) {
loadMovie ("movie.swf", "main_drop");
if (loadedbytes == totalbytes and totalbytes >1) {
tellTarget ("main_drop") {
gotoAndPlay ("two");
}
}
}

has anyone got any ideas?
it seems to be such a simple thing i'm trying to do.
thanks,
gina

Darndest Thing---load Movie Class
I have a loop that loads about 60 graphics for a dynamic MovieClip rollover function.

When I rollover the button on my computer, it shows the rollover state.
When I upload it to the server, it says it can't load the rollover state.
I have tried:
1. renaming the files
2. putting the files in extra folders to avoid confusion
3. using a different variable to call the class.

I would appreciate your assistance.

Thank you,
Emma







Attach Code

for (i=1;i<=26;i++){
//it names the variable from an Array
thisvariable=theAlphabet[i-1]
newname=this.attachMovie("generic", thisvariable,i);
//newname._alpha=0;

newname.createEmptyMovieClip("container", 1);
newname.createEmptyMovieClip("rcontainer",this.getNextHighestDepth());
//newname._y=100;
//this.newname.rcontainer._visible=false;
var K:loadMovies=new loadMovies();
K.loadingMovie("theNormal/"+thisvariable+".png", newname.container);
K.loadingMovie("theRollOver/"+thisvariable+".png", newname.rcontainer);
////I turn the rollover feature off until the user rolls over the mc.
newname.rcontainer._alpha=0;


}
}

How Do I Load .swf's Into A Movie Like Gallery/slideshow Thing
Hi! if anyone can help it would be greatly appreciated!
I was wondering how to get this to work in Flash MX 2004:

1. When the HTML page first loads I want 01.swf to automatically load in an area of the flash movie
2. Then when user clicks a Forward Button I want it to load 02.swf
3. Then if user clicks the Forward Button again it will load the next .swf (03.swf, 04.swf, 05.swf, and so on)
4. If user wishes to go back and clicks the Previous Button it will go back one .swf
5. Also in load area if no button is clicked, I want it to automatically load the next .swf after 40 seconds and to cycle through changing to the next .swf every 40 seconds.

Any help/advice would be extremely appreciated!
Thanks!

How Do I Load .swf's Into A Movie Like Gallery/slideshow Thing
Hi! if anyone can help it would be greatly appreciated!
I was wondering how to get this to work in Flash MX 2004:

1. When the HTML page first loads I want 01.swf to automatically load in an area of the flash movie
2. Then when user clicks a Forward Button I want it to load 02.swf
3. Then if user clicks the Forward Button again it will load the next .swf (03.swf, 04.swf, 05.swf, and so on)
4. If user wishes to go back and clicks the Previous Button it will go back one .swf
5. Also in load area if no button is clicked, I want it to automatically load the next .swf after 40 seconds and to cycle through changing to the next .swf every 40 seconds.

Any help/advice would be extremely appreciated!
Thanks!

Load Content Thing
hey,
my problem is this, check out this really basic thing i put up just to show you what i mean http://geocities.com/distaw/pic.swf , if you click 1 the pic will load like i want it to, then if you view each pic in order (2,3,4,5...) they will load but if you go straight to say 6 or what ever then the loading text wont flash, does anyone know why?

hope you can help...

(if that link doesn't work try copyiing and pasting it to your address bar or try this link http://www.liquid2k.com/firearm/pic.swf)

Goin Mad Over This Load Sound Thing
Here it is:
Got an SWF that loads a sound
the code goes like this

mySound = new sound();
mySound.attachSound('angel.mp3', false);
mySound.start();

All cool?
No.
when i publish the swf with the sound object in it pays back but when Iget another swf to load this swf it loads it without any sound. ive tried a number of ways around this but ive ran out of ideas. Ive tried 'tell target' and 'levels' but both stay the same, loads the movie but without any sound.
Help me please!
P.S i know i can just drop the sound clip on the main time line but that way i cant assign a play and stop action to the sound.
Thanks 2 all that help.

HELP My Load Movies Thing Doesn't Work Right
Ok, I Am Making A Full Flash Site, And I Am Making It Where All The Buttons Will Be Clicked And Load External Movies Into The Flash Site!!! So I Made It All Work Except That When The Movies Load Into The Loading Area, They Are Only Partially In The Bottom Right Corner Of The Loading Area!!! The Movies Are The Same Size as The Loading area So I don't Know Why They Won't Fit Perfectly!!! And I Am New To This So I Can't Mess Around Too Much Without Ruining The Site!!! If anyone Knows What Is Wrong, PLEASE HELP!!!

-Preston
-P_manCool@hotmail.com

Trying To Load Ext Swf File But It Covers The Whole Thing, Help Asap
Ok, im using this code
onClipEvent (load) {
loadMovieNum("player.swf", empty_player);
}

But when it loads it covers up over the entire page, but the actual swf is very small. Whats the deal?

Strange LoadVars Thing – Can't Load A File...
Hello,

I seem to have ran into one of the many oddities in flash. Only this time, I can’t seem to get around it, nor can I even tell what is wrong...

My code is pretty simple I think, just 1 method right now:


Code:
private var loaderObject:LoadVars;
private var contentString:String;

public function init(inputFile:String):Void {
loaderObject = new LoadVars();
loaderObject.onLoad = function(success:Boolean):Void {
if(success == false){
} else {
trace("inside loader: "+loaderObject.text);
}
}

var anotherLoader:LoadVars = new LoadVars();
anotherLoader.onLoad = function(success:Boolean):Void {
if(success == false){
} else {
trace("inside anotherLoader: "+anotherLoader.text);
}
}

loaderObject.load(inputFile);
anotherLoader.load(inputFile);
}
The file that both of these loaders, ('loaderObject' and 'anotherLoader') are loading are the exact same. The only difference between the two is that ‘loaderObject ‘ is a class variable (so it can be access in another method), while ‘anotherLoader’ exists only inside the method. If it matters, the class (that this method is in) extends MovieClip. The file itself is a text file that contains 1 line: “text=This is a sample string of text.”

When I run this I get:

inside loader: undefined
inside anotherLoader: This is a sample string of text.

Any ideas why 'loaderObject' can’t load the text/file?

Is Too Many Movie Clips A Bad Thing?
I'm creating a Flash website that's going to duplicate movie clips. I'm going to be duplicating 30 movie clips about 600 times in total (say).

Is that a bad thing to do?
The movie clip themselves are just simple small graphics with no animation.

Will duplicating that many clips effect the performance say?
I once did something similar and it slowed down the graphics (but that was a bit more complicated though).

I was just after some opinions from more expert Flash users.
Any feedback/answers/suggestions would be appreciated.

Thanks.


Jam

Making A Thing Any Of Which Will Interact With Any Of Another Type Of Thing
Well i know that title was a bit vague but heres what im trying to do, ive been larning to use flash for the past couple weeks, I'm using flash MX, i am expeirienced in other programming languages. What id like to do is to make an object, in this case a turet, which has code in it and can be duplicated, i know how to do that part, but, i want to be able to make it and copy it, and also have an enemy i can copy, a zobie, and have any of the turrets shoot at any of the zombies that get close. They cant all be pre scripted with eachothers names because i want to be able to create either after the program starts.

Basically, the zombies come out all over during the program and the player clicks where he wants to put turrets and those turrets shoot at whichever zombie is closest to them. Im sure its not that hard, and probably would involve arrays, but since im still learning how flash works im not sure how it can be done. Any help is apriciated, thanks. While i wait for a reply I'm going to read some more on how arays work in flash since i think they may be the answer.

Thing Thing Arena Type Game.
I want to make a shooting game, but I had a question first. How can I make the hand follow the cursor constantly, but never leave a restricted area? I would like to know how, thanks.

What I Really Don’t Get Is How The Preload Movie Thing Works?
I’ve got a main movie called ‘main’, and I trying to preload two others larger swf into it, called music.swf and gallery.swf.

In my main movie I’ve got this:

-in frame 1
stop();
loadMovieNum("music.swf", 1);

-frame 2
stop();
loadMovieNum("gallery.swf", 2);

- frame 3
stop();

I’ve then blanked the first three frames of muisc.fla and put this:

-frame 1
ifFrameLoaded ("Scene 1", 1) {
stop();
_level0.nextFrame();
}

-frame2
gotoAndPlay(1);

-frame 3
gotoAndStop("Scene 1", 1);

I’ve done the same for the gallery.fla. When I run the main.fla nothing happens, bugger all? I tried putting a button on the main movie and placed a on (release) loadMovie instance to it, but not even the button comes up on screen. If I don’t blank the first three frames of the music.fla and gallery.fla and leave the frame content in, both movies load on top of each other when ‘main’ is run….?

Sorry for writing this in stupid format but I need to in order to get it across (for me!), I can follow the code, but don’t get how flash works it out with the levels, something tells me its fairly simple but, boy, its pissing me off!!

Any help would be great!! Thanks

Weird Thing At Top Of Flash Movie
Hello... please help this thing is driving me crazy. If you got to the link you can see what im talking about. There is a flash movie on the right side of the screen. On the top left hand corner of th flash movei there is some kind of extra flash pixel garbage or something. It makes everything look like crap because it breaks the line thaat goes across the screen. (you'll see what i mean when you look aat the link) I hae no idea wahts causing this. I have looked at the origina image i am using forthe background in t he flash file and did not see anything..

Thanks in advance for any help.

http://beatsandproduction.com/gnxmed.../design_1.html

Movie Symbol Slider Thing
Hi

I asked this question yesterday, but because my actionscripting leaves a bit to be desired I have been having a bit of trouble implementing the solution I was given.

The problem is that I have a menu with a slider on it. The menu, slider and buttons all reside within a movie symbol, the problem is I cant get the buttons within the movie symbol to communicate with the main movie, namely getting the buttons to take you to different scenes.

Can anyone help??

Max

[F8] How Do I Tell Multiple Movie Clips To Do The Same Thing?
I'm making a website for my Mum's little chocolate shop and I'm stuck.

She wants to allow users to create their own bags of chocolate drops. There are 9 flavors they can pick from and have any combination from 1 flavor to all 9 in a bag. (hehe sounds like a maths exam)

I'm pretty new to this kind of actionscripting... but I'm trying to learn how to do things the *right* way rather than cheating and going the long way round as I have for all these years!

I have a picture of the bag with all the drops on one side and some toggle buttons on the other where you can tick the flavors you want. I've managed to get it so when you toggle the flavors on and off it sets the flavor to true/false and counts the total number of flavors.

Within the bag I have 10 frames with each of the flavor combinations. So:
frame 1 = no drops,
frame 2 = 1 flavor drop,
frame 3 = 2 flavors of drop,
frame 4 = 3 flavors of drop etc

The drops themselves are the same movieclip repeated 74 times. Each one is made up of 9 frames with each flavor represented.

Now in the first frame I have:
______________________________________________

onEnterFrame = function () {
if (numberFlav == 0) {
bag.gotoAndStop(1);
}
if (numberFlav == 1) {
bag.gotoAndStop(2);
}
if (numberFlav == 2) {
bag.gotoAndStop(3);
}
if (numberFlav == 3) {
bag.gotoAndStop(4);
}
if (numberFlav == 4) {
bag.gotoAndStop(5);
}
if (numberFlav == 5) {
bag.gotoAndStop(6);
}
if (numberFlav == 6) {
bag.gotoAndStop(7);
}
if (numberFlav == 7) {
bag.gotoAndStop(8);
}
if (numberFlav == 8) {
bag.gotoAndStop(9);
}
if (numberFlav == 9) {
bag.gotoAndStop(10);
}
};

var numberFlav:Number = 0;
var gotMilk:Boolean = false;
var gotWhite:Boolean = false;
var gotPlain:Boolean = false;
var gotStrawberry:Boolean = false;
var gotOrange:Boolean = false;
var gotLemon:Boolean = false;
var gotCapp:Boolean = false;
var gotHoney:Boolean = false;
var gotCara:Boolean = false;
______________________________________________

This is working fine, the toggle buttons +1 or -1 to numberFlav which in turn tells the bag to display the right frame for the number of flavors.

Say the user wants an all white bag of drops. They tick the white option and "numberFlav = 1" and "gotWhite = true." BUT...now its getting tricky...

I'm guessing I need to adjust the above code so:

if (numberFlav == 1) {
bag.gotoAndStop(2);
if (gotMilk = true) {
bag.drop1.gotoAndStop("milk");
bag.drop2.gotoAndStop("milk");
bag.drop3.gotoAndStop("milk");
bag.drop4.gotoAndStop("milk");
...etc...
} else if (gotWhite = true) {
bag.drop1.gotoAndStop("white");
bag.drop2.gotoAndStop("white");
bag.drop3.gotoAndStop("white");
bag.drop4.gotoAndStop("white");
...etc...
} else if (gotPlain = true) {
bag.drop1.gotoAndStop("plain");
bag.drop2.gotoAndStop("plain");
bag.drop3.gotoAndStop("plain");
bag.drop4.gotoAndStop("plain");
...etc...
}
}

Now I know there MUST be a way to get flash to register drop1 -> drop 74 without me having to type every single one in... but I can't for the life in me figure out how. I found something similar on here (http://board.flashkit.com/board/show...ple+movieclips) but I can't seem to get it working... and as its from 2002 I wondered if things had changed since then.

I tried Googling "Controlling multiple movieclips Flash" but it just has the basics about controlling different named movieclips at the same time, D'oh! I also have a couple of Actionscripting books I've been working though, but I can't seem to adapt the code right.

Any help would be much appreciated!
Thanks!

Getting All The Buttons In One Movie Clip To Do The Same Thing
right....

basically, i have like 8 buttons which do the same action when the mouse rolls over and off it....

the buttons are built as movie clips......


Code:

garm.onRollOver = function () { garm.gotoAndPlay(2); } ;
garm.onRollOut = function () { garm.gotoAndPlay(6); } ;

goldsmiths.onRollOver = function () { goldsmiths.gotoAndPlay(2); } ;
goldsmiths.onRollOut = function () { goldsmiths.gotoAndPlay(6); } ;

iman.onRollOver = function () { iman.gotoAndPlay(2); } ;
iman.onRollOut = function () { iman.gotoAndPlay(6); } ;
this gets too much time to type again and again.

is there way way to simplify the code????

Button In A Movie Clip Thing
Hi there,

How can I disable a button that loads a movie clip into another movie clip and (the button) resides in another movie clip???

Any help would be much appreciated.

How A Flash Movie Works With The Loading Thing
i have been wondering all this time, since i am a newbie too.
If you have a flash movie, how do you put everything in loading techniques so people who open our website do not wait too long.

For example if you have portfolio section menu in you web. Do we have to call the portfolio.swf with the loading inside the portfolio.swf ? I just really dont understand how the loading works. Can anyone give some flow chart of the logic behind the loading technique.

Sorry if the question is not so clear.

Thanks everyone that wants to help me

Multiple Layers Of Same Movie Clip Slow Whole Thing Down
I'm still pretty new at this, this might be a question with a totally obvious answer....

My clients gave me a 3 large images (700x525) that they want to flash. The size is giving me difficulties because everything is quite choppy, so my first question is: is there a way to deal with large images so the flash isn't choppy-looking?

There is a transition element between categories of images that is made of of transparent circles morphing and fading out, so you see all this motion and suddenly notice the background when the circles fade. I made this a movie clip that runs about 4 seconds. In my flash file I have 4 layers, each with the same movie clip starting all at the same time. When I view it on the web, it is really slow and choppy:
http://www.theberryman.com/flash/blueCircles2.html (looped so you just see this part).

Here is another version with just one instance of the movie:
http://www.theberryman.com/flash/blu...tOneMovie.html

The question is: Why should 4 instances of a movie playing slow it down so much, and is there anything I can do that would change it? My only thought at this time is to add more layers and circles to the movie to cover the whole 700x525 image at one shot and then just use the one instance, instead.

Can The Load Movie Action Be Used To Load A Specific Frame Of A Movie?
can the load movie action be used to load a specific frame in a movie?

Does Load Movie LOAD Entire Movie, How Can I Stream It?
i have a load movie loading my music. I have a preloader at the front of my music, but i dont think the preloader is working on load movie. Does the load movie command download the whole movie into cache, or does it just start playing the movie.

IE.. if i have a 5 meg mp3 that i wanna dled and listen to, is it just downloading the whole thing, until the movie is loaded, and then playing, or is it streaming it in?

i tried to make a preloader for it, but it looks like the preloader just instantly zooms across... how can i show status of this movie loading?

thanks

External Movie Will Not Load, But Does Load When I Use 'test Movie'?
I had my external movies loading wonderfully then all of a sudden one of the externals (that I use 'loadmovie' on) will not load? The weird thing is that when I test my movie using 'test movie' in my main movie, it works fine, but when I go to my staging (test) site: www.gbebos.com/Liz/Hit.htm the one movie in 'Earth elements' page will not load, but the other movies i.e. 'Crystal Elegance' and 'Silver Essence' work fine. I made sure that the .swf and .html were transfered to the domain and they are both there.

Any help for this newbie would be greatly appreciated!

Thanks again to ya all at Flashkit!

gbebos

How Do I Stop My Second Movie Load Clearing My First Movie Load?
Hi,
Working on a home page where a swf movie loads and plays on the timeline.
The problem is when the second swf movie loads and plays further along the timeline the first swf movie disappears...I want it to remain on my stage!

Any ideas?

Cheere Jim

Here is the code I'm using to load the swf movies:

this.createEmptyMovieClip ("emptyClip",this.getNextHighestDepth());
emptyClip.LoadMovie(...swf");

Chromeless Windows That Open On Movie Load Or Load Of Html Page (Flash Ad Kit)
Hi guys,

I was wondering if someone could help me out in creating these flash ads that appear out of nowhere. I see them mostly on rediffmail, yahoo and about.com.
I know how to create a popup window on button click, but how you do that without a button.

There's another dimension of ads nowadays. They are the transparent ads. They really look cool. Could someone with this knowledge pleeeeeeeeese help me out. I urgently need to create these ads.

Regards,
designable

Chromeless Windows That Open On Movie Load Or Load Of Html Page (Flash Ad Kit)
Hi guys,

I was wondering if someone could help me out in creating these flash ads that appear out of nowhere. I see them mostly on rediffmail, yahoo and about.com.
I know how to create a popup window on button click, but how you do that without a button.

There's another dimension of ads nowadays. They are the transparent ads. They really look cool. Could someone with this knowledge pleeeeeeeeese help me out. I urgently need to create these ads.

Regards,
designable

Scrollpane - Load Swf - Load Movie Symbol Controled By Buttons And Variables?
Ok i have searched the board, and racked my brain and read hundreads of bit and pieces. So far 'not happy jan'. Anyhow I thought well I shall start a thread where first I ask a question of 'can it be done' then go away try and do it and if fail 'ask how to do it' or if suceed then say 'how i did it'. Of course all questions are going to relate back to this original post so no new threads need to be started. Anyhow onto my question!!

I have a website I want to make. so I started... called it 'site.swf'. now site.swf has a scrollpane in it called 'content'.

Now I have also created 'home.swf' which has 2 movie symbols in it. one called 'homein' the other 'homeout'.

'Homein' is located in frame1 of home.swf and 'homeout' is located in frame2.

When site.swf loads I want to load home.swf into 'content' and home.swf plays 'homein'.

When the user clicks on the first button (in site.swf) 'content' plays 'homeout' before loading 'button1.swf' into 'content' and playing 'button1in'

see the pattern forming. Now I am sure this has been asked thousands of times, but I haven't found it once. At least in a form that is easy to understand.

Now can this method be done, or do i need to go away and rethink it. (my main reason for loading external.swf's is because i wish to preload where needed).

If all this can be done tell me now... I am sure I need to use 2 variables.... 'loadedmovie' and 'tobeloaded' to communiticate with 'content' and to follow the users clicks of buttons.


Thanks for any help.

Trent

Movie Taking Long Time To Load, Needs To Load Faster
I am a loading several movies into level 2 of the main movie. The movie is taking up to 1.35secs to load. The issue is that the images are too big. Can I do something about the movie itself or do I need to compress the images more?

(mx) Transfering Actions Which Load With Movie To Load When Button Is Pressed
hi,

I have some code which draws a line when the mouse is pressed (to when it is released)

This code is within an object, loads when the movie starts and works fine:


Code:

// ***** Set some opening parameters
onClipEvent (load) {
// Make original line invisible
_root.line._visible = 0;
// Initiate some variables
number_lines = 0;
line_active = 0;
}
// ***** Every time the mouse button is released...
onClipEvent (mouseDown) {
// Get the position of the mouse
origin_x = _xmouse;
origin_y = _ymouse;
// Increase the number of lines by one
number_lines++;
// Generate a new line name
name = "line"+number_lines;
// Duplicate a new line
_root.line.duplicateMovieClip(name,number_lines);
// Position the line's end point at mouse position
_root[name]._x = origin_x;
_root[name]._y = origin_y;
// Update line length / orientation
_root[name]._xscale = _root._xmouse - origin_x;
_root[name]._yscale = _root._ymouse - origin_y;
// If this is the start of a new shape
if (!line_active) {
// Set the line tracking variable
line_active = 1;
// Set the start point of the new shape
start_x = origin_x;
start_y = origin_y;
}
}

onClipEvent (mouseUp) {
line_active = 0;
}

// ***** Every time the mouse is moved
onClipEvent (mouseMove) {
// If there's a line currently being drawn...
if (line_active) {
// Update line length / orientation
_root[name]._xscale = _root._xmouse - origin_x;
_root[name]._yscale = _root._ymouse - origin_y;
updateAfterEvent();
}
}
I want the user to press a button before this code is usable - just as with any drawing program.

How do i go about telling the code only to start when the button has been pressed?

thanks,

jeff

Load A Xml File That Contains Urls - Want 2 Load A Movie Instead Of Open URL Links
i'm just wondering how does one go about to load an xml / text file into a text box.. this text file - has url links.. or a href tags.. how do i change it such that the url links can call actionscripts instead of opening the window to a url..

does that make sense?? if it still doens't - go to www.praystation.com

if you click on the "news" section - his urls open/load movie clips how do i make something similar to that

thanks

Load Movie...Park/Play...Load A Button Into Level
Okay, I tried the Park/Play tutorial in order to load a movieclip and have a button on the stage that controls the main movie. Problem is that I have a background that covers up my button which is in level0. My movie clip is in level1. How do I bring that button out in front of the background? Do I load it into level2? If so, how do I do this?

Thanks alot,
Roger

URGENT Load Movie Doesnt Load Textfields
i mad a form in flash that send the variables to a php email script. The problem i am having is that the form loads into my main movie but when it loads it doesnt load the text fields. I have border.BG checked and everything seems to be in order. Please get back to me a.s.a.p. ANYONE I HAVE ONE DAY TO COMPLETE THIS!!!! blinero@email.com

Load Variable From Txt File To Load Movie From Server
my webserver has a dynamic ip adres
now i have a program that writes my ip adress to a static server.
my question:
load textfile and make the link for the swf complete
i think it should look something like this but i can't find it anywere

code:
loadVariablesNum("redirectphp/currentip.txt", 0);
this.gastenboek.loadMovie("http://"+ip+"/flash/Guestbook.swf");

the txt file is like:
&ip=90.128.82.20

the swf file is in flash 7
please help me

Load Movie Into Empty Clip On Page Load
I have a series buttons and two empty clips on the main page (one to hold the text and the other to hold the pictures / slide show) I have all the buttons working and loading the text etc correctly.

My problem is that when my page firsts loads all I have is the buttons. I want to have the empty clip that holds my text have my "welcome" load when the page loads (without clicking on any buttons).

I have tried using

onClipEvent(enterFrame) {
loadMovie("welcome.swf",this.mtTextClip);
}

but I get an error message that clip events are only allowed on movie clip instances and as I want this to happen when the page loads there isn't an instance name...

Clear as Mud??

Load A Flash Movie To A Random Frame Each Load
I have created a flash file that fades from one picture to the next. However, I would like to find an actionscipt that will allow the flash movie to load to different each time the page is visited/refreshed. That way visitors don't have to see the same image each time the visit the my page, but can still sit and watch all of them if they want. Also I would want to be able to specify which frames are available for load. That way the page will always load at the begining of each image animation... not right in the middle of it switching to the next image.

Any help is greatly appreciated!

Load A Flash Movie To Specified Random Frames Each Load
Group:
I am trying to find a Actionscript where I can specify random frames and have the movie randomly load to the specified frames each time the page is viewed. The below scrip was given last time I posted this question, but it doesn't seem to load at the specified frames. Sometimes it does, sometimes it load right in the middle of an animation. You can see in the code below I would like the movie to load at frames 1, 116, 231, 346. Any suggestions?

_____________________________________________________

Array.prototype.shuffle = function() {
for (var ivar = this.length-1; ivar>=0; ivar--) {
var p = random(ivar+1);
var t = this[ivar];
this[ivar] = this[p];
this[p] = t;
}
};
ASSetPropFlags(Array.prototype, ["shuffle"], 1, 1);
var Array_ar:Array = new Array(1, 116, 231, 346);
Array_ar.shuffle();
index = 0;
function load_random() {
gotoAndPlay(Array_ar[index++]);
if (index == Array_ar.length) {
(index=0);
}
}
load_random();

Load Movie But Sound Doesnt Load.
i dont understand why this is. maybe im forgetting something
all i want is when the page loads it also loads an external movie clip that is the background music,
i can do this, but when i do, the sounds doesn't transfer over with it.
but if I make the bgmusic clip the main movie and load the others into it, it works [the sound that is]..but we dont want this
some help would be much appreciated. thanks bros..

Load Movie To Load Jpeq Files
Load Movie in MX allows you to load .jpg files dynamically.
In test mode the output window will show you an error if the
file cannot be found.

Is there any way determine if there is a file error when not in
test mode? Is there something equivalent to the LoadVar if (success)?

thanks,

YJ

Load, Unload, Load... Will The Movie Need To Download Again?
hi,

I have a quick question about loadMovie and unloadMove...

If I load an external movie (section 1), lets say its 200k, and then unload it when the user moves to another section (section 2).

When returning to section 1, when the external movie is called to load, will it need to redownload? Or is it saved in some type of cache area?

any help or a point to a resource would be great.

thanks,
alex

Load Variable/load Movie Jpg Question
I'm trying to load a path and a jpg file name from an external file and then apply it to a variable. Then using the LOADMOVIE action I want to use the variable as an expression to load the JPG into a particular movie.

My action script is as follows:

onClipEvent (load) {
loadVariablesNum("sniffer.txt", 0);
}

Sniffer.txt reads
link1=home1.jpg

I then have:
loadMovie(link1, "1");
on frame 2.

The weird thing is that it works in the Debugger but not when I publish it as a SWF or HTML.

Any ideas?
Walt

Load Text With Load Movie Clip
Guess I'm dealing with some sort of "root" thing, which I don't understand. I have a movie-clip being loaded into a target on the main scene. This movie-clip features a text-box with external TXT file being loaded into it. Well, it doesn't load. In the actions box, what should it say?

loadVariablesNum("myText.txt", 0);

That's what I have at the moment, but "0" obviously isn't working. Also, should it be "target" or "level?" The instance name of my textbox is "scrolltext."

Thanks for the help, I only know enough to be dangerous.

[MX04] Load Movie Clip...wait...load Another Movie Clip
ok...i'd like to do this all in actionscript if possible...on one frame.

one character (headshot). at timed intervals, the character would do something different...repeat.

[code]function antics() {
mc_Antics.start(0,0);
clearInterval(anticstime);
}
anticstime= setInterval(antics, 1000);

function antics2() {
mc_Antics2.start(0,0);
clearInterval(anticstime2);
}
anticstime2= setInterval(antics2, 2000);[code]

I don't know actionscript well at all, so is this just stupid? Any ideas on how to do this? It's not working right now...

Help Me When I Load A Movie And Load A Other Movie Then You See Two Movies?
help me when uh press a button a movie begin to start. but when i press on a another button the old movie dont go away and you see two movies?. that is very ugly and i want that when you press on a button that the other button go away

Pre-load Load Movie Swfs
can I preload external swfs into the main movie that are on the load movie action?

Load Movie And Load Variables
on my current project

www.enhancedinnovations.com/brp/news.html


I have 2 text boxes and I have 2 problems. So far, the bio page and the news pages are completed and there are two text boxes on each page. When you go the the news page (www.enhancedinnovations.com/brp/news.html), it all loads dandily and the text loads too.. but when you click on bio, the information doesn't come up.. but if you go to the bio page (www.enhancedinnovations.com/brp/bio.html), then it all works nice and dandy..also, if you are on the news page, click the bio button, when the bio page is loaded, click the news page, and quickly glance below the buttons, you can see the "biography." which is the current text there.. can someone help me so that the text always loads no matter what? or am I just retarded and should uninstall flash?

Load Movie Wont Load...please Help
I am trying to load a swf into a movie and I get a not found error.

code: on (release) {
_ROOT.mtClip.loadMovie("satisfaction.swf");
}


The name of the empty clip is mtClip and that is the instance as well. The files are in the same folder

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