A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: onclipevent(data)?

  1. #1
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    onclipevent(data)?

    Is this supported?

    In theory this event is triggered when a clip completes a loadMovie or a LoadVariables. What I was attempting to do was scale the movie which loads dynamic jpg, but I can get size untill it's done loading the jpg.

    I cannot seem to get this event to trigger though.

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Why not use a MovieClipLoader and it's onLoadInit event ?

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Quote Originally Posted by w.brants
    Why not use a MovieClipLoader and it's onLoadInit event ?
    hmm ok didn't know that one

    Now I have to go look up the syntax for that.....

  4. #4
    Junior Member
    Join Date
    Mar 2008
    Posts
    17
    I also cannot get onClipEvent(data) to fire. I use loadVariablesNum() to send the contents of a form to a PHP script for onward emailing and need to know that it has been received. I can return a dynamic text variable from the PHP script that displays correctly but I would like to be able to trigger a function.

    Mark

  5. #5
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Mark you should use LoadVars, as this is a two way event that is much improved over loadVariables Check the forum and the exchange, I have a pretty full example of an email form using loadVars there.... http://koolexchange.com


    Just noticed the date of the original thread, no wonder I didn't remember it... LOL

  6. #6
    Junior Member
    Join Date
    Mar 2008
    Posts
    17
    Hi Bret,

    Thanks for the tip, LoadVars does the trick. Incidentally I used the same LoadVars object for send and load which seems to work fine.

    I'm new to Flash/ActionScript and you might be able to answer a question for me. If I create an object in a movie frame that is later replayed, I assume Flash will create a new object? Does this automatically release (free) the old object, as I don't see anything like a release() or delete() method in any docs.

    Mark

  7. #7
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Not sure if it gets reused or not. I've always tried to avoid it myself.

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