PDA

View Full Version : Components Skinning


pschrafl
06-19-2005, 12:08 PM
Hello together,

I would like to create a new "skin" for the window and the button component. So I created the slices in Illustrator, exported them as SWF (I didn't manage to get the background transparent, as I exported the .swf files). I then named the slices accordingly (as written in the components manual), but somehow my window looks pretty ugly, and it doesn't work, when I test it in OpenLaszlo. Must the slices be the exact same size? Is there a way, that I can find out, how the dimensions of those .swf files are? I can't open them in Flash nor Illustrator.

Can someone help me, how do I propperly design the slices, so that it looks nice. I attached a .swf version of the window (as it should finally look like), the slices (exported from Illustrator, using Export for Web) and the Illustrator file too. It's only one state (selected). If anyone could help me, how I can slice it up correctly, I would be very glad (as I'm already spending about 5 days, trying to get the design of my window done).
Thanks a lot for the help.

d~l
06-20-2005, 04:22 AM
there a way, that I can find out, how the dimensions of those .swf files are?

If you install Flasm from here

http://www.nowrap.de/flasm.html

and Flare from here

http://www.nowrap.de/flare.html

you can use these tools to disassemble your SWF files and inspect size.

You can setup a batch script for command line usage (bat file) if you have many SWF files to disassemble/inspect.

Open the *.flr and *.fsm files created in a text editor.

...

There are other similar tools .. e.g.

Flash Movie Extractor Scout (http://www.bytescout.com) inspects the SWF files in your browser cache (but there can be many!).


here is the free (Lite) version to try .. (http://www.bytescout.com/moviesextractorscout_lite.html)

____________________________________

p.s. ..

this is an essential read ..

Component_Design-2.0.pdf (http://www.laszlosystems.com/developers/learn/documentation/component_design-2.0.pdf)

available at OpenLaszlo > Documents main page.

junesee
12-03-2005, 04:42 PM
hiya pschrafl,

how are you doing? i downloaded your windows.zip and kind of saw your design, pretty impressive.

however, when i import your slices into Macromedia Flash, the whole window show up, although it does show up as sliced slices in Flash Player. did you have the same problem?

also, in Macromedia Flash you could see SWF component sizes by selecting it, the size will show up at the bottom left corner.

did you manage to do your windows skinning? i am trying to skin my laszlo windows too, do share some tips?

thanks