A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: accesing swf loaded into scrollpane from main movie

  1. #1
    membrillo
    Join Date
    Oct 2002
    Location
    Spain
    Posts
    122

    accesing swf loaded into scrollpane from main movie

    Hi
    I have a scrollpane in my main movie, and when I press a button it loads a SWF (sample.swf)into the scrollpane (or better said, into the MC that is scrolled by the scrollpane). That's OK
    However, what I want to achieve is to play frame 2 of "sample.swf" from a button in my main movie. Is that possible? I'll write some of the non-working code that I've tried in my button:

    _root.mypane.gotoAndStop(2);

    _root.mypane.contentPath.gotoAndStop(2);

    _root.mypaneMC.gotoAndStop(2);

    ...

    Any help would be appreciated, I don't want to use different SWFs to get what I want.
    Regards

    (I'm using mx 2004)

  2. #2
    Senior Member
    Join Date
    Feb 2002
    Location
    Lebanon
    Posts
    573
    actually, you have to use the .content property of the scrollPane.

    code:
    scrollPane.content.gotoAndStop(2);


    contentPath is used to set the path not to get it.

  3. #3
    membrillo
    Join Date
    Oct 2002
    Location
    Spain
    Posts
    122
    It works!
    Thank you very much!!

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