Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








[CS3] Basic (?) ActionScript Help


Hi there,

I'm looking to create a function which can replicate a split-flap display / departure board-type effect (along the lines of http://www.youtube.com/watch?v=yIwTq4-0DOA) for strings of letters in dynamic text fields, and was wondering if anyone could help or advise with the ActionScript? I'm completely stuck...

The idea is to have separate text fields with one letter in it each (together form a word / message) - when the message changes, for each letter, it switches to the following letter in the alphabet, then again and again continuing through the alphabet, until it reaches the new target letter, then stops. All the letters start this at the same time, but stop at different times (because distance of old and new letters is different)

If I don't work this out I'm going to have to manually animate all the changes... and I really would rather not have to do that... :|

Any help at all appreciated. Thanks so much in advance!




FlashKit > Flash Help > Flash Newbies
Posted on: 06-15-2008, 12:19 PM


View Complete Forum Thread with Replies

Sponsored Links:

Basic Moving Clip W/actionscript + Random Motion W/actionscript
ive tried this many times w/logical scripts but i dont know how

how do you create motion w/actionscript?

also, how do you randomize the motion?

any help would be appreciated

View Replies !    View Related
Basic Actionscript
Hi,

I’m just trying to move a ball from the left to right and back.
Anyone out there that has any idea whats wrong with the code?

Thanks,

onClipEvent (mouseDown) {

var i = 0;


function moveball () {
for (; i <this._totalframes;i++) {
this._x += 10;
}
}
function moveballback () {
for (; i != 0; i-- ) {
this._x = - 10;
trace(i + "-");
}
}

if ( i < this._totalframes) {

moveball();

}

if (i == this._totalframes){

moveballback();

}
}

View Replies !    View Related
Basic Actionscript
after over 2 hours of looking at this thing i deceided to take a long shot and ask here for help. if you go to http://www.pa-gods.net/sgt/index.swf u will see the problem i have,. when i click from link to movies its fine, movies to links also fine, links to games fine, games to links fine, movies to games not fine, as soon as the movies thing is lciced once the games thing is clicked it never goes off again.
i am using flash mx and those actionscrip is as follows:

link button

Code:
on (rollOver) {
stop();
}
on (rollOut) {
play();
}
on (release) {
if (moviesison == true) {
tellTarget ("_root.movies") {
gotoAndStop(1);
moviesison = false;
}
} else if (gamesison == true) {
tellTarget ("_root.games") {
gotoAndStop(1);
gamesison = false;
}
}
linksison = true;
tellTarget ("_root.menutext") {
gotoAndPlay(41);
}
tellTarget ("_root.links") {
gotoAndPlay(2);
}
}


thats the bit that seems to work fine
movies:

Code:
on (rollOver) {
stop();
}
on (rollOut) {
play();
}
on (release) {
if (linksison == true) {
tellTarget ("_root.links") {
gotoAndStop(1);
linksison = false;
}
} else if (gamesison == true) {
tellTarget ("_root.games") {
gotoAndStop(1);
gamesison = false;
}
}
moviesison = true;
tellTarget ("_root.menutext") {
gotoAndPlay(21);
}
tellTarget ("_root.movies") {
gotoAndPlay(2);
}
}

and finally the games:

Code:
on (rollOver) {
stop();
}
on (rollOut) {
play();
}
on (release) {
if (moviesison == true) {
tellTarget ("_root.movies") {
gotoAndStop(1);
moviesison = false;
}
} else if (linksison == true) {
tellTarget ("_root.links") {
gotoAndStop(1);
linksison = false;
}
}
gamesison = true;
tellTarget ("_root.menutext") {
gotoAndPlay(2);
}
tellTarget ("_root.games") {
gotoAndPlay(2);
}
}


thanx in advance. please reply i really want this sorting, today hasnt been very good at all, it'd be nice if onething can go my way

oh yeah and as a small ps what happened to the flash signitures, i cant see anyones or mine. these been disabled or something?

View Replies !    View Related
Basic Actionscript
I'm a beginner in the scripting world. I need to know something about scripting syntax, where can I get an aesy overview?
My actual problem is to write a script for a christmascalender. I have 24 buttons on my first frame. If a button is pressed (eg 5. dec) it should send you forward to the keyframe named "5. dec." But if the actual date is not yet the 5. of december it should send you to the key frame named "foul".
Can anyone give me som help on this?

Ronny

View Replies !    View Related
Very Basic Actionscript Help.
Hi all,

I'm still kinda new to actionscripting and i've some across a small problem while trying to create a quiz.

Currently, i have 1 input text box with instance name "q1" which is linked to the variable "song1"

Then i also have a button with actionscript

on (release) {
if (song1 = "Kurenai") {
}
var score = +1;
}

In the attempt to make the score variable increase if the word Kurenai is entered into the input box "q1"

Currently, whenever i click the button, it increases the variable and also changes the input box's text to Kurenai whatever is typed.

Could anyone help a newbie in distress?

thanks
-Rogue

View Replies !    View Related
Basic ActionScript Help
Hello,
I'm trying to learn the basics and I’m having trouble getting past some of the concepts. I have a very simple example I'm working on and I can't get it to work. The example is a getProperty, setProperty fade image in and out. Can someone please show me the way? I will attach the example, and put the code here. Also if you can give me a quick explanation on what I'm doing wrong I would be very grateful.. Thanks, Jacob.

Button One
code:
on(release){
image.fadeOutalpha = 95;
}


Button Two
code:
on(release){
image.fadeInalpha = 5;
}

Script on MC
code:
onClipEvent (load){
//Sets _alpha var to alph and sets _alpha to 100;
this._alpha = 100;
}
onClipEvent (enterFrame) {

// finds alpha for FadeOut (beginning at 100 %);
fadeOutalpha = getProperty(this, _alpha);

// finds alpha for FadeIn
fadeInalpha = getProperty(this, _alpha);

// if the new pic alpha is 0, fade it up to 100
if (fadeOutalpha < 100) {
setProperty(this, _alpha, fadeOutalpha - 5);

// if the old pic alpha is 100, fade it down to 0
if (fadeInalpha > 0) {
setProperty(this, _alpha, fadeInalpha + 5);
}

}
}


EDIT: Added [ as ] tags - jbum

View Replies !    View Related
Basic Actionscript But.... I Don't Know?
Hey Everybody!!!


I try to make this as simple as possible..
Mc_A is loading Mc_B into a blank movie clip located on Mc_A. I have a button on Mc_A that I want to control Mc_B located in the blank movie clip. I want the button to tell the Mc_B to play.
Thanks for the help..
D

View Replies !    View Related
[MX] I Need Basic Actionscript Help Now T_T
I recently acquired the new Adobe version of Flash. Back then, I used FlashMX

Its been over a year since I last used Flash, and I only know the basics back then. Right now, I'm back to nothing I guess. The only things I remember are basic animation.

The thing is, I am very unfamiliar again with flash and I need some basic as in BASIC actionscript help.

I need the codes to...

1. Make a button that will make it go to the next frame on click

2. Make a button that will make it go to a frame that I want it to go on click

just give me what will work. I need this for our presentation tommorow. I decided to not use powerpoint for the presentation and use Flash for an added 'oomph' for the grades.

if my presentation were in powerpoint, there would be like, one 'main menu' slide allows me to choose which 'slide' i want to present. then there is a go back to main menu button which will allow me to choose another slide to present.

thanks!

View Replies !    View Related
[F8] Need Some Basic Actionscript Help
Hi everyone

I have used Flash quite a bit however, i'm quite new to actionscript (need to do some bed time reading on that part :P)

Anyways i'm trying to make a banner for a friend of my so i thought what best way to start learning some actionscript so i started fiddling around.

I have 2 scenes with a small Movie on the first scene now what i'm trying to achieve is ones the movie is finished playing that it would go to Scene 2.

Any help is highly appreciated!

Thank you in advance

Edit: Almost forgot i'm using ActionScript 2.0

View Replies !    View Related
Basic Actionscript Help
I have a movieclip called scroll.

Within scroll is another MC called scroller. Attached to scroller is the following code:

onClipEvent(load) {
speed = -2}
onClipEvent(enterFrame) {

currentPosy = this._x;
if (currentPosy > -510.8) {
this._x = this._x + speed;
} else {
this._x = 245;
}
}

Within this movieclip are a series of buttons side by side.

This group of images needs to constantly scroll to the left and loop (Which it does great.)

BUT I need to figure out how to stop this scrolling when one of the buttons has been rolled over and then on Rollout needs to resume movement. (These buttons need to be clickable in order for navigation.)

I can't figure out what code needs to go on the button to make the parent movieclip with the above code stop and start.

Again my movieclip structure is scroll>scroller (where the onClipevent code is)>All of my buttons.


Any help is appreciated. (if I need to completely change things up that is fine too...)

Thanks!

View Replies !    View Related
Help Basic Actionscript
I am making a game for a project at uni

I have got the game working apart from sorting out the high scores.

I have got the application split up into scenes. Game scene and High Score page.

When the time reaches 0 the High Score page is shown. I have a dynamic text box in the High Score page and I need it to take the score from the Game Scene score_txt (dynamic text box)

Can anyone help please?

I have tried using global variables and even using the same dynamic text box from the game page. I use _root but I think you need something else to refer to a different scene.

Thankyou

View Replies !    View Related
Actionscript Basic Help I Think
Dear actionscripters out there, unfortunately i am not one

i have a health variable which i need to be able to decrease at a reasonable rate. As at the moment i decreases randomly by 2 at too high a rate. I have seen you cannot change the frame rate so i cannot solve it this way. Any help here would be appreciated.

View Replies !    View Related
Basic Actionscript Help
i confess, i am a newbie. i have been working with a template, modifying it to my needs. i have ran into an actionscript code that i cant seem to find the reference to in the books. it is: _root.G

can someone point me toward the proper reference material to read up on this?
thanks!

View Replies !    View Related
Help With Basic Actionscript
Hi I am new to Flash and am making a web site. I have buttons which I would like to load .swfs onto a stage. I converted a rectangle into a movie clip and am trying to load my .swfs in the stage(am i at all close?). Am I going about this correctly?

And what would my actionscript be to load a movie clip if my stage is called "stage" and my clip is called "registration"?

I will probably have more questions thanks.

View Replies !    View Related
Help With Basic ActionScript
Hello,
I'm trying to make multiple comparisons in the same line and it's not working. Please any help would be greatly appreciated. I'm trying to get the Try Again because of the comparison between the minutes and seconds at the end but it's not reading that part of the line.

Here is the code:

var minutes:Number = 40;
var seconds:Number = 30;
var turns:Number = 2;
var score:Number = 77;
var times:Number = 3;

if ((turns<=3) && ((score>=75) || ((number<=2)) && ((minutes<30) || (seconds<30)))){
trace("You Win the Game!");
} else {
trace("Try Again!");
}
/* output:
You Win the Game!
*/

View Replies !    View Related
Basic Actionscript
Hi everyone,

I'm a newbie learning Flash and actionscript. I made a simple flash
design where I have two buttons on the left and two simple
MC animations to play on the main stage, one for each button.

I placed the buttons on their own layer in frame one.
I placed the two MC's on another layer on frames 9 and 20.
On the two buttons I used the AS:

on (release) {
this.gotoAndPlay("9");
}

AND

on (release) {
this.gotoAndPlay("20");
}

Respectively.


The .swf does work, that is, the two buttons play their scripted animations.

I have two questions now...

1) When I press the first button it plays the animation, and the short
animation stops because it has its own "stop();" on its last frame of its timeline.
BUT when it is done playing and I press its button again why
doesn't it just play again. It only plays once. I have to press the
second button and watch that animation and then go back and press the
first button to play the 1st animation. Why won't either animation play repeatedly by just
repeatedly pressing its button?

2) Is there any other type of script I could have used than referring to
the frame labels that the MC's are on? In other words I tried to find AS
that would refer directly to the instance names of the two animations
to play them directly by their names, rather than directly by frame label.

Hope that makes sense. I zipped the .fla file if you want to look at it.
I Norton scanned it first!

Thanks for helping a beginner!

Joe

View Replies !    View Related
Hi, Basic Actionscript Here
i think i am turning from a newbie just into intermediate. so i'm giving you some basic actionscript.feel free to add any of yours. But make sure you give intructions how to use it .



onClipEvent (enterFrame) {
startDrag("", true);
Mouse.hide();
}

This is the cursor code, simply just create your cursor and then convert it to a MC(movieclip). And then paste the code into the MC actions.


on (press) {
startDrag("");
dragging = true;
}
on (release, releaseOutside) {
stopDrag();
dragging = false;
}

The drag code exacly the same obove, just convert the object you want to drag into a MC and put the AS(actionscript) into the MC actions.

onClipEvent(enterFrame){
if(Key.isDown(Key.UP)){
this._y -= 5;

}
}

onClipEvent(enterFrame){
if(Key.isDown(Key.DOWN)){
this._y += 5;

}
}



onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
this._x -= 5;
}

}onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x += 5;
}

}

I know you dont have to have the onClipevent everytime but i left it like that incase you only wanted 1,2,3 movements. Convert the oject you want to move to a MC and put the AS into the actions box.

onClipEvent(enterFrame){
if(this.hitTest(_root.cross)){
_root.score+=1;
}
}

Score code, i'll explain, when the object(the one with the AS in it) hits the object Cross it will score a point. Only if you have a dynamic text box with the varible name of score. Dont forget it will not work unless you have the AS on your frame
_root.score = 0;

onClipEvent(enterFrame){
if(this.hitTest(_root.bad)){
_root.gotoAndPlay(2);
}
}

exacly the same but it will go to a diffrent frame.


Hope that helps

View Replies !    View Related
Basic ActionScript / XML Help...
I'm trying to create a very simple proof-of-concept flash file that will read in text from an xml file and then using the tween class, fade and scoot to the center of the screen. This should be much easier than the difficulty I'm experiencing and help would be greatly appreciated.




Here is my current code:

// import tween and easing classes \
import mx.transitions.Tween;
import mx.transitions.easing.*;

var numOfItems:Number;

// set text field alpha to 0 at runtime (THIS DOES NOT WORK FOR SOME REASON)
theText._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function(mover)
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0; i<numOfItems; i++)
{
var t = theText2.theText.text = nodes[i].attributes.mytext;
}
}
xml.load ("text.xml");

function mover()
{
for (var i=0;i<numOfItems;i++)

{
var tw1:Tween = new Tween(t,"_x",Strong.easeOut,t._x,Stage.height/2,1,true);
var tw2:Tween = new Tween(t,"_y",Strong.easeOut,t._y,Stage.width/2,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
}
}


And here is my very basic XML file

<?xml version = "1.0" encoding = "UTF-8"?>

<labels>
<label mytext="Here is some text."/>
</labels>



I only have a simple dynamic text field with an instance name of "theText" and since I couldn't get it to animated I placed inside of a movie clip with an instance name of theText2. It reads in the xml file okay but it does not animate anything. Hope that someone can help...

View Replies !    View Related
Basic Actionscript Question
I know this is really basic but can anyone tell me how to code in actionscript without having to use any of those presets like the "goto", "play" and "stop". Is there anyway to code without using all of that?

View Replies !    View Related
Basic Actionscript Not Working Help
Hi..

Ive built an interface that uses various movie clips that appear/disapear as you roll over the menu buttons. In these movie clips are a range of buttons with various choices. They will load movies into a base movie eventually. However the protype uses different scenes rather than movies.

Ive also added a OnclipEvent that closes the menu when the mouse is released anywhere on the screen. This is done by a goto action guiding to a blank frame within the movie clip.

The problem is with the buttons inside the movie clip itself. Ive attacthed actions to go to a particular scene on press. The idea is it will go to the scen then the menu will close as the mouse is released. The menu itself works pefectly but the inside buttons will not move to another scene?

Ive tried _root. and without root before the gotAndStop action but it still doesn't work?

Any help would be appreciated...

View Replies !    View Related
Actionscript Help Sure This Is A Basic Thing ...
Is there a way to take a button, tell it to goto a specific scene, play the frames in that scene, then goto another specific scene... not in linear order... this way i can use the same transition scene for multiple buttons and still go to the scene i want the button to goto in the end ???

some thing like

if "button a" is pressed it goes to the "transition scene" then to "scene a"

if "button b" is pressed it goes to the "transition scene" then to "scene b"

so on and so forth...

I'm a reletive newbie at this .. and i'm having trouble thinking up a solution based on my knowledge.

thanks

Lutha

View Replies !    View Related
Basic Problem With Actionscript
I am new to flash and am trying to make a simple audio player. I have reviewed many tutorials and am still unable to get a simple slider to work, both it's movement and adjustment of the volume. I am using Flash MX and the attached file is stripped down with only the pertinent stuff make the file smaller.

Any help would be greatly appreciated.....

View Replies !    View Related
Basic Mode ActionScript
Hi,

I'm using Flash MX 2004 and I'm trying to add some action script, but it seems to have gone into expert mode, MX, 5, and 4 all had a basic mode as well, which is sufficient for what i need (I'm also no expert at Action Script)

Can anyone tell me how to get it back into Basic Mode, cant find it anywhere.

Thanks!

View Replies !    View Related
A Very Basic Actionscript Problem
I have a very stupid yet a very frustrating actionscript problem.

I have a frame lable "layout" and I have a button.

I have the following actionscript on the button:

on (press){
gotoAndPlay("layout");
}


Why isn't this working? I have tried adding _root/this before the gotoAndPlay function, and it still doesn't work.

View Replies !    View Related
Having Trouble With Basic Actionscript
I am making a navigation panel for a project. The mouse clicks the symbol, and the symbol changes, slides over, and a panel fades in. When the user clicks again, the symbol changes again. However, the last command will not work. Any suggestions?

View Replies !    View Related
Basic Navigation Actionscript Help Please
Hi. I have a basic question with regards to the Actionscript I should be using for my buttons. I am using Flash MX - not 2004. Please see my attached fla.

My problem is when you click on "Benefits of Product" everything works fine. Then if you click on "How Product Works" for some reason the animation movie clip on the Benefits page jumps back to it's first frame before fading out. I'd like it to fade from where it's played up to while you've been viewing it. This happens with all of the animations in my full fla. Is there any way I can do this?

I think I should be using different actionscript for the buttons than what I have - some code in the first frame telling the buttons which one is clicked, and then code for each button, but I don't know the exact code I have to write. I've spent several hours trying different things, but none seem to work.

Is anyone able to help me, and please can you write it as simply as possible. I'm a designer wanting to learn how to program... I'll get there one day!

View Replies !    View Related
Basic Maths In Actionscript
in all the things ive made in flash i have never needed to use maths.

what i want to do is to add 1 to a var. my var is "total"
ive got it on a button release.

also ive forgoten how to call up a var in a text field.

Can someone please give me those 2 lines of code. thanks a bunch!!!

View Replies !    View Related
Basic Actionscript Query
I am new to using action script and I am already finding it a bit trickt to get me head around. Any basic introductions tuts to action script that I should try first?

View Replies !    View Related
Basic Actionscript Question
Here is the situation.

I have built a movie on the main stage.
I have an "enter" button inside a movieclip, which sits on the stage.
I also have a "footer" movieclip on the stage.

The footer mc contains various tweens of the footer's position. Each tween has a lable. When someone clicks on the enter button, the footer drops down, creating more space to load in an external MC. But I have a problem.

The actions for the enter button are:

on (release) {
_root.gotoAndPlay(131);
footerMC.gotoandplay(client);
}

As you can see, the line "footerMC.gotoandplay(client);" is wrong.

My question is, how can I target this footer MC, and tell it to play a certain lable within the clip....all from the enter button?

Thanks in advance. =)

View Replies !    View Related
Basic Actionscript Failure.
This doesn't work because of an error. I load an image on the stage and type this in the actionscript.
q)why does it fail given that i am a newbie at it?

mx.transitions.TransitionManager.start(img1_mc,{type:mx.transitions.Zoom,direction:0,duration:1,easing:mx.transitions.Bounce.easeOut, param1:empty ,param2:empty});

View Replies !    View Related
Basic Actionscript On(release)
basically i'm retarded, and this is probably really simple.

i'm making a photo gallery.. and each picture slides on and off the screen. so i have movies with each photo that slide on (stop) slide off (stop).

so in scene 1, frame 1, "movie_01" starts, then i need it so when you click the next button it slides off.. then goes to frame 2 of scene 1.

the two on(release)'s work fine on their own.. but i don't know how to say after going to *this* do *that*


Code:
on (release) {
movie_01.gotoAndPlay(13);
}
on (release) {
gotoAndPlay(2);
}
all help is appreciated!

View Replies !    View Related
Basic Actionscript Buttons
Hi,

I am trying to get the difficulty settings sorted for my game. I am starting with a two buttons either side of a dynamic text box (these buttons will be difficultyDown_btn and difficultyUp_btn). To start, the text will be 'medium' and clicking the down button will change it to easy, clicking the up button will change it to hard.

I will then do if functions to change the difficulty of the game. I cant get my head round this basic stuff!

Please help

This is the code i have tried

_root.difficultyDown_btn.onRelease = function() {
if (difficulty_txt==medium){difficulty_txt==easy}
}

can anyone help?

Thankyou

Dan

View Replies !    View Related
Learning Basic Actionscript
I'm trying to learn actionscript and am having difficulty finding a starting point that is basic enough and explains things in a step by step fashion. All of the books and tutorials seem to be at an intermediate level. They direct you to cut and paste code that's already written without explaining where the code comes from, how it's connected to the assets, or why the syntax is written the way it is. Can anyone recommend how a person can start learning actionscript? I got no concrete assistance from customer service other than try looking at the message boards and the books out there. I feel like I'm groping around in the dark and that it shouldn't be so hard considering that so many people have learned actionscript somehow. Any suggestions? Thanks!

View Replies !    View Related
Basic Actionscript Problems
I'm having some weird problems with some basic actionscripts. I have a button that jumps to a new scene and it works perfect remotely on my computer but when i upload it I get different results when i click the button. Everytime I click the button it goes to a different page all together. Anybody experience this before??

Below is what I am using. Syllabus is one of the scenes that i have within the file.

Thank you in advance for any info.

on (release) {
gotoAndStop("Syllabus", 1);
}

View Replies !    View Related
Basic Actionscript Trouble In CS3
In MX, and in Flash 8 I had no problems with making buttons and putting some basic actionscipt on it. In CS3 for some reason when I make a button, look in the properties window and the button windows there (which tells me I'm on the buttons layer) but when I go to put the actionscipt in, it doesnt allow it. It says "Cannot add actionscript because blah blah". It only allows it with the frame, not the button if that makes any sence. Why is this?

View Replies !    View Related
Problems Using Basic Actionscript On Mx 04
Hi all,
I am having problems understanding how to use the new actions Pallette.
Where is the normal mode located? All I can find is expert mode....
Any help would be appreciated.

View Replies !    View Related
From Visual Basic To Actionscript
a little background:
I've developed a small program that can calculate the molecular weights of amino acid sequences. I used visual basic.net to develop the program. My layout so far consists of two windows (side-by-side): the left window is for copy pasting a sequence (e.g. ARNW) then the left window outputs the molecular weight of the sequence based on the individual weights of the acids (e.g. A = 71, R = 156, N = 114, W = 186: so, the second window outputs 527, corresponding to A+R+N+W). Basically, ARNW goes in the 1st window and 527 is shown on the second window. It's also set to work for any sequence of letters put in (e.g. maybe the student only puts RW in so, 342 would come out) . I also have two buttons: “Clear” (to clear all fields) and “Calculate” (to perform calculations).

the problem:
I'd like to make a readily accessible flash version of the program to be viewed on the web. Any ideas on how i'd go about accomplishing the above using actionscript? Namely, how would i go about coding the the "clear" button to clear the fields and the "calculate" button to perform the desired calculations? Thanks for your time and help.

View Replies !    View Related
Basic Actionscript Issues
hi guys,

just getting lessons actionscript at school. Now i have some issues during the assignments;

where do i need to put the AS? on the first frame of the root timeline, on the MC itself, or in the first frame of the movie?

i made a dragable MC, but i can drag it even when i'm outside of that MC?

these are the things which won't work for m o far. so if anybody can give me some quick help

View Replies !    View Related
Basic Motion With Actionscript
It's been a long time since I've done any work with actionscript, and alas I've forgotten nearly everything. I've tried to look for a tutorial that would explain basic animation with actionscript, but the one that I found on Kirupa was no longer there.

Basically I'd like to do this:

On the stage I have a movieclip and I'd like the movieclip to move along the x-axis to a certain point and then back to the starting point again. The moving speed of the movieclip should also be adjustable.

I know how to do this with motion tween, but I'd really like to know how to do this with actionscript.

Thanks a lot in advance.

View Replies !    View Related
Basic Actionscript Question
Hi, sorry to be a pain, but during a rather steep learning curve with Flash there's still one probably simple thing that I can never seem to grasp. I'm trying to be a good girl and learn all the right ways to do things (which isn't easy when everyone has a different idea of what that is!) but my main problem is keeping code on the main timeline, preferably in one nice neat little frame.

This is because when the code occurs, some of the objects don't exist yet (for example a button on the second frame of a movieclip that is stopped on the first frame). I understand that bit. My problem is how to fix that.

I've been doing the dodgy on some recent projects involving hiding the button in the first frame of the MC with alpha, so it does exist, but that just seems messy to me. I've seen a few bits around about declaring variables at the start (ie var myMC:MovieClip), but that doesn't seem to do anything either. I'm sure that's probably where my answer lies, but I can't seem to get it to work for me. Or is it just hitting the checkbox for "Export at runtime" or something similar?

I'd really appreciate a bit of a leg-up with this. It's driving me nuts!

Thanks heaps.

View Replies !    View Related
Problems Using Basic Actionscript On Mx 04
Hi all,
I am having problems understanding how to use the new actions Pallette.
Where is the normal mode located? All I can find is expert mode....
Any help would be appreciated.

View Replies !    View Related
From Visual Basic To Actionscript
a little background:
I've developed a small program that can calculate the molecular weights of amino acid sequences. I used visual basic.net to develop the program. My layout so far consists of two windows (side-by-side): the left window is for copy pasting a sequence (e.g. ARNW) then the left window outputs the molecular weight of the sequence based on the individual weights of the acids (e.g. A = 71, R = 156, N = 114, W = 186: so, the second window outputs 527, corresponding to A+R+N+W). Basically, ARNW goes in the 1st window and 527 is shown on the second window. It's also set to work for any sequence of letters put in (e.g. maybe the student only puts RW in so, 342 would come out) . I also have two buttons: “Clear” (to clear all fields) and “Calculate” (to perform calculations).

the problem:
I'd like to make a readily accessible flash version of the program to be viewed on the web. Any ideas on how i'd go about accomplishing the above using actionscript? Namely, how would i go about coding the the "clear" button to clear the fields and the "calculate" button to perform the desired calculations? Thanks for your time and help.

View Replies !    View Related
Basic Actionscript Issues
hi guys,

just getting lessons actionscript at school. Now i have some issues during the assignments;

where do i need to put the AS? on the first frame of the root timeline, on the MC itself, or in the first frame of the movie?

i made a dragable MC, but i can drag it even when i'm outside of that MC?

these are the things which won't work for m o far. so if anybody can give me some quick help

View Replies !    View Related
Basic Actionscript Question
I'm trying to make a presentation in Flash MX 2003. What I need to do is every time the down arrow is pressed it goes to a different frame in the animation. Also it needs to play a movie clip too. What is the actionscript for this?

View Replies !    View Related
Basic Actionscript Problem
Real Basic, but a stupid thing I can't get to work properly.

Okay, I have a MovieClip and It has a button within it with rollover and rollout actions. It also has a on(release) action telling the main movie to go to scene 62 and to load a new movie. Everything works great EXCEPT it will not go to frame 62. I have the action:

on(release){
gotoAndStop("main",62);
loadMovie("rules.swf", _root.window);
}

It loads the movie, but won't go to frame 62... could someone please help me with this stupid problem?

Thanks!

View Replies !    View Related
Basic Actionscript Navigation
I need help with some basic actionscript navigation that eases content on and off the stage. I once found a tutorial to help me do this with a sort of if/then process, but am having no luck finding it again.

Can anyone help me figure out how to do this again? Thank you.[/b]

View Replies !    View Related
Basic Time Delay Via Actionscript
I'm hoping someone would not mind writing a little snippet, I'm sure anyone how knows little about actionscripting can do this, but so far I know very-little, soon to change.

Anyway I want one frame to stop, loop a var +1 until it reaches a certain number then play. Simple I suppose.


Basically a way to pause a movie with actionscript.


I wish I could whip this little code out, in fact I'll try and put it here so you can see that so far I just don't get how.

Cheers

Dustin

View Replies !    View Related
Creating Basic Shapes In Actionscript
i just discovered how to make shapes with mc points and the lineTo function.....pretty cool

i was wondering if the mc points were necessary? can u create points in Action Script by just giving the coordinates and naming them, so u could use them when making shapes w/lineTo?

View Replies !    View Related
Adding Actionscript To Basic Text?
Is there any way to add actionscript to basic text that is not in button format. I want to use the text formating convenience but I want to move a current swf movie to a different frame with script. Any way?

View Replies !    View Related
Basic Button Actionscript Question
I am making buttons that link to different chapters of a movie. Below them is a box that will describe the chapter. On the over frame of the button I would like to place a gotoandplay command to bring up the words about the different chapters, but when i try to add an action to any frame in the button it won't let me. Can someone help me.

View Replies !    View Related
Some Basic Actionscript Help Needed With This File
Hi

I'm having problems working out the basic Actionscript needed to make these buttons work.


I need the buttons in the attached fla. file to play the indicated links without opening the Windows Media Player - ie, I need a bit of Actionscript using the FSCommand that will tell each button to play an embedded 'invisible' Media Player (Result: when a user clicks one of the 3 buttons, he/she can hear the streaming radio, but doesn't see Windows Media Player)

I've attached:

- .fla file
- .html file (Windows media player needs to be invisible)

Has anyone done this before? Can anyone help??? (I was told it was really simple)


Rob

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved