ActionScript 2.0 :: LoadClip Stuff - How To Turn On Buttons

Jul 15, 2005

I've got this code and I need to know how to turn my buttons back on once my swf is completely loaded. I read somewhere that using the loadClip class is easy because it takes less code, but I just don't understand what it's doing with this mc1 object and listener object. I could put code into each of my movies that I'm loading that says
_root.menu_mc.enableButtons();
But shouldn't I be able to do it from within the loadUpMovie function I wrote?

Code:
//from [URL] loading_movies.php
var mc1:MovieClipLoader = new MovieClipLoader();
var silentListener:Object = new Object();
mc1.addListener(silentListener);
function enableButtons(){
[Code] ......

View 1 Replies


Similar Posts:


ActionScript 3.0 :: XML Menu - Make Buttons Do Stuff When Clicked

Feb 27, 2009

My teacher in Adobe Flash CS3 is so slow with the teaching (and some doesn't understand what the .alpha = 0; does in my class so he has to teach them and they just keep us at thesame level). We has just taught my class "trace". Anyways, my problem is this: I've made a XML file which gets loaded into Flash and it gets my animation and adds the labels to the buttons, so far so good, but I am trying to make these buttons do stuff when clicked, like (website menu) if you press "contact" it will show "contact" and if you press "home" it will go to "home" etc.

As I said I'm a bit of a noob to AS3 (started to go through it in class 2weeks ago, but as I said he teachs very slow we are better off on ourselves) so I'm not that sure off how to do this. before starting to talk what I've tried I'll give out the code (it's done after one tutorial with some modifications). Tutorial is found here: [URL]

[Code]...

View 4 Replies

ActionScript 2.0 :: Unable To Make Some Nice Animations,buttons And Stuff?

Apr 28, 2005

I've only used flash for 5 months now. As you expect, i'm a super novice. I've been trying to follow the books, tutorials i fould on web and was able to make some nice animations,buttons and stuff. But i'm not a programmer, i never been one and i just don't think i got the brains for it. I just know a little bit. Like i said, it's only been 5 months so i only know how to change other's script to suit mine, i can't create any complicated from top of my head. My question is...do I HAVE TO be an expert to make websites with Flash? After all, i'm only learning Flash so I can make interactive websites. I'm not looking forward to making games or drawing boards or anything. Just websites. How much knowledge of Actionscript(or XML) would I need to make a flash only website?

View 4 Replies

ActionScript 2.0 :: Turn All Buttons Off But One On?

Jul 2, 2007

I have 8 buttons. I need to turn one on, and turn the rest of them off. I can't figure out how to do this. do i use loops, booleans?

View 2 Replies

ActionScript 3.0 :: Rotating Stuff Around Other Stuff?

Jun 29, 2011

So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:

ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y

[code].....

View 4 Replies

ActionScript 2.0 :: Turn These Words Into Buttons And Take Me To A Different Mc Or Frame?

Nov 30, 2006

here is the code i wish to turn the words into buttons...this code is not mine so i'm not 100% sure how to modify it to create the words to buttons.here is the code:

Code:
// register root as environment
Object.environment = this;[code]......

View 1 Replies

IDE :: Pointer Cursor To Turn To Custom Mc When It Mouse-over Hit Area Of Respective Buttons

Jun 24, 2009

I'm working on my personal portfolio site and desperately need help with some AS3. my knowledge about AS3 is very rudimentary. Hope anyone who's I want to change the pointer cursor to custom movieclip when mouseover different invisible buttons. These buttons are mainly forward & backward button for my gallery. I got some help from other site but still unsolved. Please take a look at my fla attachment to point out what's wrong with the coding. To elaborate a little bit more as what I wish to achieve you can take a look at the sample URL...I just need the pointer cursor to turn to custom mc when it mouseover the hit area of the respective buttons.

View 6 Replies

ActionScript 3.0 :: Create A Set Of Buttons Based On Loaded Images From Xml That OnClick Turn Red Or Grow In Size?

Jul 11, 2008

I want to create a set of buttons based on loaded images from xml that onClick turn red or grow in size, whatever, Clicking another turns that button red and the old one back to default. Alsoo it will attach a animated movieclip onclick to the button and when pressing another button, it swifts to that button.

Code:

var tracktype:Array = new Array;
var imgArray:Array = new Array;
var links:int;

[code]....

But Now the problem is that when another button is clicked I have to add the listeners back on the button, but I cant get the button because they all have the same name. Same with addChild the animated movieclip. Can't remove it. The buttons have a variable name, and can be unlimited.

View 8 Replies

Game Engine :: Flash Multiplayer Turn By Turn?

Oct 7, 2011

I'll start off by saying I'm a newbie, just putting that out there. How do you make a turn by turn multiplayer flash game? I don't know if an engine is made in AS3, PHP, Javascript, or whatever,I made my game already, it's just that it isn'tmultiplayer yet. Basically, there are lines, and each player crosses out a number of lines, and the last player to cross out a line is the loser. I want it where one user crosses out some lines, then presses End Turn, then the other does their turn and then presses End Turn to allow the other player to move his cursor. But how can I get both players to see the same frame and only have one player have the ability to move the cursor during a turn? Is there some easily adaptable multiplayer engine for flash for newbies out there

View 2 Replies

ActionScript 2.0 :: CreateEmptyMovieClip() With LoadClip()?

Feb 2, 2007

I'm making a simple photo gallery, and I'm having trouble loading the thumbnail images. I use the same method (loadClip()) to load the fully sized pictures, and there's no problem there. Even with the thumbnails, I could get the images to load properly when I hard coded each individual thumbnail. The problem is when I try to createEmptyMovieClip() and then loadClip() into these movieclips dynamically, if you will, so it can adjust itself to the number of images in the gallery. I get nothing. No images. Nothing shows up.This is my first time using the createEmptyMovieClip and loadClip methods,

Basically, the code is just creating a new movieclip (mc_thumbnails) to contain all the thumbnails. Then, it should create a new movieclip (inside mc_thumbnails) for each image available. Inside each of these clips (mc_thumbnail1, mc_thumbnail2, etc), the appropriate image should be loaded...

Code:
thumbnailMCLoader = new MovieClipLoader();
thumbnailPreloadObj = new Object();
thumbnailMCLoader.addListener(thumbnailPreloadObj);[code]...

View 5 Replies

ActionScript 2.0 :: External SWF - LoadClip()?

Apr 16, 2007

I have used loadClip, and loadMovie a ton of times and have never ran into this problem, so I am hoping someone here can provide me some insight on how to fix this.

I am using loadClip() to load up external SWF's for a portfolio, everything is functioning perfectly, it preloads, it gets all the values from the clips properly, but when the movie loads up the animations from the SWF exceed (or go outside of, and are still visible) the published size. So instead of seeing what I normally see when I publish the SWF, I see everything that happens, even stuff that is meant to appear "off screen", or in the case of the SWF, outside the published size. As far as how I am going about loading up the SWF's, I am just using an empty movieclip and loading them into there.

View 6 Replies

ActionScript 2.0 :: Loading .swf Using LoadClip?

Jul 30, 2007

I'm trying to load a .swf from a sub directory, and I've read that doesn't work. Why will Images load from a subdirectory using the loadClip method then?

View 12 Replies

IDE :: Using AttachMovie To Put Something Above A LoadClip Movie

Jun 15, 2009

I've loaded a swf into my project by using loadClip, and now need to put some movieclips over the top of it using attachMovie. All the new movieclips appear behind the loaded movieclip. Is this normal?The movie I have loaded is inside an empty movieclip I've created called "container". Eg:[code]The "sparkle" movie clips are attached much later, on a keypress.

View 1 Replies

ActionScript 2.0 :: Searchable XML And LoadClip?

Aug 26, 2011

The gist of my problem is that currently i have a searchable XML database which contains projects that when clicked on, link to a new tab or window (depending on your browser) of that specific project. see and then click "WORK" on the left side, to see it in action... type CHICAGO or something like that to see how it works...Basically, in my quest to eliminate all pop ups and additional HTML pages, id like to click on the project name and have it execute my existing loadClip preloading function. I can not seem to figure out how to do this...

View 1 Replies

ActionScript 2.0 :: LoadClip Won't Load Picture?

Sep 21, 2009

I have a nested blank clip (_root.banner.holder.picture) and want to load a picture into it, using the following code in the _root.No matter what I do, I can't get it to work

Code:
_root.myobject = "picture1";
loadpic = _root.myobject+".jpg";

[code].....

View 1 Replies

ActionScript 1/2 :: Targeting Swf Loaded With LoadClip()?

Feb 7, 2010

Basically, I have a main .swf, into which I am loading another .swf using loadClip(), on the click of a button. It loads into an empty movie clip on the timeline of the main .swf called container_mc. So far so good, this works.
 
The problem comes when I am trying to control a movie clip that lives on the timeline of the external .swf. This clip has the instance name test_mc, and I'm trying to control it using the reference _level0.container_mc.test_mc. I have also tried just plain old container_mc.test_mc.
 
Neither of these work, though when I apply a trace to test_mc with Actionscript on the timeline of the external swf (test_mc.onRelease = function () { trace(this); }), it returns the path _level0.container_mc.test_mc (when clicked on after being loaded into the main movie, obviously).

View 5 Replies

ActionScript 1/2 :: Cannot Attach After Failed LoadClip (Bug)

Feb 9, 2010

If you attempt to load an image into a movie clip and the load fails, you are unable to attach a library movie clip to it. The code below is from the fla file i attached herewith. All you need is a movieclip in your library with linkage name "Attach_MC" and this script in a 1-frame fla file. Or just download the fla file. What i am trying to do is attach a movieclip with a graphic that says "loading failed" if the load fails, so that it won't be blank but i can't do it unless perhaps by a workaround by placing a reserve clip in the same place (i.e. under a mask).

import mx.utils.Delegate;
var mcGlobal:MovieClip = this.createEmptyMovieClip("Stage_MC", 0);
var cLoader:MovieClipLoader = new MovieClipLoader();
var oListener:Object = new Object();
oListener.onLoadInit = Delgate.create(this, onLoadSuccess);
[Code] .....
Attachments: Bug.fla.zip (5.3 K)

View 5 Replies

ActionScript 2.0 :: LoadClip Not Working In Browser?

Nov 19, 2009

I got the code below, reading a picture from an array.While in testmode or directly opening the .swf it works fine, but in a browser the picture is not loaded.

var listener:Object = new Object();
var mcl:MovieClipLoader = new MovieClipLoader();
var holder:MovieClip = item_mc_set.createEmptyMovieClip("holder",_root.ge

[code]......

View 1 Replies

ActionScript 2.0 :: Targeting Swf Loaded With LoadClip()?

Feb 21, 2010

I have a main .swf, into which I am loading another .swf using loadClip(), on the click of a button. It loads into an empty movie clip on the timeline of the main .swf called container_mc. So far so good, this works.The problem comes when I am trying to control a movie clip instance that lives on the timeline of the external .swf. This clip has the instance name test_mc, and I'm trying to control it using the reference _level0.container_mc.test_mc. I have also tried just plain old container_mc.test_mc.

Neither of these work, though when I apply a trace to test_mc on the timeline of the external swf (test_mc.onRelease = function () { trace(this); }), it returns the path _level0.container_mc.test_mc (when clicked on after being loaded into the main movie, obviously). I've attached a couple of files demonstrating the problem I'm having. It seems to me that the problem is probably something a little amiss with my code,

View 1 Replies

ActionScript 2.0 :: Software Simulation LoadClip?

Dec 28, 2011

trying to load a new image and still making the previous_node on the background without any blink, most seamless possible, where I�m making the mistake...?

ActionScript Code:
previous_node = current_index-1;[code].....

View 6 Replies

Actionscript 2.0 :: MovieClipLoader LoadClip Working In IE But Not FF?

Mar 24, 2010

I am trying to load a swf file into a movie clip. It works in IE but fails to load in FF.

ActionScript Code:
function onLoadComplete(mc)
{

[code]....

This happens in frame 20. before this happens I use nearly identical code to load an image into a movie clip which works in both browsers.

View 1 Replies

ActionScript 2.0 :: CreateEmptyMovieClip And LoadClip In For Loop

Feb 10, 2006

All I want is to create 5 movieclips/layers each has 10 movie clips.

I use createEmptyMovieClip to create and loadClip to load images in a for loop, but loadClip doesnt function in following code, only loads last array index.

My code is:

Code:
total=5;
column=5;

[Code]...

Also, out of for loop, logoArray[ ][ ] (movie clips' reference array) cannot be accessed. trace(logoArray[x][y]) outputs blank page, logoArray[x][y].loadMovie(..) doesnot work

View 2 Replies

ActionScript 2.0 :: MovieClipLoader LoadClip Not Working?

Mar 10, 2007

Code:
this.createEmptyMovieClip('test', this.getNextHighestDepth());
var pics:Array = new Array();

[code]....

View 3 Replies

ActionScript 2.0 :: Loadclip Won't Centre On Screen

Aug 9, 2007

I have a movie clip symbol on my stage, called 'symbol', i have centred it on the stage using the following.[code]...

View 2 Replies

ActionScript 2.0 :: Access To LoadClip Properties?

Jan 17, 2008

I need access to the properties of a file I load on the next line. Specifically, trying to pull the _height and _width off of it.

I think it's being bungled up because it's inside a function running two (nested) for statements. Let me post up the code for you geniuses[code]...

The width traces fine in the onLoadInit, but only AFTER the function that is creating and positioning the movieclips is finished running. They are nested in something of a complicated heirarchy so to save the widths in another array and then try to move them all later would be bonkers.

View 2 Replies

ActionScript 2.0 :: MovieClipLoader / LoadClip Within 'for' Loop

Feb 25, 2009

I only discovered this problem when I started tracing values within and without different functions. In the onLoadInit function within my for loop, it only ever receives the last iteration of the loop:[code]Assuming that imgArray's length is 4, then the first trace statement will give me 0,1,2,3. However, the trace inside the loadClips's onLoadInit function will just spit out the last iteration for the number of loops, i.e. 3, 3, 3, 3.I really wanted to be able to use loadClip specifically for the onLoadInit function so I could size and place all my thumbnails dynamically,

View 2 Replies

ActionScript 2.0 :: Targeting Swf Loaded With LoadClip()

Feb 21, 2010

I'm having a really weird problem with loadClip(), using Actionscript 2.0. Basically, I have a main .swf, into which I am loading another .swf using loadClip(), on the click of a button. It loads into an empty movie clip on the timeline of the main .swf called container_mc. So far so good, this works.

The problem comes when I am trying to control a movie clip instance that lives on the timeline of the external .swf. This clip has the instance name test_mc, and I'm trying to control it using the reference _level0.container_mc.test_mc. I have also tried just plain old container_mc.test_mc.

Neither of these work, though when I apply a trace to test_mc on the timeline of the external swf (test_mc.onRelease = function () { trace(this); }), it returns the path _level0.container_mc.test_mc (when clicked on after being loaded into the main movie, obviously).

I've attached a couple of files demonstrating the problem I'm having. It seems to me that the problem is probably something a little amiss with my code, as in theory I'm pretty sure what I'm trying to do is perfectly possible.

View 1 Replies

ActionScript 2.0 :: Get Width/height Of LoadClip Bitmap?

Dec 14, 2005

I'm doing an xml image gallery. The bitmaps are loaded using a loader and loadClip. What's the easiest way to read the bitmap width and height? Is it worth trying BitmapData? PS I'm tracing the _width and _height of the container mc on onLoadComplete, but it's giving me 0, 0.

View 3 Replies

ActionScript 2.0 :: Hittest Stops Working After Loadclip?

May 30, 2007

1 main flash movie called game.swf 1 external flash movie called maze.swf

The thing is from my main movie game.swf I load the external "maze.swf" true the LoadClip procedure. This works "fine".

The maze.swf as you can guess contains a maze game, and as you all will know this works with the Hittest commando to check if the character doesn't walk up against the wall.

If I start the maze.swf as a stand-a-lone this works fine, but as soon as I load maze.swf in my main movie. The hittest doesn't work anymore, because in some way the hittest is now checking with the coordinates of the entire main movie instead of only the boundaries of the maze.

I checked If I was calling to the right path, with _root and _level0 and etc. This is al correct because I can trace all the properties from maze.swf in my main movie. But the hittest simply won't work.

View 7 Replies

ActionScript 2.0 :: Duplicate Loaded Movieclip Using LoadClip?

Aug 14, 2009

I am trying to dublicate a loaded movie clip multiple time. Below is the code. I am wondering if someone can advice on how to dublicate it using loadClip method.

[Code]...

View 2 Replies







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