What I have been busy with
Posted by Flashscaper on August 14th, 2008 filed in OthersComment now »
To justify my long absence, here are some websites I created within a span of 3 months in my new company.
http://choosefreedom.com.sg/
http://setmefree.com.sg/
http://www.mindef.gov.sg/rsaf/40years/
http://www.mindef.gov.sg/rsaf/careers/
Scrollbar issue on child MovieClips
Posted by Flashscaper on August 14th, 2008 filed in Actionscript 3, Components, Flash CS3, TutorialsComment now »
First of all I would like to apologise for not responding to the comments in the blog post. I started my new job 3 months ago and it had my time pack fully.
Nonetheless, I read the comments posted. One main issue that kept coming up was the problem of the scrollbar in loaded movieclips.
There is a simple solution to it and maybe I will explain the details next time. Basically, the problem is caused by the stage listener in the Scrollbar constructor.
Take the 2 listeners and shift them down to the init() function and the scrollbar will work.
Hope this post is helpful.
Customizable ComboBox on Ultrashock
Posted by Flashscaper on March 31st, 2008 filed in Actionscript 3, Components, Flash CS32 Comments »
My ComboBox has finally been approved by Ultrashock to be uploaded in their Creative Assets! I have always wondered do people actually buy components off the net? Since I was slightly more free last month I went through the whole procedure to see how this whole flash assets selling actually work and whether is it worth the effort. Stay tune for answers.
But this blog will still continue to feature free source code and files from my personal projects.
Here is the link to my combobox in ultrashock.
http://www.ultrashock.com/#/asset/40122/customizable-combobox.html
MouseWheel in Mac Safari Browser
Posted by Flashscaper on March 31st, 2008 filed in Actionscript 3, Flash CS3, papervision 3D5 Comments »
I was doing a quick demonstration of my recently created PV3D image gallery in a Mac and the mousescrolling didn’t work. I was taken by suprise so I went to check out the issue. I discovered that MouseWheel event indeed do not work on Safari. In order to overcome this, the best solution in my opinion, would be to use javascript and ExternalInterface in AS3. As javascript can work in Safari, I would use its function to detect MouseWheel event and send the value to Flash using ExternalInterface. Here is the link to the updated file:
Here are the source files:
Source files
PV3D Flash XML Image Gallery - Matrix
Posted by Flashscaper on March 25th, 2008 filed in Actionscript 3, Flash CS3, papervision 3DComment now »
This is another another project I did in my free time. After hearing so much about Papervision3D, thought I have a go at it too. This is a xml based image gallery. I called it the Matrix because it was more or less inspired by the Movie. Since this is an experimental project, there is much to improve on. Right now, I just upload the source so you people can get a headstart on how you can use Papervision3D.
Currently I fixed it at 3 by 3 matrix. You can edit the matrix but it will affect the gallery’s position. To access the images behind, you can use the mousewheel.
Flashscaper AS3 Scrollbar
Posted by Flashscaper on February 27th, 2008 filed in Actionscript 3, Components, Flash CS358 Comments »
Welcome to my first post! I never had the motivation to create a blog though I read many of them. The only reason this blog is in existence is because I wanted to share my new Actionscript 3 scrollbar. After creating it, I realise non-programmers may need some instructions on how to use it. To keep editing my website would be tedious and I wanted to keep my website simple. Also, I will post more of such stuff and my website would not be a suitable place.
This scrollbar was created more or less on a whim so it may not meet all needs. As Actionscript 3 is starting to take off rapidly, most websites will soon be created using Actionscript 3. Scrollbar is one of the basic requirement but from experience, it is also hard to find a customisable scrollbar component unless its a paid one.
Anyway I will just do a brief explanation. First you will need to download the files. You will see a caurina folder, a Scrollbar.as and two fla.
Using the scrollbar
- Open the scrollbar_demo1.fla in Adobe Flash CS3.
- You can copy the scrollbar movieclip into your own flash file. Remember that the caurina folder and Scrollbar.as must be copied into your project folder as well.
- In the actions layer, 1st frame, open up the actions panel by pressing F9.
- You will see this line of code. sb.init(txt_mc, “easeoutBack”, 2, true, 2); Copy this code into your fla file where you need to use the scrollbar.
Scrollbar parameters
- I will now explain this line of code, sb.init(txt_mc, “easeoutBack”, 2, true, 2); sb is the instance name of your scrollbar. So remember to name the scrollbar.
- txt_mc is the name of your scrolling target. Right now, I basically scroll movieclips instead of text. By doing this you can add images to your scrolling target and it will still work. So it also means you must convert your text into movieclips. Remember to name your scrolling target after you convert it into a movieclip.
- The next parameter, “easeOutBack” is the scrolling effect. As I used Tweener to do the effects, you can find the type of effects here. Look under transition types.
- The number you find after specifying the effects type is the timing of the effect. If its higher, means the scrolling will be slower and the transition more obvious. Put 0 if you want to scroll normally.
- The next parameter determines your scrolling arrows visibility.
- The last parameter is a scrolling buffer. You will need this if you adjust the length of the scroller. The longer your scroller, the bigger the number should be. You use this to adjust how high you want to scroll to.
Visual Adjustments
- To change the scrollbar visually, you just do it manually. Means you can go to the Flash library you will find an scrollbar assets folder. You can change colours or add in your own images into the movieclips.
- Take note that if you want to increase the height of the scrollbar, please go and adjust the track movieclip in the scrollbar assets folder instead of just changing the height of the scrollbar.
- After adjusting the scroll track and if you want the scroll arrows, you got to adjust them so that they are on the tip of the scroll track. Do not overlap the arrows on the track.
Features of Flashscaper AS3 Scrollbar
- Customizable
- Mouse wheel scrolling
- Scrolling effects
- Auto detect if scrollbar is needed
