A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Scrolling and external movies

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    19
    Hi there.
    Problem is: I have a mainmovie. This mainmovie includes some targets to load external swf's in.
    In some of the external swf's I have a scrolling function realized with setting the _y Property new in a "onClipEvent" handler.
    Playing the external file on its own, it scrolls fine.
    I also included a function that user can't scroll further than the content.

    Loading now this movie in the mainmovie target,
    Scrolling is sometimes disabled or the function scrolling not ffurther than content doens't work. Why ?

    Thanx in advance.

  2. #2
    Member
    Join Date
    Dec 2000
    Posts
    85
    When you load your movie into another level you change the path. You have to write the code for the scroll bar to work in that level not on its own.

  3. #3
    Junior Member
    Join Date
    Feb 2002
    Posts
    19
    But I use in every swf the _root.variable .

  4. #4
    Member
    Join Date
    Dec 2000
    Posts
    85
    I'll try my best to explain:

    When referring to a clip like _root.MC its like:
    current movie(or level0) and then the clip


    When you load it into another movie or clip

    It is now level1.MC or _root.otherclip.MC



    Either way there is another level of object to your clip.

    SO if you loading into another clip you need to put that clip in your path.

  5. #5
    Junior Member
    Join Date
    Feb 2002
    Posts
    19
    So I guess:

    _root.otherclip.mc....

    I have to name it this way, ok ?

    _root.layer1.swf.scrollme

    does the "otherclip" reference means the whole name of the movie clip loaded before ?


  6. #6
    Member
    Join Date
    Dec 2000
    Posts
    85
    In movie one you have a clip called "container". You load movie 2 into this clip(container). In movie 2 you have a scrollbar called "scroll".

    In movie 2 you reference _root.container.scroll._x


    Hope that helps.

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