dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: variable change ... listener or watch

  1. #1
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472

    variable change ... listener or watch

    Hey,

    I have a lot of dynamicly attached mcs.
    They all have a function called init()

    Here's the deal ...
    In the root a variable called 'index' sometimes changes and when it does I want all the attached mcs to call the function init()

    How do I accomplish this
    //pod

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    1,838
    initialize an event dispatcher.
    add your mc's as listeners.
    watch that variable for change.
    if changed, dispatch event.

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