The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 4 of 4

Thread: calling functions

  1. #1

    calling functions

    having trouble calling functions from different action scripts
    the function only seems to work if its residing in the same script of which it is being called

    i am uncertain as to how to address this

  2. #2
    use global functions, as they have scope over the entire swf.

    _global.SomeName= function()
    // your code

    when calling: _global.SomeName();

    I need a SPRITER who can do pixel arts for an arcade fighter project. If you can help out, please pm me.
    I also need someone who can write simple xml files.

  3. #3
    ud think so wouldnt u
    actually what i was using was

    function case_function() {

    and insert "case_function()" wherever i want the thing to be. worked fine in my other file
    tried using "_global.case_function" but still nothing

    only seems to work if case is being called in same script
    not sure why it worked there in the other file, and won't work here in this file
    and not sure what difference is between

    _global.SomeName= function()
    // your code


    function case_function() {

  4. #4
    ok, i got it, what i needed to do is call it by the object its in
    so use this:

    cause the function "make_talk();" is inside the movieclip "nxt_msg" which is inside the movieclip "speach_box".

    i needed to specify the location of the function "make_talk();"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012