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
Friday, June 18, 2010
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
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;
}
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)
Wednesday, March 3, 2010
Unable to see SD card on Blackberry
I was helping someone today to put some documents on their Blackberry Bold 9000 and for some reason when I connected it to my PC I a drive letter was assigned to the Blackberry itself but not the SD card. Doing a bit of Googling it seems that this is a hige problem for users and there were hundreds of hits for this exact problem -- including people trying to use the Roxio Media Manager. In any case, one post had the answer that worked for me and here is the step by step solution:
1. Click Start>Run and then type: compmgmt.msc
2. Select Disk Management
3. In the right panel you should see both the Blackberry and the SD card as separate devices
4. Right click the SD card and select: Change Drive Letter and Paths
5. Click "Change" and then select the drive letter you want to assign to the device. Make sure that you do not assign an already assigned drive letter. If in doubt, right click your My Computer icon on the desktop and choose Map Network drive, then open the dropdown for the drives and note one of the unassigned drive letters.
6. Click OK
Hopefully you'll now be able to see the SD card and can treat it like any other USB drive. All in all this is way better than using the Roxio Media Manager app(which is a 200MB+ download!). But in any case once you've assigned the drive properly Roxio should now be able to access the drive as well.
1. Click Start>Run and then type: compmgmt.msc
2. Select Disk Management
3. In the right panel you should see both the Blackberry and the SD card as separate devices
4. Right click the SD card and select: Change Drive Letter and Paths
5. Click "Change" and then select the drive letter you want to assign to the device. Make sure that you do not assign an already assigned drive letter. If in doubt, right click your My Computer icon on the desktop and choose Map Network drive, then open the dropdown for the drives and note one of the unassigned drive letters.
6. Click OK
Hopefully you'll now be able to see the SD card and can treat it like any other USB drive. All in all this is way better than using the Roxio Media Manager app(which is a 200MB+ download!). But in any case once you've assigned the drive properly Roxio should now be able to access the drive as well.
Subscribe to:
Posts (Atom)
