A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Pointing to parent function or variable from child swf

  1. #1
    Junior Member
    Join Date
    Mar 2017
    Posts
    5

    Pointing to parent function or variable from child swf

    In AS2, if child swf is loaded through loadMovie function, is it possible to simple indicate to some function or variable located in parent swf, from child swf? I mean e.g. _root.SomeClass.someFunction() or trace(_parent.SomeClass.myVar). This function or variable is located in some class and it is not _root property.

  2. #2
    Member
    Join Date
    Oct 2016
    Posts
    54
    good day. i think Alloy Bacon is best to help you heres.
    i thinking he still use AS2 mainly . i not think he know how use class too good but he mightr be helper

  3. #3
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    you could get your answer faster by simply trying it.
    who is this? a word of friendly advice: FFS stop using AS2

  4. #4
    Junior Member
    Join Date
    Mar 2017
    Posts
    5
    I tried many variants but I think it can be even impossible. I hope I'm wrong.

  5. #5
    Junior Member
    Join Date
    Mar 2017
    Posts
    5
    @Dezoid You know where can I find him?

  6. #6
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    from your post it seems you want _root.someClassInstance.myVar, not _parent.SomeClass.myVar
    who is this? a word of friendly advice: FFS stop using AS2

  7. #7
    Junior Member
    Join Date
    Mar 2017
    Posts
    5
    Quote Originally Posted by realMakc View Post
    from your post it seems you want _root.someClassInstance.myVar, not _parent.SomeClass.myVar
    How can I create in child swf class instance which is located in parent swf?

Tags for this Thread

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