A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] Call MC Function

  1. #1
    Senior Member
    Join Date
    May 2001
    Posts
    100

    [F8] Call MC Function

    How do you call a mc function from the root level? I am currently trying it this way and it's not working.

    mc_instance_name.function_name();

    Thanks
    ~SC
    sgekko

  2. #2
    Junior Member
    Join Date
    Jan 2007
    Posts
    3
    you have to put "_root" or something like that before that line of code. Pretty sure. Here's an example: _root.productWindow_mc.loadMovie("hot/hot_items_shakeshine.swf");

  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    100
    Actually, what i mean is I have written my own function on the first frame of a movieclip and I want to call that function from the first frame of the main movie.
    sgekko

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    It's possible that you're trying to call the function before Flash thinks it exists. Your code looks right, try experimenting with calling it on say, frame 3 of the root instead and see if it works.

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