A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Calling a function in a swf1

  1. #1
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110

    Calling a function in a swf1

    I have added a swf1 to a new movie. When I try calling a function in the swf1 nothing seems to happen. I can place a text box on the swf1 and load text into it from the movie. How do I reference the function in the action script of the swf1, if this can be done.

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110
    Creating a mc out of the swf1 on the same movie the call to the function
    mc1.FillV() works correctly. The same reference to the swf1.FillV() does not work. Any suggestions.

  3. #3
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110
    Not sure what the problem was, but it seems to be working correctly now.

    Addition: If you are tring to set a variable to reference an object in a movie clip that you added to another movie. The reference is the _root.swf1[object]. If the object is on the same movie clip then the reference is this[object].

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