Saturday, September 4, 2010

Restrictions on flash fullscreen mode

From Adobe:
  • The ActionScript that initiates full-screen mode can be called only in response to a mouse click or keypress. If it is called in other situations, it will be ignored (in ActionScript 2.0) or throw an exception (in ActionScript 3.0).
  • Users cannot enter text in text input fields while in full-screen mode. All keyboard input and key-related ActionScript is disabled while in full-screen mode, with the exception of the keyboard shortcuts that take the viewer out of full-screen mode.
That last bit is sad news if you want to allow a user to share via email while in fullscreen mode :-(

Friday, June 18, 2010

Very cool Flash debugger tool

While trying to do some live web debugging of a flash app I came across this great Air app that lets you see all of your trace and error statements as the app is running. It outouts the standard trace commands so there is no need to import any new classes and write to a console.

Awesome!!

http://bit.ly/ck3KpN

Sunday, June 13, 2010

Flash CS cannot find fl.core and fl.video packages

This is just strange. I was trying to import the classes in fl.core and fl.video into a Flash project and the compiler gave a "Definition could not be found." error. Apparently this has been a problem since (at least) Flash CS3. The IDE does not automatically add those libraries to the classpath so you need to do it yourself.

Here are the instructions:

Open Flash
Go to Edit>Preferences>Actionscript>ActionScript3 Settings>

and add these two paths to the Source Path:

$(AppConfig)/Component Source/Actionscript 3.0/User Interface
$(AppConfig)/Component Source/Actionscript 3.0/FLVPlayback

Friday, May 21, 2010

Hiding dotted lines around links in Firefox

This is just simple and brilliant:

http://sonspring.com/journal/removing-dotted-links

/* this removes the dotted line around everything linked item */

:-moz-any-link:focus {
outline: none;
}

Friday, May 14, 2010

Adding shadows to divs

Safari and Firefox also have different ways of adding shadows to divs:

// safari
-webkit-box-shadow: 1px 1px 3px #888;
//mozilla
-moz-box-shadow: 1px 1px 3px #888;

Adding gradients to divs

Safari and Firefox require different css to create gardients:

#myDiv{
//Safari:
background-image: -webkit-gradient(linear,left top,left bottom, from(#666), to(#000));
//Mozilla:
background: -moz-linear-gradient(top, #666, #000);
}

Tuesday, May 4, 2010

How to delete a post from a Wordpress database

For some reason the data that I inserted into a post got corrupted and I was unable to delete or edit it within the Wordpress console. So to manually delete a post from the database just do this update:

update (name of posts table) set post_status = 'trash' where id = (ID of offending post)