Open Movie Editor 0.0.20090105 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News Open Movie Editor 0.0.20090105 (Default branch)
# 1  
Old 01-05-2009
Open Movie Editor 0.0.20090105 (Default branch)

ImageThe Open Movie Editor is designed to be a simple tool that provides basic movie making capabilities. It aims to be powerful enough for the amateur movie artist, yet easy to use. It is a non-linear video editor that features several video and audio tracks where clips can be manipulated using the mouse.License: GNU General Public License (GPL)Changes:
This release fixes some compile problems and somebugs, and uses a job-queue instead ofidle-handlers for generating wav-forms andthumbnails.Image

Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
SWFACTION(3)								 1							      SWFACTION(3)

The SWFAction class

INTRODUCTION
SWFAction. CLASS SYNOPSIS
SWFAction SWFAction Methods o SWFAction::__construct (string $script) DESCRIPTION
The script syntax is based on the C language, but with a lot taken out- the SWF bytecode machine is just too simpleminded to do a lot of things we might like. For instance, we can't implement function calls without a tremendous amount of hackery because the jump bytecode has a hardcoded offset value. No pushing your calling address to the stack and returning- every function would have to know exactly where to return to. So what's left? The compiler recognises the following tokens: o break o for o continue o if o else o do o while There is no typed data; all values in the SWF action machine are stored as strings. The following functions can be used in expressions: o time() - Returns the number of milliseconds (?) elapsed since the movie started. o random(seed) - Returns a pseudo-random number in the range 0-seed. o length(expr) - Returns the length of the given expression. o int(number) - Returns the given number rounded down to the nearest integer. o concat(expr, expr) - Returns the concatenation of the given expressions. o ord(expr) - Returns the ASCII code for the given character o chr(num) - Returns the character for the given ASCII code o substr(string, location, length) - Returns the substring of length $length at location $location of the given string $string. Additionally, the following commands may be used: o duplicateClip(clip, name, depth) - Duplicate the named movie $clip (aka sprite). The new movie clip has name $name and is at depth $depth. o removeClip(expr) - Removes the named movie clip. o trace(expr) - Write the given expression to the trace log. Doubtful that the browser plugin does anything with this. o startDrag(target, lock, [left, top, right, bottom]) - Start dragging the movie clip $target. The $lock argument indicates whether to lock the mouse (?)- use 0 ( FALSE) or 1 ( TRUE). Optional parameters define a bounding area for the dragging. o stopDrag() - Stop dragging my heart around. And this movie clip, too. o callFrame(expr) - Call the named frame as a function. o getURL(url, target, [method]) - Load the given URL into the named target. The $target argument corresponds to HTML document targets (such as "_top" or "_blank"). The optional $method argument can be POST or GET if you want to submit variables back to the server. o loadMovie(url, target) - Load the given URL into the named target. The $target argument can be a frame name (I think), or one of the magical values "_level0" (replaces current movie) or "_level1" (loads new movie on top of current movie). o nextFrame() - Go to the next frame. o prevFrame() - Go to the last (or, rather, previous) frame. o play() - Start playing the movie. o stop() - Stop playing the movie. o toggleQuality() - Toggle between high and low quality. o stopSounds() - Stop playing all sounds. o gotoFrame(num) - Go to frame number $num. Frame numbers start at 0. o gotoFrame(name) - Go to the frame named $name. Which does a lot of good, since I haven't added frame labels yet. o setTarget(expr) - Sets the context for action. Or so they say- I really have no idea what this does. And there's one weird extra thing. The expression frameLoaded(num) can be used in if statements and while loops to check if the given frame number has been loaded yet. Well, it's supposed to, anyway, but I've never tested it and I seriously doubt it actually works. You can just use /:framesLoaded instead. Movie clips (all together now- aka sprites) have properties. You can read all of them (or can you?), you can set some of them, and here they are: o x o y o xScale o yScale o currentFrame - (read-only) o totalFrames - (read-only) o alpha - transparency level o visible - 1=on, 0=off (?) o width - (read-only) o height - (read-only) o rotation o target - (read-only) (???) o framesLoaded - (read-only) o name o dropTarget - (read-only) (???) o url - (read-only) (???) o highQuality - 1=high, 0=low (?) o focusRect - (???) o soundBufTime - (???) So, setting a sprite's x position is as simple as /box.x = 100;. Why the slash in front of the box, though? That's how flash keeps track of the sprites in the movie, just like a Unix filesystem- here it shows that box is at the top level. If the sprite named box had another sprite named biff inside of it, you'd set its x position with /box/biff.x = 100;. At least, I think so; correct me if I'm wrong here. PHP Documentation Group SWFACTION(3)