Have you ever wondered how those hot shot web programmers implement those cool expanding sections in their web pages? With the right tools and a little knowledge it is quite simple and accessible to almost anyone. I will walk you through a very simple implementation using the jQuery JavaScript library.
Quickly Implement Expanding DIV tags In Your Web Page
March 29th, 2010MouseDown and OnRelease Events in AS2
March 17th, 2010Have you ever had this happen when you are updating or creating a Flash movie using the old AS2?
You create a movie clip with the following code to trap a mouse click on itself.
onMouseDown = function(){
trace(this._name);
var sel = int(substring(this._name,3,1));
trace(sel);
if (sel > 0){
_parent.mcWorld["mcE"+sel].play();
_parent.mcWorld["mcE"+sel]._visible = true;
}
}
You place 9 instances on the stage and run the movie, click on one of the movie clip instances and see this result in the trace window.
mc9
9
mc8
8
mc7
7
mc6
6
mc5
5
mc4
4
mc3
3
mc2
2
mc1
1
Every single instance of the movie clip fired the mouseDown logic but you only clicked on one of them.
Embeding True Type and Open Type Fonts In Your Web Site
February 28th, 2010Are you tired of the restriction of having to depend on standard generic fonts for your web site. There are many work-around methods to include fonts but most depend on using graphic images or Flash elements. Both look nice but they are not search engine friendly, they are time consuming and they are not easy to update.
Open a JavaScript LightBox From Whithin a Flash Movie
February 21st, 2010While working on a recent project we were faced with the issue of having to invoke a PHP event calendar in a completely Flash base site. Popping up a window was not an option because of the pop-up blocker issue. Many of the lightbox scripts out there have a difficult time showing active content like PHP, SWF, video, etc. Additionally, many of them do not expose a function that allows you to open the light box without responding to an object event. After doing a little research we cam across a jQuery plug-in called ColorBox. ColorBox can open any content using an iFrame. It can also open Flash and PHP content in a window without having to use an iFrame. Another great advantage of the ColorBox interface is that it implement call-back events so you can create complex exentions to the standard LightBox functionality. Let’s tak a look at how we used the ColorBox script to solve our Flash call problem.
Technical Tips and Tricks
February 18th, 2010As we create custom solutions for our customers we come across tips and create many tricks that we feel should be shared with our friends and customers. We also like to share tips and warnings that can save you lots of time. So stay tuned as we start sharing this information.