LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-22-2007, 05:30 PM
chosen chosen is offline
Registered User
 
Join Date: Jul 2006
Posts: 23
Rep Power: 0
chosen is on a distinguished road
Source access variables in functions

Hi I'm have some issues trying to access one of my global variables within another function as a part of a class. Here is what I mean. I have viewed several tutorials but still not toos sure??

Actionscript:
class ABC {
    
    var Z:Number;
    var num1:Number;
    var num2:Number;
    var SomeNumber:Number;
    
    function ABC(Z:Number) {
        getNum(Z);
}
    
    public function getNum (z:Number) :Void{
    Z= num1+num2;
        
}
  public function Equalto(){
     Z==SomeNumber;
       trace("The two numbers are Equivalent");
  }
  
}
I just want to be able to use Z within other functions I may create.

Last edited by Scottae : 03-22-2007 at 06:47 PM Reason: Format with AS tags
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Access Textfield in Cross Domain SWF scantron13 Flash 8 2 12-21-2009 10:04 AM
Using Math functions for variables Smirgu Flash 8 7 05-24-2009 05:50 AM
LoadVars giving problems. can't access the variables dany Flash MX ActionScript 2 06-20-2005 10:20 AM
How to access variables in child MC ? Amn Newbies 3 06-27-2003 02:24 PM
access variables across movies schlumpf Flash MX ActionScript 1 09-05-2002 08:27 AM




All times are GMT. The time now is 11:39 AM.