The easiest way to learn how to use SWX RPC, SWX PHP, and the SWX APIs (Flickr, Twitter, etc.) is by following along with the SWX screencasts.

Get up and running with SWX Beta 1.3!

Last modified on 2007-09-08 09:51:42 GMT. 17 comments. Top.

This video requires Flash.

I released SWX Beta 1.3 today and recorded a new screencast to get you up and running with it.

The screencast covers installing and using the SWX MAMP Bundle but it applies equally if you're using your own development server.

The SWX MAMP Bundle contains everything you need to get up and running with SWX on a Mac (a full development server that contains Apache, PHP, MySQL, and, of course, SWX.)

If you already have a web server with PHP, you can download the much smaller zip file that just contains SWX and unzip it under your web folder and follow along with the screencast from there.

I hope you enjoy the screencast and the latest version of SWX. As always, your feedback is invaluable. Feel free to leave a comment here or join the SWX mailing list.

If you want to download the video, here's a direct link to the FLV.

Download SWX Beta 1.3 from swxformat.org.

Note

I am in the process of recording more screencasts and I'll be including them here (using my new Inline Posts Plugin for Wordpress) when I do.

25 Responses to “Screencasts”


  1. 1 Diding Sep 3rd, 2007 at 12:22 pm

    Hi,to watch it carefully ,then I think

    WHAT DO YOU THINK OF AMFPHP?

  2. 2 aral Sep 3rd, 2007 at 12:54 pm

    Hi Diding,

    I’m not entirely sure what you’re trying to say but to answer your capitalized question, I think Amfphp is great. In fact, SWX uses Amfphp as a library to allow you to consume the same service classes via AMF and JSON in addition to SWX, if you want to. The SWX Service Explorer also builds upon the Service Browser in Amfphp.

    However, I find that working with Flash Remoting is not as straightforward as it could be and that there’s room for simpler ways of working with data in Flash to democratize the creation of data-driven applications, mobile apps, and mashups on the Flash Platform.

    The section titled Why do we need a new data format? in the documentation may help answer your question further.

  3. 3 Eg0 Sep 3rd, 2007 at 11:28 pm

    Hey Aral,

    I’m trying to setup SWX on my site and I get the following error;

    Fail: SwxAssemblerTest.php -> swxassemblertest -> testdatatobytecode -> Equal expectation fails at character 11 with [0068656C6C6F00] and [0068656C6C600] at [/swx/php/tests/SwxAssemblerTest.php line 62]
    Fail: SwxAssemblerTest.php -> swxassemblertest -> teststringtobytecode -> Equal expectation fails at character 11 with [0068656C6C6F00] and [0068656C6C600] at [/swx/php/tests/SwxAssemblerTest.php line 85]
    Fail: SwxAssemblerTest.php -> swxassemblertest -> teststrhex -> Equal expectation fails at character 9 with [68656c6c6f] and [68656c6c6] at [/swx/php/tests/SwxAssemblerTest.php line 197]

    I looked through your docs but I did not see anything that would help me to determine what was missing. My site is hosted with Yahoo hosting and I’m not sure if there is a module missing maybe?

    Any help would be great! Thanks for all your great work!

    E.

  4. 4 aral Sep 4th, 2007 at 12:06 am

    Hi Eg0,

    I just had a look at the features pages of Yahoo web hosting and it appears that they only support PHP 4.3.11, which is a very old version of PHP.

    Unfortunately, SWX PHP is only supported on PHP 4.4.2 . The system requirements for SWX PHP are available in the SWX PHP documentation.

    The only thing I can suggest at the moment is that, if you can, you should change hosts. I can recommend HTTPMe as a very good host (I was with them on a shared account and now host on a dedicated server).

    Also, if you just want to use the existing APIs (Flickr, Twitter, etc.), you don’t need to install SWX PHP but can call the APIs directly either using native ActionScript (loadMovie) or by using the SWX ActionScript Library (which is now available as a separate download).

    I’m sorry I could not be of more help in getting things running for you with your current web host.

  5. 5 aral Sep 5th, 2007 at 9:43 pm

    Just to update everyone on this, I just committed a change to the SWX PHP Start Page. In SWX Version 1.0, the start page will warn you if you are running on a PHP version lower than 4.4.2.

  6. 6 Diding Sep 8th, 2007 at 2:04 am

    Thanks for answering….
    I downloaded it and now using it.Really ,it’s great! I hope that next Version can make it easier to access the Data for new Flasher.

    Many thanks.

  7. 7 tom beaver Sep 12th, 2007 at 8:44 pm

    Very excited about SWX. Thanks for what looks to be an amazing contribution to Flash amazingness.

    I’ve gotten the MAMP installation to work without a hitch.

    Installing onto my Mac’s apache server: less joy. On the “Welcome to SWF PHP!” page –

    1. I see broken graphic icons
    2. The page doesn’t have its CSS styling
    3. When I click on links, I see oddball urls in the address bar:
    – clicking on “Home” gets a url of “http://localhost/swx/index.php
    – browser reports error: “Not Found The requested URL /swx/

  8. 8 aral Sep 12th, 2007 at 9:11 pm

    Hey Tom,

    Sorry to hear that you’re having issues. Just emailed you. Let’s get to the bottom of this and I’ll update this thread with the solution.

  9. 9 aral Sep 12th, 2007 at 10:48 pm

    I’ve written up a FAQ entry to describe the issue that Tom’s having as well as workarounds for it. It has to do with whether PHP short tags are enabled on your server or not.

    The next version of SWX PHP will not use short tags in the SWX PHP Start Page. Until then, please read this FAQ entry for workarounds.

  10. 10 haptiK Oct 11th, 2007 at 9:38 am

    nice work.

  11. 11 Adrenalin Oct 31st, 2007 at 5:45 pm

    Great !

    Can I know what software have you use to create this screen cast ? I mean the camera moves to the cursor every time you move your cursor..

  12. 12 Dietmar Nov 8th, 2007 at 12:09 am

    Hi Aral,
    a small problem makes me crazy …
    My service class returns an array with objects in each array entry. The Service Explorer show me, that the returning value is an array, also the Data Analyzer. Until here it is all right.
    But in flash in the resultHandler the type of “result” is not an array, it is allways an object. Why?

    Many Thanks for this incredible SWX and …
    Best regards from germany

  13. 13 Greg Nov 18th, 2007 at 1:21 pm

    Hi. I’m so near yet so far….I’m probably being a complete nincompoop but I’ve hit a brick wall.
    The start page tells me all is well, I can make new php classes and see in the service explorer. The example flash files work fine, until I change the gateway url to localhost. Then I get “Error opening URL” in the output panel in flash. I can use LoadMovie() to successfully load standard movieClips.
    Any ideas gratefully received! (I’m on win xp)

  14. 14 Aral Balkan Nov 18th, 2007 at 2:23 pm

    Hi Greg,

    Can you give me the URL you’re using to connect to the gateway and the URL that your start page is on.

    Thanks!

  15. 15 john cooper Dec 4th, 2007 at 7:30 pm

    how about including all screencasts into an xml/rss file for miro?

  16. 16 zee Dec 21st, 2007 at 2:02 am

    The tutorial is nice until it gets to 0:15:15 to 0:15:27 where he uses a some terminology which wasn’t clear.

    Here is what he could have said:

    Before making call to the server to get info from php and database you need a variable which holds the class name and method described in your php file under services folder on the server. When you make the call by calling the variable using “swx.call(variableNameGoesHere);” swx returns the results which is why you need “result:[this, resultHandler]”. “resultHandler” can be any name, it is a function you make up and in it you put your actionscript code and what you want to do with the info returned from the server. If you don’t know what info is being received from the server you can look at the swx explorer or run a trace inside result handler.

    I not being rude here just trying to helpout. Maybe someone completely new to this such as my self and they just started learning actionscript.

    Also Note: look at the datatype test which comes with swx in services folder to see what kind of datatypes are supported in swx and what swx is expecting from your php code.

  17. 17 Aral Balkan Dec 21st, 2007 at 9:57 am

    Hi Zee,

    Thanks for your feedback. I’ll see how I can make it clearer when I re-record it for the latest version.

  18. 18 zee Dec 21st, 2007 at 10:40 pm

    Hi Aral,

    Don’t rerecord it. Do another tutorial working with getting info from mysql to flash using swx and working with datatypes in php.

    -Zee

  19. 19 MajorTom Jan 3rd, 2008 at 9:13 am

    Aral,
    I’m just getting into the backend of Flash having never used it before. I was looking into AMFPHP and came across SWX. One question on topic and one off topic. I will install SWX first and then maybe AMFPHP to see how they rate. I’m doing it now, so your answer would be for others’ benefit.
    1) Should or could I install AMFPHP as well as SWX PHP and have them available at the same time?
    2) WHat are you using to record your screencasts? I always wonder what people use and how they like those tools. I envision me having to do one at some time in my life.
    Thanks for your hard work. KUDOS.

  20. 20 aral Jan 3rd, 2008 at 2:48 pm

    Hi Tom,

    1) SWX PHP contains AMFPHP as a library. You can hit your back-end classes either through SWX (by hitting swx.php) or through AMF (by hitting the AMF gateway at amf.php).

    2) I’m using Snapz Pro X. It’s the best one I’ve found so far on OS X :)

    Good luck with SWX! Have fun! :)

  21. 21 Shaun Jan 21st, 2008 at 1:17 pm

    Hi Aral - Really sweet work!

    How would one incorporate swx into codeigniter?
    would it b e complex.

    Thanks in advance man|!

  22. 22 aral Jan 25th, 2008 at 11:14 am

    Hi Shaun,

    Thanks! I haven’t looked into the codeigniter framework but SWX has been integrated into CakePHP. Maybe a look there would give you some ideas?

    Have fun!

  23. 23 xi9601 Feb 22nd, 2008 at 6:41 pm

    I’m new to this dynamic between Flash and PHP, but I found this is the best starting point to me. Here is a simple Twitter Flash app I’d like to try. Please let me know if my plan of making it is wrong..

    Goal:
    My Flash will display messages sent to my twitter account, not the public comments.

    1. I can use either SWX Service Explorer or my own on server. However, installing SWX on on my server is better.

    2. on Twitter side:
    I need one account to follow updates. Another account to read the messages.

    3. on Flash side (ActionScript 2)
    I need to place Flash file in the right class path (like shown in video)
    I need a method that does “followFriend” or “getFriendUpdate” action.

    As long as, the code structure are correct this works.

    Are these steps and concept correct?

    Thanks!

    SWX ROCKS!!!

  1. 1 SWX documentation updated at Aral Balkan Pingback on Aug 25th, 2007 at 6:51 pm
  2. 2 flash on the beach ‘07 - aral balkan on swx « noah little Pingback on Nov 10th, 2007 at 12:34 pm

Leave a Reply





Bad Behavior has blocked 5152 access attempts in the last 7 days.