[Rebol/Flash dialect] content related to Rebol/Flash dialect
and one more reason - to hack a default Flash gui components is for me much more difficult than make my own from scratch
I can see the potential.. just thinking how difficult it would be to create complex layouts.. as opposed to just drag 'n drop with Flash IDE
It is possible to create drag'n'drop editor in the dialect as well.. but first I have other goals. And maybe one day you will be able to create layout from Rebol VID too.
Just keep up the good work Oldes.
Version 2.11.0 - Improved ImportStream command, new example here: http://box.lebeda.ws/~hmm/rswf/example/swf8-bbpositioner
Very cool Oldes!
Great job Oldes! I'm more then impressed.... :)
Oldes, is there something special about the getURL command. I have a function in "doAction" and it clearly gets to it as the cmsg is displayed, but I can't get it to actually go to another URL. My flash settings are good because your "horse" link works. Any ideas? Thanks,
Actually, it had something to do with the keyword "_self" ...it didn't like it. Now all I have to do is figure out where to attach the code to. Thanks.
this is working here:
rebol [ type: 6 file: %test.swf background: 0.0.0 size: 260x185 ] doAction [getURL("http://box.lebeda.ws/~hmm/rswf/""_self") ] showFrame end
Just had to add folder with made swf file to allowed locations here: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.html
Make sure you are not in folder with Always deny settings
on server it should not be a problem
Oldes, yes, I did figure out that it works perfectly under 6 and kinda under 8. That took a while until I noticed that your slideshow was created under 6. Thanks.
I have a question... I use this code patern quite often now: if something = undefined [something: defaultValue] Don't you know some better way how to write it?
But maybe it's not so useful.
if not value? something [something: default-value]
That would lead into same bytecode. I was thinking about something else... something like: set-if-undefined something defaultValue but cannot find name for it. But because it's usually inside function, maybe I could add default value settings inside fhe func definition block. But I'm not sure now if I need it so much.
anyway... I would rather use: UNLESS instead of IF NOT
any [value? 'something something: defaultValue]
Thanks Henrik, I've often wondered how to approach that.
Oldes, do you have a MXML dialect?
Using rebol to call mxmlc.exe and deliver it some Rebol generated xml gives you a Flash 9 .swf file all set to go.. kinda cool.
Actually . .. that's not cool at all. What's REALLY cool is the new adobe flex plugin for Apache... hand Apache some mxml, and it generates the .swf automatically .. Wow.
To give you an example.. this.. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"> <mx:Panel title="My Application" width="200" height="300" x="0" y="0"> <mx:Label text="Welcome to Flex!" mouseDownEffect="WipeRight" height="45"/> </mx:Panel> <mx:PopUpButton x="483" y="20" label="PopUpButton"/> <mx:Accordion x="441" y="50" width="200" height="200"> <mx:Canvas label="Accordion Pane 1" width="100%" height="100%"> </mx:Canvas> <mx:Canvas label="asdf" width="100%" height="100%"> </mx:Canvas> <mx:Canvas label="asdf" width="100%" height="100%"> </mx:Canvas> <mx:Canvas label="adsf" width="100%" height="100%"> </mx:Canvas> </mx:Accordion> <mx:CheckBox x="441" y="258" label="Checkbox"/> <mx:DateChooser x="238.5" y="31"/> </mx:Application>
.. becomes this.. http://atom.thruhere.net/delme.mxml
I smell a Kommonwealth Flex IDE by the middle of next week ;)
Using Adobe Air, Flex code doubles as a desktop app as well, complete with it's own SQLite DB.
The Flex framework is a free, open source development framework for quickly building RIAs. These RIAs can run on Adobe Flash Player runtime in the browser or Adobe AIR can be used to deliver them to the desktop. The Flex 3 SDK beta includes all of the required tools from the Adobe AIR SDK.
Adobe AIR beta provides additional features to enhance operating system integration: * Background applications * System tray icon (Windows) / Dock bar bounce (Mac OS X) notification * Default windows menus * Z-order control for native windows * Bitmap drag-and-drop support * Customization of program folder entry * New Mac and Windows install location
Ok.. enough spamming here ;)
er.. one more.. At a high level, Adobe AIR accomplishes this by taking the world-class WebKit browser engine (most notably used in Safari), and wrapping it alongside Flash and PDF technologies, as a cohesive desktop runtime.
An embeded webkit browser (aka Safari)... when is Rebol doing that?
moving this to Vent
Terry - REBOL3 does that next to Adobe. In that area, there is no other competition for us. In fact - Adobe copies old ideas of View.
I downloaded Air few months ago. You would not want to see its dialog box - tottally twisted sizes of UI elements. They have to learn not to use native Windows elements, yet do it right. VID3 can outshine it with VID. Or - Oldes will integrate it, that will be even better :-) You code in REBOL, run in Adobe ;-)
I don't have MXML dialect and don't like MXML and don't like Flash default components... sorry, but If I want a chackbox. I really don't need 168kB of compressed SWF code.
and your example: The server at atom.thruhere.net is taking too long to respond.
Never mind.. version 2.12.0 http://box.lebeda.ws/~hmm/rswf/rswf_latest.r new example: http://box.lebeda.ws/~hmm/rswf/example/swf8-iconlist
If I would like to use Flash components, I would do it. It's not difficult at all. You just have to export all the components into SWF file (more than 250kB) which I can import using my import-swf keyword in the dialect and that's it... than I could just place imported classes. But I don't want to do it. I would rather use my own. Yes... it's more difficult in the begining, but the more freedom I have when I want to do it how I like it to be.
example above updated with external iconset loader and with another new style: Menu
Well, creating a swf with a single checkbox is rather impractical... but all the components can be skinned using CSS (also cool).. so you can build things like this... http://scalenine.com/themes/wmp11/wmp11.html or this http://fleksray.org/skins/edding/Edding.html
More flex skins here http://www.scalenine.com/
I hope VID3 is just the same, just faster :-)
Terry, you are completly wrong here. What is so special about it? Simply nothing. Some of that stuff is slow as molasses.