Wednesday, July 4, 2012

actionscript

PAGE EVENT

package com {
import flash.events.Event;
public class PageEvent extends Event {
public static const CHANGE_PAGE = "changePage";
public var vars:Object;
public function PageEvent( _type:String,
_vars:Object,
_bubbles:Boolean=false,
_cancelable:Boolean=false ) {
constructor code
super( _type, _bubbles, _cancelable); //refers to the parent class(Event)
vars = _vars; //{type:"up"}
}
public override function clone():Event {
return new PageEvent( type, vars, bubbles, cancelable );
}
}
}


MAIN

package com {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;
import com.PageEvent;
public class Main extends MovieClip {
var swfLoader:Loader = new Loader();
var aboutURL:URLRequest = new URLRequest('about_page.swf');
public function Main() {
this.btn_back.addEventListener(MouseEvent.CLICK, backClick);
this.btn_go_up.addEventListener(MouseEvent.CLICK, go_up_Click);
addEventListener (PageEvent.CHANGE_PAGE, doSomething);
}
private function doSomething(e:PageEvent){
trace("received CHANGE_PAGE");
trace(e.vars.eileen);
trace(e.vars.shiro);
}
private function backClick (e:MouseEvent){
this.btn_back.gotoAndPlay(2);
swfLoader.load(aboutURL);
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, setupSwf)
}
private function setupSwf(e:Event){
this.pageholder.addChild(swfLoader);
var mc = swfLoader.content;

}

private function go_up_Click (e:MouseEvent){
this.y -= 50;
}
}
}


ABOUT

package com {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import com.PageEvent
public class About extends MovieClip {
public function About() {
this.btn_back_about.addEventListener(MouseEvent.CLICK, backClick_about);
this.btn_trigger.addEventListener(MouseEvent.CLICK,tellMain);
}
private function tellMain(e:MouseEvent){
trace("tell main to do something");
var evt = new PageEvent(PageEvent.CHANGE_PAGE, {eileen:"sleep", shiro:"faint"} ,true);
dispatchEvent (evt);
}
private function backClick_about (e:MouseEvent){
this.btn_back_about.gotoAndPlay(2);
}
}
}

Wednesday, January 11, 2012

WD 2 Competitors Website

Competitors of SSF Home in Malaysia

1. http://www.harveynorman.com.my/index.htm



















- should make the layout bigger to not waste the space beside
- not much details on the product
- words are too packed together
- photo quality are not that good
- some fonts are too small

2. http://www.redapple.com.my/index.php



















- the slide show can be bigger. some of the words are hard to read.
- navigation bar is quite interesting
- photos size are quite small
- content are detailed
- organised layout

3. http://www.lpfurniture.com/main.htm



















- footer can hardly be seen
- alot of text
- info not updated
- products can be only by members of the website
- layout is organised
- the title's font can be better

4. http://www.ikea.com/my/en/



















- lots of info and very detailed.
- layout is organised
- info updated
- overall website is nice and simple
- pictures are in good quality

WD 2 Beautiful websites..

1. http://www.level2d.com/home.html



















- quite interactive.has some rollover effects and some animations.
- creative designs and attractive to viewers.
- organised layout.know where the info will appear.
- nice color combination
- typography is simple and suitable for the website.
- area for content is quite small

2. http://www.giselejaquenod.com.ar/blog/



















- bright colors make the website look very attractive and fun
- interesting navigation bar
- typography for the navigation and title can be better
- overall layout is organised

3. http://www.brownbagfilms.com/#/



















- quite interactive..has rollover effect and some animations.
- website is cool and has creative graphics
- content is done creatively, makes me wants to browse more.
- layout is organised.
- but loading takes some time.
- can barely see the footer

4. http://adventuresoftinger.com/



















- content is very interesting and attracting
- graphic is cute
- colour combination is good
- layout is very organised
- typography is suitable
- but loading takes some time