[Rebol/Flash dialect] content related to Rebol/Flash dialect
Version 2.9.0 ... now with Calendar GUI and fixed one nasty bug in 'IF compilation after 'EITHER rule http://box.lebeda.ws/~hmm/rswf/example/swf8-layout-calendar
Wow! That's really great!
the mini dialect is cool Oldes.. but how will it fit in with R3?
I guess we don't really care for now as R3 is not yet out, in the meantime Oldes probably needs this flash UI now - btw, I'm glad he is not waiting for R3, looks like too many people are waiting this event and don't start any project.. but that's another discussion! not here!
it's my life
There is virtually no new scripts posted on rebol.org, it is a sign that everyone expects R3
Rebolers are sick of waiting. .... good Rebolers don't wait. At least I have so many R2 scripts which I would like to improve... I really don't have to wait for R3.. with R3 I will be able to do other optimizations but these are not necessary for the functionality.
good Rebolers don't wait ... well said. There's a lot of juice left in R2. I'll personally be using it at least for 12-18 months more for commercial projects. Full time.
Version 2.10.0 - Now with new command ImageStream which creates Sprite with sequence of images on each frame Usage example is here: http://box.lebeda.ws/~hmm/rswf/example/mx-imagestream (more will be soon)
Oldes.. i think your work is great, but where's the advantage over using a Flash IDE?
I would like to see you how you create the swf from above in Flash IDE... I don't say that IDE is bad... I just need something else sometimes... and it's fun for me:) And I'm sure I don't want to write apps in MXML.. It's not funny at all. Anyway... making MXML output would be much more easier than producing SWF files directly. Anyway... I have Flex as well.. it has 196MB. My dialect has 95kB
it would be less, but the comments are not compressed:)
And I have Import-swf command in the dialect (not documented yet as I still change it a little bit). I'm using it to include large animations made in IDE. As I have a caching mechanism already, I can include it in my dialect and control it in miliseconds, don't have to wait many seconds to compile all the animation in the IDE every time when I change a bit of a code.
And I'm not limited with restrictions which you have when you use includes from external files - I have one file at the end.
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