ActionScript 2.0 :: Draw And Call A Simple Movie Clip?

May 7, 2010

I am new to actionscripts and I'm having some difficulty. I am creating a website that teaches kids about the about the brain and I am creating a website very familiar to this one,[URL]..So far I only know how to draw and call a simple movie clip such as what you see below. What I am trying to do is create the features that you see on the above website. I'll try to explain as best as possible what I have done so far:

I created one flash file and drew the background for where the text will display. Next I created several movie clips for each of the brain parts and I placed an invisible button over each of these movies. For example I told the button, "cerebellum_button" to play the movie "cerebellum_mc" and told it to go to the "turnon" label." Once it stopped at the label "turnoff" it displayed the text for what the cerebellum does.

I don't think that the below method is efficient, I feel that my code is redundant because I�m having to create a button for each animated movie clip, then each one of those movie clips displays text. It seems to me that I can somehow create a text in a centralized location and call it. However because I am new at this stuff I have had to create text in each of the movie clips. Is there a way that I can centralize all of the text then call it? My aim is to have the user roll over the brain part, have it animate, and have it display the text to explain what that brain part does. So far this is what I have working, I have one button and one animated movie that includes text.

cerebellum_button.onRollOver = function(){
cerebellum_mc.gotoAndStop("turnon");
}
cerebellum_button.onRollOut = function(){
cerebellum_mc.gotoAndStop("turnoff");

View 0 Replies


Similar Posts:


ActionScript 2.0 :: Button RollOver - Draw And Call A Simple Movie Clip?

May 13, 2010

I am new to actionscripts and I'm having some difficulty. I am creating a website that teaches kids about the about the brain and I am creating a website very familiar to this one, http:[url].......

So far I know how to draw and call a simple movie clip such as what you see below. What I am trying to do is create the features that you see on the above website.I'll try to explain as best as possible what I have done so far:I created one flash file and drew the background for where the text will display. Next I created several movie clips for each of the brain parts and I placed an invisible button over each of these movies.For example I told the button,"cerebellum_button" to play the movie "cerebellum_mc" and told it to go to the"turnon" label."Once it stopped at the label "turnoff" it displayed the text to explain what the cerebellum does.

I feel that my code is redundant because I�m having to create a button for each animated movie clip and in each on of the movie clips I have text that will display. It seems to me that I can somehow create text for all of the movie clips in one centralized location and call each one of those text by using labels. Is there a way that I can centralize all of the text then call it? My aim is to have the user roll over the brain part, have it animate, and have it display the text to explain what that brain part does.I have one invisable

button and one animated movie that includes text.
cerebellum_button.onRollOver = function(){
cerebellum_mc.gotoAndStop("turnon");[cod].....

View 0 Replies

ActionScript 3.0 :: Make A Circle Object Movie Clip Call Ball And Make A Rectangle Object Movie Clip Call Mc

Dec 12, 2010

make a circle object movie clip call ball and make a rectangle object movie clip call mc and paste this coding.

[Code]...

can anyone explain about the movement about D? the D is talk about the distance if i go -X,way my ball go ++ to +x?

View 1 Replies

ActionScript 3.0 :: Flash - Call A Frame Of One Movie Clip From Another Movie Clip?

Jun 28, 2010

Scene1->MovieClip1->Image1(as a button)Scene1->MovieClip2->MovieClip3->MovieClip4->frame1Now I want to call frame1 from Img1 have a parent Scene1 common.How can I do this.I have tried

on(release){
_parent.MovieClip2.MovieClip3.MovieClip4.gotoAndPl ay("frame1");
}

[code].....

View 2 Replies

ActionScript 2.0 :: Call A Movie Clip Inside A Movie Clip?

Jun 16, 2005

i was wondering if anyone knew how to call a movie clip inside a movie clip

View 6 Replies

ActionScript 3.0 :: Draw On Movie Clip?

Oct 19, 2011

I created a simple drawing program in Flash CS5. I need to be able to draw on top of a movie clip, but the drawing always goes behind.[code]

View 4 Replies

Flash :: Draw A Button As Big As The Movie Clip?

Feb 3, 2012

I'm trying to implement a multiple file uploader and expose and API for javascript. Even though I think I can handle urlrequests, I'm having a hard time making a SimpleButton.I want the button to have the size of the movieclip/sprite that I create. I'm trying without luck to make a movieclip of 130px x 30px, and have a simple button that fills the entire area. What I try to do in actionscript:

private var _button:SimpleButton = new SimpleButton();
private var _fileList:FileReferenceList = new FileReferenceList();
private var _buttonShape:Shape;[code].......

I'm using intelij to compile this. how to build it with the SDK alone.

View 2 Replies

ActionScript 1/2 :: BitmapData.Draw With Masked Movie Clip?

Jan 17, 2010

I'm using BitmapData.Draw to draw a masked movieclip to a bitmap.Flash behaves very strangely in many different ways. To give a couple examples:1) Normally, the position of the mask is relative to the masked object. Ex. if I Draw() the movie clip at 10,10 and the mask's position is 20,20, then during the Draw() the mask will effectively be at 30,30. Weird, but consistent. However, if I Draw() the mask to another surface first, and then Draw() the movie clip, the mask position will be absolute (20,20 in the example)

View 3 Replies

ActionScript 2.0 :: Choose Where BitmapData.draw() Begins On A Movie Clip?

Feb 4, 2012

Im trying to use BitmapData.draw() on a movie clip, thing I noticed is that this method always draw from the top left of the movie clip, is there a way to "center" the draw method somewhere else on the mc?

View 1 Replies

ActionScript 2.0 :: Make Movie Clip Container Draw A Box Behind The Image?

Jul 28, 2009

I am trying to create a gallery where the thumbnails scroll across the bottom and when you click on the thumb a new large image opens up on top of it from the same image.

What i would like to do is open up the large image but draw a box around this image so it blanks out the background of the site and all you see is that picture.

Its a similar function to the way this site works;

[URL]

View 2 Replies

ActionScript 2.0 :: Draw A Line / Circle And Place A Movie Clip On It?

Aug 6, 2009

I was wondering if anyone could tell me how and if it is possible to draw a line/ circle and place a movie clip on it and get the movie clip to go round the circle by placing the left and right arrow keys on the keyboard.

View 0 Replies

Simple Text Fade Movie Clip Doesn't Work

Aug 1, 2009

I have a simple text fade movie clip that will "play" but won't work when I "Test Movie." What am I missing? I don't regularly use Flash as of yet, and have been successful before, but this is ridiculous - and I know I'm probably missing something very simple.

View 3 Replies

ActionScript 2.0 :: Unable To Load /duplicate A Simple Movie Clip?

Nov 17, 2004

I am trying to load /duplicate a simple movie clip and am unable to do. I am attaching the code. its simple but it doesnt seem to be working at all.

the code is pasted below:

operand1 = Math.random();
a1.text = Math.round(operand1*10);
counter = int(a1.text);
duplicateMovieClip(movblue,"myclip",1)
stop();

here movblue is a movie clip.

View 6 Replies

ActionScript 3 :: Draw Two Shapes On The Same Movie Clip's Graphics Avoiding Alpha Blending Between Them?

Dec 4, 2010

for example:

var mc:MovieClip=new MovieClip();
mc.graphics.beginFill(0x000000,0.5);
mc.graphics.drawRect(0,0,100,100);

[code].....

View 7 Replies

ActionScript 3.0 :: Create A Simple Movie Clip Of A Car That Can Drive On On A Curvey Floor?

Jul 20, 2010

i am trying to create a simple movie clip of a car that can drive on on a curvey floor. its from a side view.i have managed to control the car movement well enough but i cant figure out how to control the car y position so its always above the floor level.

View 4 Replies

ActionScript 3.0 :: ScrollPane Component - Draw A Rectangle On A Movie Clip(board_mc) By Dragging Mouse Over It

Mar 15, 2010

I need t draw a rectangle on a movie clip(board_mc) by dragging mouse over it......It works fine till here but I want to put the movie clip(board_mc) in scrollpane.
but after doing so the code doesnot work....can u plz guide me how to make this code work after placing the movie clip (board_mc) in scrollpane(say board_scp).

[Code]...

View 5 Replies

ActionScript 3.0 :: Saving Movie Clip Positions In A Simple Drag And Drop Game

Aug 7, 2011

I have a drag and drop game where each movie clip is a word that the player has to arrange on screen in a certain order of importance - there is no snapping mechanism and the user can place the words anywhere desired.

Later in the game, I need this list of words to appear in the order that the player previously organized within a different scene.

This is an example code of how I set up the drag and drop game:

//Array to hold all the puzzle movie clip instances.
var burgerArr:Array = new Array (burger_mc, burger2_mc, burger3_mc,
burger4_mc, burger5_mc, burger6_mc, burger7_mc);

[Code]......

View 5 Replies

Call A Movie Clip To Play From Within Another MC?

Aug 5, 2009

Here's a simple one I'm sure but I can't get it to work or find a solution online.
I have a movie with 2 movie clips on the stage, the first clip is triggered to play on a button click (which works fine) but I want the 2nd clip to start playing when the first ends. I've tried putting MovieClip2.gotoAndPlay(1) script on the last frame of MovieClip1 but I get  "1120: Access of undefined property".

View 3 Replies

IDE :: Movie Clip Buttons That Call Each Other?

Feb 17, 2009

I have created several buttons using movie clips with animations and the 'rewind=true'method when someone mouses off. What I am wondering is, if I have 2 buttons on the stage and I want to animate both of them if one or the other is moused over at the same time, how can this be accomplished

View 1 Replies

ActionScript 2.0 :: Make A Simple Movie (call It MovieClip) First Frame Has Stop(); Action, Second Frame Has Label PlayMovie?

Nov 6, 2006

1. I make a simple movie (call it movieClip) first frame has stop(); action, second frame has label playMovie, last frame has action gotoAndPlay(2); (so that movie not stop anymore2. Now I place movieClip on stage3. Question... what is code to make movieClip play frame label playMovie?

I already try to put many different type action in frame one of stage
this.movieClip.gotoAndPlay("2"); //NOT WORK
this.movieClip.gotoAndPlay(2); //NOT WORK

[code].....

View 7 Replies

ActionScript 3.0 :: Call Method In A Different Movie Clip?

Jan 7, 2011

I have a movie with 3 frames. The first is a place holder for a loader and has some actionscript in my actions layer saying "on click goto 2" etc. The second and third frames hold movie clips, these movieclips hold many layers and have their own actions layers.

Say I am inside the frame 2 movie clip, in the actions for frame1 of that movie clip, I am trying to say goto frame 3 of the root and call a function from the movieclip that lives in frame 3.

View 2 Replies

ActionScript 3.0 :: Call A Movie Clip's Function From Outside Of It?

Jun 28, 2011

I'm trying to use a movie clip's function from a fellow movie clip 2 children up and I can't find the right code.  I've used:

MovieClip(datalist.getChildByName("content")).onpauseButton();
MovieClip(datalist.root.root.root).onpauseButton();
MovieClip(datalist.scrollb.content).onpauseButton();
MovieClip.(datalist.onpauseButton);
 
and none of them work.  The function is "onpauseButton" and it is inside of "content" which is inside of "scrollb" which is inside of "datalist." I'm trying to call it from datalist's neighboring movie clip so that it activates along with another function:

manualButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadFile_1);
function fl_ClickToLoadFile_1(event:MouseEvent):void{ navigateToURL(new URLRequest("M-23 6263.pdf"), "_blank");// want to add the onpauseButton code here
}

I recall that there is a way to do it, I just can't find the right sequence.  Everything online is about how to call up to a function outside of the movie clip and not down to a function inside of one.

View 4 Replies

ActionScript 2.0 :: Using A Variable In Movie Clip Call?

Aug 4, 2011

I want to use a variable in my movie clip code. Right now I generate a random U.S. state name and assign it to "correctAnswer". Then I want to assign that to myMovieClip.correctAnswer.gotoAndStop("down"); The problem is that the variable is not recognized and is seen as correctAnswer instead of the U.S. state that was assigned to it. My code is below.

ActionScript Code:
// Correct answer is randomly generated and can be any U.S. state name
correctAnswer = "utah";
// Using the variable correctAnswer this should come out as myMovieClip.utah.gotoAndStop("down");
myMovieClip.correctAnswer.gotoAndStop("down");

View 2 Replies

ActionScript 2.0 :: Call Scene From Movie Clip?

Jul 22, 2004

I'm trying to call a scene from a movie clip. But nothing works. I tried to label the first frame in the second scene but that didn't work, root and crap also failed. I'm deparate. I was trying to link the chalkboard from the first scene (clipboard) to the second scene (board). There is a button within the movieclip I'm trying to use, but it just doesn't work.

View 1 Replies

ActionScript 2.0 :: Possible To Call A Function From A Different Movie Clip?

Aug 1, 2006

Does anyone one know if it is possible to call a function from a different movie clip than the one it is in. For example, a function named loadData() which is on the first frame of a movie clip instance named thumbNail which is on level 0 on the stage i was thinking that it should work to call the function from frame one on the stage with..

View 5 Replies

ActionScript 2.0 :: Dynamic Movie Clip Name Call?

Sep 24, 2008

I can dynamically assign a movie clip name, but I don't know how to call the clip name.Notice in the following code, I assign each new movie clip a name: ActionScript Code:"memberClip"+x

I can't figure out how to call each one. I've tried:
ActionScript Code:
["memberClip"+x].loadmovie

[code].....

View 1 Replies

ActionScript 3.0 :: Call As2 Interactive Movie Clip In It?

Jan 24, 2009

I have an interactive movieclip called "AS2Clip" which was programmed in AS2. So when this movieclip is loaded within an AS3 application, does the AS2 native code still functions as it would if it was loaded within an AS2 Application?

View 1 Replies

ActionScript 2.0 :: Call A Scene From A Movie Clip?

Jul 22, 2004

I'm trying to call a scene from a movie clip. But nothing works. I tried to label the first frame in the second scene but that didn't work, root and crap also failed. I'm deparate. I really need help now. I was trying to link the chalkboard from the first scene (clipboard) to the second scene (board). There is a button within the movieclip I'm trying to use, but it just doesn't work.

View 1 Replies

ActionScript 3.0 :: Call A Variable Or Function From A Movie Clip?

Apr 2, 2009

I just need to call a variable or function from a movie clip to main timeline. In AS2 I would use something like:

_root.myvar = "Hola";
or
_parent.myfunc(4,2);

But this doesn't works on AC3. I tried to remove the "_" but its the same.

View 2 Replies

ActionScript 3.0 :: Movie Clip Is A Class But Can't Call It's Functions?

Feb 22, 2012

I have a document class that assigns some button on the stage an function.
  
I have 2 cards on the stage. They have their own class.
  
From the buttons script i can trace the cards and i get: [object MovieClip]
  
But I cannot call a function in them like card_0.flipUp();
  
it errors:
TypeError: Error #1006: dimMe is not a function.
  
the card class is public starts out like:
 
public class FlipCard extends MovieClip {
 
The function is public:
  
public function dimMe ():void {
this.alpha = .1;
}   

View 1 Replies







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