A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: problems getting content file into scroll pane

  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    63

    problems getting content file into scroll pane

    I've been racking my brain for hours now trying to do what I'm sure is an easy task, but I just can't seem to be able to get a jpeg into my scroll pane! I'm trying to do what was done in the kcdemo scroll pane. I tried opening the kool moves file for kcdemo and it doesn't have a scroll pane?, just a txt box? I tried putting the jpeg in the same folder as the km file...it's not a progressive jpeg...can't seem to figure out whats wrong.

    Thanks for any preceding help!! Great Program!

    -dan

  2. #2
    Senior Member FLASHPULSE's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    1,356
    Can you post your fun file and image?

  3. #3
    Degenerate and baise art thou. docree's Avatar
    Join Date
    Feb 2001
    Location
    USA
    Posts
    390
    Simple way is to create a scroll pane.
    The button on the toolbar that looks like a scroll pane.
    [Fourth button down on left.]
    Click the option that has a cactus...
    Drag an area on the edit pane.
    Select the box that was just made.
    Click properties. [Hand holding a paper]
    Under Behavior [or at the end of the list] is content file.
    Change this file to the JPG or SWF that you need.

    The other way is to use action script [As in the demo.]
    Wilbert Brants [or whoever created the demo] used
    Pane1.loadContent(listbox1.getValue());
    as the script.
    This could be changed to [at least it looks like it would work]
    panelname.loadContent(mypic.jpg);

    To see the script used in the demo select the actions and sounds dialogue.
    [It uses the equation a over speaker [ a/< ] as the button.]
    Double click the AS under frame events.
    Edit the action to view the scripts.
    __________________________
    DocRee

  4. #4
    Member
    Join Date
    Oct 2004
    Posts
    63
    i tried the drag scroll pane symbol and select jpg for content under behavior and all I get is a grey rectangle when viewed in browser? Not sure how I would post my fun file for you, Flashpulse? I'll attach the jpg.
    Attached Images Attached Images

  5. #5
    Senior Member pherbrick's Avatar
    Join Date
    Jul 2004
    Location
    Los Angeles
    Posts
    291
    Just tried the scroll pane component for the first time. I get a grey rectangle in the pane as well.

    Peter

  6. #6
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    It works fine for me.

    If you try previewing it before saving the fun file, make sure that KM plays it from the right directory.

    Try putting the image file in the same folder as the fun and swf file and see if that makes a difference.

    Wilbert

  7. #7
    Senior Member pherbrick's Avatar
    Join Date
    Jul 2004
    Location
    Los Angeles
    Posts
    291
    My bad . I assumed the jpeg I was using wasn't progressive. Problem solved. File location (and export settings) also make difference (couldn't tell until I used jpegs used by KcDemo, then I realized my jpeg was progressive). Thanks Wilbert!

    Peter

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