;

PDA

Click to See Complete Forum and Search --> : problems getting content file into scroll pane


dangrace
10-23-2004, 04:09 PM
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

FLASHPULSE
10-23-2004, 06:07 PM
Can you post your fun file and image?

docree
10-23-2004, 06:09 PM
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

dangrace
10-23-2004, 11:15 PM
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.

pherbrick
10-25-2004, 08:24 PM
Just tried the scroll pane component for the first time. I get a grey rectangle in the pane as well.

Peter

w.brants
10-26-2004, 01:20 AM
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

pherbrick
10-27-2004, 04:34 PM
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