hang the scrollpane author

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default hang the scrollpane author

    To make a long story short, I spent a LOT of time debugging a fairly complex
    project of mine where mc's that I used setcrollcontent() on would vanish. It
    turned out to be a grievous error on the part of the person who coded the
    scrollpane. I hope the person who wrote this reads this.

    You need to go back to school and learn to write library level code... your an
    amatuer pal. How dare you delete my movieclip.. don't you have any foresight as
    to how your user might use this?

    For those of you who use the scrollpane and notice that your movies disappear
    on you, you can correct it by commenting out the removeMovieclip lines in the
    following function.


    FScrollPaneClass.prototype.setScrollContent = function(target)
    {

    this.offset.x = 0;
    this.offset.y = 0;

    // remove or hide the old movie clip
    if ( this.content_mc != undefined ) {
    if (target!=this.content_mc) {
    this.content_mc._visible = false;
    // deleting the mc is WRONG!!!
    //this.content_mc.removeMovieClip();
    //this.content_mc.unloadMovie();
    }
    }

    oopiewanCodeknowbie Guest

  2. Similar Questions and Discussions

    1. CS3 author 'preview in browser'
      My company recently upgrade all authors to Contribute CS3, from Contribute 3. In the previous version I, as system admin, gave everyone a new...
    2. Desk Top Author, and ad success?
      I have been looking over some software from http://desktopauthor.com/ , specifically the desk top communicator. The file type allows multimedia to...
    3. Where is custom comment author name stored
      Say I create a comment and then manually change the author name of that comment to jdoe for example. I then right-click the comment and select "Make...
    4. Trying to find the author of a script
      I use a script to force the browser to save instead of displaying a simple text file. I downloaded the script some time ago and I don't remember...
    5. How can I author with Director MX for OS9?
      Hi, I'm having trouble with a Mac-authored projector (using Director MX!). I authored the projector as a OS CLASSIC on a machine which had OSX on...
  3. #2

    Default Re: hang the scrollpane author

    I am not trying to be a killjoy, but just a devil's advocate.
    if you are trying to set the content of the scroll pane to something else,
    why wouldn't you delete the old one first?

    "oopiewanCodeknowbie" <webforumsuser@macromedia.com> wrote in message
    news:c22c4j$o5q$1@forums.macromedia.com...
    > To make a long story short, I spent a LOT of time debugging a fairly
    complex
    > project of mine where mc's that I used setcrollcontent() on would vanish.
    It
    > turned out to be a grievous error on the part of the person who coded the
    > scrollpane. I hope the person who wrote this reads this.
    >
    > You need to go back to school and learn to write library level code...
    your an
    > amatuer pal. How dare you delete my movieclip.. don't you have any
    foresight as
    > to how your user might use this?
    >
    > For those of you who use the scrollpane and notice that your movies
    disappear
    > on you, you can correct it by commenting out the removeMovieclip lines in
    the
    > following function.
    >
    >
    > FScrollPaneClass.prototype.setScrollContent = function(target)
    > {
    >
    > this.offset.x = 0;
    > this.offset.y = 0;
    >
    > // remove or hide the old movie clip
    > if ( this.content_mc != undefined ) {
    > if (target!=this.content_mc) {
    > this.content_mc._visible = false;
    > // deleting the mc is WRONG!!!
    > //this.content_mc.removeMovieClip();
    > //this.content_mc.unloadMovie();
    > }
    > }
    >

    James Fee Guest

  4. #3

    Default Re: hang the scrollpane author

    better question(s).. why would I delete it? I parse an xml document to build
    it, it's content never changes, its much faster to just show it than build it
    again.

    The guy who wrote the scrollpane probably thinks like you do. Assumes he knows
    the users intentions,or, what is best for the user. I have been coding a long
    time, probably longer than the yokel who built the pane and from the nature of
    your questioin, longer than you James.

    Library code... reusable and flexible code... is a special kind of code. The
    fewer assumptions you make, the better. It's an artform/science that
    transcends your everyday run of the mill.. "get the job done" mentality.

    I should mention that I despise most "components" on many levels.. too
    numerous to mention in this post. The only thing I hate worse, is a badly
    written one bu someone who doesn't really know what he is doing.

    oopiewan Guest

  5. #4

    Default Re: hang the scrollpane author


    "oopiewan" <webforumsuser@macromedia.com> wrote in message
    news:c22peu$f0j$1@forums.macromedia.com...
    > better question(s).. why would I delete it?
    maybe it is necessary to be deleted before another can be displayed? If
    (using the example in your first post) the target is not the same as the
    content_mc, wouldn't you want the content_mc to be removed before creating a
    new one? what would happen to those who expect that the movie would be
    removed before a new one put in it's place? I would want my sub movie to
    clean up before starting a new one. (just playing devil's advocate)
    > I parse an xml document to build
    > it, it's content never changes, its much faster to just show it than build
    it
    > again.
    if your content is not changing, why bother to call the set content in the
    first place?
    >
    > The guy who wrote the scrollpane probably thinks like you do. Assumes he
    knows
    > the users intentions,or, what is best for the user. I have been coding a
    long
    > time, probably longer than the yokel who built the pane and from the
    nature of
    > your questioin, longer than you James.
    I have no idea how long you have been coding or in what languages (just like
    you don't know what I have done).
    I tend not to assume too much. But you may be assuming that the component
    could have been written in a manner which is not possible, did you think of
    that? (again, just playing devil's advocate)
    >
    > Library code... reusable and flexible code... is a special kind of code.
    The
    > fewer assumptions you make, the better. It's an artform/science that
    > transcends your everyday run of the mill.. "get the job done" mentality.
    I agree.
    >
    > I should mention that I despise most "components" on many levels.. too
    > numerous to mention in this post. The only thing I hate worse, is a badly
    > written one bu someone who doesn't really know what he is doing.
    >

    James Fee Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139