Categories
Flash

RTFM: onHTTPStatus

For some time I wanted to create better feedback (error or alert) when you use cross-domain data (XML, TXT, JPG, FLV, etc.).
The more experienced flash programmer know that this you need a crossdomain.xml.

But flash never gives you any feedback if you need the crossdomain.xml of is it’s there or not. So you need Fiddler , Charles or some other http debugger to debug.

In the helpfiles of Flash I found the documentation about onHTTPStatus and more information about HTTP specification and after a quick scan of the information there I decided this is what I needed.

I wrote a class that would give me feedback…….. and all I got back was a 0 (zero) in Firefox and 404 using IE. Thats a strange bug…. so I started to read the helpfiles a little beter and found this:

A value of 0 can be generated in any player, such as if a malformed URL is requested, and is always generated by the Flash Player plug-in when run in the following browsers, which do not pass HTTP status codes to the player: Netscape, Mozilla, Safari, Opera, or Internet Explorer for the Macintosh.

So that killed the experiment immediately: I can’t have code that only work in IE.

Categories
Flash Flash video player

Flash Video (FLV) Player 1.3 released

About the project

Read more about it here

flvPlayer mck v1.3

Download

Because y’all not knocking down the door for this player, I’ve given myself some time to clean up the source code. So just as in version 1.1 and version 1.2 no class files available but you can download the SWF, the readme.txt and some html files in a ZIP

Get your stuff here: flvPlayer_mck_v1_3.zip

Licensing

Categories
Flash Screenweaver

Dir2xml v1.1 released

This is a little tool I build with the help of Screenweaver.
A dir(ectory) 2 XML tool.

Wanna know more about the reason??

Version 1.0 had some bugs, and the output (XML) wasn’t the way it should be.

Dir2xml v1.1

dir2xml
(yes indeed it’s the same picture as version 1.0, there are no big changes to this program)

Download

You can download the EXE, SWF, example dir2xml.xml and FLA in a ZIP

Get your stuff here: dir2xml_060605.zip

Licensing

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.
Categories
Misc

Todo: create my own design for wp-blog

I’ve used the wp-theme Blix for a while now and I’m running into some problems with this theme. And the most obvious is the navigation bar at the top.

So here is a wishlist of things I want to change and create in my own theme:

  1. login on the right side >> now I have to go to the bottom of the page for a login
  2. categories and sub categories are not visible
  3. navigation bar on the top with submenu
  4. more distinct difference between title and H2 t/m H6 tags
  5. IMG need some space around it
  6. popup javascript for big pictures and flash
  7. navigation in one line >> it seems that blix is designed for little navigation
  8. RSS with RSS icon (feedicons)
  9. Design of blog less “bloggie”, create more space / white
  10. add “polymath zapper” to blog
  11. create logo “[mck]”
  12. date of post more visible
  13. comments
Categories
Uncategorized

Technorati Profile

Technorati Profile

Categories
Flash Flash video player

Two buttons interfering with each other’s rollover / rollout

This is a problem which is kinda difficult to describe in short sentence. But this is a problem which I seem to be running into for a couple of weeks now.

Lets descibe the problem and I will illustrate with a banner (or a simple flv-player) example:
The banner (rectangle) is contains a short animation (20 kB) and when you rollover the banner a video (flv) starts to load and play. Onrollout the video will stop playing and hide. But the banner has also smaller pause / play and sound-off buttons on top of the bigger button which start / stop / etc the video.

So the big button starts playing / loading the video onrollover and onrollout stops playing / hides the video. The smaller buttons are stop / pause / play / sound-on / sound-off actions.
Not so difficult, but the tricky part is in the rollout of the big button: as soon as you rollover the smal buttons it means that the video stops playing and hides (rollout of the big button)….

With a little help of Nils we he cracked this nutt:

View the working example hereupdate #1: onMouseMove has to change to this.onMouseMove

this.big_btn.onRollOver = function() {
	this.onMouseMove = function () {
		if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
			// rollover state and action
			this._alpha = 50;
			_root.MyCustomRoll("rollover: big_btn");
		} else {
			// rollout state and action
			this._alpha = 90;
			_root.MyCustomRoll("rollout: big_btn");
			delete this.onMouseMove;
			// trace("no hit");
		}
	};
};
// 
this.button1_btn.onRollOver = 
this.button2_btn.onRollOver = function () {
	this._alpha = 50;
	_root.MyCustomRollSmall(this._name + " onRollOver");
};
this.button1_btn.onRollOut = 
this.button2_btn.onRollOut = function () {
	this._alpha = 90;
	_root.MyCustomRollSmall(this._name + " onRollOut");
};
// debug / trace functions
function MyCustomRoll(txt:String) {
	this.debug_txt.text = txt;
}
function MyCustomRollSmall(txt:String) {
	this.debug2_txt.text = txt;
}
Categories
Flash video player

hmmmm to early released: FLVPlayer 1.2 has a couple of bugs

It seems that I was to “early” with this update, the Flash Video (FLV) Player 1.2 has some bugs which I have to look at before I start with version 1.3.

Bugs from version 1.2:

  • Again MTASC didn’t accept the code I wrote. But now I have no idea how to fix it (read more about the problem below).
  • The progress bar sometimes exceeds the 100%, I thought I had fixed that …
  • I lied about (x)html, because it’s simply not xhtml (I’m not going to fix that, so now it’s only html)
  • The autohide functionality I create doesn’t work properly (solution to this problem is posted here)

MTASC: Type error Video has no _x
while the livedocs assures me that it is possible.
I can’t find a solution to this problem: MTASC can’t be used to create SWF but Flash 8 doesn’t mind so I will use Flash create SWF. Hmmmm to bad, so there two options now : (1) Nicolas Cannasse made a mistake or (2) I did.
Do you know the answer, let me know.

Categories
Flash video player

Flash Video (FLV) Player 1.2 released

About the project

Read more about it here

flvPlayer mck v1.2

Download

Because y’all not knocking down the door for this player, I’ve given myself some time to clean up the source code. So just as in version 1.1 no class files available but you can download the SWF, the readme and some (x)html a ZIP

Get your stuff here: flvPlayer_mck_v1_2.zip

Licensing

Categories
Flash Screenweaver

Dir2xml

This is a little tool I build with the help of Screenweaver.
A dir(ectory) 2 XML tool.

I was looking for a program that could create an XML file from a directory. I found some programs that could help me with this (commandline, Printfolder, Dirhtml) but none of them creates an XML at once. So one evening I sat down, and made this in a couple of hours.

Because this is a custom solution to a specific problem, not everybody will be able to use this. I'm open to suggestions though, so drop me a line.

Dir2xml v1.0

dir2xml

PC and Apple

Sadly enough Screenweaver can't export to Apple (yet).
So Dir2xml will (for now) only work on a pc.

Download

You can download the EXE, SWF and FLA in a ZIP

Get your stuff here: dir2xml_060520.zip

update: new version

Licensing

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.
Categories
Flash

SlideShow v1.0

A little dynamic slideshow a made with Flash using XML.
It’s not finished but it usable.

And it’s not really the reason I wanted to show this.
What I wanted to show is my dir2xml program that I wrote with Flash and Screenweaver

SlideShow v1.0

Download

I haven’t had the time to clean up the source code, so don’t complain about it.

Get your stuff here: slideShow_060520.zip

Licensing

XML

Dir2xml creates a simple xml structure:

dir2xml_example.xml

Future features and wishes

I can think of some features that would make this slideshow better, but what do you think would improve it.
The real reason I wanted to show you this project is this.