Flash

Flash Horizontal Menu with Graphics and Random Letters Hover Effect

Tuesday, April 20th, 2010

I have just uploaded another file to ActiveDen.net for sale. Its a flash horizontal menu and its great for any site or flash project. It can be used as the navigation on any website and is super easy to use and setup. The main function of this menu allows you to add graphics and text with your links. If you want to use it in your flash file you can just drag and drop it, or if you don’t know Flash and you are linking to several webpages, use the provided swf and XML file and you don’t even have to open up Flash, all you do is just edit the simple XML file. Some other features include that you can easily change the width and height (and a special javascript function handles the resizing in the browser). Also, you can easily change the font color, the hover color, the font size, font type, you can easily position the text, and change the space between items and navigation padding on the left to easily center it. It handles most html tags for even more customization. You can add as many links as you want. To view the file just click the image above.

Cya

Scrolling in Flash

Monday, April 5th, 2010

I have been getting a lot of questions for a good way of scrolling in Flash. So I thought I would let you know about the Scroll Flash Tutorial I made on how to do that. It gives you the code and the explains  basic functionality.  But if you don’t know anything about programming, I also created a simple Auto Scroll Flash file or in other words a Flash Text Ticker / Text Scroller file.  It’s completely customizable by XML so you don’t even have to know Flash to use it and it super easy to add to any website. You can change the font size, color, link color, background color, and add multiple lines of text if you want, and you can even setup a timer to display each text line item. If you buy it, there is also a help file that will give you a step by step process on how to edit the XML file and add the Flash scroller to your webpage.  To see a few examples of this file in action, click the example  image below.

If you guys have any more specific questions about scrolling in Flash,  just let me know by sending me an email through my contact page or leaving a comment.

Cya

Groovesharks Amazingness (wotw)

Thursday, April 1st, 2010


For my second entry into the website of the week (wotw), I wanted to rant on how much I love Grooveshark. If you don’t know what it is yet then you need help. Grooveshark is another online music system that allows you to listen to music. Like other music websites like Pandora, and Jango you can set up radio stations that will randomly play songs similar to the artist of your choice. But unlike those other sites Grooveshark allows you to create your own playlists, listen to any song at any time, replay songs, and there aren’t those annoying ads between every song. The only ad is on the right and that’s for the free version. You can pay $3 and the ads will go away, but its really not all that bad with the single add on the right. They also have some really cool features like the RSS feed of songs you are listening too and they have a really cool Grooveshark WordPress Plugin. For me who sits in front a computer more than 8 hours a day,  a really well made music site that allows you to listen to the music you want is vital to get those creative juices going. The most amazing thing of all is that the whole site is made in Flash and has really great features like the use of the back and forward button (you know how often Flash sites suck as this).  Check it out, I highly recommend it, and maybe down the road I will create a cool Flash RSS Grooveshark Reader or something.

Cya

New Flash Horizontal Menu

Tuesday, March 23rd, 2010


I have another file for sale on ActiveDen and it’s called Flash Horizontal Menu. This flash horizontal menu is great for any site or flash project. It is written in AS3 (Actionscript 3.0) and can be used as the navigation on any website and is super easy to use and setup. This menu supports loading swfs, going to frame labels, frame numbers, external links, and calling functions. If you want to use it in your flash file just drag and drop it. If you don’t know Flash and you are linking to several web pages, use the provided swf and XML file and you don’t even have to open up Flash. Some of the special features are that its customizable by XML, you can easily change the width and height, and a special javascript function handles the resizing in the browser. There is no need to even open the flash file, unless you want to use it in another Flash project then its just drag and drop, easily change the initial font color and the hover font color, easily change the font size and font type, easily change the space between items and navigation padding on the left to easily center it, it handles most html tags for even more customization, and you can add as many items to the menu as you want.Click the image above to view the flash in action.

Cya

Workaround Solution to Flash Error #2044, Unhandled SecurityError, and Error #2048, Security Sandbox Violation

Friday, February 26th, 2010

I sell Flash components on ActiveDen, and while working with a client on my Flash News Ticker we ran into the infamous “Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation” when trying to gather information from an external RSS Feed.

This error occurs when your flash file is trying to get data from a different domain and it can’t because of security reasons on their server. The usual fix for this is to create a crossdomain.xml file that allows access from other websites to use the data on yours, but the problem with that is if you don’t host that site you want the data from then how could you create or update the crossdomain.xml file on their server.

I did find a work around for it though! Not sure if its “the right way to do it” but it does work.

Here is the solution, I copy that url of the feed I want the data from, go to my feedburner account and create a feedburner feed of the same feed. If you don’t know what feedburner is then you should definatly check it out. You basically can sign up for feedburner if you have a google account already. Anyway, after you get the feedburner feed of the data you want you can view it. Then if you want to see the xml version of the Feedburner Feed, you can just add  “?format=xml” onto the end of the url they give you, and this is the normal RSS 2.0 feed that we are wanting.

This is the data you want, because its not on the security problematic website. The next thing I ran into was getting the images to display in the news ticker as well. I kept getting the same error but if I dismissed the errors then they still worked. So I used a try-catch clause to get the error and throw it if it gets one. Here is an example of that code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function imageLoaded(e:Event):void {
	try {
                //make the image into a bitmap and smooth it
		var image:Bitmap = e.target.content as Bitmap;
		image.smoothing = true;
 
		//resizes the image
		e.target.content.width = 55;
		e.target.content.height = 35;
 
	} catch(error:Error) {
		trace("Error catch: " + error);
	}
}

This is called from an event listener when loading it in using a loader object, that looks like this:

imageLoader.contentLoaderInfo.addEventListener(Event.INIT, imageLoaded);

So basically it worked after this, and the images even showed up without showing the error. The only problem is that the images don’t get resized because they can’t be loaded into the swf memory. Here are the examples: the one on the left is the broken example, it can’t get the information it wants to so it just keeps trying to load it. The example on the right shows the fix. (You have to view them in IE so the error warnings appear, another thing to hate about IE. :/ )

Any thoughts or comments are encouraged,
Cya