Categories
Flash Flash experiments

Flash experiments: select

Update: Before I could publish this post, before I finished this experiment, I found a better class to do what I want. TransformManager Released – Scale/Rotate/Move any MovieClip from Jack Doyle (Greensock). This class is what I had in mind when I started…. and much, much more… I’m using this class in the future.

Another experiment: I needed a possibility to select and manipulate a graphic in Flash.
So I looked at illustrator and Flash how they did it, and made a variation of my own.

So for now, I can select the top graphic, move and rotate it (not yet resize…)

Check it here:

[swf]http://www.matthijskamstra.nl/laboratory/swf_experiments/select_v01.swf, 450, 450[/swf]

Or check it the select experiment full screen..

Categories
Flash Flash experiments

Flash experiments: tools

I decided to “share” my unstructured flash experiments:

And in this case it’s a flash application that creates flat, printable versions of cubes. Just print it, cut it out, glue it together and there you have it: the amazing cube:

Or just check tools menu full screen..

Based upon xml: toolsmenu.xml

Categories
Flash FlashBox WordPress Plugin

FlashBox 1.4 hits 200

Update: I’ve updated my wp-downloadBtn wordpress plugin so you can see the total download:

Yeah, Yeah, I know: nerd!
But I can’t help it feeling somewhat proud: 200+ people found my WordPress plugin FlashBox interesting enough to download.

So let’s say that not everybody who’s downloaded the zip is also installing it. Let’s say 1 out of 10 … 20 users?

Well that good enough for me: I working on FlashBox 1.5 with some new feature requested by FlashBox users and some wishes I had:

  • Redesign
  • Optional: Choose if you want a add a icon to your link when FlashBox is activate
  • Images “cached” into FlashBox
  • Optional: Use FlashBox without rel="flashbox"
  • Optional: “Powered by FlashBox” in the footer
  • …. (still working on all of this and more…)
Categories
Flash FlashBox WordPress Plugin

FlashBox v1.4 – IE6 blocks content

A new version of FlashBox. The main reason for this update is an IE6-bug (read the whole story here)
But by trying to fix this bug, I also created room for the send-a-friend option.

FlashBox is a on going project so for updated versions of it goto the Flashbox directory.

A two image gallery: an tribute to Gungrave. [1] – [2]

Find more examples on the FlashBox homepage.

Download WordPress Plugin – Download FlashBox v1.4

If you have previous versions of FlashBox installed, it’s a good idea to delete the old “wp-flashbox” directory.
Categories
Flash Flash experiments

Flash experiments: Debug Button

Update #1: it seems that to much data makes this button not function, so I toned it down a little

For FlashBox I was looking for a way to get more/better feedback from the users when they report a bug.

It started with:


function submitBug (target_mc:MovieClip) {
	for(var i in target_mc) {
		trace ( 'key: ' + i + ', value: ' + target_mc[i]);
	}
}

But I’ve extended it, with other usefull information (stage-width/height, url, framenumber, etc);
And in combination with FlashBox (or in combination with the Browser detect – by Peter-Paul Koch [quirksmode]) you also can get the Operating system (I can get that too with Flash), Browser name (not possible with Flash) and version-number of the browser (also not possible with Flash)

With this information it should be easier to debug….

To export the data to me I used the lowest tech solution I could think of:

getURL ("mailto:reportbut@zapper.com?subject=BugReport&body=bug:");

Just give it a try:

[swf]http://www.matthijskamstra.nl/blog/wp-content/uploads/debugBtn.swf, 220 ,70[/swf]
Categories
Flash Flash experiments FlashBox

Flash experiments: Flashbox – part 3

Update: Check the Flashbox directory or more post about FlashBox for recent update

Lightbox Javascript to Flashbox Javascript
Bugs in the Lightbox script:

  1. Lightbox doesn’t follow when the window is scrolled, I’ve fixed this bug
  2. if no Image (broken link) is loaded, there is no way to stop this process, and you get no feedback

Bug #1: My fix for the scroll bug:


function onscrollChange ()
{
	var arrayPageSize = getPageSize ();
	var arrayPageScroll = getPageScroll ();
	var lightboxTop = arrayPageScroll [1] + (arrayPageSize [3] / 15);
	setTop ('flashcontent', arrayPageScroll [1]);

}

and in the showFlashbox function I started to check if the window is scrolled:
window.onscroll = onscrollChange;

Bug #2: This is a bug which will not be fixed in javascipt, but in Flash.

Lightbox HTML to Flashbox HTML

use this doctype in your html files, you need it if you want layers (

) to have a 100% width and height:



put the following lines in you directory structure and html:



Lightbox CSS to Flashbox CC


body,html  {height: 100%;margin: 0;padding: 0;}
#overlay{
	position: absolute;
	top: 0;
	left: 0;
	z-index: 90;
	width: 100%;
	height: 500px;
	background-color: #000;
	filter: alpha(opacity=60);
	-moz-opacity: 0.6;
	opacity: 0.6;
}
#flashcontent{
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	text-align: center;
	line-height: 0;
}
Categories
Flash Flash experiments FlashBox

Flash experiments: Flashbox – part 2

Update: Check the Flashbox directory or more post about FlashBox for recent update

Flash and crossdomain

The first obstacle is the security box / crossdomain in Flash.
If you want to know more about the security box and crossdomain.xml, visit Martijn de Visser blog, he has an excellent explanation (with images!!!).

But in short, if you want to load images/ xml/ etc from a different server then your own, you need permission (crossdomain.xml) from that server.

This information is given to us by Macromedia Adobe:
loadClip (MovieClipLoader.loadClip method) which explains about crossdomain, security box and the MovieClipLoader (this is the method I use to load the images).

And here I seem to run into a bug: it should not be possible to load from another server without a crossdomain.xml, but I can.
When I follow my HTTP traffic between my machine and the Internet (using Charles) I don’t come across a crossdomain.xml when I load images but when I load xml form that same server I don’t get permission to do so (it can’t find a crossdomain.xml and so it’s not allowed to load xml from that server).

Xml loading from another server is not allowed without crossdomain.xml, but images doesn’t seem to be a problem.

Categories
Flash Flash experiments FlashBox

Flash experiments: Flashbox – part 1

Update: I am not keeping files for historical purposes, so the Flashbox directory will be update. (This means: when you view the progress, explained in this post, there is a possibility that the files are already evolved some… and the description here won’t fit what you see )
Check for more recent post about FlashBox.

Introduction to Flash experiment: Flashbox

In “Flatpack toys other then ReadyMech” I started to experimented with Lightbox JS v2.0 to show images without using a popup or leave the page. I used wp-lightbox2.
And I was impressed! It uses prototype.js which is a JavaScript Framework. Until I saw that wp-lightbox2 plugin (lightbox.js, prototype.js, effects.js, images, css and php file) is a total of 86,6kB….

So I looked for a alternative, and found thickbox which was smaller (total 31kB) and more versatile (not only images and galleries but also inline content, iframes and AJAX content). Thickbox uses jQuery which is a JavaScript Library.
I used the wp-thickbox plugin (20,8 kB) and don’t forget wp-jQuery (19.5kB). So to get thickbox working on WordPress it will add up to 40.3kB total (less then half of lightbox).

And here comes the trouble:
A couple of days ago there was an update of WordPress: WordPress 2.1 Ella and this version of WordPress uses prototype.
And prototype and jQuery can live together but can cause problem.
Which it did in my case: Thickbox didn’t work any more, and a theme I was working on (using jQuery) stop working too.

Update: Not functioning of Thickbox had nothing to do with WordPress 2.1 or with the wp-plugin. I was to hasty with my conclusion. Read the comments

So I changed this blog (not update to wp2.1 yet) back to Lightbox again, because of the prototype/jQuery issues and future updates of my blog.

Categories
Animation Flash Flash video player Open source / Freeware

Convert SWF to AVI (SWF2AVI or SWFtoAVI)

Update: are you looking for a userfriendly, free SWF>>AVI converter? Read also my post about SWF>>AVI

I was always under the assumption that you couldn’t export video with flash.
And yes I know …. there are couple ways to export video but they have some restrictions.

To export from Flash to Quicktime (MOV) means that you SWF can’t be higher than Flash 5 and in the standard export setting AVI and MOV can’t contain script, so everything has to be animated on root timeline even animation in movieclips don’t work.
There is also the possibility to export a sequence of images which has the same restriction…

swf2avi main

But since I use swf2avi I don’t have these restrictions no longer.
Swf2avi is very easy to use (what all programs with 1 aim should be). It’s quite intuitive! So no tutorial will be made by me, not even a small explanation.
Swf2avi will create a container (if necessary) to play your SWF frame-by-frame and creates screenshots of every frame in either BMP or JPG.
This sequence can be translated afterwards to AVI with swf2avi (with the possibility of compression), an AVI can be converted to FLV and play it with a flashVideoPlayer.