ActionScript 2.0 :: Old Scratchy Movie - Create MovieClip Lines And Actions

Mar 4, 2005

I found this flash tutorial about old scratchy movie: [URL]. Tells me to create a movie clip "line" and "actions" and create a line as big as the movie: 400. Then tells me to put this on the action panel of "actions".
Code:
onClipEvent(enterFrame){
_root.line._x=random(400);
}

I did that and it tells me to test the movie so I did but I get this error:
Code:
**Error** Symbol=actions, layer=Layer 1, frame=1: Line 1:
Clip events are permitted only for movie clip instances
onClipEvent(enterFrame){
Total ActionScript Errors: 1 Reported Errors: 1

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Create A MovieClip Button With Two Actions

Jan 1, 2010

how can I create a button with two actions.I mean for example I want after the first Click show something on stage, and after second click on it hide previus movieclip (or etc...) or even show something else.. . for example we have 3 symbols here s1,s2 and s3 s3 is our movieclip button. after first click in s3, I want to show s2. and after second click I want to hide s2.

[Code]...

View 5 Replies

ActionScript 2.0 :: Create A Movie With Different Actions In Each Frame?

Apr 14, 2009

Lets say I have 5 instances of a movie named BB1,BB2, BB3, BB4 and BB5 and I want to say move them 5 pixels to the right. Is there a way to do this in one statement and not have to post it 5 times? asically how can I shorten this to one instance to affect all of them?

on (release) {
_root.BB1._x += 5;
_root.BB2._x += 5;
_root.BB3._x += 5;
_root.BB4._x += 5;
_root.BB5._x += 5;
}

Second question is, let say I want to create a Movie with different actions in each frame. then I want to continually call that one frame action from a button release. How would I go about this?Action on frame is: _root.MM._x += 5;

Button on stage to trigger this action over and over would be?. I've tried gotoandPlay but it only works once on (release) {

View 2 Replies

IDE :: Scratchy Sound After Publishing Website

Oct 7, 2009

I use CS4 Flash 10.0.2 and after publishing a website (tried few templates), it comes out with bothering scratching/metallic sound. Basically all sounds, effects are distorted with a metallic sounds. If I do it few times, or shut down Flash and start it again and then publish it, the sound it is OK. What am I doing wrong or is it a setting that I should do to avoid this nuisance? It does not matter if I publish it with Flash v6 or v8 and moreover, it happens to different flash websites while using Flash CS4 for Windows and also for MAC. It must be something that I have to set but have no idea.

View 2 Replies

ActionScript 2.0 :: Apply Actions To A MovieClip Nested Inside A Dynamically Attached MovieClip - Remove Clip

Dec 4, 2011

I want to apply actions to a movieClip nested inside a dynamicly attached movieClip, with the attachMovie method; it doesn't works when the movieClip is attached by a button:

1.when the swf movie loads with an attachMovie method the remove_btn clears the window_mc

[Code]....

View 9 Replies

ActionScript 2.0 :: Create 2-3 Drawn Lines?

Apr 26, 2007

Is it possible to create 2-3 drawn lines in actionscript?Wanted to make a dynamic chart, but so far when I add coding for the second line, the first no longer works.

Trying to nest the lines in movie clips didn't work.Is this a restriction of the createEmptyMovieClip?I'm using....

_root.createEmptyMovieClip("lineFirst",0);
lineFirst.lineStyle(12,0x000000,100);
lineFirst.moveTo(0,0);

View 2 Replies

ActionScript 2.0 :: Create One Box With 4 Lines And Without Fill?

Dec 20, 2004

im newbie here and in AS, and dont speak english very well :$ ..

i want create one box with 4 lines and without fill.... i have no idea to do this...

using line tool to do this, the lines rise when i apply the resize script..

View 7 Replies

ActionScript 3.0 :: Add Roll Over Actions And External Links To Movie Clips That Are Inside Of Another Movie Clip?

Sep 14, 2010

I have a menu bar that has 2 Drop down menus. Each drop down is a separate movie clip, with 3 buttons inside that are separate movie clips. I have a class set to the buttons that are movie clips for a roll over effect. But when I mouse over it does not work. Also on the main time line I tried to add a like to a web page but it did not work. But I only have this problem with the movie clips that are inside the drop down movie clips.

Why is this? How do I add roll over actions and external links to movie clips that are inside of another movie clip? I really need some help this is a problem I have been having for about a month or more. I am still a AS3 newb and this is my first time using classes. The other classes I have work with everything else, Im just having trouble with the movie clips that are inside movie clips.

View 11 Replies

ActionScript 2.0 :: Cannot Create Over And Up Actions For Same Object

Jan 7, 2007

I am creating an animated menu for my personal website. All I need is a MouseOver and a MouseUp event on the same object. Because of the scrolling nature of the menu, I need to have MouseOver events on each menutab. Each menu item is hidden until a MouseOver event, then it scrolls out to reveal its title. If the user clicks on the now-revealed tab, it should become the current page. If the user does NOT click the now-revealed tab, it reverts to displaying the current page's tab instead.

This means that I need to have a MouseOver and a MouseUp (or Release) tag on my items. Since I probably confused you all as much as I just confused myself, here is the example. [URL]. The "Family" section should be displayed. As you can see, when the user runs the mouse over other tabs, they are revealed. When the mouse goes away, it reverts to the Family section because nothing else was selected. The menu operates on frame 2 - frame 1 sets the initial variables as shown.

Code:
var sel = "family";
var games = "0";
var movies = "0";
var artwork = "0";
var yugi = "0";
var about = "0";
var links = "0";
Frame 2 operates my rollovers in a frame action as shown.
[Code] ......

I've finally got the animation and MouseOver events done - all I need is a MouseUp event! Why it doesn't accept MouseUp or OnRelease events? This is, of course, a work in progress. A few artifacts of testing:

* The green squares on the left of each tab are invisible buttons to activate my rollover. I wanted to see them during testing.
* The blue rectangles sometimes visible over the tabs' text was a theory gone wrong; I was hoping I could click those rectangles, which are buttons (which would be invisible) to initiate the MouseUp event instead of the actual tab, which is a movie clip.
* Needless to say, graphics are temporary! LOL
* Coding is also not optimized yet, so it's a little messy for now.

View 1 Replies

ActionScript 2.0 :: Create Menu For Most Used Actions?

Jun 20, 2007

can i create a menu for the most used actions i define it by my self???

View 3 Replies

ActionScript 2.0 :: Dynamically Create One Box With 4 Lines And Without Fill

Dec 20, 2004

i want create one box with 4 lines and without fill. using line tool to do this, the lines rise when i apply the resize script..

View 8 Replies

ActionScript 2.0 :: The DNA Effect - Create A Layer And Name It Actions?

Apr 24, 2004

Taken from http:[url].....Creating the DNA effect like in the FlashBox banner.Create an object like the one shown below.Give it an instance name of dna1.You can use any colours but the colours I used are as follows: A radial gradient set with colours from left to right:

255.255.255 at alpha 100%
255,255,200 at alpha 50%
255,255,255 at alpha 100%
243,126,12 at alpha 40%
255,255,255 at alpha 0%

Now create a layer and name it actions. In the first keyframe give action:

Code:
for (i=2; i<30; i=i+1)
{
duplicateMovieClip ("/dna1", "dna" add (i), i);

View 1 Replies

ActionScript 2.0 :: Create A Banner With One Background And Four Lines Of Text?

Jul 19, 2011

I am trying to create a banner with one background and four lines of text.I need to make a 4 line animation where one line of text is displayed, then it fades out, then the other line of text fades in, and out again,then the 3 rd one and finally the last one and then it loops. The first 2 lines are working fine but not the rest.I am new to flash and trying to learn it thru tutorials.. I am stuck here.. Do we want to write any script for this or any other way to do it..? I couldnot find any tutorial for this.

View 6 Replies

ActionScript 3.0 :: Create Dynamic Images With 4 Lines Of Symmetry?

May 2, 2009

I can easily make a dynamic image with one or two lines of symmetry.

My normal approach is to take a square image and mirror it once too make one line of symmetry like this:

and then to make two lines of symmetry I can just mirror that image with one line of symmetry as well, making something like this:

images with 2 lines of symmetry work really well for 2D tessellations, but for 3D tessellations I need 4 lines of symmetry.

this is a problem since the way you'd normally do this is to basically fold the square in half both ways diagonally, which gives you triangles instead of rectangles.

this makes it harder to use rotation matrices to mirror the source image.

has anyone come up with a good way to give a source image that you can loop through every pixel quickly and mirror it in such a way that it has 4 lines of symmetry?

i have this completed so far, but i need the texture map to have 4 lines of symmetry, not 2 like it currently does.

[URL]

View 1 Replies

Professional :: How To Create Mouse Rollover/rotate Actions

May 10, 2010

I'm interested in learning how to create a "3d" object that a user can interact with using their mouse. I've taken 60+ pictures of a camera rotating by 5 degree increments and I'm trying to put together something similar to what Verizon has on their website for phones -  Where your mouse rolls over an object and rotates it.
 
I've seen this done with Java as well, but I'm interested in how flash does it.

View 1 Replies

Flex :: Dynamically Create F4 AddChild Actions For States?

Dec 27, 2010

I have an application in which I need to create mx.states.State objects on the fly, as I'm reading external data in order to create the states. Each State only has a single child, so here's my code which I was using to accomplish this[code]...

View 2 Replies

Professional :: Possible To Create A Simple Application Of Visualization Without Lines Of Code

Jun 30, 2011

I start to work on new web 3d engine. I call it IGood engine.As can be seen from the video, it is already possible to create a simple application of visualization without lines of code.Base on for alternative 3d.I am waiting your opinions.

View 1 Replies

ActionScript 1/2 :: Bring Up The Actions Menu That Will Allow Me To Create A Link From My Buttons?

Feb 8, 2011

having previously made webpages just in html.I have a flash movie and wanted to add a series of links.I've made some buttons, but when I rightclick on them and go to actions, I don't get the 'basic actions>geturl' command that the help screens tell me I should have. I get some other crazy menu with options like 'Global Functions', 'Actionscript 2.0 Classes' etc.how I can bring up the actions menu that will allow me to create a link from my buttons?

View 2 Replies

ActionScript 2.0 :: Create An Array For Every Time Two Characters Exchange Three Lines Of Dialogue?

Jul 9, 2009

i'm creating a very linear game which will be dialogue-heavy. In fact, there will be little action involved at all. Think a game storybook. I'm using ActionScript 2 because AS3 is just too complicate for the type of newbie that I am. But all I'm trying to do is set up dialogue between two characters in my game with an image of the speaking character to the left of the textbox. Something very much like this:I considered creating arrays for the dialogue but my problem is that if I create an array for every time two characters exchange three lines of dialogue, I would end up with over 300 arrays. Not my cup of tea.

So, instead, I focused on this. I created a function called speak. Speak pulls two parameters: charNum and charText. CharNum is a number which specifies which frame of the charPic instance should be displayed, showing which character is currently speaking. CharText is simply the dialogue the character will speak, which will be displayed in the dynamic textbox with variable name 'dialogue'.The following code is an example of what I have at home. I'm at work trying to get help, so I don't have the actual coding. Therefore, small errors may be present. I'm looking more at the overall functions guiding my code.

[Code]...

You see, AS2 sees these as I believe what is called synchronous functions, meaning they run at the same time. Therefore, the second speak function overwrites the first one before the user presses the space bar to go to the next one. See the issue?I've tried to seek help on this issue (and other before), and I keep getting told about arrays and setInterval. But my problem is that I've tried it all. I don't see a good array tutorial about this type of thing, and setInterval doesn't function like I'd want as well. Instead, it seems that from what I've read and tried, setInterval is for setting a delay up for a certain amount of time. I don't want that. I want a delay to occur until a button (namely the space bar) is pressed.

Like I said, this seems like a fairly common thing to do (stringing together dialogue in a flash movie/game), but I have seen no tutorial nor other help through all my Google and forum searching. A little push in the right direction would be appreciated. Like I said, I've figured out everything else my game needs from preloaders to game inventory to animation effects.

View 1 Replies

ActionScript 2.0 :: Create If Statement That Would Load Movie Clip After Different Movieclip Is Loaded

Apr 19, 2004

is there a way to create an if statement that would load a movie clip after a different movieclip is loaded.i have text_mc and scroll_mc. I dont want scroll_mc to load unless the content is loaded into the text_mc.I tryed to make an if statement sort of like a something used for a preloader but I must have been off just a bit because it was not working. I dont even know if it possible.

View 7 Replies

ActionScript 2.0 :: Actions In A Movieclip

Sep 30, 2009

i have a scrollbar that controls the action within a movieclip called "future". The code for this works just fine when it's placed in root, but when i put this in a movieclip by its own, a can't get it to snap and control anymore.I would like to but this code and movieclip and put in in a clip called "scroll". The for it to control the same thing as it does now ,_parent.future.gotoAndStop("a"); etc.[code]

View 1 Replies

ActionScript 2.0 :: Drawing Lines From One Movieclip To Another?

Jan 23, 2004

I am making a movie clip and want to draw lines from one movie clip to another to make it look like connectors on a flowchart. How do I use the returned values using a getbounds() method to draw a line from movie clip A to movie clip B. how the xMin, xMax, yMin and yMax values translate to finding the 4 corners of a rectangular movieclip. Can I use these values to draw lines from the movieclip using lineto().

View 11 Replies

ActionScript 2.0 :: Drawing Lines From One Movieclip To Another

Jan 23, 2004

I am making a movie clip and want to draw lines from one movie clip to another to make it look like connectors on a flowchart. How do I use the returned values using a getbounds() method to draw a line from movie clip A to movie clip B. Can some one show an illustration explaining how the xMin, xMax, yMin and yMax values translate to finding the 4 corners of a rectangular movieclip. Can I use these values to draw lines from the movieclip using lineto(). If so how do I do that?

View 11 Replies

FLV Component - Actions To Hide MovieClip

Jan 27, 2010

I will have to explain this in steps. I have a flash website, inside it I have the content on frame 2 (frame 1 = preloader) from there I have a content_mc which holds my pages. I have a home page (frame labeled home) which inside displays the home_mc. In here I have inserted a flvPlayback component. Here's where the problem is. I have moved a stop and volume component on it as wel which has automatically linked up (which is nice). But I would like when I click the stop button, the video disappears. The videoPlayback is called "introVid", the instance name is "vid", and is residing within the "home" mc.

I know the code is something like:
this.visible = false;
or
movieclip(root).home.vid/introVid.visible = false;
or I have also seen people using visibility = false...

However I cannot find out how to link this with the flvPlayback Stop button component. Inside the button all I can find is: The 4 button states,
some code on stop button itself:
stop();
this.upLinkageID="StopButtonNormal";
this.overLinkageID="StopButtonOver";
this.downLinkageID="StopButtonDown";
this.disabledLinkageID="StopButtonDisabled";

I require to put my actionscript on the press or release, but I cannot find out to do this, I assume the code at the moment is calling a "flash component class" which holds the actions for "stopButtonDown" or something, I did have a go at manually creating a mc and a button, and making that stop the flvPlayback, and hiding the movieClip, but with no luck.

View 2 Replies

ActionScript 2.0 :: Get Some Actions On A Duplicated MovieClip?

Sep 24, 2010

I am trying to get some actions on a duplicated MovieClip Now what I got is something like this:

Actionscript Code: I have some loop wrapped around this so the 'i' changes.duplicateMovieClip("target", "new"+i, 100+i);// I use 'i' because i need a few of those...for(i=0;i<somenumber;i++){_root["new"+i].onEnterFrame = function(){//actions}}

And it won't work. Logically it just makes MCs "new1" "new2" "new3" and so on.And then it checks for those.If i put a MC named "new3" on stage, it works. I guess i'm just stupid and doing the duplication wrong or something.

View 9 Replies

ActionScript 2.0 :: All Actions In Same Layer On MovieClip

Dec 19, 2010

I've read that it's easier to simply put all the actions that you will be using on one layer of the whole .fla, so it will be easier to configure and change settings. Well I've been trying to do that, and I'm kinda new at it, like I can get around with putting actions on movieclips, but now since I've started doing it this way, I've had some troubles... For example

ActionScript Code:
player_mc.onLoad = function(){
playerSpeed = 5;
playerHealth = 50;
player_mc.onEnterFrame = function(){
if(Key.isDown(Key.LEFT)){
[Code] .....

That's simply a character moving script, but it doesn't seem to be working for me, and I think it's because it's on the Actions layer and not on the movieclip...

View 3 Replies

ActionScript 2.0 :: FMX - On Button MovieClip For Two Actions

Apr 3, 2004

How can I make a mc witch I us as a button fuctional for two actions.I mean when I press the button that a clib fades out and when I press again it fades in again I tried it with an if but the it only works one time.This is the script

Code:
but.onRelease = function(){
if (mc._alpha <= 1){
fadeClip (mc, 100, 4);
}else if (mc._alpha >= 99){
fadeClip (mc, 0, 4);
}}

View 3 Replies

ActionScript 3.0 :: Actions On MovieClip Instances

Nov 21, 2009

I'm trying to convert an old AS 2.0 file to 3.0, but keep getting this error:

[Code]....

I've been pulling my hair out trying to find the problem spot. Can someone take a look at this file and find where the problem lies? NOTE: the file needs to be updated to use strings within the Case statement: "Button_1", etc.

View 1 Replies

ActionScript 3.0 :: Cannot Get The Lines To Draw Onto The Top Of The MovieClip Box_mc?

Jan 14, 2010

I cannot get the lines to draw onto the top of the MovieClip box_mc.At this pojnt, my solution is to change the alpha of box_mc to 0. Now I can see my drawings which are under the box_mc but keep within the boundries of the MovieClip.Maybe my thinking is too concrete, but I was trying to get the drawing lines to stay on top of the MovieClip box_mc like it was a small drawing board.I have tried place a reference to the stage in various places and use addChildAt() in order to see f I can change the MovieClip's place in the hierarchy but so far nothing has worked.

Attachments:
PencilDrawingApp.fla.as.zip (686 bytes)

View 4 Replies

Actionscript 3.0 :: Blitting Lines - Draw Approximately 50000 Lines And Performance Is Poor?

Aug 17, 2011

I have been working on a map viewer based blitting technique. As part of the map I need to draw approximately 50000 lines and performance is currently really poor.

Code: Select allvar movie:Shape = new Shape();
for( ... )
{
movie.graphics.clear();[code].....

View 2 Replies







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