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




How To Define FPS From As



hi, i'm asking about one thing that i need in the past and i need now.

Set for different movieclips, different fps velocity, how i make that?


tks all



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 02-27-2007, 11:28 AM


View Complete Forum Thread with Replies

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

X Y Define
hi!
how to define x or y into actionscript for the movie trajectory like
like...
if(x>200 && y<100) {
random();
}
any suggestion?
thanx in advance!!!

How To Define This...
This code works fine with 3 buttons. But what to do if I have more than 3 buttons, let's say 5 of 'em?

// code begins

_root.picnumber=0;

this.btn1.onRelease = function () {
if (_root.picnumber == 2) {
pic2.gotoAndPlay (12);
} else if (_root.picnumber == 3) {
pic3.gotoAndPlay (12);
}
_root.picnumber = 1;
pic1.gotoAndPlay (2);
}

this.btn2.onRelease = function () {
if (_root.picnumber == 1) {
pic1.gotoAndPlay (12);
} else if (_root.picnumber == 3) {
pic3.gotoAndPlay (12);
}
_root.picnumber = 2;
pic2.gotoAndPlay (2);
}

this.btn3.onRelease = function () {
if (_root.picnumber == 2) {
pic2.gotoAndPlay (12);
} else if (_root.picnumber == 1) {
pic1.gotoAndPlay (12);
}
_root.picnumber = 3;
pic3.gotoAndPlay (2);
}

Define A Var In XML?
I want to be able to get my var from my XML file. But when I add another node in my XML file, let's say its called <picNum>3</picNum> I can't seem to get it into my flash file? Any clues on this? I only want one number under each <subnumber> node if thats possible?

I have this var in my .fla.

Code:
var picNum:Number = 3; // could be any number
and I load my XML like this:

Code:
var pArray = new Array();
var tArray = new Array();

var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function (success:Boolean):Void {
if (success) {
var xmlData = this.firstChild.childNodes[0].childNodes[0];
for (var i = 0; i<xmlData.childNodes.length; i++) {
pArray.push(xmlData.childNodes[i].childNodes[0].firstChild.nodeValue);
tArray.push(xmlData.childNodes[i].childNodes[1].firstChild.nodeValue);
}
containerMC.loadPic(0);
picInfo.alphaTo(100, speed_fadeIn, tweentype_fadeIn, speed_fadeIn);
} else {
picInfo.text = "Unable to load external file.";
}
}
myXML.load("xml/XMLdata.xml")
And my XML file looks like this:

PHP Code:



<?xml version="1.0" encoding="iso-8859-1" ?>

<xmlData>
    <main>
        <subnumber>
            <subinfo>
                <path>main1/images1/01.jpg</path>
                <info><![CDATA[<p>main1, sub1</p>]]></info>
            </subinfo>
            <subinfo>
                <path>main1/images1/02.jpg</path>
                <info></info>
            </subinfo>
            <subinfo>
                <path>main1/images1/03.jpg</path>
                <info></info>
            </subinfo>
        </subnumber>
        <subnumber>
            <subinfo>
                <path>main1/images2/01.jpg</path>
                <info><![CDATA[<p>main1, sub2</p>]]></info>
            </subinfo>
            <subinfo>
                <path>main1/images2/02.jpg</path>
                <info></info>
            </subinfo>
        </subnumber>
    </main>
</xmlData>

Is There Something Like #define ?
Hi guys,

Is there something in AS3 that's like a #define in C(++) ?

Like this:

#define HORIZONTAL 1
#define VERTICAL 2

var direction:int=HORIZONTAL;

I know I can just declare variables and name them accordingly but that seems like a waste of memory.

Thanks.

How To Define This...
This code works fine with 3 buttons. But what to do if I have more than 3 buttons, let's say 5 of 'em?

// code begins

_root.picnumber=0;

this.btn1.onRelease = function () {
if (_root.picnumber == 2) {
pic2.gotoAndPlay (12);
} else if (_root.picnumber == 3) {
pic3.gotoAndPlay (12);
}
_root.picnumber = 1;
pic1.gotoAndPlay (2);
}

this.btn2.onRelease = function () {
if (_root.picnumber == 1) {
pic1.gotoAndPlay (12);
} else if (_root.picnumber == 3) {
pic3.gotoAndPlay (12);
}
_root.picnumber = 2;
pic2.gotoAndPlay (2);
}

this.btn3.onRelease = function () {
if (_root.picnumber == 2) {
pic2.gotoAndPlay (12);
} else if (_root.picnumber == 1) {
pic1.gotoAndPlay (12);
}
_root.picnumber = 3;
pic3.gotoAndPlay (2);
}

Define This Var?
How can I make this work? I'm trying to define a var of my textdoc in order to just have to change it in one place. The textdocs reside in a folder called "_textdocs". Here's what I'm trying to do:

Code:

var myDoc = textdoc.txt;
lv.load ("_textdocs/" -- what to write here? --);

Define Label In AS
Hi,
i try to define a lable in ActionScript. Is this possible? Or can i get a lable with AS like "foo = lable at framenumber"?

thx

necro

How 2 Define A Swf Loaded Into MC?
I am loading external swfs into an invisible MC on root timeline. I want to tell this swf to unload after the movie has completed - and return to 1st frame root in prep for another movie. I have tried several action script strings of unload movie, tell target stop, go to new frame, etc. I think that my problem is defining the swf within the movie clip. . . .
Last attempt was:
on swf - last frame:
stop
tell target _root.InvisMCName
unload movie name.swf
This did not work - help help help help
Go see http://www.blackdiamondproductions.com
screening room page for visual
Much thanx-d

Define Matrix
please help me with a *.fla example, to know how to define, then to compute a inverse of a matrix

Define ContainerMC Plz
hey all!

dumb question: im looking at this script, and this guy keeps referring to the "containerMC". can anyone explain this to me?

thanks in advance!

- nick

How Can I Define Another Popup?
i followed the steps for the new popup window and it worked http://www.flashkit.com/tutorials/Ac...-708/index.php

but how can i do this with 3 different buttons,whose open all a different popup window.

Where To Define Function
I have several scenes that use the same movie, this movie contains a logout button and i want to place all the logout commands in a function somewhere. the logout button exists on several movies as well. I want to place the function in a place where i only have to modify it once so that it is accessible to all scenes at any time. Where should this function be placed that that it is basically global to all scenes and movie

Thanks

Please Someone Help Me Define What An Object Is.
ok I have been writing/scripting actionscript and all the documents books etc dress up what they are, with explanations of chocolate boxes, simple boxes.

But when i scripting for example "taken from a book"

mycolor = newcolor(shirt);
mycolor.setRGB (OxFF3300);

My understanding is that an object contains lots of others scripts that are pre-made that tell actionscript how to change the definitions of the properties of the movieclips/sounds etc all you do is enter the properties into the parentheses to alter these properties...

Am I correct or is there a better way of explaining this, or is my question badly phrased???

Please help as I really want to nail this concept

tanks

stef

Define Object
You were right that the Object was not properly defined. Could you explain what this actually means/does?


this["testData"+c] = {};

POST Or GET: How To Define?
Can I pick and choose which var to send? or Flash just sends them all?

How To Define Two Or Three Variables As A One In The End?
Hello,
I need a help.
I am working on a small form where there are three fiedls with variable names assigned. In the end, I need to send all three variable as one variable to the server. It something like phone numbers fields - 111 222 3333.
Is that possible to create a script which will pass all three variables from those fields to the one hidden field which will actually have all numbers in one. It is like - 1112223333.
Also, I am using radio buttons and wondering how to assign in this situation a variable which be possible to get after clicking a radio button.
Just in case, I am sending a test.fla file which describes everything.
Any advise is highly appreciated.
Many thanks in advance!!!

Define Levels
as being a newbie in flash world i am getting confused in scripting the flash as i wanted to load external swf in flash
a member helped me i do so that i have understood the that how can i load but dont know how should i adjust the dimensions of the swf through my MAIN movie in whih in want to load he gave FLA exactly of what kind i want but i m not able to understand the actionspirit key words i m pasting the code here plzz interpret this piece of code like the key word _level and much more in this code here it is


this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(_root.containerMC.getBytesLoaded()/_root.containerMC.getBytesTotal())*100;

if(!isNan(percent)){
// The following only concern the preloader's displays...
if (percent == 0) {
percent_display = "";
} else {
percent_display = Math.ceil(percent) + "% LOADED.";
}
this.loadbar._visible = true;
this.loadbar._xscale = percent;
if (percent > 1) {
this.reelmc._visible = true;
}
// End of preloader's displays...
_root.containerMC.stop();
}
if(percent == 100){
// this sends this preloader clip back to frame 1
// where it awaits the next call to it...
this.gotoAndStop(1);
// this deletes this onEnterFrame event...
// so that the movie clip stops looping...
delete this.onEnterFrame;
// preloader's displays handling...
this.reelmc._visible = false;
percent_display = "";
this.loadbar._visible = false;
// end of preloader's displays handling...
_root.containerMC.play();
}
}
stop();


as i came to know the above code is of preloader simply
and the mc which is to be laod contains an other code here
i think its better to upload the fla
please explain the function of the coding above also i m loading the FLA and swf if any one examines that fla and tell me the beckend procedure of fla and preloader i ll b very i ll be very obliged
GOD BLESS U ALL

Define A Rule
Hi there
I want to set a rule that makes a particular movie to be invisible when the mouse is within zone x=0-100 and y=0-100 and visible when its not.

(Im using MX)

I know its not good policy to cross postings, but.. as i dont get replys in the newbies forum..

Thanks in advance

Define Hit Area?
hei,

how can i achieve the following:

the grey rectangle should start fading in when i reach the red square (hit area), not already when you cross the edges of the grey square.... this seems to be a easy one - if one knows (sofar about the status of my flash-knowledge!)

the "button" is a movieclip with three layers:
first layer has the button-coding (see below)
second + third layer contain the motion-tweened rectangle/square.

thanks for helping

coding in the first layer:

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

this.onRelease = function(){
_root.gotoAndPlay(34);
}

Define Object
Hi,

i am trying to define a dynamic object name.. here my code, but i guess it is wrong. any ideas?


PHP Code:



i = 0
var knobListen = "knob"+i;
var knobListen:Object = new Object();
};
//add the event listener to the knob
myKnob_mc.addEventListener("onRotate", knobListen)

Can Someone Define These Terms For Me?
I want to know what a string, boolean, array, and class are? I get confused when I am learning tutorials and they are given values but I am not sure what they stand for?

Define Operator
Hi all!
Just a quick question (I hope hehe)... How do I define operators in actionscript? For instance, if I have my own data type and want to use for example + on it?

Define The Name Of The Clip
have some clips on the stage dynamicaly attached like this
_root.attachMovieClip('clip', 'clip'+i, i, {_x:_xmouse, _y:_ymouse}
need to remove any clip by clicking on it, but i don't now how to define the name of the clip eval('clip'+i), how can I get i?

Define Root
What is the syntax for defining, locking or setting a new _root for a movie?
I am calling movies into movies and it would help with the pathing.

Is It Possible To Define A Tween Without Using It?
Hello, I have some problems with stopping my tweens when rolling in/out on objects. When I trace them it says undefined but I found out that it works if i write the tween outside the rollover/out function but I dont want to trigger the tween before they should get triggered.
So im wondering if theres any way I can write the tween without using it and then later use tween.start(); and tween.stop();?

at the moment the tween looks like this:
var tw9:Tween = new Tween(mc,"_alpha",Strong.easeOut,0,50,1,true);

App Define Problem
I apologize, but I'm a Flash Communication Newb. I'm pro with plain actionscript - php - mysql. I'm sure I'm missing something here that's right infront of my face.

I bought a book about flashcom server. my first app worked perfectly. it used the UI components simple connect, peoplelist, connectionLight, userColor, and chat. This program worked perfectly and I was able to communicate over my network at my house. But now when I went on to the next chapter, my second app isnt working so great.. in fact its not working at all

I think that i didn't define it properly, because when i open Communication App Inspector, and try to manually start up mySecondApp/myInstance then it doesn't load in. I have no problems manually loading in myFirstApp/myInstance.

i have the main.asc with this code in it


Code:
load("components.asc");
the second application is located in www/flashcom/applications/mySecondApp

and it contains the main.asc file, the the mySecondApp.swf and the html file to embed it. (that one doesn't need to be there, i can embed the file from anywhere)

here's the actionscript inside mySecondApp.swf


Code:
// Include the Debug Class file
#include "NetDebug.as"

// create a new instance of the NetConnection object
myConnection_nc = new NetConnection();

myConnection_nc.onStatus = function(info){
trace("LEVEL: " add info.level add " CODE: " add info.code);
}

myConnection_nc.connect("rtmp:/mySecondApp/myInstance", "Bryan Colvin");

connectLight_mc.connect(myConnection_nc);
peopleList_mc.connect(myConnection_nc);
when i test this it traces this to me

LEVEL: error CODE: NetConnection.Connect.Rejected
LEVEL: status CODE: NetConnection.Connect.Closed

All i have in the stage is the connectionList and peopleList components.

ive tried changing rtmp:/ to rtmp:// my book says if you're connecting to localhost that you only use one slash (it worked for myFirstApp)

I'm missing something small here i know it

any ideas?

If/else, How To Define The Condition
Hi--

I am wondering how to define the condition of an if statement. I have an animation of two rectangles:


PHP Code:



onEnterFrame = function(){
rectangle01.slideTo(0, 0, 1.8);
rectangle02.slideTo(360, 0, 1.8);







Would I use an if statement to find out if the animation is finished? If so, would the condition be the x,y pos of the mc's?

Any help would be appreciated.

Thanks.

Define Swf - Pixels
If I define a swf through pixels and no scale how do I than get it to stay centered both up and down and full screen in the browser window?

I can not seem to get this pixel thing to work for me - I am trying to have the swf auto resize back to 800x650 no matter what the persons screen resolution may be!

Can anyone maybe write me a full proof code or guide me the right direction - I work best in steps format (1, 2, 3, 4, ect . . .)

Define Keycode
How can I define keyCode (ESC button) in the following example to make the movie play:

inv_btn.addEventListener(KeyboardEvent.KEY_DOWN,buttonESC);
function buttonESC(Event:KeyboardEvent):void {
play();
}

How Do I Define A Character?
Hi, I'm getting a warning because there's no type declaration in the following line
Code:
var startChar = k.substring(0,1);

What should I declare this as?? A String? I couldn't find a character type....
The next line is
Code:
if(startChar == 'o'){
Do SOmething....
}

Any ideas?

Can Anyone Define Targets. And Tell Me What They Do
hi. can anyone define all the targets? like "_blank" --- what does that make it do



_blank
_parent
_self
_top



can you define those for me. thanks

Can Somebody Tell Me If I Can Define My Own Shorcuts For AS?
can somebody tell me if i can define my own shorcuts for AS?

For eg Esc+gp is the shorcut for gotoandplay() and Esc+st for stop() .....
but macromedia has not defined any shorcuts for some really long names like createEmptyMovieclip(), updateAfterEvent()...etc...(this is a real pain someone like me bad with spellings!!! )

I am just wondering if i can define my own shorcuts. If so HOW??????..

(Just trying to make life easier )

Thanks in advance

Define This Script....
i want to confirm my understanding of this script:

function myClip (){
do this....
}

The script above is how we normally create our function right? And you can invoke it by myClip it right? example:

on(press)
myClip()
---------------------------------------------
So,
btnNext.onRelease = function(){
if (1>10)
{
do this.....
}
}

Am i right to say that the script can be also written as:

function btnNext.onRelease() {
do this....
}

invoke:

btnNext.onRelease() //which is actually the mouse event on the button.

Define Hitarea
i use a movieclip. see swf-file (fla-size too large)

the grey rectangle should start fading in when you reach the red square (hit area), not already when you cross the edges of the grey square....

hi,

on the attached file i tried to do the following: when you roll over the button (square) the blur background should fade in sharp. sofar flash just recognizes the whole sharp background image as hit area. i tried to mask the layer with the sharp background image.... then it would recognize the button as hit area - but would not show the image either

(if you roll out the bakground image at the edge you see what i try to achieve...)

anybody can help me?

Define Hit Area?
hei,

how can i achieve the following: see swf-file

the grey rectangle should start fading in when i reach the red square (hit area), not already when you cross the edges of the grey square....

the "button" is a movieclip.

see also pdf:
first layer (layer 3) has the button-coding
second + third layer contain the motion-tweened rectangle/square.

thanks for helping

Define Hit Area
hei,

how can i achieve the following: see swf-file

the grey rectangle should start fading in when i reach the red square (hit area), not already when you cross the edges of the grey square.... this seems to be a easy one - if one knows (sofar about the status of my flash-knowledge!)

the "button" is a movieclip.

see also pdf:
first layer has the button-coding (see below)
second + third layer contain the motion-tweened rectangle/square.

thanks for helping

coding in the first layer:

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

this.onRelease = function(){
_root.gotoAndPlay(34);
}

Define Functions
Hi,

i noticed that there are two ways to define functions:


PHP Code:



function hello () {// do something} 





PHP Code:



hello = function () {// do something} 




which one should i use? or does it not really matter.

How To Define A Classpath
I am just trying to organize my classes, but I’m a little confused.
What would be the right structure for a classpath in actionscript 3.0?
Can my classes be in the same folder as my .fla files?

Thanks,
fs_tigre

Can Anyone Define Targets. And Tell Me What They Do
hi. can anyone define all the targets? like "_blank" --- what does that make it do



_blank
_parent
_self
_top



can you define those for me. thanks

Can Somebody Tell Me If I Can Define My Own Shorcuts For AS?
can somebody tell me if i can define my own shorcuts for AS?

For eg Esc+gp is the shorcut for gotoandplay() and Esc+st for stop() .....
but macromedia has not defined any shorcuts for some really long names like createEmptyMovieclip(), updateAfterEvent()...etc...(this is a real pain someone like me bad with spellings!!! )

I am just wondering if i can define my own shorcuts. If so HOW??????..

(Just trying to make life easier )

Thanks in advance

Define This Script....
i want to confirm my understanding of this script:

function myClip (){
do this....
}

The script above is how we normally create our function right? And you can invoke it by myClip it right? example:

on(press)
myClip()
---------------------------------------------
So,
btnNext.onRelease = function(){
if (1>10)
{
do this.....
}
}

Am i right to say that the script can be also written as:

function btnNext.onRelease() {
do this....
}

invoke:

btnNext.onRelease() //which is actually the mouse event on the button.

Define Hit Area
hei,

how can i achieve the following: see swf-file

the grey rectangle should start fading in when i reach the red square (hit area), not already when you cross the edges of the grey square.... this seems to be a easy one - if one knows (sofar about the status of my flash-knowledge!)

the "button" is a movieclip.

see also pdf:
first layer has the button-coding (see below)
second + third layer contain the motion-tweened rectangle/square.

thanks for helping

coding in the first layer:

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

this.onRelease = function(){
_root.gotoAndPlay(34);
}

Define A Map Image
I want to define a map image like in general is made with javascript.
I have a image.When I click with the mouse on a define section(part) of that image , the flash script to execute an action , like going to a internet adress or internal frame.

Example jericho codemaster game:

http://it.codemasters.com/jericho/Italian/indexmain.php

It is the italian link(I am redirected to the country site - I don't know the english language link).You need to click on some image elements , to enter in different section of the site.

I try also with a movie clip but I don't know why the getURL function is not working (Flash CS3).


Code:
door._alpha = 0;
door.onRelease = function() {
getURL("http://google.com/", _blank);
}
Output

1120: Access of undefined property _blank.
1180: Call to a possibly undefined method getURL.

Define 'undefined'
Here's the beef... Scrolling text field. All in one frame. Text loads dynamically into content_mc. Why is first trace returning correct value of txtHeight but second returning 'undefined' ? I need txtHeight from within the scroller_mc to make this work with any amount of text...

Script to load text

ActionScript Code:
// Load text as variable and asign it to dynamic text field
external_lv = new LoadVars();
external_lv.onLoad = onText;
external_lv.load("external.txt");
 
function onText() {
    profile_txt.autoSize = true;
    profile_txt.multiline = true;
    profile_txt.wordWrap = true;
    profile_txt.htmlText = external_lv.Profile;
    _root.txtHeight = profile_txt._height
    trace(_root.txtHeight); // I get the expected value here
 
}


Script inside scrollbar mc

ActionScript Code:
// set up content_mc info
contentBottom = _root.content_mc._y-_root.txtHeight;
contentTop = _root.content_mc._y;
trace(_root.txtHeight); // returns 'undefined' Why?
etc.


Thanks

When Do You Know You Will Have To Define A New Property?
Hey, I'm just starting to learn ActionScript 3 and am currently going through all of the Lynda.com ActionScript3.0 Essential Training video tutorials. This is a newbie question, but i think it will be easy to answer.

I know that you define a property for non-built-in classes and that essentially it is a variable. I am still having a hard time grasping what exactly a "property" is and when to define one. In which cases do you define the variable with the underscore preceding it? Is there any kind of general rule? What is the difference between a property and a variable? If there is no difference, why not just use a variable? It all makes sense when i see the finished code, but i can never seem to predict when the instructor is going to define a new property.

Here's an example, hopefully someone can explain what the properties are doing (taken from Lynda.com - Working with bitmaps chapter):

Code:

public class DisplayList extends MovieClip {

     private var _bitmapData:BitmapData;
     pritate var _loader:Loader;

     public function DisplayList() {
          var bitmapData:BitmapData = new BitmapData(250, 200, true, 0xFFFFFF);
          var bitmap:Bitmap = new Bitmap(bitmapData);
          addChild(bitmap);
          _bitmapData = bitmapData;
          _loader = new Loader();
          _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoad);
          var request:URLRequest = new URLRequest("http://www.rightactionscript.com/samplefiles/image2.jpg")
          _loader.load(request);
     }

     private function onLoad(event:Event):void {
          _bitmapData.draw(_loader, new Matrix(.5, 0, 0, .5);
     }
}

LoadClip -> Define Url?
I tried to post this question in a earlier post, but I made my point unclear. I can explain better now. I know it's considered not to elegant to make a new thread, but is seemed best to me right now....

Anyway. I have a construction that uses loadClip.
If I type the url as a string like:

Code:


loadClip("photos/image.jpg", certainmc)

the construction works.
if I derive the url from a variable like in the code underneath it does not work...
which is weird because
Code:

this["photo_location"+i]

contains photos/image.jpg !

this is my construction:


Code:


function showContent() {
for (i=0; i<this.m; i++) {
newMC = basicmc.duplicateMovieClip("mcname" + i, i);
newMC._x = newMC._x;
newMC._y = newMC._y + 50*i;
var mcname = eval("mcname"+i);
}
var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
mcname.theButton.onPress = function() {
mcl.loadClip(this["photo_location"+i], holder_mc);
}
}
mcl.addListener(listener);
}
var c = new LoadVars();
c.onLoad = showContent;
c.sendAndLoad("getphotos.php", c, "POST");
stop();



Can anyone say something about this? I am completally lost!.... Many thanks! kind regards sam

How Can Define Horizontaly (_x) Distance?
Hi,
I made cursor movie clip follow mouse pointer in horizontaly position (_x). I used this actionscript:

mouse_x = _xmouse;
setProperty (follow, _x, mouse_x+((getProperty(follow, _x)-mouse_x)/2));

Cursor following mouse pointer at whole horizontal line, 600 px (the width of movie). How I have to modify actionscript, that cursor movie clip will be follow pointer just in distance 50 to 300 px? When pointer will be out of this range, (size 0-50 or 300-600px), the cursor movie clip will stop follow pointer and it will be stopped.

I know it is maybe simplicity for anybody, but please help me. Thanx.

Any Way To Define Cursor In Actioncript?
I was just curious if there was any way to define in the actionscript of the button what cursor you want it to show on mouse over? I have a button that has a mouseover animation that is purely cosmetic, the button itself has no real functionality, so I was hoping to make it stay the normal arrow when over the button rather then changing into the hand cursor... any ideas?

Define An Integer Through A Cfm File?
I am trying to create a dynamic bar chart with the variable height of a bar defined by data pulled in from a cfm file. It didn't work just being pulled straight so I tried this to convert the data to an integer:

loadVariablesNum ("data.cfm", 0);
barheight1=Math.Number(_root.data1)
_root.bar._height = _root.barheight1;
stop ();

with bar being a movie clip...just a bar to be scaled and data1 with a value of 200 in the cfm file.

Should this not work? It's not! What am I doing wrong? Please help!!

Thank you.

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