ActionScript 2.0 :: Targetting - Use LoadMovie() To Load Movie Into Main Movie - Buttons No Longer Work
Oct 1, 2003
I have a movie. In it are some buttons and a dynamic text field. When I press the buttons is should load text from a database into the dynamic text field. If I run the movie by itself (ie. not by LoadMovie()-ing it into a different movie) the dynamic text field gets filled with text and all is well and good. However, when I use LoadMovie() to load this very same movie into my main movie, the buttons no longer work; the text field stays empty.
[Code]...
View 9 Replies
Similar Posts:
May 2, 2009
i have movie clip named serviceMenu which is instance of menuAll in Scene 1
scene 1 have 8 labels:
serv1 - serv2 - serv3 - serv4 - serv5 - serv6 - serv7 - serv8
inside serviceMenu i have 8 buttons
when i doubleclick serviceMenu it take me inside
menuAll which have 3 layers
1- 1 keyframe actions
2-1 keyframe for the button
here is the code for one of the buttons
servSix_btn.addEventListener(MouseEvent.CLICK, goServ6);
function goServ6(event:MouseEvent):void
{
serviceMenu.gotoAndStop("serv6", "Scene 1");
trace("button Clicked")
}
and here is the error: "1120: Access of undefined property serviceMenu."
am trying to target scene 1 labels
View 3 Replies
Aug 5, 2004
I have an all flash site that i'm making to learn flash MX 2004. I'm loading external swf's into a main page to make it all flow and easy for the browser to chew. i got a page that uses tellTarget to start rollovers and advance a movie. here's the script for one of the buttons...
Code:
on (rollOver) {
tellTarget ("/swift"){
gotoAndplay (2);[code]....
that works perfectly but when i load it into the main movie... it won't work...how to _root.,_parent, or this. is to make it work.
View 1 Replies
Nov 24, 2005
I am targeting a a movie clip. The problem is that all the syntax I have found for targetting clips looks like this: _root.sample_mc.sample2.mc. etc. The problem is, my target clip is in an swf that I've loaded into a container clip from my main timeline. So, essentially, I have a home.swf that loads menu.swf into a container called 'location'. In menu.swf, I have an MC called center, which contains the MC I am targetting called 'target'.
View 2 Replies
Dec 23, 2004
I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.
View 2 Replies
Nov 2, 2009
I had to create a menu using array and I had to animate it. With some great expertise from people, I've accomplished that. But now I have a question about OOP, because I'm trying to add functionality to the buttons to load swfs into my main movie. Even though I strictly follow tutorials and exercises, I can't figure out how to reference a variable made in one class to another. For instance, I have index.as, navbar.as, and menubutton.as. I assume I need to add a loader to my index.as. But I can't trace the loader in my other classes. I've been told to effectively accomplish this, it is best to use custom event dispatchers. But I'm lost on how to use them.
View 12 Replies
Feb 12, 2009
I Have 3 Movies:MAIN.SWF, contains loading movie actions for Nav.swf and Home.swf.NAV.SWF, contains navagation menu loaded on Level 2 in Main HOME.SWF, contains slideshow for home page loaded on Level 1 in Main In NAV.SWF, there is a MOVIE CLIP "graphmc", which contains a BUTTON "graphicbtn", When this button is clicked, I'd like the HOME.SWF (which is loaded into Main.swf on Level 1) to fade out and unload, and load and fade in Graphics.SWF in place of it.
View 6 Replies
Jan 11, 2004
I have a problem with buttons and transitions and it is similar to a problem I had a couple of days ago that I posted and that was sorted out. I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following
[Code]....
I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.
[Code]....
View 4 Replies
Jun 25, 2009
I have an external swf (sub.swf) that loads into my main swf. The external swf has buttons of its own...that I would like to use to load additional external swf's in its place. I click on the buttons and nothings happens.
My current code is as follows:
All of the following code is in my main.swf
================================
//Location where the external SWFs will load
var Xpos:Number=18;
var Ypos:Number=10;
[Code]...
External swf has no code except for a stop action.
I pieced this current code based on various articles I've found on the net.
View 4 Replies
Mar 22, 2011
I have a main movie is coding AS2 which contains a movieClip called MC_header.And I have an external movie is coding with AS3.
My question is : Can i loadmovie the external movieclip in the main movie?
View 1 Replies
Oct 29, 2011
I've imported my animations into a single projector using loadmovie.When the external animations finish playing how do i get the main projector to recognise that the animation has finished and move onto the next scene ?
View 1 Replies
May 28, 2002
I'm trying to do a demo with a fastforward button and a rewind button that will go to the next scene and previous scene...however, due to the format that my predecessor created used...I'm stuck with alot of scenes. The navbar (ff and rewind buttons) is in a .swf file called main. The actual demo is in demo3.swf. I created a loader scene to redirect to the correct scene (when ff and rewind are hit), but I'm not sure how to pass the variables needed from the main movie.
View 4 Replies
Apr 2, 2004
In frame I got LoadMovie("http://www.adress.com/movie.swf", wheretoload); I got movie on server but dont work anymore to mc "wheretoload"!
View 8 Replies
May 7, 2006
The site I'm building has seperate swf's for each page...and I have the external swfs loading into the site. But my problem is that when I am on one of the external swf pages that has been loaded, and it has buttons on it, none of these buttons work. They work when I test the swf by itself, but once my main movie loads the swf into the site, the buttons within the swf no longer work.
View 1 Replies
Sep 27, 2005
I'm using loadMovie to load a jpg into my movie. When I do, I can't see any of the stuff that was in the movie before (even though it's not in the container MC) Is this a known thing? How can I fix it?
View 6 Replies
May 16, 2005
I can't figure out why this code doesn't work. I am banging my head here!
[Code]...
echo.php simply echos "banner=[URL] " I used a dynamic input text box to catch the value of banner - and it works fine! So I know the loadVariables is working but I can't get loadMovie to actually load the movie. And if I replace this.banner with the text of the path to flashfile.swf, it loads the movie perfectly.
View 5 Replies
Apr 17, 2004
I am using loadMovie to load a movie that has a preloader, but the preloader will not work?
Code:
var total = _root.getBytesTotal();
var bytesLoaded = _root.getBytesLoaded();
var perc = (bytesLoaded/total)*100;
[Code].....
View 6 Replies
Oct 23, 2002
My flash site is created similar to that of the one in Kirupa's full flash site tut. When I click the home button, the
_root.contents.loadMovie("welcome.swf");
action loads in the welcome section (to a blank movieclip). However, "welcome.swf" consists of two scenes - the contents, and a preloader. It was working fine BEFORE I added the preloader scene. Now, all I get is a quick glimpse of my preloader animation (for "welcome.swf"), then my intial movie (navbar) starts over agin.
CODE USED FOR PRELOADER SCENE (IN "WELCOME.SWF"):
1ST FRAME:
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
if (loaded>=total) {
[Code].....
View 2 Replies
Feb 24, 2009
I am using loadmovie function to load movie in a liquid template.[code]Movie loads fine in right position but as soon as window gets resized it goes out of its place to the TC position.What can do here to make movie stays in its place once window is resized?
View 2 Replies
Apr 16, 2005
i load external movie with loadMovie action.
It loads the SWFs into the movie correct.
I have problem, how simply switch between the loaded movies. The last loaded movie overlay all loaded movies.
How is possible do it the swap of the loaded movies?
View 1 Replies
Nov 6, 2005
I have 3 flash movies: a.swf, b.swf and c.swf. And I create a main.swf to load those 3 movies orderly (from a to c).In the main.swf:- At frame 1, I put the script: loadMovie("a.swf","_root")- At frame 2, I did the similar job as with frame 1 with b.swf.Now the Flash Player only load the b.swf movie. There is no sign of a.swf to be loaded. Tho' I did unloadMovie a.swf before load this new one.
View 3 Replies
Jan 21, 2004
is there a way with the loadmovie function that you can load a specific frame within the movie instead of starting at frame1?
what ive been using is:-
on (release) {
loadMovie("mymovie.swf", 1);
}
but this starts 'mymovie' at frame1, is there a way to get it to load the movie and start at frame 20?
View 1 Replies
Oct 19, 2002
Is is possible to load a movie ising the loadmovie command into a different swf???
View 14 Replies
Aug 7, 2009
I have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function
I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0
View 9 Replies
Oct 6, 2003
I've made a component to control the movieclip in the main timeline. The instance name of that movie clip passed as a parameter to the component. That is working fine in that file. But when that file loads into another SWF file, that containes a movieclip to hold the file that is being externally loaded, the methods are not working in that componentThis is the code of the component.
#initclip
function visiblerClass() {
this.what = this.insofitem;
[code].....
View 1 Replies
Oct 6, 2003
I've made a component to control the movieclip in the main timeline. The instance name of that movie clip passed as a parameter to the component. That is working fine in that file. But when that file loads into another SWF file, that containes a movieclip to hold the file that is being externally loaded, the methods are not working in that component.
This is the code of the component.
//------------------------------------------------------------------------------
#initclip
function visiblerClass() {
[Code].....
View 1 Replies
Jul 9, 2002
I want to load a movie loadMovie ("target", _root....) and so on. My question is can you target a specific scene in the load movie command?? I have a movie with a button that loads a new movie into level 0 so it replaces the first movie. Now in the new movie I have a button that unloads the new movie and loads the previous one. But it starts it off at the veru beginning of the movie. I want it to pick up where the first button click took place.
View 2 Replies
Mar 31, 2007
I have created a main swf file which holds a movie container which other swf's load into. One of the sections has a form in it. When I preview this section on its own the form works, but when I preview through the main swf file (or online) the text fields cannot be typed into. How can I fix this? Files can be downloaded from;[url]....
View 6 Replies
Feb 22, 2003
i have following problem i load swf movie into mc "container" on main movie. i made rectangle, changed into mc, gave it instance name "block"
when i use the container.setMask(block) line this results in the movie playing but no mask what do i do wrong this time ?
View 2 Replies
Apr 2, 2009
I am pulling double duty with this question as it serves two purposes. I am developing a total flash controlled ad system for myself, but also need to use the same theory for a project for work.
Concept: I have a main movie (ad rotator system) that I then want to randomly load other swf's (individual ads) into this main swf after a set period of time. The random load I got set no problem. The problem I am having is to get it to move to the new Frame label of the main movie which then loads the smaller swfs. I am using the LoadMovie with nInterval time delay command in flash to load the movies.
[Code]....
View 5 Replies