how to use lightbox effect in flash website?
Hi all I have a web design portfolio....the portfolio is designed entirely in Flash......I want to add the lightbox effect in my portfolio.....but I don't have any idea of how to add the lightbox effect.....I am editing the template using the main xml file.......what are the codes of the lightbox effect for adding into the main xml file..... Thanks in advance.
Public Comments
- Very sorry: you can't! You have to modify the Action Script of your flash source. (Lightbox is a javascript licence-free script: it does not work on flash sites) BTW: if your portfolio is developed in Flash only, you have lost 80% of potential clients... Ideally, your portfolio should show: - Great images/designs - Simple static websites at 10-15$/page - Dynamic websites that change everyday - Fully interactive sites using AJAX - At least one e-commerce with on-line ordering and payment gateway, - At least one "blogger - forum - chat - social network" site. - One or two flash "included" objects, (small embedded flash), - A flash site with complete ALTERNATE contents (for those who do not want flash). - On flash: make sure you use AS3, that it loads its basic in less than 3 seconds, then stream the rest. If it takes more than 3 secs to load, you have lost your clients. All of them! If you can't show ALL of that in your portfolio, don't bother: it will harm you more than you think, as the "serious" clients, prepared to pay well, will drop you in the box "Amateurs". Once pigeon-holed that way, you'll never get out!
- I have to ask, JR. Every time anyone ever gets remotely close to mentioning a Flash portfolio, you seem to cry witch? Did flash not hug you enough as a child? It really isn't that bad ... Clients really do like eye candy websites. If they are programmed correctly, flash websites load just as quickly as your typical html/php sites. Hence why most Flash/Flex programmers embraces classes like bulk loader and such. Regardless. Back to your question. Depending on your confidence in Flash there are three routes to go. Regardless of what JR has said, you CAN use lightbox from Flash. It's simply targeting a js script from a flash document. The problem is, you'll lose a bit of functionality depending on what portions you pull out of the original JS file (this is assuming your working is Lightbox V2.0). Either way, I don't completely recommend this, unless your only wanting this effect for a couple of photos. Your next option is to simply do the coding inside of Flash. Of course, if you wanted to do that, you wouldn't have sought out Lightbox. But the truth of it is, you can program a single MC with TweenLite to do the same transitions, and dynamically load images accordingly. I like this route because it gives you a lot more freedom later on, if you were to add more images. BUT. Here is what your looking for, ultimately. Go to the huddletogether site, scroll down to modifications, and download the Flash Lite Box source. Read the documentation and have fun with it. This really isn't an overly explored area, so you'll have to do a bit of forum searching to find answers to any problems you might encounter with the code. But, from what I've used of it so far, its all really straight forward. Good luck, and let me know if you have any problems
Powered by Yahoo! Answers