Flash and CMS 2:
Use Actionscript 3 to Develop a Flash-Based Content Management System Where Clients Can Update Images
- This setup has the designer in mind! The dynamic images that the client updates can be masked, used in a UI component, inside of other movieclips, or they can be used in an animated sequence. So you could animate an image with Filters, move it around, zoom it or whatever, and your client can update that.
- Your client can edit their site using the same Flash file that their viewers see. Once logged in, "Replace Image" buttons can appear where image uploading is possible.
- The client updated images can be used within multiple files. So updating an image like a logo graphic could change multiple swfs throughout the site if they all were pulling in that same image file.
- You can publish out a .swf file that only your client knows about to be used for logging into the site, OR you can hide the username and password boxes onstage until they press an uncommon keyboard key like the tilda, ESC, tab, etc, which would then make the client login buttons visible.
- Filenames are NOT stored in a database. You code in the initial image name, and upload a file of that name. Your client can upload a file of any name, which then gets renamed to that initial image name. The nice thing about this is that setup-wise you only need to open the .fla, enter a few image names in an array, and publish. You do NOT need to mess with the database each time you want to start a new file using this setup. Only time you need to edit the database is to create a new username and password.
- All code is written in Actionscript 3. PHP and MySQL are needed, so be sure your host offers those.
It is recommended you watch our first Flash & CMS tutorial before viewing this tutorial so you can thoroughly understand some of the elements that are already provided for you in this tutorial. Many of the PHP files are pre-written and only summarized in this course, and since most of the client login code is carried over from course 1, it is also quickly discussed. With that said, most users can probably dive into this course if you don't want to watch our first CMS course about client updatable text.