A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Call a function in a nested movie

  1. #1
    Member
    Join Date
    Mar 2001
    Location
    Versailles, FRANCE
    Posts
    23

    Call a function in a nested movie

    Hi there
    I would like to call a function defined in a swf loaded with loadMovie
    How can I do that ? (I'm using Flash Pro)

    thx for ur help
    dbk

  2. #2
    Left-Handed Flash User mickbrit55's Avatar
    Join Date
    Nov 2003
    Location
    NJ USA
    Posts
    1,375
    Hiya

    Best way I know is to move the function to the main timeline and attach it to the _global object :

    _global.functioname = function() {
    statements
    }

    Mick

  3. #3
    Member
    Join Date
    Mar 2001
    Location
    Versailles, FRANCE
    Posts
    23
    thx a lot
    I'm feeling a bit stupid because I'm using _global every day
    Anyway, I was so tired last night, I couldn't think

    Good Flash
    dbk

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