A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Listener question

Hybrid View

  1. #1
    Matthew Riley qualehead's Avatar
    Join Date
    May 2001
    Location
    UK
    Posts
    379

    Listener question

    Hello all,

    Wonder if anyone can give me a tip...

    I have an mc which is a simple square called 'square_mc'- the square's height and width change. i would really like to create another 'square_mc' which listens for the width and height of the first 'square_mc' and sets its _x and _y accordingly, i.e, so it centers to the first 'square_mc'.

    I really would like to do this as a listener as i've never used this technique before

    thanks
    I love deadlines. I like the whooshing sound they make as they fly by.
    -- Douglas Adams 1952-2001

    http://www.tinderbox.eu

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    Pittsburgh
    Posts
    252
    Hey,

    Depending on the situation, using listeners might not be the best approach but since you really just kinda want to learn about them then why not, it's a good place to start..

    I'm not sure if this is what your after or not but i think you'll get the idea, i tried to comment some. It takes a little getting used to working with listeners but once it clicks, you'll see there's not a whole lot to them and they can be very useful..

    file is mx2004..

    let me know if you have any q's...

    hope this helps some,
    Dunc
    Attached Files Attached Files

  3. #3
    Matthew Riley qualehead's Avatar
    Join Date
    May 2001
    Location
    UK
    Posts
    379

    Tnx

    That's really useful

    thanks alot!
    I love deadlines. I like the whooshing sound they make as they fly by.
    -- Douglas Adams 1952-2001

    http://www.tinderbox.eu

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