Help With Loading Flash File On To A Movie Clip
Hey I'm having a little bit of trouble on getting the flash file to load into a movie clip. I have been at this for about 2 days and I'm not having very much luck first I made a menu second I converted it to a movie clip third I created a blank movie clip to insert the action script forth I tested out and it give me a error which is this (**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: ')' or ',' expected
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on/onClipEvent handler loadMovie("instructionalmovie.swf","theMenu" and then finally I had to take the code out of the movie clip and then insert it into a layer 1, there was no error after that but when I preview the movie it gives me a error saying it can't find the .swf movie because it is looking on the hard drive itself and is not looking for it in the flash file is there anyway I can fix this problem ? here is the code that is functioning properly [loadMovie("instructionalmovie.swf","theMenu"]
thanks MadMikeXP
also Cycle has been helping me along with this project but I think she maybe mad at me
FlashKit > Flash Help > Flash General Help
Posted on: 07-09-2004, 11:44 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.
I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.
i am having problems having the menu load an swf into the empty movie clip.
Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.
Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.
I need the menu and the parent movie to stay intact.
i really need help with this asap.
Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.
I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.
i am having problems having the menu load an swf into the empty movie clip.
Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.
Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.
I need the menu and the parent movie to stay intact.
i really need help with this asap.
Loading Txt File When Text Box Is In A Movie Or Movie Clip
Can you help me to do it when the textbox is in another movie or movie clip...?
I got some code to work for a basic load a file to a textbox... its just when there's a movie/movie clip I all the suddent have trouble...I use movies/movie clips because I like to break everything up and put together the parts and so if I change on part the rest of the site won't be affected.... In any case I could really use a Flash guru right about now...
I appreciate your help,
Chris
Loading A Swf File Into A Container Movie Clip
I'm trying to load a swf movie into an empty movie clip using the following code....
loadMovie ("contact.swf", "_root.level1.targetclip") ;
I have named the instance of the empty movie clip "targetclip" but doesnt seem to let me load the movie - when i do get it to load it loads top left and i need to be able to position the movie elsewhere on the stage...
Any help is appreciated.
Regards
Mac
Loading .html File Into A Movie Clip
Can an html file be loaded into a movie clip? I'm using the getURL command from an MC that will be the source content for a scrollbox. When I test this, the url is loaded into its own window and not within the MC. How can I do this? Any help would be greatly appreciated!
[F8]Loading A .swf File Into A Scrollable Movie Clip.
Ever used the scroll pane componant built into flash?
I was to do EXACTLY what that does, but make it myself so I can customise the appearance of the scrollbar and border. (unless these are customisable already through some technique I'm unfamiliar with?)
If you don't know what that does, it is able to load a seperate .swf file into a size limited area and make said movie clip scrollable.
Problems With Loading An External .swf File Into A Movie Clip
Hi, I have created an online portfolio and to reduce the filesize of the project I have categorised all my work into different files and load then from my index file. The problem I am facing is that when I try and call one of these external files from a button everythign works fine but it does not seem to want to load my preloader which I have present on every individual flash file and you just see a blank screen for a number of seconds or quite some time on a slow connection. I know the preloader works fine as its used and visible when you first launch my site and have used it on many others. I just cant seem to work out why it will only show the preloader when the file is ready to be shown instead of the blank screen I currently get.
I hope someone has some insight to this frustrating problem. I can post the sites address if it helps clarify my problem.
Hope someone can help.
Thx
Eddie
Convert Flash File To A Movie Clip
Hi
Could someone either tell me how to convert this flash movie ( http://www.flashkit.com/movies/Games...7230/index.php ) into a working movie clip or convert it and email it to me ( howard_barrett@yahoo.com ) so I can see how its been done. I have tried converting it but the code no longer works and I can't find what is causing the problem.
Sorry if this is an easy question but I'm a rookie trying to get my head around this program.
Thanks for your help
Howie
Loading A Director Clip In A Flash Movie
I was wondering if there was a way to play a director clip within a flash movie. I am working on a flash project that will play many flash and a few shockwave movies. Is it possible to mix director with flash? any feedback will be appreciated.
thanks
Conditional Loading Of Second Movie Clip Flash MX
I have a movie clip which is two images.
The images slowly increase in scale and can be contolled by the mouse movement.
I have the first half working but how would I write a conditional statement that turns mouse control over to the second clip? I want the second one to slowly fade up over the first image after the first has increased in scale about 300% and become the navigable clip.
here is the script I have for the inital movie clip:
onClipEvent (load) {
while (this._width<Stage.width || this._height<Stage.height) {
this._xscale += 1;
this._yscale += 1;
}
minScale = 100;
maxScale = 350;
// This number affects how quickly this movie clip scales UP.
scaleUpRate = .25;
// This number affects how quickly this movie clip scales DOWN.
scaleDownRate = .4;
//
// This "flag" is turned on and off ("up" or "down") by the code below.
// It determines whether the movie clip will scale up toward
// maxScaleor scale down towards minScale.
//
scaleFlag = "up";
}
// end onClipEvent(load)
onClipEvent (enterFrame) {
// Use this variable to set a maximum "speed limit" for the motion
maxSpeed = 20;
// Use this number to adjust the overall "responsiveness" (speed) of the motion
speedMultiplier = .05;
//
// First, we calculate the target position for the clip.
// The target postition is based mainly on the (x,y) position of the
// mouse on the stage, but it also takes into account the dimensions of this movie clip.
//
targetPositionX = -1*(_root._xmouse/Stage.width)*(this._width-Stage.width);
targetPositionY = -1*(_root._ymouse/Stage.height)*(this._height-Stage.height);
// Next we calculate the distance from the targetPosition(s)
distanceFromTargetX = Math.abs(this._x)-Math.abs(targetPositionX);
distanceFromTargetY = Math.abs(this._y)-Math.abs(targetPositionY);
//
// Then we calculate the "speed" at which the movie clip will move. This is actually
// calculating the distance (in pixels) that the movie clip will move this frame.
//
speedX = (distanceFromTargetX*speedMultiplier);
speedY = (distanceFromTargetY*speedMultiplier);
// Reinforce the speed limit with these two if conditionals
if (speedX>maxSpeed) {
speedX = maxSpeed;
}
if (speedY>maxSpeed) {
speedY = maxSpeed;
}
if (this._x != targetPositionX) {
this._x += speedX;
}
if (this._y != targetPositionY) {
this._y += speedY;
}
if (scaleFlag == "up") {
if (this._xscale<=maxScale) {
this._xscale += scaleUpRate;
}
if (this._yscale<=maxScale) {
this._yscale += scaleUpRate;
}
if (this._xscale>maxScale) {
scaleFlag = "down";
}
}
if (scaleFlag == "down") {
if (this._xscale>=minScale) {
this._xscale -= scaleDownRate;
}
if (this._yscale>=minScale) {
this._yscale -= scaleDownRate;
}
// set the scaleFlag to down if we're below minScale
if (this._xscale<minScale) {
scaleFlag = "up";
}
}
if (this._x>0) {
this._x = 0;
}
if (this._y>0) {
this._y = 0;
}
if (this._x+this._width<Stage.width) {
this._x = this._width+Stage.width;
}
if (this._y+this._height<Stage.height) {
this._y = this._height-Stage.width;
}
updateAfterEvent();
}
Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,
I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.
I have tried:
on (release) {
loadMovie (ithink.swf, "loader");
and
on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}
and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.
Any suggests or ideas!!?
I would really appreciate it... I am beyond frusterated!!
Loading A Html Page Into A Flash Movie Clip
lets say that I have an account on a site that generate a page with some informations like this
http://www.thissite.com/index.php?us.................
Can I load this page in a flash movie clip
If I use a projector I am able to load this page in my projector
so I want to know if I can make this on my flash site
->to load this web page in in my main swf
?????????????????????????????
Loading A .txt File Into A Flash Movie
Hi People!
I have heard that it is possible to load a text (.txt) file into a Flash movie.
Does anybody know how one would go about doing it.
The reason it would be handy is because, when I type text in Flash, and then view the .swf, the text seems to be anti-aliased, so the whole thing looks like an image, even if I turn 'anti-alias text' off in the 'view' menu.
I'm wondering if loading the text in from an external txt file would give me HTML (no anti-alias) text, for maximum legibility.
Can anybody help please!
Cheers!
Loading Movie In Flash File
I tried to create a swf which loads a movie. The result is that the loaded movie is off-centered. It moved "down to the left" for several pxs.
Another problem is the backgroundcolor. I want to have is white which is it in the fla-file but when running is in swf it is black!
What do i do wrong?
The result can be viewed here:
http://www.inboxwatch.nl/bone/loading2.html
Need Somebody To Attach A FLA File With A Clip Loading A Clip Within Itself
Hi,
I was just wondering whether somebody could be so kind to attach a sample .fla file of a movie clip loading a clip within itself including a preloader for the clip within itself.
I hope I'm making sense. I just want an example so I can see how to load clips within clips with preloaders.
Any help will be greatly appreciated!
Thanks a bunch!
Blastbum
Loading A Text File Into A Flash Movie
We've all seen Applet tickers that load text files and then scroll the text zontally or tically, how do I get a swf movie to load a .txt file?
Easy in HTML. I know how to tween, etc., but I don't know advanced stuff. I know how to paste in action script, obviously.
Any help would be great.
Loading A Movie In A Separate Flash File
So we are making a menu system for a website and we want to update the links with flash. We have been given a template we have to conform to so we can make the buttons part of the main screen. So it will be to seperate flash files. Can I still have a button play a movie on the main screen file?
Dynamically Loading A Movie Outside Of The Flash File
Hey, been researching a solution to this problem for the past couple of days now.
What it is, we are trying to discover a way to dynamically load individual movies into a flash window display. I realise this is going to require the use of the "loadClip" function. But I guess I should explain the scenario.
Our company is looking to generate quite a few instructional videos that are approximately 1 minute in length if not longer. We've established that Flash would be the prefered method of presenting these videos as a majority of users out there have flash player plugin's and that they are easier to download as well... However.
I've run into the issue of getting some questions answered:
1) I know flash can have actionscript place in the file to bring in a .FLA Movieclip outside of the current flash file being loaded. I also know we can bring in outside non-progressive .jpg files. Now I've been tring to discover is if it is possible to bring in outside: WMV, MPEG, or MOV files without converting them to a Flash Movieclip?
a. continuation) If we can, does flash play these outside files by itself or do the users still require the media player being used to be loaded on their system in order to view it, or can it play the (wmv, mov, or mpeg) by flash itself?
2) tring to figure how we could do the code to dynamically pull these individual movies into Flash. Possibly by checking a parameter such as the current URL loaded. or a property that is update based on an outside link being clicked. (should note that our main site is majority coded in ASP.NET).
3) Would it be better if we just made individual Flash Splashes that showed the list of Videos needed for the particular product, rather then dynamically tring to itemize it thru a Flash ASP.NET cross over?
4) once setup, is this going to be easy to update? Adding new videos or updated instructional videos. Or removing outdated videos for that matter?
5) can we have our videos download to users progressively or would we need to invest in a streaming server to perform this.
6) Is this going to cost affective? Or should we turn back now and seek another method of doing this.
I realise this may seem alot to ask, but as I have said I have researched this for several days now. And for the last two I've tried repeatedly to get in contact with someone from Macromedia's advanced support people but keep getting nobody. My search for instructional sites, videos, or macromedia tutorial help brings up nothing involving something this complex in nature. I hope someone can provide an answer.
Loading A Movie Clip With Preloader Into Empty Clip
OK, stoopid question for those who know the answer:
I am trying to load a movie contac.swf into an empty movie clip "thedmovie" thus:
loadMovie ("http://321webliftoff.net/contac.swf", "thedmovie");
The problem is that the movie contac.swf contains a preloader:
frame 1:
_root.firstloading.percent = int ((this.getbytesloaded() / this.getbytestotal()) * 100);
frame 2:
if (_root.firstloading.percent < 100) {
gotoAndPlay (1);
} else {
gotoAndPlay (5);
}
and I can't work out how to get contac.swf to display in the empty movie clip, "thedmovie".
Loading A Movie Clip With Preloader Into Empty Clip
I am trying to load a movie contac.swf into an empty movie clip "thedmovie" thus:
loadMovie ("http://321webliftoff.net/contac.swf", "thedmovie");
The problem is that the movie contac.swf contains a preloader:
frame 1:
_root.firstloading.percent = int ((this.getbytesloaded() / this.getbytestotal()) * 100);
frame 2:
if (_root.firstloading.percent < 100) {
gotoAndPlay (1);
} else {
gotoAndPlay (5);
}
and I can't work out how to get contac.swf to display in the empty movie clip, "thedmovie".
Loading A Movie Clip With Preloader Into Empty Clip
OK, stoopid question for those who know the answer:
I am trying to load a movie contac.swf into an empty movie clip "thedmovie" thus:
loadMovie ("http://321webliftoff.net/contac.swf", "thedmovie");
The problem is that the movie contac.swf contains a preloader:
frame 1:
_root.firstloading.percent = int ((this.getbytesloaded() / this.getbytestotal()) * 100);
frame 2:
if (_root.firstloading.percent < 100) {
gotoAndPlay (1);
} else {
gotoAndPlay (5);
}
and I can't work out how to get contac.swf to display in the empty movie clip, "thedmovie".
Loading A Movie Clip Inside Of A Movie Clip?
I have a movie clip on my stage, and when you click a button I want to load a movie clip inside of that one from my libary. I know this is a stupid question, but right now mind mind is boggled.
Loading Movie Clip Into Loaded Movie Clip
Hi,
I'm working on a flash site and I'm having some trouble with the programming for it. I'm not so great at action script, so I'm hoping that my troubles are caused by my own stupidity and that some cool smart person will have an answer for me.
So, I have a main menu flash file that functions like the one in this tutorial:
http://www.kirupa.com/developer/mx/p...transition.htm I set it to load various swf files and it's works just fine. What I want to do is have it load a swf that functions exactly the same (buttons that load external clips with transitions) as the main swf- this is a sub page menu. So, in theory, the sub menu page should load the final content, and three swfs would be seen stacked ontop of each other.
I changed the instance names in the sub menu file to be different than that in the main menu file. This fixed the original problem of it loading the content clip into the clip that the sub menu should stay in. Now, It loads the sub menu just fine, but then it gets stuck and never loads the content. The sub menu buttons will not function at all. Independent of the main menu, the sub menu file works perfectly What can I do??? Does it have anything to do with the "_root"? I never understood the concept, so I'm having trouble with it. Any help at all would be highly appreciated. Thanks Much!!!
Loading A Movie Clip Inside Of A Movie Clip?
I have a movie clip on my stage, and when you click a button I want to load a movie clip inside of that one from my libary. I know this is a stupid question, but right now mind mind is boggled.
Loading Movie Clip Into Loaded Movie Clip
Hi,
I'm working on a flash site and I'm having some trouble with the programming for it. I'm not so great at action script, so I'm hoping that my troubles are caused by my own stupidity and that some cool smart person will have an answer for me.
So, I have a main menu flash file that functions like the one in this tutorial:
http://www.kirupa.com/developer/mx/p...transition.htm I set it to load various swf files and it's works just fine. What I want to do is have it load a swf that functions exactly the same (buttons that load external clips with transitions) as the main swf- this is a sub page menu. So, in theory, the sub menu page should load the final content, and three swfs would be seen stacked ontop of each other.
I changed the instance names in the sub menu file to be different than that in the main menu file. This fixed the original problem of it loading the content clip into the clip that the sub menu should stay in. Now, It loads the sub menu just fine, but then it gets stuck and never loads the content. The sub menu buttons will not function at all. Independent of the main menu, the sub menu file works perfectly What can I do??? Does it have anything to do with the "_root"? I never understood the concept, so I'm having trouble with it. Any help at all would be highly appreciated. Thanks Much!!!
Loading Movie Clip Above Present Clip
hi, i have 5 mc's that when their button is clicked open in the same spot.... is there a way that i can make sure that the one the click on opens above the one that is there, without making an empty keyframe at 1 and making the button script
tellTarget (_root.clip1) {
play();
}
tellTarget (_root.clip2) {
gotoAndstop (1);
}
tellTarget (_root.clip3) {
gotoAndstop (1);
}
yadda yadda yadda
that just seems to be a little long-winded to do something that easy
thanks for all help
Loading .swf Files While Main Movie Clip Is Loading
Hello,
I know How to do a Loadmovie command, but I can only get it to work when I goto the Movie Clip that I have that command in. For ex:
In movie clip B I have a command: loadMovie ("Submovie.swf", "_root.MovieClipB");
Which works fine.
What I want to do is while movie clip A is playing I what a command to Start the Load movie function into MovieClip B.
I have tryed many diff. commands and Cannot get it to work
Any help?
Thanks
Loading External Images Loading Bar (Movie Clip)
I have managed to have external images loaded with the progress bar. However, when I place these items into a movie clip the preloader no longer works. can someone please take a look at the flash file for me.
http://www.bloggot.co.uk/file.zip
Problem Loading External Movie Clips Into Target Movie Clip
Hello,
I've been desperately trying to figure how to get this function to work. I created a target movie clip, then assigned an external one to it, but I can't seem to get it to work. Can anyone help me with this and fully explain it so I don't miss anything? I'm using flash professional 8.
Thanks so much!
Rob
Loading Movie Into Empty Clip, But Movie Won't Play
I have 4 movies that i am trying to load into an empty clip in an existing movie. my problem is that when each of these movies are loaded into the clip, I can physically see it, but it doesn't function as a movie, the rest of the larger movie is moving around it, but the smaller movies won't move. I thought this was because I put a stop action at the end of the smaller movies, but when I take it out, the movie just keeps looping when loaded into the empty clip in the new movie.
does that make sense.
PLEASE HELP ME.
HOW DO I SEE MY MOVIES
Loading Movie Clip Onto Different Level To The Movie.swf That It Is Held In
Hi Guys
If any one could put me out of my misery, it would be much appreciated.
I have a movie called main.swf and a movie clip within that main.swf called “car”.
OK so far so Good !
Main.swf is on level 1 and I want the movie clip “car” to be on level 2
I know that this can be done through having the movie clip in a separate swf (ie loading url onto a separate level, however I must have the movie clip in the same swf as main.swf.
Any help would be more than appreciated
Cheers
Loading External Movie From A Movie Clip In The Root
Hey, I ran into some problem with the webstie that I'm designing.
Let's say the root movie is main.swf and within the main.swf, there is a movie clip called buttom that controls the buttom animation. when I push that buttom, I want it to load an external movie, say, external1.swf into the main.swf.
I have the empty movie clip on the stage on main.swf . When I try to load external1.swf, it just wouldn't do it? (I'm using the loadMovie("url","target")command)
Is there anything wrong?
Thanks
Question About Loading A Swf Movie Onto An Empty Movie Clip?
hi all! :D
i have a page that loads up with buttons on it that will open swf movies when a button is pressed.
i would like the movie to open up at a specific size on the page, how do i tell the movie where and how big to open up?
i would like to use an empty movie clip to load the swf onto, but how do i regulate the window/playing size of the swf?
also, if possible, could i have a script that when the viewer clicked on the swf movie that it would open up to full size???
thanks!
.txt File To Movie Clip
I am importing a .txt file which has a list of items, Can I just use a href to a popup window. Or would using a mocie clip that pops up be easier to do. If so How.
Thanks
TJ
Clip Movie File
I need help clipping a movie file so when the image moves across the stage and goes off the stage it becomes invisible. I'd like to eventually place the movie file on a separate stage using loadmovie and have it appear this way. Right now I have created a mask outside the perimeter of the stage so it appears to be invisible. When I bring in the mini movie the mask appears as well. I think I just assumed that onec the movie was published it automatically made the area outside the stage invisible. If some one can direct me that would great.
Loading/controling Movie In Movie Clip
Help!
Let's see if I can describe this problem...
I've got a movie with 2 movie clips, one contains my menu buttons, the other, whose instance i've named content, is essentially empty. I am able to load swf movies into the "content" clip based on the button the click in the menu clip, using the following script:
on (release) {
stop ();
loadMovie ("home.swf", _root.content);
}
Loading Movie From Movie Clip Into Root
I'm trying to 'load movie' ino the root of my movie from a movie clip.
I'm using this script:
on (release) {
_root.loadMovieNum("testmenu_main_clientlist.swf", 1);
}
But it won't work.
I'm using Flash MX.
Please advise - Thanks!
Loading Movie - Movie Clip Or New Level?
What are the advantages/disadvantages of loading an swf either into a movie clip on the stage or on to a new level? I've seen how you can do both, and I'm not sure what the advantages/disadvantages for both options are...Basically I'm comparing loading the swf into a movie clip or into a new level...which is better for this type of thing???
Thanks!
|