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


Similar Posts:


ActionScript 1/2 :: Put Another Set Of Actions In Frame 2 Of The Actions Layer?

Sep 29, 2010

1. Can i put another set of actions in frame 2 of the actions layer?i tested but it doesn't seem to work..it has 836 rows of code and it's getting annoying when tryin to search for a function..
 
2. I am not that familiar with classes, i usually put all the code into movieclips or in actions layer.. i am not sure if i can call a function from a actionscript class..
 
3.I am curios if there is any way i could specify an alternative for the if statement like in this pseudocode:
 
if ( apple is not clean BUT is tasty)
{
eat(apple)
}

View 5 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 3 :: Create Multiple Layer Masks Over A Single Layer?

Mar 22, 2012

Is it possible to create multiple layer masks over a single layer using Actionscript3?Below is the flash effect I wanted to create with masks.First it starts from A and goes to B and C simultaneously.Then from B it goes to H and D simultaneously (the same applies to C).This is how the end result will look like.ps. I need my background to be transparent. I'm embedding it into a web page later.

View 2 Replies

IDE :: Compiler Errors - Actions / Labels Layer

Feb 7, 2010

I'm getting a compiler error in my flash website the error said,
Location: Scene 1, Layer 'Actions/Labels', Frame 1, Line 12
Description: 1120: Access of undefined property furniture
Source: furniture.addEventListener(MouseEvent.CLICK,clickS action);
What is up with this error. My instance name matches in my code and in my actions/labels layer, anyone know what else it could be?

View 1 Replies

ActionScript 2.0 :: CS3 Editting Script From Movieclip To Actions Layer

Dec 7, 2009

i'm currently having a small problem with some Actionscript 2.0 in CS3.I'm following a tutorial to make a simple maze like game URL...I'm currently at step 5 where it's coding the movement and wall detection.. The problem is the tutorial wants me to apply the code directly to the maze/wall movieclip. However as this is for a college project my lecturer will not accept actionscript directly applied to buttons or movieclips.. He basically wants all the script on a seperate actionscript layer. So basically what i'm asking is how and what part of the code do i need to change so it'll still work even though it's on a different layer from the object![code]

View 6 Replies

ActionScript 2.0 :: Editting Code From Movieclip To Actions Layer

Dec 7, 2009

i'm currently having a small problem with some Actionscript 2.0 in CS3. I'm following a tutorial to make a simple maze like game Tutorial here: [URL] I'm currently at step 5 where it's coding the movement and wall detection.. The problem is the tutorial wants me to apply the code directly to the maze/wall movieclip. However as this is for a college project my lecturer will not accept actionscript directly applied to buttons or movieclips.. He basically wants all the script on a seperate actionscript layer. So basically what i'm asking is how and what part of the code do i need to change so it'll still work even though it's on a different layer!

[Code]...

View 3 Replies

ActionScript 3.0 :: Texture Layer - Using Buttons And Effect In Animation

Mar 31, 2011

Well I have this interactive design for a website that I am making for myself. The problem is that on the top layer just under my actions layer I have a texture that I use to give my whole design a really nice feel even the buttons. The layer is blending using multiply in flash even tried a soft light blend using an external swc but it was slowing down my animation to much. Anyway my buttons are underneath that layer so it gives that really nice effect to them. How can I get around this cause when I publish I cant click on any buttons since the layer above them seems to be blocking them which is the texture layer?

View 3 Replies

ActionScript 2.0 :: Cant See Alpha Effect On Bitmaps Except For Bottom Layer

Sep 22, 2007

i have a timeline animation inside a movieclip.it contains bitmaps. when i set the movieclip's alpha 50 etc, i cant see the alpha effect on the bitmaps except for bottom layer.that simple animation seems like these and i cant understand this situation

View 7 Replies

Actionscript 3.0 :: Create Attraction Effect Instead Of Push Effect?

Aug 25, 2010

is there a way to change the code and create attraction effect instead of push effect?i tried but without success...!

View 1 Replies

ActionScript 3.0 :: Keep All The "actions" That Picture (layer) Has?

Oct 14, 2010

I have a template with some pictures in it; now I want to replace that picture with another picture but I want to keep all the "actions" that picture (layer) has. How do I do this? I tried a lot of times with the Swap-command but could not make it work.

View 1 Replies

How Does The Flash Layer Interact With The Flex Layer In A Multiple Layer Design

Aug 26, 2011

Don't know if the flash layer on the view stack contain only the compiled flash swf file

View 1 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 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

Create Top Layer With Transparency?

Aug 15, 2009

I have created a swf for the header of my website. On the top layer I have an image that stays static while the rest of the header changes images. I am trying to get the static image to be fairly transparent but am not having much luck. I created the image in PS I saved it with transparency but it doesn't look right in the swf.

View 2 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

ActionScript 3.0 :: Create Sub Layer In Timeline?

Sep 12, 2011

How to create timeline sub layer in main layer without group and mask?

View 2 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 :: 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

ActionScript 2.0 :: Create Movieclip At The Back Of A Layer?

Mar 22, 2012

I wanted to create a rain movieclip with the actionscript below, but i wanted the rain to appear at the back of a layer. How do i change the script?

//Creating an empty movieclip to attach the clip from library
_root.spring_mc.rain_mc.createEmptyMovieClip("hold er",this.getNextHighestDepth(0));
//settig variables

[code]......

View 1 Replies

Professional :: Create The Scripts On The Objects And Not On The Layer?

May 5, 2010

I have used buttons elsewhere in my project but this time when I use the same script I get the following error:

Symbol=gallery_button_vir_oak_tree_down, layer=Layer 1, frame=1, [code]........For some reason the project I inherited is set on an older version of action script (v1.0). So, I have to create the scripts on the objects and not on the layer.

View 8 Replies

ActionScript 2.0 :: Create Fading Slideshow On A Layer?

Jun 28, 2006

I'm trying to run this AS, so it appears on say 'Layer 11'. That way I can use it underneath other elements. Is this possible? I tried to phyiscally put it on 'Layer 11' but it always shows the slideshow on top of all the layers. I'm sure many of you are familiar with this script.

[Code]...

View 4 Replies

Professional :: How To Create Motion Tween (Text On Single Layer)

Aug 21, 2011

I know it is very easy. Right click> create motion tween> drag to where I would like the text/object to move. But, Sometimes it doesn't seem to work when I drag the text. It will work the first time and for the second text on the frame it won't work. What are the requirements of a motion tween when it comes to text on a single layer in the same frame.

View 2 Replies

ActionScript 3.0 :: Create Multiple Layers Where Each Layer Has Some Graphics And Buttons On It?

Aug 1, 2011

I want to create multiple layers where each layer has some graphics and buttons on it. I am using Flex so I like to do this using actionscript.

Does anybody know how to create a layer in actionscript?

How do you attach these layers to your stage?

View 4 Replies

Professional :: Flash Alpha Mapping - Create A Dynamic 3 Layer Image

Feb 15, 2012

I would like to create a dynamic 3 layer image that can have any of the 3 layers changed. i was thinking of doing this with alpha mapping where I have a back, middle, and front layer each defined by an alpha map. So if the style or shape of these changed I just render the texture with a new alpha map to define what portion actually takes the texture. So for each of the 3 layers there is a type(defines the shape), the texture which is applied to the shape, and an alpha map that is used to specify how the shape takes the image.

Imagine a fruit basket that can have the fruit switched out or the basket, and any combination of textures applied. You could potentially see the inside of the basket which may have a different texture than the outside. The fruit would all be one image that would then fit into the basket, and finally the basket would render. Then if you swap the color of the basket but keep the same model it would update, and you could then swap the model of the basket and keep the same color. But i'd want to do it where I have 1 texture that can fit over all the baskets but is just chopped off using alpha mapping.

View 3 Replies

Actionscript 3 - Create A Grid Layer In Flash And Identify In Which Quadrants Icons Are Placed?

May 19, 2011

I have an existing Flash app that has a layer containing a square separated into 4 quadrants. A set of icons is provided to the user and he/she is asked to drag each icon into one of the quadrants. Does Flash/AS3 provide a way to create a grid (not necessarily DataGrid) that overlays the existing image? If so, how do I setup AS3 syntax to save the quadrant in which an icon is placed?

View 1 Replies

ActionScript 3.0 :: Timeline Actions Ovverriding Actions In New Frame?

Jun 19, 2011

I have a series of frames one the timeline. Each frame has a graphic and a mouse click leads to the next frame. Think Myst.

[Code]...

When the middle frame is returned to, clicks no longer change anything. I believe that the actions of the 'left' frame are replacing the one's in the middle frame so then it is told to gotoAndStop to itself.

I'd like to know if that is indeed what is happening and how I can make it stop.

View 1 Replies







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