ActionScript 2.0 :: LoadMovie Nightmare; Button Inside MC Loading

Nov 6, 2002

I've been having a right nightmare with this one. So here goes: I've created a dragable MC with a button assigned the following AS:

[Code]....

When I publish, the button does not load test.swf. I have created a blank MC 'container' for test.swf to load to but I need the button to be inside of the dragable MC. The .swf loads when the 'container' is cut and pasted into the dragable MC but to my novice suprise the .swf and the MC would be now both dragable My question is how do I load the .swf with this button inside of the MC and the 'container' outside?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Loadmovie Button Inside Loaded Swf Causing Page Refresh?

Aug 8, 2008

My header is an mc with buttons that load swf's into a main content mc with this:on (release) { loadMovie("myswf.swf", _root.holder); and that works perfectly (content loads into mc with no page refresh).But..one of my loaded swf's has the same button code on a button to load swf's into the same mc and I get a page refresh.

View 1 Replies

ActionScript 1/2 :: LoadMovie From Inside A Movieclip

May 1, 2009

I have a scroll movieclip which contains 15 buttons each button is an instance of 1main button. I have the button frame inside the timeline of the movie clip and the actions in frame 1 of the clip.onrelease should call the loadMovie function and load another. swf in level 1.[code]it only works using LoadMovie not LoadMovieNum but instead of loading the swf into level 1 it loads into level 0.i can use this the way it is but why is it only loading in level 0?

View 6 Replies

ActionScript 2.0 :: Drag And Drop Nightmare?

Feb 29, 2004

I've only recently gotten into action-scripting, and this has really stumped me !! I've got a simple drag & drop movie involving a key and a lock. The movie contains two mc's named lock and key on layer1, frame1. The movie works as it should, but I want the key to disappear once it's been used for it's purpose.

The lockmc is a simple black X with five frames and an instance name of 'lockmc'. There's a 'stop' action on fr.1 and a 'red' label on fr.5. I changed the colour of the X to red here.

The keymc has an instance name of 'keymc'and contains a button which is a simple red X. The button has the following actions.

[Code]...

View 2 Replies

ActionScript 2.0 :: Use AttachMovie Inside A Movieclip Used LoadMovie On?

Jun 7, 2005

This is driving me nuts... is it impossible to use attachMovie inside a movieclip you used loadMovie on? For example, I have this but it doesn't work out:

Code:
imageHolder_mc.loadMovie("firstImage.jpg");
imageHolder_mc.attachMovie("secondImage_mc","attachedImage_mc",1);

Why doesn't this just load the firstImage.jpg through the loadMovie method and then create an attachedImage_mc on the imageHolder_mc (with the secondImage_mc)? All its doing as of now is loading the first image... then if I comment the loadMovie part, it attaches the second image.

EDIT: Just a little more info. Basically I have a movieclip called imageHolder_mc that I created manually on stage. This movieclip calls LoadMovie to load in a JPG, but later on I need too replace the entire content of it with a movieclip from the library (still keeping the imageHolder_mc instance name).

View 4 Replies

ActionScript 2.0 :: Drag And Drop Nightmare - Key To Disappear

Feb 29, 2004

I've only recently gotten into action-scripting, and this has really stumped me !! I've got a simple drag & drop movie involving a key and a lock. The movie contains two mc's named lock and key on layer1, frame1. The movie works as it should, but I want the key to disappear once it's been used for it's purpose.

The lockmc is a simple black X with five frames and an instance name of 'lockmc'. There's a 'stop' action on fr.1 and a 'red' label on fr.5. I changed the colour of the X to red here. The keymc has an instance name of 'keymc'and contains a button which is a simple red X. The button has the following actions...

[Code]....

View 2 Replies

ActionScript 3.0 :: Full Browser Flash Nightmare

Feb 16, 2008

I have a full-flash site which is fixed size, most controls and assets are added to the stage at runtime, the aligment is set to center, and it is embedded in html with 100% width and height - you can visit www.janelaurie.com to get a better picture of what I mean.Everything here is working perfectly, but I would like to add some stuff to the very edges of the browser and I cannot find the values that I need and its driving me crazy. I've added a listener to the stage.resize and stage.stageWidth / stage.stageHeight are giving the correct values but obviously that is not enough, I also need the coordinates of the top left corner which should be negative something - but I cannot find those values anywhere. I've tried getRect and getBounds but they don't work obviously as they only measure the full contents of the stage.

The only solution I can think of at this point is to set my stage.align to topleft, but that would mean i need to readjust the entire app and all of the main controls etc. are directly on the stage and I really do not want to change all that. All I need are two numbers, the coordinates of the top left corner of the stage in the resize event of the stage, is there anyway of retrieving that?

View 8 Replies

AS2 :: Flex - .swf Loadmovie() And Unloadmovie() Fail When Nested Inside An AS3 .swf Container

Jun 25, 2009

I have an AS2 .swf being loaded as a child of a parent AS3 .swf. The AS2.swf calls loadmovie() and unloadmovie() to display 3 jpeg files. The images load the first time, but after that, a call to loadmovie() to replace the image, or a call to unloadmovie() fail. I found the following Adobe Bug report ([URL]) that has said this has been resolved, and also said that child movieclips could be replaced without a problem. Here is the code I'm calling.

[Code]....

View 2 Replies

ActionScript 2.0 :: Not Working Contact Form Inside Another Movie (loadMovie)

Jan 24, 2007

I have a working contact form (.swf) that doesnt work inside another movie. Alone it works, but when I call it in main movie with loadMovie it doesn't.

[URL]

I used files from Kirupa's tutorials, made by claudio and senocular.

View 3 Replies

ActionScript 3.0 :: MovieClip Reference Nightmare - Update The New Widths Into An Array

Nov 9, 2010

I've been working on a project the last few days in AS2 and decided I'd try and re-write it in AS3 as I'm yet to venture in to the AS3 world. I've done most of the conversion, but I'm stuck on what should be an easy problem. I'm loading images from an xml. The images get put into movieclips.

mcholder.image_mc.nmc0
mcholder.image_mc.nmc1
mcholder.image_mc.nmc2
mcholder.image_mc.nmc3 .......

I have a function that resizes the images when the stage is resized. This then runs another function to update an array of the image widths. The problem I have is trying to update the new widths into an Array. I just can't seen to reference my MC's to get the widths!

[Code]...

View 1 Replies

ActionScript 3.0 :: Loading In And External Swf And Unloading It From A MC Button Inside The External Swf?

Nov 2, 2010

I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:

PW1.addEventListener( MouseEvent.CLICK,loader1 );
//==================== PS function =============================================
var ldr:Loader = new Loader();

[code].....

View 3 Replies

ActionScript 2.0 :: Loading 2 Swf With LoadMovie?

Feb 24, 2009

I want is it load an external swf on the click of a button, then unload it to load another swf on the click of another button. heres a sample code of what did.

Code:
stop();
//loading first movie
container.loadMovie("movie.swf");

[Code]....

View 0 Replies

ActionScript 2.0 :: Loading SWF With LoadMovie

Jan 23, 2010

I'm currently working on a school project and have come to the stage where I need to put all of my swf's together. But I'm running into an issue with getting the swf's in my file.I've at first tried to do the same thing using scenes, but this didn't work either. I've read on several fora's that the scene thing in flash had some weird things and was recommend to use loadMovie instead.Now I'm trying to use loadMovie, but I can't get this to work either. I've tried the exact same code with an image and this is working. As soon as I try to do it with a swf file, the file loads and leaves a complete blank. I've read the list of objects in the swf and all variables are undefined, could this be related?I'm currently using AS 2.0.

View 7 Replies

ActionScript 2.0 :: Use LoadMovie Function Inside Loop To Load External PNG Files / When Game Is Loaded

Jan 19, 2009

I'm trying to use a loadMovie function inside a loop to load external PNG files when my game is loaded. Unfortunately, I can't get even a single loadMovie to work correctly, much less execute a bunch of them.The code is on the root time line, and is targetting an empty movie clip that is nested inside about 3 levels. There is a button, with a movie clip on it, and the empty clip I'm trying to load into on that.so the full target path is myBox_00.smallBox.myLogo(myBox_00 is the button, smallBox is the movie clip, and myLogo is the empty)[code].I even tried using a JPG image instead of a PNG and still no luck. The best I could do was number 4; and that didn't work, all it did was SOMETHING instead of NOTHING... unfortunately that something was to make the button (myBox_00) disappear entirely T_T.I've never had much luck with loading external images. What am I missing here?

View 9 Replies

ActionScript 2.0 :: Loading Jpg With LoadMovie + OnLoad?

Jul 5, 2009

I've been sitting here for the last 2 hours trying to figure this one out.I have an empty movieclip on stage, and I'm loading external images in it using loadMovie()The problem is as following; I want it to resize when the image has fully loaded.I've been googling and googling non-stop, but found nothing that works.

View 1 Replies

Flash 10 :: FLA File - Loading Another SWF With LoadMovie

Jun 7, 2010

I have a template that have some buttons in the header. I add one button because my client needs one more section in the SWF. When the movie loads the behave of the intro is to load the first button running from flag fotogram "s1", but it's not working properly. The button get's stuck and it's not behaving like it should. When I rollOver or rollOut is not doing what it should do. Why is happening this? I'm loading another swf with loadMovie but it's _lockroot = true. I tried not loading that flash but the button is still not working fine.

View 0 Replies

ActionScript 3.0 :: Images Not Loading In IE LoadMovie?

Sep 23, 2010

this site background images are working for me on my mac and PC in Firefox And Safari but the client says the sites background images are not coming up on some of his computers at work in Explorer and Chrome. I helped him clear his cache so I know he is seeing the most current files. So if anyone has Explorer or Chrome please check this link and see if the background pictures load for you. [URL]

View 1 Replies

ActionScript 2.0 :: LoadMovie() Not Loading JPEGs Into MC?

Apr 22, 2004

I've used loadMovie() often in the short time I've been using Flash. But never to load a JPEG dynamically. For a site interface, I have little thumbnails, which open to new browser windows. This is partly annoying though, as each one opens in it's own window, so the user would have to close a whole bunch of 'em after clicking all those thumbnails. To try to fix this, I read that JPEGs can be loaded at runtime onto the stage. I've already seen the photo gallery tut, but I only require a pop-up window with one image and no left/right buttons, etc. I've tried following the tutorial for the first few steps, making a shape the size I want the images to be, converting it to an MC, and naming the MC instance on the stage. Then, I created a new layer on frame 1 with

Code:

loadMovie("CS_00_1.jpg", _root.picture);

, but when testing it, I see nothing. I've tried a few different things. Before, the fla was in a separate folder, so I had to include "Screens/" in the name. Just in case that was the problem (I didn't get any errors in the Output), I moved it into the directory with the images. I tried absolute and relative addressing. I opened up the image in PS and resized it to the size of the symbol on the stage and made sure it wasn't Progressive (I read in a thread that Flash doesn't load Progressive JPEGs), but still nothing. I even tried loading a file that didn't exist to make sure it was looking in the right place the other times (as it didn't give me any error).

View 6 Replies

ActionScript 3.0 :: LoadMovie Is Not Loading A Movie On Another?

Jan 21, 2007

i am using a simple loadmovie and it works fine on my computer and another one i checked but there it doesnt run on all computers. and they do have flash player 9. i trued to change the sctionscript to 1 and it still isnt working and i have no idea why. i also dubble checked that the files are all in the correct folder and they are.

View 4 Replies

ActionScript 2.0 :: LoadMovie - Some SWF Partially Loading

Apr 15, 2008

On the interactive section of my page here: [URL]. I have a bunch of externally loaded swf files that are supposed to load into the black square in the middle. As you can see, some of the swfs partially load, just the text for most, and then some don't. If you click another section then click back, it loads fine and you can see what it's supposed to look like. This doesn't make much sense to me, considering the swf files are done on a single frame, with the text just a layer below the image. So why does a portion of the swf load but the other doesn't and why do some and not others? I have the swfs loading using loadMovie. (Example below):

Code:
container.loadMovie("movieclipname.swf");
container2.loadMovie("movieclipname2.swf");
container3.loadMovie("movieclipname3.swf");
container4.loadMovie("movieclipname4.swf");

This works perfectly with every other site I've done, and I've used that same setup many times on this site. Yet for whatever reason. It doesn't work regularly.

View 2 Replies

ActionScript 2.0 :: Loading Movie With LoadMovie Tut?

Oct 20, 2002

[URL]The movie I'm loading in is actually 2 frames long, and upon loading it in, I want to goto the second frame..I thought a simple moviename.gotoAndStop(2); would do it, but alas, does not work!

View 1 Replies

ActionScript 2.0 :: Sequentially Loading SWFs Using LoadMovie

Jul 24, 2004

I'm trying to load some swf movies using loadMovie, but I'm having the following problem: There are three movies: 1.swf, 2.swf, and, 3.swf.

=> 1.swf loads inside 2.swf
=> 2.swf loads inside 3.swf

When I test 3.swf, it plays only 1.swf (exactingly where I put it in 2.swf - coordinates) but doesn't play 2.swf. Everything looks correct, including the containers. All actionscript is in the frames and I'm using Flash MX.

View 1 Replies

ActionScript 2.0 :: Loading A Swf To Target By Using NamedMC.loadmovie

Apr 11, 2003

I have been loading an swf to target by using namedMC.loadmovie ("path+name", _levelN) altho I notice there is another method suggested here about using createEmptyMovieClip so it is all in script. Can anyone suggest a way of preloading all my separate swf files and then playing them at various specified points, like when the previous animation is finished/finishing. I have tried things like altering the _alpha and using namedMC.stop(); and namedMC.play(); but that aint working.

View 1 Replies

ActionScript 2.0 :: LoadMovie Function Not Loading JPEGs Into MC

Apr 22, 2004

I've used loadMovie() often in the short time I've been using Flash. But never to load a JPEG dynamically. For a site interface, I have little thumbnails, which open to new browser windows. This is partly annoying though, as each one opens in it's own window, so the user would have to close a whole bunch of 'em after clicking all those thumbnails. To try to fix this, I read that JPEGs can be loaded at runtime onto the stage. I've already seen the photo gallery tut, but I only require a pop-up window with one image and no left/right buttons, etc. I've tried following the tutorial for the first few steps, making a shape the size I want the images to be, converting it to an MC, and naming the MC instance on the stage.

Then, I created a new layer on frame 1 with Code:
loadMovie("CS_00_1.jpg", _root.picture);
But when testing it, I see nothing.

I've tried a few different things. Before, the fla was in a separate folder, so I had to include "Screens/" in the name. Just in case that was the problem (I didn't get any errors in the Output), I moved it into the directory with the images. I tried absolute and relative addressing. I opened up the image in PS and resized it to the size of the symbol on the stage and made sure it wasn't Progressive (I read in a thread that Flash doesn't load Progressive JPEGs), but still nothing. I even tried loading a file that didn't exist to make sure it was looking in the right place the other times (as it didn't give me any error).

View 6 Replies

ActionScript 2.0 :: Button Inside Button Inside Movieclip?

May 14, 2005

I have a button inside another button which is inside a movieclip. *whew*I have it so that when you click on the movieclip, a dialog box pops up. I have two buttons on the dialog box, but for some reason you can't click on them and when you do, the dialog box just disappears. Here's a picture of what I'm talking about, so how do i get the "YES/NO" buttons to work? Oh, the buttons are not included in that Graphic

View 6 Replies

ActionScript 2.0 :: Stop Loading OnLoadProgress 'Or' LoadMovie Or Loadingimage

Nov 19, 2010

how to stop loading in middle of loading .swf or image files. in as2 .

It should stop completely loading any bytes from the server.

View 0 Replies

ActionScript 2.0 :: JPEGs Loading Too Slowly Through LoadClip / LoadMovie

Dec 7, 2011

We have photos that are loading too slowly and I need to speed them up. I am using AS2. What's even more perplexing is that at certain times after refreshing the web page, some photos load and some do not. It seems to be random, at various times, the photos that did load do not. I cannot put my finger on why this is happening..

First, I tried using loadMovie(). Then, I tried the var loader:
MovieClipLoader = new MovieClipLoader(); with loadClip()
For each JPEG. You are welcome to look at the site and see if there is anything that I can do to improve the speed of the loading. [URL]

View 0 Replies

ActionScript 2.0 :: Loading External Swf Files Through The LoadMovie Function

Dec 7, 2005

I want to load an external .swf file through the loadMovie function. The problem is flash takes sometime to load the file and therefore what ever commands I put below the loadMovie function, will not work. Placing this commands say 10 frames from the loadMovie function works but when online and you have a slow internet connection, it yet again fails. How do I solve this problem? I tried using onLoad but from what I gathered from several sites, it will not work with LoadMovie.

View 6 Replies

ActionScript 2.0 :: LoadMovie Not Working - Loading Doesn't Load At All?

Sep 15, 2006

I have a movieclip called masterloader in my flash project, and I have

[Code]....

when it actually loads in the movie, yet the movie I am loading doesn't load at all. It's only a one framed picture.

View 4 Replies

ActionScript 2.0 :: [FMX] LoadMovie Revisited - Loading Multiple Instances Of The Same .swf

Feb 26, 2004

I preface this with the disclaimer that I'm new to flash and actionscript and I've read the tutorials on this site and others regarding depths, levels, this, and loadmovie. I have a problem with scope I believe in some AS while using the loadmovie() function. I am loading multiple instances (5) of the the same .swf on _level0 of my main movieclip using createEmptyMovieClip and LoadMovie. When I play the main MC the loaded swfs complete thier initial animation but do not respond to onrollover events. Here's the AS for the main MC:

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved