SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast rajeshgs's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Initializing a movieclip

    Hi Everyone,

    I created a movieclip, put some functions within. But I cannot access the functions or properties on the same frame. Why is it so ? How can I get around it ?

    Thanx

    Rajesh

  2. #2
    SitePoint Wizard aaron.martone's Avatar
    Join Date
    Feb 2003
    Location
    Florida, USA
    Posts
    2,322
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    As soon as you define a function in a movie clip, it will initialize it as soon as the MC is called into a timeline.

    What command are you using?

    should be

    _root.movieClipName.functionName()

    Or, you can make the function global and then reference it via a functionName call.

    _global.functionName() = function() {
    // code here
    }

    and in movie, just says

    functionName();


Bookmarks

Posting Permissions

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