Quick Load Movie Query
Hello. I'd like to load a movie then start playing at a specific frame of that movie... below is the code for a button instance where the button calls for action located at frame "label". It doesn't work. As the laughing dies down... can anyone suggest code that does?
on (rollOver) { loadMovie("themovie.swf", "invisibleINSTANCE"); invisibleINSTANCE.gotoAndPlay(label) }
Thanks
FlashKit > Flash Help > Flash General Help
Posted on: 07-14-2003, 07:53 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Quick Question - Need Quick Answer - Load Movie
If I load an swf movie into one mc named "mc1". and then I want to load the same swf movie into another mc "mc2", will the swf need to load again into mc2 or will it already be catched.
I am assuming yes ...
Thanks,
DRB
[Edited by funner on 06-14-2001 at 09:53 PM]
(cs3) Load Movie Query
Hi...
I have a small game I'd liek to include on the preloader for my site, that the viewer can play whilst waiting for the site to load.
I can get the game.swf to load inside a blank mc, no poblem, but then it loses all the actionscript for the game. I guess it's because in the game.swf it calls for things from the _root of the game library, and flash is taking that as a reference to the _root. of the main timeline.
My problem is I'm a little confused as to how to get this to work...
I've tried loading the game.swf onto level 2 of the main timeline and the game works fine then, (but my problem is it puts it at 0,0). Is there a way to move the .swf to a specific x and y position, whilst loading it onto level 2?
If not, can anyone help with the fact I lose the actionscript when I load the game.swf into a mc...
Cheers
Jeff
Load Query String Variables Into Flash Movie
I am trying to load a variable from an HTML query string into my flash movie to load the appropriate movieclip. However, everything I've tried to do is not working... I must be doing something wrong.
My query string in the HTML file looks like this:
<param name="movie" value="components/flash/Navi.swf?navi=home" />
<embed src="components/flash/Navi.swf?navi=home"></embed>
Now, I placed a dynamic text field (temporarily) to make sure my variable was loading- which it does; I just can't seem to use the variable the way I want to.
My goal is for the variable 'navi' holding the data 'home' to control a movieclip in my movie. So if it was "Navi.swf?navi=about" then the movieclip would goto the "About Us" section of the movie.
I tried using this Actionscript:
if(navi == home){
_root.movieclipMC.gotoAndPlay("home");
}
}
if(navi == about){
_root.movieclipMC.gotoAndPlay("about");
}
}
if(navi == home){
_root.movieclipMC.gotoAndPlay("contact");
}
}
What am I doing wrong? Thanks!
Load Query String Variables Into Flash Movie
I am trying to load a variable from an HTML query string into my flash movie to load the appropriate movieclip. However, everything I've tried to do is not working... I must be doing something wrong.
My query string in the HTML file looks like this:
<param name="movie" value="components/flash/Navi.swf?navi=home" />
<embed src="components/flash/Navi.swf?navi=home"></embed>
Now, I placed a dynamic text field (temporarily) to make sure my variable was loading- which it does; I just can't seem to use the variable the way I want to.
My goal is for the variable 'navi' holding the data 'home' to control a movieclip in my movie. So if it was "Navi.swf?navi=about" then the movieclip would goto the "About Us" section of the movie.
I tried using this Actionscript:
if(navi == home){
_root.movieclipMC.gotoAndPlay("home");
}
}
if(navi == about){
_root.movieclipMC.gotoAndPlay("about");
}
}
if(navi == home){
_root.movieclipMC.gotoAndPlay("contact");
}
}
What am I doing wrong? If anyone is able to IM I would appreciate the help... my AIM is barabics. Thanks!
Just A Quick Query...
Hi all,
i have a flash project that i've been working on fo some time now, and the thing is that it's getting a bit sluggish
i do have alot of 'onClipEvent(enterframe)' stuff going on and so i put it down to that.
does anyone know of an alternative command that will check for events without cooking peoples processors quite as much?
tnx
Quick Button Query
How do I make a button stay in the rollover state after it has been clicked, then return to its original 'up' state when another button is clicked??
I'm sure this must be possible?
Quick Button Query
If you assigned a movie clip a rollover function ie make it into a button,
button_1_mc.onRollOver = function() {
button_1_mc.gotoAndPlay(17);
}
how can you then turn it back in to a movie clip so, if you rollover it doesn't act like a button, ie no 'hand cursor'
Hope that makes sense
shef
Quick Query: Your Opinion On JPGs
I am thinking of putting up a photo "window" within my Flash site. The photo itself would be changed once a week (sort of like "Photo of the week").
The question I thought is... what is the best way of doing it? My "method" is to have a file say "weekly_pic.jpg" loaded onto a MC (using loadMovie method) and in order to change the picture, just overwrite the file on the web server with a newer one. That means I would not need to touch the interface.
The second thing (sorry!) is how to load the picture into a shaped MC, e.g. a circle? I was thinking of masking procedure but not sure if this is appropriate?
Any advice would be greatly appreciated!
Cheers
nad
Quick Question On How Often To Query Database.
ok..my login scenario. it works, frame one displays whether or not the login is successful callin a login.asp file and linking to my database.
now i need to know whether i need a separate asp page to 'display' the details from the database that have just been logged into...or can you directly access the other field names within the database using some actionscript(rather then just the username and password which are called in the asp page).
i have some code..from a website, that successfully displays details from a database using a movie clip..with dynamic text boxes within it, and then the boxes are filled with some onmovie load event code. in this example it links to a Getdetails.asp page, and it displays the FIRST record in the flash movie.
which is not what i want, i want the LOGGED IN record's details.
seeing as i have already queried the database, i am thinking that i dont need another asp page, i can call them somehow from flash. and also i would like to know whether i will need to adjust my login.asp page in order to reference the other fields to be used in flash or something..i dunno, someone help me please.
Quick Question About Load Movie
Hi,
Does anybody know if theres a difference between loading movies into levels or target MCs in terms of whether the movie is recognised in the cache? The reason I ask is cos I'm loading small movies into movie clips within my main movie, and have noticed when I go back to the appropriate loading point again they take the same amount of time to load when presumably it should be almost instant.
Any ideas???
Warp
Load Movie Problem HELP QUICK
hey,
i have a very urgent question that i need answered. ok, i have a little menu at the top of my .swf which contains several different buttons. what i want to happen is when one of the buttons is clicked it will load another movie into the current .swf. this is easy, but however, i do not know how to tell the loaded movie where it should be. it always loads in the top left corner of my .swf. is there a way to give the loaded movie coordinates where to load? please help.
my code for the button.
_______________________________
on (release) {
loadMovieNum ("t.swf", 1);
}
_______________________________
thanks in advance for any help.
Jà©Ôß
Quick Load Movie Question
If I place a preloader in a scene before the movie I am Having Load using the LoadMovie command, will streaming debug mode show my preloader work as if it is a normal preloader? Or will I have to publish to web and test it myself? (Flash 5) :| I was wondering this because it seems this way after testing it...Movie works fine though in debug mode no errors.
Very Quick 'load Movie' Question
hi there
i am using the 'loadmovie' command to pull into my main movie a series of smaller movies, but i was wondering, can i load a movie into another movie and then that movie into another movie using the 'loadmovie' command?
simply i want to load movie 'a' into movie 'b'
and movie 'b' into movie 'c'
and movie 'c' into movie 'd'
is this possible?
tasvin
Quick Load Movie Question
Hello anyone! When loading a movie into another is it possible to 'jump' to a nominated frame or scene in that movie? Using something like
loadMovie("moviename.swf", "start frame", "destination movieclip");
or can I 'transfer' variables from one movie to another and do it that way?
Quick Load Movie Question
question is below, here's the code
----------------
on (release) {
Name = new LoadVars();
Name.onLoad = function(success){
if (success) {
_level0.name_function.htmlText = this.name_function;
}
};
Name.load("Sahid/name.php")
stop();
}
----
i want to be able to also load a movie thats on "_level0" the movie is called "MainMovie" and i want it to start playing Frame 10 of "MainMovie", on the same (release) action. is this possible?
thanks!!!!!!
Joel
[F8] Quick Load Movie Question
Hey!... i've never really used loadMovie in depth and im trying to load an swf into my current movie on top with a transparent backround... can anybody help figure this out!? please!
Thanks
Just A Quick Question On Load Movie
ok i got a site im working on... doing it at 60 fps... i load 2 movies over the main swf both only 10-15k
but i get such a huge slowdown.. is there settings that help make the site come up better... instead of getting slow down.... its like when u played nintendo and had to much stuff going on the screen and its slowed down.. cept i only got i explorer open
Need Some Quick Help On Load Unload Movie Clip.
Hello. I'm undertaking a rather large flash site project for a friend of mine who sells SOAP grind shoes. as part of the site, i have a form that i'm designing so the person can fill out the forms and click submit to have all the information sent in an email (via PHP) to my friend so he can fill out the form and send the request for payment.
So far so good, I made some basic fill in forms, radio forms (that returned a variable), and i'm creating one giant string variable by combining all the data (which then the string variable will be sent as the body of the email).
As part of the form, you can select one of the 4 types of shoes, but some shoes are in some sizes. I have a combobox for the size selection, but i need to be able to load the one corresponding movie clip containing the correct combo box, while unloading the other combo box movie clips. I used a simple "on(Press)" code on the radio buttons, but i can't figure out how to unload the movie clips and load just the one. These movie clips are nested, they are not seperate .swf files. Does anyone know how to do this? i've tried unloadMovie(expressgreysize); or loadMovieNum(expressgreysize, 1); but that never worked (the 4 combo box movie clips are labeled expressgreysize, expresswhitesize, expressblacksize, and ordnance, the first 3 are the color variations of the express SOAP shoe, the last is some spare ordnance).
Sorry for the long thing, i hope someone can help. Thanks!
LOAD QUICK TIME VR IN FLASH MOVIE?
hi!
is it posible to load (or insert, it's not for web but cd) a quick time vr in a flash movie (no pop up window)? if yes, how??
thank you very much in advance!
How To Load The Quick Time Movie To SWF Movie
I'm trying to load the Quick Time Movie on SWF movie, how do I insert the right script to let the QT movie appear on the SWF when I press the button?
sample URL: http://www.morvern.jp/open.html
on trailer section instead on Windows Media Player, I would like to put my Quick Time movies. how do I put the scripts on the load movies?
Load External Quick Time Movie With Controller?
load external quick time movie with controller?
Hello,
I'd like to load an external quick time movie
progressively
and include the controller (playhead).
I only know how to do this in .html.
How do you do it directly in Flash
or can I put it in an .html page
and load the URL?
Thank you!
Load Swf Into Swf (specifying In Query String)
Hi I have the following problem (I am not too experiences with flash AS, but trying to learn).
Basically I have the following model:
player.swf (interface that looks like winamp for instance)
song01.swf (swf with imported mp3)
What ends up happening is song01.swf is loaded into player swf. The way it works right now is I have to hardcode the name of the song to load into each player.swf. But what I'd like to do is to specity which song I want to add in a query string and player.swf will pick it up. For instance:
www.mysite.dom/player.php?song=song01.swf
then player.swf in player.php will pick up the variable song01.swf and laod it into itself.
Can anyone give a quick hint? Thanks much guys.
And lastly, I am doing it all in Flash 5.
Vladislav Kulchitski
Jpeg Load Query
hi
i'm trying to set up a preload for loading a jpeg but it isn't working.
please help!!
how can i get the value of a loading jpeg as a loadPercent variable so i can set up a dynamic % readout??
i'm loading the jpeg into an MC like so:
this.mc.createEmptyMovieClip("jpg", 0);
this.mc.jpg.loadMovie("project1/1.jpg");
thanks for ANY help.
Load Query String
Similar to PHP and GD Library
I want the SWF to load the query string and display it in a custom font.
for example
header.swf?word=NEWS
And it would display NEWS in my certain font that is embedded in the clip
How do i load a query string? Thanks
Load Var. XML To Query String
I am trying to load a flv file on a server into a flv player. Right now it is pulling the flv via xml from a file i found on the interwebs.
I'm new and confused as to how I might be able to do this via a query string.
I am guessing LoadVar or loadMovie.....then a swf. then the query; my.swf?="query"
I know what it has to do, I just don't know exactly how to "say" it.
Load Query String
Hello.
I need to load some variables into my flash movie from the asp page that loaded it.
I was going to use a query string on the end of the url but Im not sure how to capture these in my movie.
I know how to load variables by using the loadvariables() but not sure how this applies to Query strings
Can anyone point me in the right direction.
Cheers
Quick Question Concerning "load Movie"
Hi, I'm sure this is a dead simple question, but I'm not sure about syntax. Basically I have several buttons which when pressed load a new swf into a movie clip _root. I want each different button to take the viewer to to a different frame in the loaded movie. So button 2, would open the new swf at frame 1, button 2, would open the new swf at frame 2, etc.
This is the script I'm using to load the new swf:
on (release) {
_root.bigphoto.loadMovie("big photos.swf");
}
What should I add to it?
Many thanks.
AS Query- How To Incorporate Random Load
HI all...this is the fourth version of this question (previous posts were not answered) so hopefully, it's clear this time.
I have this script assigned to a button.
homebutton.onRelease = function() {
if (_root.section != "home.swf") {
_root.section = "home.swf";
_root.transition.gotoAndPlay("closing");
}
I'd like the "home.swf" to be a random clip chosen out of three .swf's. Is there a way to expand this script to include a random choice script?
Thanks.
Load Photos Via Xml From Folder Query
Hi, I have created a flash photo gallery that uses XML to read in the photos that get displayed.
The XML has a different line for every new photo path that i want to get flash to read in. eg (not the same as my one):
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/kresge.jpg</image>
<caption>Kresge</caption>
</pic>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/medialab.jpg</image>
<caption>Media Lab</caption>
</pic>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/stata.jpg</image>
<caption>Stata Center</caption>
</pic>
</images>
BUT, what if I wanted the photo gallery to grab photos sitting in a folder with me having to specify each and every photo file path in the XML ?
Is there a way to get flash to load in all the pics from a folder so that all I have to do is add or delete photos from the folder and not have to edit the XML ?
Any help would be greatly appreciated.
Thankyou
AS Query- How To Incorporate Random Load
HI all...this is the fourth version of this question (previous posts were not answered) so hopefully, it's clear this time.
I have this script assigned to a button.
homebutton.onRelease = function() {
if (_root.section != "home.swf") {
_root.section = "home.swf";
_root.transition.gotoAndPlay("closing");
}
I'd like the "home.swf" to be a random clip chosen out of three .swf's. Is there a way to expand this script to include a random choice script?
Thanks.
Load Vars From.asp Based On A Query String
In a certain part of my movie I want to load variables from an asp file based on a query string. I find out that loadVariablesNum("myAsp.asp?id=1") doesn't work.
How do I do it?
myAsp.asp generates specific results based on an ID...
Thanks!
Movie Query
Hi ,
I am working for my client .Now when i submit a work to my client which is usually the swf file, i write sample all over it.Is there a way my client can remove that sample written and use the file without paying me.?
Thanks,
Mohit
Newbie Movie Query
Hey all can you go to this site and download this file, its a website im starting to work on. Basically the first button on the left i want to lead to frame 2 or the 'home' frame. I thought i knew how to do this, and have tried a few methods, none of them correct. Please download the file by going to this site:
This site
Cheers for anyone who can help!
Matt
[F8] Movie Size Query
A little help here
What is the easiest way to increase the size of a flash template embeded in an HTML page, [B]without[/b] having to resize all the elements of the movie?
Is this possible?
Movie Clip Query
Hey guys, hope you can help me out. I have a Movie clip, that moves in the x direction towards where the mouse is clicked. It's a character, and he moves across grass, however at one point there is some water. I was wondering if there was a way so that when the character crosses the water it splashes or ripples in some way. I was thinking of having a movie clip of the water rippling, but would need code so it plays only when he crosses the water.
Much Apreciated, MikeStand
Newbie Movie Query
Hey all can you go to this site and download this file, its a website im starting to work on. Basically the first button on the left i want to lead to frame 2 or the 'home' frame. I thought i knew how to do this, and have tried a few methods, none of them correct. Please download the file by going to this site:
This site
Cheers for anyone who can help!
Matt
OOP Query (movie Clips)
Hello folks,
This is my first post here. I have recently started learning OOP programming in flash and have also gone through the brilliant tutorial at Kirupa.
I have a query regarding OOP and Movieclips and custom classes (something I haven't been able to get the hang of). I will try and demonstrate my question with an example (I can't think of how else to explain it).
Please do respond to it:
1. I have created a custom class with a variables and a function
function myNote(myNumber){
var myNumber;
}
2. I have then added a prototype of the movieClip class
myNote.prototype = new MovieClip();
3. Created another function
myNote.prototype.onMouseUp = function(){
trace("The number of the note you have clicked is: "+ this.myNumber);
}
4. Finally I have registered the custom class with a movieclip in the library
Object.registerClass("note", myNote);
5. Then I create a few instances of the movieClip on stage
attachMovie("note", 'n0', 100, {myNumber: '1'});
attachMovie("note", 'n1', 101, {myNumber: '2'});
attachMovie("note", 'n2', 102, {myNumber: '3'});
THE PROBLEM:
Now that I have three instances of the movieClip on the stage, so when I click on any of them, the function (onMouseUp...) is summonded and the number (myNumber) of the movie clip is traced in the output window.
But instead of showing the number of the movieClip i clicked on, I get the numbers of ALL the movieclips on stage.
Why is the function running for all the movieclips on stage? Where am I going wrong?
You see ultimately I would like that whichever movieClip i click on, it should change a varibale flag (which will be defined in the class) to activated, but if I face the above problem, then all movieclips will have their flag values changed to activate irrespective of which i click on.
PLEASE HELP!
Thank you,
Abhay
Newbie Movie Query
Hey all can you go to this site and download this file, its a website im starting to work on. Basically the first button on the left i want to lead to frame 2 or the 'home' frame. I thought i knew how to do this, and have tried a few methods, none of them correct. Please download the file by going to this site:
This site
Cheers for anyone who can help!
Matt
OOP Query (movie Clips)
Hello folks,
This is my first post here. I have recently started learning OOP programming in flash and have also gone through the brilliant tutorial at Kirupa.
I have a query regarding OOP and Movieclips and custom classes (something I haven't been able to get the hang of). I will try and demonstrate my question with an example (I can't think of how else to explain it).
Please do respond to it:
1. I have created a custom class with a variables and a function
function myNote(myNumber){
var myNumber;
}
2. I have then added a prototype of the movieClip class
myNote.prototype = new MovieClip();
3. Created another function
myNote.prototype.onMouseUp = function(){
trace("The number of the note you have clicked is: "+ this.myNumber);
}
4. Finally I have registered the custom class with a movieclip in the library
Object.registerClass("note", myNote);
5. Then I create a few instances of the movieClip on stage
attachMovie("note", 'n0', 100, {myNumber: '1'});
attachMovie("note", 'n1', 101, {myNumber: '2'});
attachMovie("note", 'n2', 102, {myNumber: '3'});
THE PROBLEM:
Now that I have three instances of the movieClip on the stage, so when I click on any of them, the function (onMouseUp...) is summonded and the number (myNumber) of the movie clip is traced in the output window.
But instead of showing the number of the movieClip i clicked on, I get the numbers of ALL the movieclips on stage.
Why is the function running for all the movieclips on stage? Where am I going wrong?
You see ultimately I would like that whichever movieClip i click on, it should change a varibale flag (which will be defined in the class) to activated, but if I face the above problem, then all movieclips will have their flag values changed to activate irrespective of which i click on.
PLEASE HELP!
Thank you,
Abhay
Quick Load
I was recently on www.requiemforadream.com and noticed that although it's a very large site, not much time was taken to load the movie. Is there some compression tool in Flash or some scripting trick to make things move this fast (it's a dumb question, I know, but I want to make sure that I haven't overlooked anything)?
Quick XML Load
So here's the deal... I am making a campus map and I would like to make it as easily update-able/editable as possible. It can be seen at http://www.byui.edu/pr/000/tour/. On the side there is a list of campus buildings. These are all Movie Clips and "hard coded" in that each is its own symbol and each had the text typed in by hand. I'd like to make this dynamic by reading an XML file which will populate the text. However, I've found that it wont display the list. It seems as though the frame wont wait for the XML to load all of the text before appearing.
I've tried various things like:
ActionScript Code:
function onEnterFrame()
{
if (locationNames[0].length < 1)
{
loadXML();
var newY:Number = 250;
for (var i = 0; i < locationNames[0].length; i++)
{
this.attachMovie("siteTitle_mc", "title" + i + "_mc", this.getNextHighestDepth(), {_x:0, _y:newY});
eval("title" + i + "_mc").bTitle_txt.text = locationNames[0][i];
newY = eval("title" + i + "_mc")._y + eval("title" + i + "_mc")._height;
//trace(buildingNames[i]);
}
}
}
siteTitle is a blank mc with a text box inside of it named bTitle.
Please let me know of any advice you have for me. Thanks
Desktop Flash Movie Query?
Hey,
I've only just found out that you can make your desktop background a flash movie, and I was just wondering.. Is it possible to use the flash movie to navigate? Open folders and such on the computer (ie. My Computer, Recycle Bin...).
Cheers.
QUERY? Movie Mouse Over Effect [MX]
How can you make a rollover effect on a movie clip ir (goto and play movie on rollover), with out using a button or showing the button cursor???
Appreciate your help!
---+++Will It Load After Or Before? Quick Answer Please
Ok I have a "MASTER" swf with various links. Now when I click button "X" in "MASTER" then an "EXTERNAL" .swf gets loaded into "MASTER".
This "EXTERNAL" SWF has dynamic text field in it.
I have setup a preloader in the 1st frame of "EXTERNAL" swf.
On pressing button X in "MASTER" I will see the preloader loading "EXTERNAL" swf. When the preloader loads I will see "external" swf inside "MASTER"
My question- Will the dynamic text inside "external" swf get loaded after the preloader loads or before?
I know if EXTERNAL swf was on it's own then it's preloader will not take the size of the external dynamic text into account and will load the dynamic after preloader finishes loading...but what happens when it's being loaded into "MASTER"
I hope you understand my question :-O
---+++Will It Load After Or Before? Quick Answer Please
Ok I have a "MASTER" swf with various links. Now when I click button "X" in "MASTER" then an "EXTERNAL" .swf gets loaded into "MASTER".
This "EXTERNAL" SWF has dynamic text field in it.
I have setup a preloader in the 1st frame of "EXTERNAL" swf.
On pressing button X in "MASTER" I will see the preloader loading "EXTERNAL" swf. When the preloader loads I will see "external" swf inside "MASTER"
My question- Will the dynamic text inside "external" swf get loaded after the preloader loads or before?
I know if EXTERNAL swf was on it's own then it's preloader will not take the size of the external dynamic text into account and will load the dynamic after preloader finishes loading...but what happens when it's being loaded into "MASTER"
I hope you understand my question :-O
A QuickTime Movie In Flash And 1 Other Short Query
I know it is possible to insert a movie like Quicktime into a Flash file. How would you do it, e.g. start it, end it, edit it, etc..... The best tip to advice about it, etc.
The second query is much simpler and something that I have a mental blockage at the moment (probably from long hard days trying to restructuring webpages to be accepted in bugger Lotus Notes!) ;o)
Right the query: how would you do an intro where the screen s all black and it seemed as if the screen is flashing. I did something like that but can't find the FLA or SWF files and my long student years must have rotted away my brain cells...
Thanks in advance!
Movie Clip Stopping And Starting Query
hiya,
I have made a Sliding menu (like the one on http://www.barneys.com), but I was just wondering how they have got each movie clip on each image (on the sliding menu) to start playing when it comes into focus. for example,
if u click on "Men" that section slides into focus and THEN the movie clip for that section starts playing.
is there anyone that could help me with code to do this?
I would be greatful for any help. Thankyou.
Iain
|