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




Just A Quick Easy Question, Mindblock



ok i want to add a value of an input (as in addition/add to) to another input value multiplied by 14, like this:

Quote:




(value1 and value2 are input boxes, value3 is a dynamic textbox)

on(press, keypress "<Enter>") {
value3 = (value1*14)+ value2
}




this is in MX and it just keeps putting value2 onto the end of value1 instead of adding it to it

can someone help please? appreciated in advance

attacthment, it's the second set of input, the sT and Lbs part :P



FlashKit > Flash Help > Flash ActionScript
Posted on: 12-21-2002, 08:09 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Quick And Easy Help?
how do i call javascript from flash? where do i put the javascript itself? i need to add this javascript to my movie...

document.vsLHP.loadingData.value = 1;

any help?

Quick And Easy
What is the action script to open a .gif in a popup window? The popup should be the same size as the .gif. I've done this with html pages but can't remember the script to call a .gif or .jpeg. I know I don't have to set up a html I can call the image by name. Thanks all...

Quick And Easy Help.
I've stumbled upon a problem for my Flash project for school. It is probably a no brainer for most of you, so any help would be greatly appreciated. Here it goes. I have a button when released must play a movie (called Section1) that starts on the second frame (because the first frame has a stop action). The code I've tried is as follows:

on release(){
_root.Section1.gotoAndPlay(2);
}

Is this right? Doesn't work so something must be wrong.

Thank you

Need Quick Help. Easy One.
Why doesnt this button code work?

on (rollOver) {
arrow.play();
}
on (rollOut) {
curFrame = arrow.curFrame;
arrow.gotoandandstop(curFrame - 10);
}

On rollover, arrow plays.
But rollout doesnt do anything.

Quick N Easy?
Hey all....I am sure this is very easy to do but have never known this. How do you control the main movie from a button inside a symbol - such as a graphic or a MC?
thanks...
a.

Quick And Easy One
Code:
on (release){
getURL(www.google.com, "_blank");
}
(Flash MX 2004)

Why doesn't this go to that site when clicked?

Need Quick Easy Help
hi lets say var=5.75

how do i round var to 5

thx

Quick And Easy (hopefully)
Is there an easy way to convert wmv files to mpgs?

To make things harder... I'm on a Mac!

Any help?

Cheers

Quick, And Probably Easy Help.
So I am trying to import in XML and this is working fine, But once in flash I need to reference this variable in a later script. Here is what I got.


function loadXML(loaded) {
if (loaded) {

/////this is the variable, which is working, it pulls the info from the xml document properly.
var node1 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;

////another variable, etc...
var node2 = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;


/////when traced it outputs the proper value.
trace(node1);

}}


////////does not work here though.

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("co.xml");


var latmin = 37;
var latmax = 41;
var lonmin = -109;
var lonmax = -102;
this.geoPlotter_gp.setRange(latmin, latmax, lonmin, lonmax);
this.geoPlotter_gp.setNodeSymbol("geoPloterNodeSym bol");
this.geoPlotter_gp.addNode(40.48, -107);


////////////////This is where I need to now use the variables defined above//////////////



this.geoPlotter_gp.addNode(node1);// Boulder
this.geoPlotter_gp.addNode(node2);// Denver



/////any ideas all? I am sure this is something simple...I am just overlooking something.

The Quick And Easy
what is the easiest way to make a button go to the next frame?

"nextFrame" sentax errors?

thankyou.

Quick And Easy One
Hello!
Just a quick question:
I have three dynamic text boxes with numbers in them and I want to get the total of these numbers. This is the code I've got:

var final_total = 0;
final_total = total1_complete+total2+total3;

total1_complete being the first box and so on . . .

But this doesn't give me the total is just adds the three numbers after each other! Where have I gone wrong ? ? ?
Many thanks

Quick N' Easy?
Ok, this should be quick and easy for someone!

How do I make a scene recognise a variable that is in a movie clip?

So, basically I have a movie clip looping that acts as a continuous counter. That movie clip (counter_mc) sits on my main scene. I want some action script on the scene to read and react to the variable within counter_mc.

Does that make sense?!
I look forward to the solution,

Mutley

Quick And Easy ?
I have seen alot online about people passing variables to flash using the <params> tag but once you do something like

Code:


<PARAM name=studentnumber value=143224264 >



how do you access that variable in FLASH? I have tried just using studentnumber as a variable but that seems not to pan out. I am sure i am missing something here any help would be great

Quick Easy Question Please Help
I can't seem to find div and mod in Flash 5... what I need is:

ie. 21 div 15 ---> returns 1
and 21 mod 15 ---> returns 6 (the modulus)

what are the flash 5 commands to return those values?

tia

-Ryan

Quick Easy Question Please Help
I will be using javascript to load a swf full screen. I am aware that it will stretch to the full screen by itself... but I want the text and everything to look sharp and crisp.

In your opinion... what is the best width and height to set your movie to (to maximize the image quality of the website)?

Quick And Easy Question-Please Look
Ok, I have three song loops in my movie that are in wav format. They are too large. It's making my movie download slow. Can I change the wav files to mp3 format within Flash?Thanks in advance.

Quick And Probably Easy Answer
What is the equivalent of GoTo and Play; for objects. I want to click button1 and have movie1 goto frame 10 and play. The standard goto seems to only allow manipulation of the movie the button is in. Thanks!

Really Easy Quick Question.
Okay.. I'm a n00b to start off with. Been playing with flash for only a couple of weeks now.

Anyways. I have a dynamic text box in a frame later in the movie. in the "Var:" Box I have "left_box_text"

In the first frame I have
"var left_text_box = "Some meaningless text here...";"


From the flash help files: "If you assign a variable to a text field, the text field displays the variable's value."

Now, why in bloody hell isn't it displaying any text? Have I got something wrong?

Quick And Easy Question
Hi:

I have an easy question.

I have a movie with a preloader scene and 2 additional scenes. I'm trying to display the current frame and the total frames in a particuar scene and am using this code.

onClipEvent (enterFrame) {
currentframe = _parent._currentframe-22;
totalframes = _parent._totalframes-22;
currentPage = " Page "+currentframe+" of "+totalframes;
}

It works fine when i have just that scene. However now that I have added the preloader the displayed total and current frames get all messed up.

Thanks for your help.

Uday

Quick But Not Easy Problem.
I've got one array, and each value in the array is an object.

Each object, however, starts out as a string with "^" seperating each value. the first value is a Name of a business.

I create the first array based on an ID number or iterating value, I create the second one based on the alphabetical listing of the Name

my array is called _root.businessInfo

I am using _root.businessInfo.sort(); to try and sort the values but it's not working and I can't figure out why.

Any ideas would be appreciated.

- jeremy

Help Quick With An Easy Problem
i'm not that good at actionscript.
i have a progress bar movie clip called 'progressbar', and i want to use _framesloaded and _totalframes to make it graudally increase as the movie loads. i've got many scenes in the movie. not sure what to do. what would the script be?

Quick Easy Question
I'm stumped and can't remember how to target a level's properties. I have

Code:
loadMovieNum("movie1.swf", "_level1");
loadMovieNum("movie2.swf", "_level2");
etc.
Say I want to place movie1.swf at 15,30. is it

Code:
_level1.movie1._x=15;
_level1.movie1._y=30;

or

_level1._x=15;
_level1._y=30;
Basically where i am stumped is that i can't remember what happens to the path when you loadMovieNum - does movie1.swf turn into _level1.movie1.properties or does it take the name of the highest level movie clips inside:


movie1.swf has 2 instances of a movie on its timeline - clip1 and clip2


Code:
_level1.movie1.clip1.properties;

or

_level1.clip1.properties;

hope this isnt too confusing.

Thanks in advance.

Quick And Easy Question...
in flash mx how do i get one pic to fade and turn into another pic? then i could get the pic to fade back to the original and have it loop. yeah im a n00b to flash, that's what im doing in this forum thanks guys.

Quick Easy Question...
I have a group of separate movie clips that I want a single button to start all of them and another button to stop all of them...how would I accomplish this? Sorry I know there's probably an easy answer to this, but I'm running out of time on a project...

Quick And Hopefully Easy Question
Is there a fast way to tell the x,y coordinates of an objects registration point? If I look in the properties of the object it tells me the top and side coordinate.

Quick Easy Question
My question is:

I have forgotten the dimensions for a movie that produces the best results when viewed in 800 x 600. Could someone please tell me that?

Thank you.

A Quick Easy Question
Whats the action script for an email link?

Quick Question, Should Be Easy
im trying to make a new window popup from flash using javascript and it only works when i open the page from my computer, it doesnt work when i try to do it on the internet site for some reason... heres's the code i am using..

on (release) {
getURL("javascript:launchwin('http://free.deluxnetwork.com/~oxotek/ieflash.html' , 'newwindow' , 'toolbar=no,location=no,status=no,menubar=no,scrol lbars=auto,resizable=no,width=776,height=830')");
play();
}


heres whats in the page..

<SCRIPT LANGUAGE="JavaScript">
<!--
var newwin;

function launchwin(winurl,winname,winfeatures)
{

newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
setTimeout('newwin.focus();',250);
}
}

//-->
</SCRIPT>

and heres my site http://oxotek.vze.com

thanks for the help in advance

Quick And Easy Question
How do you make this work? It's a movie that sends email to you and a courtesy email to them from php. I have downloaded the file package and it comes twith the FLA, SWF, and a PHP file.

I just need to know how to make it go to my email address and how to customize the "courtesy email" as well as where to upload the php file to.

http://www.flashkit.com/movies/Utili...4983/index.php


thanks... somebody probably can answer this in like 10 seconds, you guys are good

Quick, My Be Easy, Question
on here on this page, http://www.smooth-criminal.com how do they make that navigational bar? like how does the stuff pop up, and the words blink? And stuff? If possible can someone make me a demo?? Thanx. Tyrone.

Quick And Easy Question
Hey guys, been a while for me but here goes

A friend of mine is wondering how to create roll-off action for a button... ie, when the mouse rolls over a button a certain transition runs... how to do you program a transistion to the original point.

Like i said i'm sure this is easy it's just been a while for me... a bit rusty

A Quick & Easy Question ;)
Right umm , got round to finally editing all the component skins in MX 2004 as much hassle as it was , still decided to keep that over MX.

Anyhow onto the problem. This was mainly for scrollpane by the way - Bars edited , tracks edited all fine. However i cant find any symbol in the "Theme" library which relates to the White line & Glow effect surrounding the component.

Anyone know how to remove these ?

Quick And Easy Question
I have this right now...

if (rn != 1) { .....


But, I would like to specify two amounts for the condition. How would do this? Maybe something like this?...

if (rn != 1,3) { ......

That's just a shot in the dark. Any help is much appreciated. Thanks in advance.

b4s

Quick And Easy Question...
first, i apologize...i know I've seen a similar thread here, with a functional answer provided, but i've been searching the forum for a 1/2 hour with no luck finding it. (and i can't spare any more time right now...)

I simply need to know how i would execute a function x times and then stop. let's say x = 3 for the purposes of writing the script.

if you need a little more info.... i have a window that when loaded initially will randomly resize itself 3 times before arriving at it's final size and coordinates. The re-size would normally be executed by pressing a button, but i need it to happen on load.

any help, please? and again i apologize (but searching for "play something 3 times...etc didn't get me anywhere)

thanks in advance.

Quick And Easy? Remove Mc
hey guys...placed an mc on the stage. I would like to remove it. Tried mcName.removeMovieClip();- but it did not do the trick. Is this because i had to use attachMovie first? if so, is there a work around?

[F8] A Quick And Easy Question.
How do I get a movie clip to move from point a to point b (ie: a car hits a wall and gets sent back to the starting spot). So could you help me?

Quick Easy Advice
I am creating a quiz ap. I want to have about thirty questions. I want the comp to randomly pick 10 of the thirty. Then give them to the user one at a time. I want them to answer via an imput text field. If they hit the submit btn and the contents of the text field match a couple possible answers they get a correct and move to the next question. If the answer is wrong they get an incorrect and move to the next section. Could anyone point me in the right direction?

Quick Easy Question.....
Its getting late and my brain has completely given up on me can someone jus tell how to put target _blank into my actionscript so when user clicks on button it opens in new window.
here's an example of what i've got,

ActionScript Code:
on (release) {
    getURL("forum.htm");
   
}


what would be the correct way to write for it to open in new window?

Thank you

Quick And Easy Question.
I read your great tutorial on how to load external .swf files. In your tutorial file you have three .swfs: Photos.swf, gallery.swf, and profile.swf. These are the .swfs that are loaded into the main one. I am ready to creat my own customizable flash interface that loads external swfs. Basically, I would like to know if I can use the basics of your tutorial to create my own menu. Per se, if I have a button called VIDEOS, then I basically have to change the actionscript to make it load that .swf. How would I go about doing this? Creating an instance for each button? Then modifying the action script to make sure it loads the correct movie.

Thanks in advance,
All the best.
Chester

Quick And Easy Randomization Help
how do i script: on an event (a on (release) or even just on a keyframe in a movie) one of a list of 10 keyframes is chosen at random, gone to and played.

thanks.

Quick Easy Question
I am trying to load an external movie clip using "onEnterFrame"
I know the command to load it is "location.loadClip("gallery.swf")"
How do I put these two commands together so that when you enter the frame the external .swf is automatically loaded?
Thanks alot!

Michael

Quick, Hopefully Easy Question
preface: flash neophyte. bear with me.

anyway, im playing around making a small site and i seem to be ok with loading external movie files into the main one on command, but when i do, the features don't seem to work -- i have a quote generator in the external file and though the button to generate a new quote does roll over, it doesn't actually function in retrieving a new quote.

ps, in flash 8 actually.

Thanks
Jake

Quick Easy Question...
I have a flash document (website) i have made it has a circle Quater'd these 4 quaters are now buttons within a movieclip with a _rotation on it, now when someone clicks this button i want the circle to keep spinning until it gets to where the content will be the correct way round but how will i stop the _rotation???

Quick Easy Question
Hello Everyone,

I didn't know what to type to search for this question.

The issue i have is with text placement. I have two buttons almost identical except for text. When editing both buttons in Flash they show perfectly where how they should, however when i publish the flash the two buttons plots the text differently, one where it should be the other a few points higher.

I have made sure they are both on whole numbers.

Any Suggestions?

Thanks,

Martha

Quick And Easy Randomization Help
how do i script: on an event (a on (release) or even just on a keyframe in a movie) one of a list of 10 keyframes is chosen at random, gone to and played.

thanks.

Quick And Easy Question
Hi all,

Got a simple question, but could not find the anwser on previous post or on the web..
I have build a scene with a movieclip.
This movieclip contains some Buttons.
Now I want to duplicate this movieclip, but make some changes in the "Second" (the duplicated) movieclip.
If I make the changes.. the changes will apply on the first movieclip as well...

Is there a way to duplicate it... And not effect the movieclip that you have duplicated it from?

Thanks,

Jef.

Quick And Easy Html Question
ive got the html file that flash published w/my swf embedded in it and i want to swf to be centered on the page. i fooled around with the html publish settings but to no avail. there is a param in the html file named ALIGN="" and i tried just typing in center, CENTER, and even CENTRE, but none of those worked. does anyone know how i can fix this? thanks

Really Quick Simple Easy Question
I am having a major brain fart over how to target the preloading info for an external movieclip. I get it to load fine, but I can't figure out what to target to get my preloader bar and text field to display its progression. im using the simple getBytesLoaded==getBytesTotal method to preload it, i cant think of how to display this. Thanks

Quick Easy Question About Target
I have a menu loading a new swf file into an empty container on the main stage


on (release) {
loadMovie("pm_cnt_publishing.swf", mc_content);
}


Now i need a link inside pm_cnt_publishing.swf to load a different swf file into the "mc_content" movie container located in the main flash file.

Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved