dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Aren't functions globally accessible ?

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    116
    I have a function in the first frame of my main time-line and a button that is within an mc calling the function, but it's not working..err


  2. #2
    Senior Member
    Join Date
    Jan 2001
    Location
    HK | Toronto
    Posts
    989

    you can always call function like this:

    MC to call :
    onClipevent(Event){
    _root.funtionName(parameters);
    }

    Function to call :
    just use the functionName(); to call a f(x) within another f(x)

    or if the funtion returns some value:
    variable = functionName();

    cheers
    MKit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center