Blog Archives

NSFetchResultController be datasource

http://www.objc.io/issue-4/full-core-data-application.html

Posted in mobile

ONLY_ACTIVE_ARCH

debug YES becoz u only want to build in your testing device (or compile too long time and waste the other arch build) release NO u should make sure all ios devices can run

Posted in mobile

fill the image in imageView according to fit width, and auto height

self.artworkView.contentMode = UIViewContentModeScaleAspectFill; [self.artworkView makeConstraints:^(MASConstraintMaker *make) { make.centerX.equalTo(self.superview.centerX); make.centerY.equalTo(self.superview.centerY); make.width.equalTo(self.superview.width); }];

Posted in mobile

set segue.destinationViewController property

method 1. typecast APPDetailViewController myController = (APPDetailViewController)segue.destinationViewController; myController.myString = string; method 2. selector – (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.destinationViewController respondsToSelector:@selector(setMyData:)]) { [segue.destinationViewController performSelector:@selector(setMyData:) withObject:myData]; } } in destination View Controller @property (nonatomic, strong) MyData *myData;

Posted in mobile

Assertion failure in -[XXXView layoutSublayersOfLayer:]

2014-08-06 12:17:02.511 Jtab[6255:60b] *** Assertion failure in -[JTChordCollectionView layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2935.138/UIView.m:8794 2014-08-06 12:17:02.512 Jtab[6255:60b] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Auto Layout still required after executing -layoutSubviews. JTChordCollectionView’s implementation of -layoutSubviews needs to call super.’ [super layoutSubviews]; [chordLabelView

Posted in mobile

fitFontSize

-(void)fitFontSize:(UILabel*)label { CGFloat actualFontSize; [label.text sizeWithFont:label.font minFontSize:label.minimumFontSize actualFontSize:&actualFontSize forWidth:label.bounds.size.width lineBreakMode:label.lineBreakMode]; label.font = [label.font fontWithSize:actualFontSize]; label.adjustsFontSizeToFitWidth = NO; } usage: self.keyLabel = [self makeLabel:[UIFont fontWithName:@"AkzidenzGroteskBE-BoldCn" size:45.0f]]; self.keyLabel.frame = CGRectMake(0, 0, self.cellWidth / 4.0, self.cellHeight); self.keyLabel.text = @”C”; [self fitFontSize:self.keyLabel]; [self.keyLabel sizeToFit];

Posted in mobile

if you using storyboard, but some property need set in code (may be xcode GUI dun provide enough setting)

drag to property first write a setter, it will autoload // this function will auto load by storyboard -(void)setKeyLabel:(UILabel *)keyLabel { if (_keyLabel != keyLabel) { _keyLabel = keyLabel; _keyLabel.font = [UIFont fontWithName:@"SOME-FONT-NAME" size:20.0f]; _keyLabel.textColor = SOME-UI_COLOR; } }

Posted in mobile

Masonry in ios

constraints is funny if u use Masonry or updateConstraints to a UIView, may no reaction till u drag one constraints to it… Becoz storyboard default has constraints already (if u dun drag any) it just the current frame be the

Posted in mobile

auto size font size uilabel

- (void)drawPageLabel { self.pageLabel = [[UILabel alloc] init]; [self addSubview: self.pageLabel]; self.pageLabel.textColor = [UIColor blackColor]; [self.pageLabel setAlpha:0.5]; self.pageLabel.font = [self.pageLabel.font fontWithSize:140]; [self.pageLabel setNumberOfLines:1]; self.pageLabel.adjustsFontSizeToFitWidth = YES; self.pageLabel.minimumScaleFactor = 0.5f; // get a approiate font size using “1″ char self.pageLabel.text =

Posted in mobile

kvo , key value observer script

in swipeView: pair set: – willChangeValueForKey: – didChangeValueForKey: or call this – setValue:forKey: [self.swipeView addObserver:self forKeyPath:@"currentItemIndex" options:NSKeyValueObservingOptionNew context:nil]; self 個到有 -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { NSLog(@”hi”); }

Posted in mobile

- (CGSize)sizeThatFits:(CGSize)size

- (CGSize)sizeThatFits:(CGSize)size the latter size is the boundary for the caller … so should be the superview size

Posted in mobile

show all text uilabel

label.text = “some text”; label.numberOfLines = 0; [label sizeToFit]; CGRect frame = label.frame; frame.size = [label sizeThatFits:CGSizeMake(320, 10000)]; label.frame = frame;

Posted in mobile

define const for color

#define ULIKELA_ORANGE [UIColor colorWithRed:244.0/255.0 green:189.0/255.0 blue:15.0/255.0 alpha:1.0]

Posted in mobile

when u add coreData, error : Receiver type is forward declaration

http://stackoverflow.com/questions/20238772/receiver-type-is-forward-declaration

Posted in web

Markdown playground

test of markdown line 1 line 2

Posted in web

navigation bar overlap webview ios7

webView.scrollView.contentInset = UIEdgeInsetsMake(64, 0, 0, 0); webView.scrollView.scrollIndicatorInsets = UIEdgeInsetsMake(64, 0, 0, 0);

Posted in mobile

vagrant simple example

# -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don’t touch unless you know what you’re doing! VAGRANTFILE_API_VERSION = “2″ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.provider “virtualbox” do |v| v.memory = 1024 v.cpus = 1 end config.vm.define

Posted in web

sqlalchemy __init__ without declare all column property

def __init__(self, *agrs, **kwargs): super(Song, self).__init__(**kwargs) self.artist_hash = self.artist + “_” + self.md5

Posted in web

vagrant override ssh port forwarding

default_config.vm.network “forwarded_port”, guest: 22, host: 2222, auto_correct: false, id: “ssh”

Posted in web

python property, getter, setter

Try this: Python Property The sample code is: class C(object): def __init__(self): self._x = None @property def x(self): “””I’m the ‘x’ property.””” print “getter of x called” return self._x @x.setter def x(self, value): print “setter of x called” self._x =

Posted in web

virtualenv python setup.py install will only install in the virtual env py/lib/python3.4/site-packages

virtualenv -p /usr/bin/python3.4 py3.4 (without source … ) py3.4/bin/python setup.py install by using env python program, it will not install in local, but in env

Posted in web

python framework mostly call views be controller

and views are templates

Posted in web

summarize of @wrap

>>> add = wrapper(add) This pattern can be used at any time, to wrap any function. But if we are defining a function we can “decorate” it with the @ symbol like: >>> @wrapper … def add(a, b): … return

Posted in web

[python] 中文字 secure_filename

http://tuzii.me/diary/52e9a4e49c20116d8ca80dd4/%E8%A7%A3%E5%86%B3fLask%E4%B8%ADsecure_filename%E8%8E%B7%E5%8F%96%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%90%8D%E9%97%AE%E9%A2%98

Posted in web

[ios] filter music from ios by MPMediaQuery

MPMediaQuery *songQuery = [MPMediaQuery artistsQuery]; // OR MPMediaQuery *songQuery = [MPMediaQuery songsQuery]; // local only [songQuery addFilterPredicate:[MPMediaPropertyPredicate predicateWithValue:[NSNumber numberWithBool:NO] forProperty:MPMediaItemPropertyIsCloudItem]]; NSArray *songs = [songQuery items]; And u will retrieve a list … but music video is still here… becoz music

Posted in mobile

play pause button ios

method 1 UIButton image change 換圖 method 2 playbutton.hidden = YES pauseButton.hidden = NO

Posted in mobile

ios delegate tutorial

http://www.roostersoftstudios.com/2011/04/12/simple-delegate-tutorial-for-ios-development/

Posted in 編程

squidman see GET parameter

strip_query_terms off add this into the template of squid if u want more parameter add a log formart and using access log to activate it

Posted in 編程

AFNetworking using manager to eat @”text/plain”

make AFHTTPRequestOperationManager can eat text/plain (or other content-type) rmb re-init serializer for it… the default one like JSON very much … but i m not doing JSON … AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; manager.responseSerializer = [AFHTTPResponseSerializer serializer]; manager.responseSerializer.acceptableContentTypes = [NSSet

Posted in mobile

[ios] debugger show nil 不用驚

check check 係咪 release mode, 或者 optimize 左 個 compiler …

Posted in mobile

import vamp into ios

put all library into a Vendors/VampPlugin folder add -lstdc into build settings, other linker flags edit the to “library” if needed (dun add the simple host first) comment the main a gXXx.c , since it crash the “main” compile and

Posted in mobile

install harmtrace in linux

install haskell-platform update cabal cabal install HarmTrace it will warn u no gsl install gsl then sudo apt-get install libgsl0-dev liblapack-dev then cabal install HarmTrace finish ~/.cabal/bin/harmtrace harmtrace recognise –file=/Users/roychung/project/harmtrace/let_it_be.mp3 –mode=group –grammar=pop -o=/Users/roychung/project/harmtrace/output –log-dir=/Users/roychung/project/harmtrace/log –csv-dir=/Users/roychung/project/harmtrace/csv –sa-path=/Users/roychung/project/harmtrace/sonic-annotator –vamp-dir=/Users/roychung/project/harmtrace/vamp in /Users/roychung/project/harmtrace/vamp need

Posted in web

something about harmtrace on mac and ubuntu

i m going to install your harmtrace in my mac to make some chord file. but unluckily, i always got buildFail when linking to a package call hmatrix-gsl-stats-0.2 Loading package vector-0.10.0.1 … linking … done. Loading package hmatrix-0.15.2.1 … linking

Posted in 編程

VM on mac for testing in ubuntu

https://www.virtualbox.org/ http://www.vagrantup.com/ box list : http://www.vagrantbox.es/

Posted in 無分類, 編程

[ios] SEL

http://kirenenko-tw.blogspot.hk/2012/05/selector.html

Posted in mobile

NSNotificationCenter, dispatchEvent and addEventListener d fd

http://furnacedigital.blogspot.hk/2011/09/observer-pattern-nsnotificationcenter.html

Posted in mobile

[ios] audio conversion using AVAssetExportSession / AVAssetWriter from AVFoundation

Target : ipod library -> aiff / wav / caf (which eat by libsndfile (already ported to ios)) first, i think AVAssetExportSession can solve my problem due to this link: http://tuchangwei.github.io/blog/2013/06/04/how-to-export-mp3-from-ipod-library/ but it is for converted-to-mp3 only (or converted-to-m4a) (Trick

Posted in mobile

[go] getting start in mac local

http://stackoverflow.com/questions/21499337/cannot-set-gopath-on-mac-osx GOPATH in ~/.bash_profile and GoSublime

Posted in web

[ios] custom font

http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/

Posted in mobile

strong vs retain and weak vs assign and blah blah blah

After reading so many articles, SO posts and demo apps to check variable property attributes, I decided to put all the attributes information together: atomic //default nonatomic strong=retain //default weak retain assign //default unsafe_unretained copy readonly readwrite //default Below is

Posted in mobile

cannot get position, or cell reuse animation cannot control

if u r doing AVAudioPlayer, and u grep currentTime, if u wanna has a more accurate time, it cannot do it … since it is quite discrete (for compress song like mp3) … so CACurrentMediaTime() may help u beginTime =

Posted in mobile

storyboard want something to update by programming

override the setter -(void)setKeyLabel:(UILabel *)keyLabel { if (_keyLabel != keyLabel) { _keyLabel = keyLabel; _keyLabel.font = [UIFont fontWithName:@"AkzidenzGroteskBE-BoldCn" size:20.0f]; } }

Posted in mobile

[ios] simple method to increase hitarea for a button

btn.frame = CGRectInset(btn.frame, -x, -y) OR togglebutton.contentEdgeInsets = UIEdgeInsetsMake(0, 15, 0, 0); //set as your reqirement

Posted in mobile

[ios] KVO Key-Value Observing (咪即係 改 value -> dispatchEvent 器)

http://blog.riaproject.com/objective-c/2147/%E4%BA%86%E8%A7%A3-objective-c-%E4%B8%8A%E7%9A%84-kvokey-value-observing-%E6%A9%9F%E5%88%B6.html

Posted in mobile

[ios] declare const

1. private myfile.m NSString *const SelectionSort = @”SelectionSort”; 2. public myfile.h extern NSString *const SelectionSort; and in myfile.m define them myfile.m NSString *const SelectionSort = @”SelectionSort”; It works, but only if you need a non global constant. Static constant is

Posted in mobile

UICollectionView 的心路歷程

project 是寫一個 guitar chord + music player data 只有 那些 chord, 我的 project 就是要 用 cell 一格格的跟住音樂 著燈 1. using UICollectionView problem 1: offset 因為我用了 endTime – startTime, 原來會累積 一些 error ,導致後面不準 problem 2: UICollectionView reloaditemsAtIndexPath 有 animation 在閃 求其

Posted in mobile

[ios] view init some view

-(void)setFrame:(CGRect)frame { [super setFrame:frame]; // do yr graphics stuff here }

Posted in mobile

list 內 的 hyperlink 不能 preventDefault

http://learn.jquery.com/events/event-delegation/

Posted in web, 無分類

jquery know user view the element

using 3rd party plugin (same concept as calculating the offset) https://github.com/teamdf/jquery-visible concept: http://www.jquery4u.com/dom-modification/jquery-check-element-view/

Posted in web

[magento] the only way that can getimageurl from categroy

http://www.magentocommerce.com/boards/v/viewthread/273234/#t382241

Posted in web

[magento] catalog product widget

magento\app\design\frontend\base\default\template\catalog\product\widget\new\content

Posted in web

[magento] some important file

read the following file can know more about the route and flow store/app/code/core/Mage/Core/Controller/Varien/Front.php

Posted in web

[magento] debugging ? open css hint

need some tricks: http://www.redlightblinking.com/blog/magento-debugging-how-to-debug-template-paths-logging-and-display-errors MAGENTO DEBUGGING – HOW TO DEBUG TEMPLATE PATHS, LOGGING AND DISPLAY ERRORS Categories: Blog, Magento Developing in Magento without these debugging tips can be challenging! Here is how you can debug magento: Turn on Template Path

Posted in web

get sharedpreferences from android

http://stackoverflow.com/questions/2614719/how-do-i-get-the-sharedpreferences-from-a-preferenceactivity-in-android

Posted in mobile

Accessing Windows system variables in Java 1.4

http://stackoverflow.com/questions/1048661/accessing-windows-system-variables-in-java-1-4

Posted in 編程

正野 mobile game tutorial

http://www.raywenderlich.com/

Posted in mobile

Cocos2D-X Tutorial for iOS and Android: Space Game

http://www.raywenderlich.com/33752/cocos2d-x-tutorial-for-ios-and-android-space-game

Posted in mobile

rhythm game tutorial in JAVA

http://www.streamhead.com/easy-bpm-calculation-in-java/

Posted in 編程

android timer, or ScheduledThreadPoolExecutor

http://steve.odyfamily.com/?p=12 threadPoolExecutor = new ScheduledThreadPoolExecutor(1); threadPoolExecutor.scheduleAtFixedRate(new Runnable() { @Override public void run() { loadData(); } }, 0, 1, TimeUnit.MINUTES); t = new Timer(); t.schedule(new TimerTask() { @Override public void run() { loadData(); } }, 0, 60*1000);

Posted in mobile

multiple domain to subfolder htaccess rewrite

RewriteEngine On RewriteBase / # ————————————— # BEGIN Domain to folder mapping # pointing so9sad.com to folder_1 ReWriteCond %{HTTP_HOST} so9sad.com ReWriteCond %{REQUEST_URI} !so9sad/ ReWriteRule ^(.*)$ so9sad/$1 [L] # pointing youtube9loop.com to folder_2 ReWriteCond %{HTTP_HOST} youtube9loop.com ReWriteCond %{REQUEST_URI} !youtube9loop/ ReWriteRule ^(.*)$

Posted in web

Twitter User Search Document

https://dev.twitter.com/docs/using-search

Posted in web

抄到佢仆街 電擊文庫 layout

http://dengekibunko.dengeki.com/20th/?rf=bunkoOFFICIAL

Posted in web

gaplo 推薦 素材網

http://www.ashinari.com/

Posted in web

free music loop (chris recommend)

http://www.partnersinrhyme.com/pir/free_music_loops.shtml

Posted in web

footer stick to height

http://ryanfait.com/sticky-footer/

Posted in web

iphone app beginner

http://maciku.blogspot.hk/2009/12/iphone-objective-c.html

Posted in mobile

jquery template

http://www.websanova.com/tutorials/jquery/jquery-plugin-development-boilerplate#.UVHbVVvN9TB

Posted in web

a jQuery dynamic layout plugin

http://www.gougouzian.fr/projects/jquery/dylay/

Posted in web

整 drop down menu 必看

http://www.inside.com.tw/2013/03/21/amazon-web-pull-down-menus?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+inside-blog-taiwan+%28%E7%B6%B2%E8%B7%AF%E8%B6%A8%E5%8B%A2%E8%A1%8C%E9%8A%B7%E8%88%87%E9%96%8B%E7%99%BC%29

Posted in web

Mobile browser detection for WordPress – embedded is_mobile() function

http://www.dannyherran.com/2012/03/mobile-browser-detection-for-wordpress-embedded-is_mobile-function/

Posted in web

[靚] Brands Icons And Color Style Guides

http://www.smashingmagazine.com/2013/03/10/free-brand-icons-color-style-guides-icons/

Posted in web

回帶睇完又睇, php 30 common tips (u always forget)

http://net.tutsplus.com/tutorials/php/30-php-best-practices-for-beginners/

Posted in web

Using Dynamic Font with canvas using Typeface.js

http://typeface.neocracy.org/

Posted in web

Dynamic loading of Facebook Comments Plugin throwing JS error in IE 6/7/8

http://stackoverflow.com/questions/5516549/dynamic-loading-of-facebook-comments-plugin-throwing-js-error-in-ie-6-7-8

Posted in web

php and mysql time conversion

http://www.richardlord.net/blog/dates-in-php-and-mysql

Posted in web

fb logout by php

http://cacovsky.wordpress.com/2011/05/17/login-with-facebook-php-sdk-a-tutorial/

Posted in web

cscart php hook advance using (like adding search field before SQL)

http://forum.cs-cart.com/topic/20279-php-controller-4-creating-php-hooks/

Posted in web

how to override a skin / template

http://forum.cs-cart.com/topic/13317-template-to-override-not-a-hook/

Posted in web, 編程

Hiding Product tabs in Admin

http://forum.cs-cart.com/topic/26409-hiding-product-tabs-in-admin/

Posted in web

apache rewriteCond 的小知識

http://www.skygq.com/2011/02/21/apache%E4%B8%ADrewritecond%E8%A7%84%E5%88%99%E5%8F%82%E6%95%B0%E4%BB%8B%E7%BB%8D%E8%BD%AC/

Posted in web

knob code scriptlet

http://code.google.com/p/androidmidipad/source/browse/trunk/src/com/midipad/controls/Knob.java?r=62

Posted in mobile

Solve WebView problem

  add this back http://code.google.com/p/android/issues/detail?id=20446 code.google 有discuss http://code.google.com/p/android/issues/detail?id=25722 http://stackoverflow.com/questions/5213635/honeycomb-hardware-acceleration try this, turn off the alpha channel (no use) http://thehelios.wordpress.com/2012/09/13/hardware-acceleration-on-android-4-0/ more ref, and have many hints ! http://developer.android.com/guide/topics/graphics/hardware-accel.html change to translateX (try) http://stackoverflow.com/questions/13500452/android-webview-renders-blank-white-view-doesnt-update-on-css-changes-or-html or read this add this -webkit-overflow-scrolling: touch; http://stackoverflow.com/questions/11370418/scrolling-through-touchmove-is-choppy

Posted in mobile

smooth transition trial

1. try webkit back face visibility hide 2. try the slide animation time is linear ie deltaX * 10ms, but not diff distance but same time 3. try window.location.href = “#body” to do a fast auchor good luck

Posted in mobile

Swipe for mobile

https://github.com/bradbirdsall/Swipe

Posted in web

http://hk.streetvoice.com/ d layout

function enhance http://documentcloud.github.com/underscore/# layout framework http://isotope.metafizzy.co/docs/introduction.html

Posted in web

so9sad

http://www.catswhocode.com/blog/create-your-own-private-twitter-site-using-wordpress

Posted in web

活用 CI log to know a model is loaded

You can use the log_message() function and put it in the constructor, so it will be executed when it initiated Put this in your model’s constructor (parent::Model()) log_message (“debug”, “Yourmodel is loaded”); don’t forget to set the log config to

Posted in web

wp solve break line problem

http://rubayathasan.com/reviews/enabling-line-break-in-wordpress/

Posted in web

codeigniter x fb connect

http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/

Posted in web

ad by google for android

https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals

Posted in mobile, 無分類

mobile native app wrapper for js and html

http://www.lis186.com/?p=2030

Posted in web

take html for wp content

http://wordpress.org/support/topic/get-a-post-content-with-proper-html-tags

Posted in web

phonegap on scratch

http://mobile.tutsplus.com/tutorials/phonegap/phonegap-from-scratch-app-template/

Posted in mobile

safe-characters-for-friendly-url

http://stackoverflow.com/questions/695438/safe-characters-for-friendly-url

Posted in web

%2F 係 browser url 到照當 “/”

http://www.jampmark.com/web-scripting/5-solutions-to-url-encoded-slashes-problem-in-apache.html

Posted in web

jquery wheel [good]

http://anthonyterrien.com/knob/

Posted in mobile, web

jquery 中間個 wheel

http://www.jquery-plugins.info/view.php?id=12004

Posted in mobile

jquery 摔左摔右 plugin

http://wipetouch.codeplex.com/

Posted in mobile

iAd

http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/iAd_Guide/BannerAdvertisements/BannerAdvertisements.html#//apple_ref/doc/uid/TP40009881-CH3-SW2 http://bees4honey.com/blog/tutorial/how-to-add-iad-banner-in-iphoneipad-app/

Posted in mobile

going to extend the controller in CI

http://stackoverflow.com/questions/8342232/extending-the-controller-class-in-codeigniter

Posted in web

html5 ebook framework for iphone

http://bakerframework.com a tutorial about e magazine in mobile http://ios-blog.co.uk/tutorials/how-to-make-a-magazine-app-in-ios-part-ii/

Posted in mobile, 編程

simple login of CI

http://www.codefactorycr.com/login-with-codeigniter-php.html

Posted in web

加點點落d 圖到,low res 都唔驚

http://jsfiddle.net/weissraum/yF3Zx/

Posted in web

ie9 web font …

http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/

Posted in web

quite good example of mvc

http://maestric.com/doc/java/spring/mvc

Posted in web

右 click 之 menu

http://www.class.pm/files/jquery/jquery.contextmenu/demo/#Item3

Posted in web

[codeigniter] load model , want parameter

http://codeigniter.com/forums/viewthread/115681/

Posted in web

Which method is best to select values present in one table but missing in another one?

http://explainextended.com/2009/09/18/not-in-vs-not-exists-vs-left-join-is-null-mysql/

Posted in 編程

Learning JavaScript Design Patterns ( a good book should read )

http://addyosmani.com/resources/essentialjsdesignpatterns/book/

Posted in web

MIME does not mean anything … just check the stupid extension …

http://stackoverflow.com/questions/8028184/mime-type-spoofing

Posted in web

use gettext to set the language of php

http://stackoverflow.com/questions/1192665/adding-support-for-i18n-in-php-with-gettext command “locale -a” to check the lang code set rmb zh-HK , 細階細階-大階大階

Posted in web

click input file for firefox

$(“#uploadImg”).click(function(e) { $(“#fileUpload”).trigger(“click”); }); but it may fail for IE

Posted in web

Check browser can drop and drop files

http://stackoverflow.com/questions/5290861/determine-if-browser-is-drag-and-drop-capable

Posted in web

JS public private static

http://stackoverflow.com/questions/1535631/static-variables-in-javascript

Posted in web, 編程

web font to css

http://www.howtoplaza.com/how-to-use-custom-fonts-on-your-website-with-css

Posted in web

save me time ! solve BeanCreationException for TilesConfigurer

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ’tilesConfigurer’ defined in ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.servlet.view.tiles2.TilesConfigurer]: Constructor threw exception; http://richardbarabe.wordpress.com/2009/02/23/apache-tiles-2-integration-with-spring-mvc/ Update: add this dependencies to solve : <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-el</artifactId>

Posted in web, 編程

Using tile to define layout

http://viralpatel.net/blogs/2010/07/spring-3-mvc-tiles-plugin-tutorial-example-eclipse.html

Posted in web

a good tutorial to start spring web mvc

http://blog.springsource.org/2011/01/04/green-beans-getting-started-with-spring-mvc/

Posted in web

flex library very good, wirte flex application 必備

https://github.com/flex-users/flexlib

Posted in AS3

cloudflare , suggest server service

http://www.cloudflare.com

Posted in web

[素材] many icons

http://css-tricks.com/flat-icons-icon-fonts/

Posted in web

unable to bind to property的解决办法

http://bbs.9ria.com/thread-22017-1-1.html see lower for better solution

Posted in AS3

good psd for web design

http://www.designerhk.com/blog/8/15-beautiful-and-useful-free-psd-files

Posted in web

Flex alert no button, answer 2 work

http://stackoverflow.com/questions/666317/disable-yes-button-in-flex

Posted in AS3

[flex] drag drop using list, very quick dev!

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7cfd.html#WS7d89194359d2921c55a0a0ac1247d0abc10-8000

Posted in AS3

Learn cairngorm, framework of flex

http://erinylin.blogspot.com/2008/12/flex-cairngorm.html

Posted in AS3, 編程

why SwiftSuspenders and use Inject

http://cookbooks.adobe.com/post_Custom_metadata_in_three_simple_steps_-11907.html

Posted in AS3, 編程

Embed movieClip in flex, on9, u will get error

//[Fault] exception, information=TypeError: Error #1034: Type Coercion failed: cannot convert tex_main_menu@6921e21 to flash.display.MovieClip. solution 1 : use sprite or solution 2 : add one more frame in sprite , then it is movieClip http://chrismweb.com/2011/03/20/problems-with-embedding-swfs-in-actionscript-or-flex/

Posted in AS3

[robotlegs][flex] capture the event in command , so i can get the data which is bring by event

http://knowledge.robotlegs.org/discussions/questions/163-mediator-passing-event-to-command-is-null

Posted in AS3

study 下 swiftsuspenders [as3][flex]

http://www.tillschneidereit.de/2009/09/21/introducing-swiftsuspenders/

Posted in AS3

FLEX module的使用(转载)

1 ModuleLoader组件概述 1.1Module技术简介 flex的Modules技术是可以被flex程序使用的一个swf文件,它不能脱离程序独立运行,但是多个程序之间可以共享它。 flex的Modules技术将应用程序分割成小块、模块,主程序动态的加载所需要的模块。主程序在启动时并不全部加载所有的模块。当用户和模块没有交互的时候它不需要加载模块,同时它在模块不需要的时候可以卸载模块并释放内存和资源。[1] flex的Modules技术主要有如下的优点: 让swf文件初始下载尺寸更小 让加载时间更短 对应用程序更好的封装性 1.2ModuleLoader组件功能 ModuleLoader组件是一种可视化的组件,方便开发人员在运行期间动态地加载和卸载module。 注:加载:从服务器下载到浏览器中 1.3 ModuleLoader类的继承关系 包:mx.modules[2] ModuleLoaderInheritanceVBoxInheritanceBoxInheritanceContainerInheritanceUIComponent 注:ModuleLoader类暂无spark组件 相关类: * IModuleInfo – module接口,所有的module都实现了此接口,可以提供module信息,比如url 和 加载状态。 * Module – 基于MXML的module的基类 * ModuleBase –基于ActionScript的module基类 * ModuleManager –一个系统只有一个此类,用于管理所有动态加载的module * ModuleEvent – module相关事件 1.4 相似组件

Posted in AS3

Flex, Mate, Modules and GC – another approach

http://mate.asfusion.com/forums/topic.php?id=410

Posted in AS3

Using JavaScript’s Prototype with MVC

http://net.tutsplus.com/tutorials/javascript-ajax/using-javascripts-prototype-with-mvc/

Posted in web

Dump for as3

http://qops.blogspot.com/2007/06/dump-as3.html

Posted in AS3

When to new your model?

http://joelhooks.com/2011/03/12/an-introduction-to-robotlegs-as3-part-2-models/ you dun need actually public class AuthorModel extends Actor { private var _list:Array; public function get list():Array { if(!_list) initializeList(); return _list; } protected function initializeList():void { var twain:Author = new Author(“Twain”); var poe:Author = new Author(“Poe”); var plato:Author

Posted in AS3

solve module load in flex, getStyle problem

Flex App 直接引用外部 Module 的問題 最近同事遇到一個 Flex 問題,只要 Module 內放了其它組件 執行就會出現各種奇怪 Error 後來發現是因為在 Main Application 直接引用編譯到 Module Class 然後又企圖用 ModuleLoader 再載入一次相同的 Module SWF 當然這樣做是錯誤的範例,Flash Builder 也會給予警告 Warning: Mod is a module or application that is directly referenced. This will cause

Posted in AS3

robotlegs in module, 3 種方法解決

1. http://joelhooks.com/2010/05/02/modular-robotlegs/ 裝呢個 addon, 共用同一個 injector, 但不能使用 module loader min code of this method http://blog.yoz.sk/examples/ModularRobotlegs/srcview/ 2. http://labs.riamore.com/content/robotlegs/examples/dynmodules 可以 dynamic 了,但其實是將 module 的 applicationDomain hardcore 同 mainApp 一樣 3. http://ticore.blogspot.com/2011/10/robotlegs-module-issue.html 一人一個獨立 robotlegs,但要 hack 少少 code 先做到,其實都係 override 下 je

Posted in AS3

asynchronous-processes-and-robotlegs [READ pls]

http://alecmce.com/library/asynchronous-processes-and-robotlegs

Posted in AS3

change the stupid namespace from flashdevelop default template of mx

xmlns:mx=”library://ns.adobe.com/flex/mx” It state is halo, if u dun change or u cannot use canvas blah blah blah

Posted in AS3

get URL by loaderInfo or BrowserManager

http://flexperiential.com/2010/05/06/browsermanager-returns-null/ for loaderInfo , pls see the comment

Posted in AS3

RIA free ebook

http://www.riabook.cn/

Posted in 編程

flex 3 in flex 4

http://cnx.org/content/m34631/latest/

Posted in AS3

advanced use module in flex, in enterprise scare

http://labs.bsb.com/2011/02/modularity-in-flex-enterprise-applications/

Posted in AS3

new IDE , try !

http://www.sublimetext.com/

Posted in 編程

compile module with flashdevelop and some tutorial about modules

http://smithfox.iteye.com/blog/827743 http://www.permadi.com/blog/2010/10/using-modules-in-flex-action-script-projects/ flex-modular-application-development-using-cairngorm-architecture http://xebee.xebia.in/2010/10/11/flex-modular-application-development-using-cairngorm-architecture/

Posted in AS3

using flashdevelop to compile module

http://www.ghostwire.com/blog/archives/compiling-module-swfs-using-flashdevelop/

Posted in AS3

Flex Problem

急急。。。Flex4 Module中不能Alert? http://bbs.airia.cn/thread-10383-1-1.html ModuleLoader.loadPolicy http://www.tink.ws/blog/flex-4-modules/ A flex code example using module http://www.riameeting.com/examples/parsley_module/srcview/index.html Create an ActionScript-Based Module http://mijimiji.com/blog/?p=54

Posted in AS3, 無分類

good comment in a flex problem

http://flexbugs.wordpress.com/2010/06/18/flex-4-modules-bug/

Posted in AS3

keep-generated-actionscript -> mxml to as3

http://saravananrk.wordpress.com/2008/05/26/keep-generated-actionscript-in-flex/

Posted in AS3

Must read for deploy AIR on playbook

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Tips-Definitive-guide-to-AIR-apps-for-playbook/td-p/1080047

Posted in mobile

js object and js function class

var yung = { variable : xxx, add: function () { } } they are all accessible by other yung.Class = function(someSetting) { var privateVar this.publicVar function privateFunction function publicFunction //public function $.extend(this, { publicFunction: publicFunction }); yung.obj = new

Posted in web

unload module effectively FLEX

http://blogs.adobe.com/tomsugden/2010/02/how_to_unload_modules_effectively.html

Posted in AS3

[FLEX] modular robotlegs !

http://joelhooks.com/2010/05/02/modular-robotlegs/

Posted in AS3

view states using AS3 only, no mxml

http://www.digitalprimates.net/author/tapper/2006/03/14/creating-view-states-purely-in-as3/

Posted in AS3

flex minimal

http://stackoverflow.com/questions/141288/possible-to-use-flex-framework-components-without-using-mxml

Posted in AS3

very good tutorial for deploy blackberry playbook app

http://www.hsharma.com/tutorials/10-easy-steps-to-package-and-sign-air-apps-for-playbook/

Posted in mobile

blackberry debug token

http://docs.blackberry.com/en/developers/deliverables/27280/Running_unsigned_apps_debug_tokens_1585072_11.jsp http://docs.blackberry.com/en/developers/deliverables/27280/Configure_app_signing_from_cmd_line_1463563_11.jsp About Configuring your application http://docs.blackberry.com/en/developers/deliverables/27280/Configuring_your_application_1524626_11.jsp About tablet xml http://docs.blackberry.com/en/developers/deliverables/23959/Configuring_your_application_1524626_11.jsp

Posted in mobile

openGL tutorial recommend by jimmy

http://db-in.com/blog/2011/01/all-about-opengl-es-2-x-part-13/

Posted in algorithm, 編程

playbook ref

FlashDevelop and BlackBerry PlayBook Development: The Basics http://www.studiochris.us/2010/flashdevelop-and-blackberry-playbook-development-the-basics/ Tools port AIR -> playbook http://www.studiochris.us/software/fruit-bat/ Debug token (on simulator) http://deleteaso.com/playbook-debug-tokens-and-signing/

Posted in mobile

git 之速查

http://blog.longwin.com.tw/2009/05/git-learn-initial-command-2009/

Posted in 編程

as3 funny class as function, use a function to return a Class

http://jacksondunstan.com/articles/398

Posted in AS3

trick on as2

dynamic new a movieClip with init var http://www.jonnyreeves.co.uk/2007/05/movieclips-and-object-scope-in-as2/ WORTH to read, many FAQ about as2 http://www.senocular.com/flash/tutorials/faq/#newmovieclip event receive and dispatch and delegate example http://flash-creations.com/notes/asclass_eventdispatcher.php hope example help http://www.bit-101.com/blog/?page_id=1164 reference will be missed at first explanation http://stackoverflow.com/questions/896335/referencing-movie-clip-class-instances-immediately-in-actionscript-2 EventDispatcher instantiate methods http://archive.darronschall.com/weblog/2004/03/the-many-faces-of-eventdispatcher.html

Posted in AS3

open source as2 compiler

http://www.mtasc.org/

Posted in AS3, 編程

seems very good play:Set up a home file server using FreeNAS

http://www.engadget.com/2012/02/01/how-to-set-up-a-home-file-server-using-freenas/

Posted in web

Prestashop, a eshop framework

http://www.prestashop.com/

Posted in web

zend form tutorial

the tutorial is a bit old, may not suit yr need , but can do ref http://akrabat.com/zend-framework/simple-zend_form-example/ http://akrabat.com/zend-framework/simple-zend_layout-example/

Posted in web

zend : view helper for js and css

http://devzone.zend.com/1651/managing-css-and-javascript-files-within-a-zend-framework-app/

Posted in web

cron job 既朋友 for windows

http://jenkins-ci.org/

Posted in web, 編程

iframe jquery (no cross domain by browser … )

http://blog.roodo.com/thinkingmore/archives/9657289.html

Posted in web

actually wt i want project

http://society6.com/ http://www.storenvy.com/

Posted in web

quick start of zend framework

http://framework.zend.com/manual/en/learning.quickstart.create-project.html

Posted in web

wtf bitmapData

SWF 13+ (Flash Player 11, AIR 3) the practical limit is the amount of memory available. (The theoretical limit to width or height is the largest positive integer — divided by 20 to allow for twips, but you will hit

Posted in AS3

WTF Flex 4.5.1 eat shit SDK for UIComponent

TypeError: Error #2007: Parameter child must be non-null. at flash.display::DisplayObjectContainer/addChildAt() at fl.controls::BaseButton/drawBackground() at fl.controls::LabelButton/draw() at fl.core::UIComponent/drawNow() at fl.controls::ScrollBar/draw() at fl.core::UIComponent/callLaterDispatcher() I know u meet this error i know you read this: http://joshblog.net/2008/02/10/how-to-use-the-flash-cs3-component-set-in-a-flex-builder-actionscript-project/ or this http://de-co-de.blogspot.com/2008/03/wheres-my-skin.html but still cant play the

Posted in AS3

by pass as3 8191px problem

Core Concept : Dun draw in bitmap Example: in urUploader, Thumbnail can over 8191px, loadBytes is according to file size, so if file size too large, yr machine will hang. private function genThumbnail():void { var l:Loader = new Loader(); l.loadBytes(transcodeManager.baAlchemy);

Posted in AS3

alchemy error : if range invalid …

http://forums.adobe.com/thread/37528 Ans: 4. Sep 23, 2010 5:30 AM (in response to boris.reitman) Re: Range Error 1506 when CLibInit.init() Dont init CLibInit twice. Insted use static value to hold it for reuse and refer to it. Worked for me.

Posted in AS3

js 放係 head,speed up 個 load .js 既 process

http://headjs.com

Posted in web

regular expression tester

http://www.gskinner.com/RegExr/

Posted in web

ref of fdpayforme

look and feel, font http://www.pixelbaecker.de/#anker-s6

Posted in web

start up js and css framework

http://getskeleton.com/#whatAndWhy

Posted in web, 編程

jpeglib encode decode example

http://iysm.net/?p=7 here is a good tutorial for using jpeglib to do decode and encode. It states the usage of some common parameter of decode and encode.

Posted in C++

compile ijg, alchemy issue

http://savagelook.com/blog/tag/alchemy http://zaalabs.com/2010/04/compiling-zaail-with-alchemy-part-2/

Posted in algorithm

read write bytearray use in alchemy

http://blog.debit.nl/2009/03/using-bytearrays-in-actionscript-and-alchemy/

Posted in AS3

alchemy gluegen : link C library to as3 :)

http://segfaultlabs.com/devlogs/alchemy-round-two

Posted in AS3

advance alchemy article : about memory

http://bruce-lab.blogspot.com/2011/01/adobe-alchemy-hacks-access-memory-and.html

Posted in AS3

gstate: alchemy memory

http://jasonbshaw.com/?p=183

Posted in AS3

super strong flash guy

http://blog.tweenpix.net/

Posted in AS3

ijg jpeg rare tutorial

http://www.jpegcameras.com/libjpeg/libjpeg.html this one is really good example http://andrewewhite.net/wordpress/2008/09/02/very-simple-jpeg-writer-in-c-c this one also http://www.cppblog.com/socketref/archive/2006/03/02/3623.aspx

Posted in C++, 編程

alchemy, libjpeg ref

日文翻譯文,教你裝同 run http://www.4ucode.com/Study/Topic/678551 http://www.4ucode.com/Study/Topic/677284 原文,日文 http://d.hatena.ne.jp/amachang/20081118/1227005285 教你用 libjpeg http://blog.csdn.net/achellies/article/details/4238056 MUST WATCH Blog http://www.websector.de/blog/2009/06/21/speed-up-jpeg-encoding-using-alchemy/ config alchemy http://wiki.zeropointnine.com/?n=FlashPlatform.Alchemy how to include jconfig.h, jpeglib.h … http://forums.adobe.com/message/1059134#1059134 using alchemy to do bubble sort http://blog.comtaste.com/2010/07/adobe_alchemy_a_comparative_ex.html

Posted in AS3

simple explanation on bytecode

AS3 -> ABC (bytecode) -> AVM (Flash player) -> Windows, Linus, Mac… 落 bytecode 等唔同 OS 既 VM 都行到,但 點解唔直行 AS3 要 compile 落 bytecode ,因為你寫d 野太7 ,變做 While Loop,改你d var, function 名 改短d 靚d 好過

Posted in algorithm, 編程

setup alchemy environment

http://blog.flexmaniak.pl/flex-libraries/alchemy/alchemy-installation-guide-for-windows http://labs.adobe.com/wiki/index.php/Alchemy:Documentation:Getting_Started

Posted in AS3

Potrace Transforming bitmaps into vector graphics

http://potrace.sourceforge.net/ alchemy version: https://github.com/claus/as3potrace/tree/master/src/com/powerflasher

Posted in algorithm

Good Grid design for frontend

https://www.aupeo.com/

Posted in web, 無分類

Super strong as3 developer! see his project for some hints to difficult problem

http://segfaultlabs.com/

Posted in AS3

event driven in java and IBM java theory and practice column

http://www.java2s.com/Code/Java/Event/Eventsourceandlistener.htm http://www.ibm.com/developerworks/views/java/libraryview.jsp?type_by=Articles?sort_order=desc&expand=&sort_by=Date&show_abstract=true&view_by=Search&search_by=practice%3A

Posted in algorithm, 無分類

alchemy IJG investiage

http://segfaultlabs.com/devlogs/alchemy-asynchronous-jpeg-encoding-2 http://savagelook.com/blog/actionscript3/adobe-alchemy http://forums.adobe.com/message/987186#987186 – find find wt is beginEncodeJpegFileToPixsense, Pixsense encode …. ummm

Posted in web

js design pattern for beginner

http://addyosmani.com/resources/essentialjsdesignpatterns/book/

Posted in web, 無分類

as3 <--> bridge <--> as2

http://www.jumpeyecomponents.com/Flash-Components/Various/ActionScript-Bridge-91/ http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/LocalConnection.html http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html

Posted in AS3

gordon recommend CSS engine

http://sass-lang.com/

Posted in web

flash is suck in urlStream or fileRef.upload

urlStream is always good, it trigger the browser request to server, but very raw and cannot detect the upload progress (no progress event fire during upload) ( cal the speed and use Timer to pretend the progress bar ) but

Posted in AS3, web

css framework (but ruby :( )

http://compass-style.org/

Posted in web

skype development ref

@ww_boy6 roy: wwboy: http://skype.sourceforge.jp/index.php?Skype%20API%20For%20Java%20(English) roy: this can help ? roy: actually they think so 麻煩 becoz they want to do VOIP roy: but we only need msg roy: wwboy: https://imo.im/ roy: u see this web app can do skype roy:

Posted in web

Freeware multi-platform file splitters

http://www.hjsplit.org/

Posted in web

read this post for shopping cart in Zend, can use library or write yr own

http://stackoverflow.com/questions/4032782/best-e-commerce-shopping-carts-for-zend-framework-developer

Posted in web, 創業

URL request in Flash

IE -> 用 domain 做 base-path Firefox, chrome -> 用 swf 個 file 個 location 做 base-path okok, 唔好煩,用死 absolute path, server_url + relative_url 好無 ? Note Update : 用呢個 “.” d swf location 就會係 swf 個個位置

Posted in AS3

wordpress localization step 1

http://www.poedit.net/

Posted in web

supreme strong image processing class present by alchemy

http://www.websector.de/blog/2009/06/21/speed-up-jpeg-encoding-using-alchemy/

Posted in web

html5 and music

http://www.baroque.me/ http://www.mta.me/

Posted in web

study this uploader!

http://www.aurigma.com/ http://www.snapfish.com/

Posted in web

jquery ui bridge tutorial

http://www.erichynds.com/jquery/using-jquery-ui-widget-factory-bridge/

Posted in web

let’s try to write Jquery UI widget

http://wiki.jqueryui.com/w/page/12138135/Widget-factory Ok, this one is better https://github.com/scottgonzalez/widget-factory-docs/

Posted in web

jquery .add

.add is a function tht “add” the selector into jquery object list. This add is not mean append.

Posted in web

ext core, try this js framework

http://www.sencha.com/products/extcore/

Posted in web

basic knowledge to VBscript

ms tech note —————— http://technet.microsoft.com/en-us/library/ee198896.aspx return is a object —————— http://stackoverflow.com/questions/140002/vbscript-how-to-utiliize-a-dictionary-object-returned-from-a-function

Posted in web

[plupload] about resize and upload

BitmapDataUnlimited http://blog.formatlos.de/2008/05/28/bitmapdataunlimited/   SWF size limit http://kb2.adobe.com/cps/496/cpsid_49662.html

Posted in web

在 ASP.NET中使用 Include語法

http://blog.xuite.net/sugopili/computerblog/36468651

Posted in web

[mysql] 複製一個 db

http://dev.mysql.com/doc/refman/5.6/en/replication-howto.html

Posted in web

share box

http://www.ruhanirabin.com/how-to-add-facebook-like-button-to-wordpress-posts/ https://dev.twitter.com/docs/tweet-button http://diythemes.com/thesis/rtfm/add-google-plus-1-share-button/ http://ottopress.com/2011/adding-googles-1-button-to-wordpress-sites/ ajax: http://forum.developers.facebook.net/viewtopic.php?id=68635

Posted in web

as2 or other graphics technique, set Bounds in short code

if (_bounds != undefined) { mc._x = Math.max(_bounds.xMin, Math.min(mc._x, _bounds.xMax)); mc._y = Math.max(_bounds.yMin, Math.min(mc._y, _bounds.yMax)); }

Posted in AS3

wp 必讀

language : http://codex.wordpress.org/I18n_for_WordPress_Developers writing plugin: o岩o岩開波d format : http://codex.wordpress.org/Plugin_API action/filter default hook: http://codex.wordpress.org/Plugin_API/Hooks_2.0.x hook list with src: http://adambrown.info/p/wp_hooks/version/3.2

Posted in web

as2 can do addEventListener and dispatchEvent too

normal use method: http://flash-creations.com/notes/asclass_eventdispatcher.php package method: http://www.sakri.net/blog/2007/02/20/using-eventdispatcher-in-as2-the-as3-way/

Posted in AS3

[as2] shadow filter in as2

http://www.webwasp.co.uk/tutorials/214/F8-click-by-click/index.php

Posted in AS3

[as2] graphics algorithm in as2

http://www.video-animation.com/mx2k_01.shtml

Posted in AS3, 編程

[as2] kill a mouse event function

_handle_layer.onMouseMove = undefined;

Posted in AS3

[as2] onMouseDown和onMouseUp则不管鼠标在什么地方

http://hi.baidu.com/billypc/blog/item/ccbc97efcb981b212cf5341c.html

Posted in AS3

[as2] some movieClip property you may always need

function resetStartProps():Void { delete _startProps; //Aids in memory management _startProps = {}; var sp = _startProps; var axisPoint_obj = this.axisPoint; var mdx = _targetObject._parent._xmouse – axisPoint_obj.x; //Distance to mouse along the x-axis var mdy = axisPoint_obj.y – _targetObject._parent._ymouse; //Distance to

Posted in AS3, 編程

basic matrix and geometry

http://www.senocular.com/flash/tutorials/transformmatrix/

Posted in algorithm

[jquery] xxx.fn.funtionName() {} is prototype

Prototype All objects have a prototype property. Whenever the interpreter looks for a property, it also checks the prototype. jQuery uses that extensively to add methods to jQuery instances. var form = $(“#myform”); form.clearForm; // undefined form.fn.clearForm = function() {

Posted in web

super strong html5 photobook editor

http://www.fujidirekt.de

Posted in web

check empty string? if(strValue) is already enough

http://stackoverflow.com/questions/154059/what-is-the-best-way-to-check-for-an-empty-string-in-javascript

Posted in web

jquery onlyInt validation

http://stackoverflow.com/questions/995183/how-to-allow-only-numeric-0-9-in-html-inputbox-using-jquery

Posted in web

disable the auto complete of browser (so annoying sometime u click on a input field and pop sth out)

http://stackoverflow.com/questions/2530/how-do-you-disable-browser-autocomplete-on-web-form-field-input-tag

Posted in web

cookies, using php or js?

use js pls php setCookies cant trigger by user if he press “BACK” button

Posted in web

[js] quick revise js

http://javascript.infogami.com/Javascript_in_Ten_Minutes

Posted in web

read this, web developer

http://taligarsiel.com/Projects/howbrowserswork1.htm

Posted in web

[js][php] language solution

http://stackoverflow.com/questions/4762763/change-language-from-dynamically-content-using-javascript

Posted in web

Javascript null, undefined and default value?

http://stackoverflow.com/questions/2559318/how-to-check-for-undefined-or-null-variable-in-javascript example: var option = para || {}; option.color = option.color || “#B0B0B0″ ; option.height = option.height || 1;

Posted in web

old jquery dun hv parseXML function, add it yrself

http://baris.aydinoglu.info/javascript/parsing-xml-with-jquery-parsexml-method

Posted in web

ignore enter submit form by ie and other browser

http://stackoverflow.com/questions/1000597/event-preventdefault-function-not-working-in-ie-any-help event.preventDefault ? event.preventDefault() : event.returnValue = false; event.preventDefault = many browser event.returnValue = ie

Posted in web

[js] read The Infamous Loop Problem to know more about always get the last element when event trigger and can learn more abt scoping too!

http://robertnyman.com/2008/10/09/explaining-javascript-scope-and-closures/

Posted in web

[js] a quite good tutorial for js beginner

http://www.quirksmode.org/js/contents.html

Posted in web

batch rename and thumbnail

batch edit image: infraview batch rename program: CKrename

Posted in web, 編程

amfphp, zend php [client <-> server]

http://www.silexlabs.org/amfphp/ http://www.zend.com/en/

Posted in web

[js] always need to advise : how to make object in js

http://www.phpied.com/3-ways-to-define-a-javascript-class/

Posted in web, 編程

html word wrap attribute for diff browser

white-space: pre-wrap; /* CSS3 */ white-space: -moz-pre-wrap; /* Firefox */ white-space: -pre-wrap; /* Opera

Posted in web

jquery plugin template

quite good jquery plugin template http://www.whatheaven.com/fileupload/upload/jquery_slideshow.js

Posted in web, 無分類

[jquery] very good to modify this to combo box

http://do-web.com/jdropdown/overview

Posted in web

[wp] related post

http://wp.tutsplus.com/tutorials/display-style-related-posts-for-your-wordpress-site/

Posted in web

jquery bubble tip

http://www.vegabit.com/jquery_bubble_popup_v2/#examples

Posted in web

[jquery] combobox, and can type yr own text too

http://flexbox.codeplex.com/

Posted in web

wordpress change upload file config

http://chrismeller.com/2007/07/modifying-allowed-upload-types-in-wordpress http://www.wprecipes.com/wordpress-tip-allow-upload-of-more-file-types

Posted in web

[jquery] read this if u want to write plugin

diff pattern for plugin http://coding.smashingmagazine.com/2011/10/11/essential-jquery-plugin-patterns/ defaults and settings/option http://www.learningjquery.com/2009/03/making-a-jquery-plugin-truly-customizable http://blog.jeremymartin.name/2008/02/building-your-first-jquery-plugin-that.html

Posted in web, 編程

[webdesign][PS] learn some photoshop effect for your web design

http://designinstruct.com/web-design/create-a-light-textured-web-design-in-photoshop/

Posted in web

[css] clear: both, very useful!

when u r making some layout float:left …. then u want next component dun want float anymore =.= use CLEAR attribute!!!

Posted in web

ulikela ref site

main style: http://bentrovatoblog.com/ comment style: http://ddgoodi.es/

Posted in web

[as3] quite good tutorial for learning vector, velocity, direction

http://active.tutsplus.com/tutorials/animation/learn-about-linear-kinematics/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Flashtuts+%28Activetuts%2B%29

Posted in AS3

blog tool – related post widget.

http://www.linkwithin.com/

Posted in web

learn code Ignitor X jquery

http://net.tutsplus.com/tutorials/javascript-ajax/build-ajax-data-grids-with-codeigniter-and-jquery-2/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+nettuts+%28Nettuts%2B%29

Posted in web

[blog] a good blog for css learning

http://css-tricks.com/

Posted in web

[php] a blog always talk php.

http://www.gen-x-design.com/ 呢個 blog 都無咩 update ,不過d 舊文都 ok 有用

Posted in web, 編程

[git] git cheatsheet

http://www.ndpsoftware.com/git-cheatsheet.html#loc=workspace;

Posted in 編程

iphone stuff blog, check it

http://bynomial.com/blog/

Posted in iphone, mobile

CSS button , hv a nice try

http://www.red-team-design.com/just-another-awesome-css3-buttons

Posted in web

[nodejs][php] long polling n related concepts

nodjs: http://www.josephj.com/entry.php?id=358 php http://www.perfgeeks.com/?p=139

Posted in web

[wp] you are doing on comments, right ?

http://net.tutsplus.com/tutorials/wordpress/unraveling-the-secrets-of-wordpress-commentsphp-file/

Posted in web

[wp] learn it first, beginner

http://net.tutsplus.com/articles/web-roundups/top-50-wordpress-tutorials/

Posted in web

[wp] I think u can learn fm them

http://sixrevisions.com/contests/giveaway-premium-wordpress-themes-wpzoom/

Posted in web

[apache][phpmyadmin] change phpmyadmin to 443 using default phpmyadmin package

idea: rewrite engine to make http => https 1. go to .htaccess in /usr/share/phpmyadmin add RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 2. activate the rewrite engine by a2enmod rewrite , then restart apache2 3. make SSL cert, some

Posted in web

[webdesign][template] some free webpage template, can borrow some graphics component to use

http://slodive.com/freebies/web-design-templates/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Slodive+%28SloDive+-+Design+Resources+and+Inspiration%29

Posted in web

[WP] Learn WP beginner!

http://themeshaper.com/2009/06/22/wordpress-themes-templates-tutorial/ Advance: theme option page http://wp.tutsplus.com/tutorials/using-the-settings-api-part-1-create-a-theme-options-page/

Posted in web

[js] image slider, ok 好用

http://slidesjs.com/

Posted in web, 編程

nav 升升降降……係我想要既野了…. nggggggg

http://www.kirkas.ch/ascensor/

Posted in web

Pushbutton Engine and Haxe: a natural fit

http://dionamago.net/?p=386

Posted in AS3

素材!

http://iconify.it/free-stuff/plastique-icons-full-set/ http://ddgoodi.es/2011/08/10/ddicons-65-png-psd-icons/

Posted in graphics, web

dropkick for HTML dropping list

http://jamielottering.github.com/DropKick/

Posted in web

learn jquery la!

http://learn.appendto.com/

Posted in web

Zinc, f-in-box 之 Z-drive 之謎?

flash流媒体播放器;讨论以内存流方式播放FLASH的技术 flash流媒体播放器:讨论以内存流方式播放FLASH的技术可行性? 来源: 发布时间:星期三, 2008年9月24日 浏览:44次 评论:0 这样可以实现保护flash文件,而且用flash做界面发布时不要带swf文件,很方便,国外有一个 Control 可以实现,大家一起来讨论一下这样实现的技术方案. 告诉你一个最简单的Method 前面步骤和播放文件一样设置 ShockwaveFlash1.Movie = ‘c:\temp\temp.swf ‘; ShockwaveFlash1.EmbedMovie = True ShockwaveFlash1.Movie = ‘-_-!! ‘; 这样swf就含在窗体文件(dfm)中了 发布的时候不用单独带swf文件 这样是可以了,如果想把一个SWF文件做成资源,启动时再载入怎么实现呢? 创建一个不可见、只能当前句柄的program可访问的虚拟硬盘 [轉載] flashplayercontrol貌似就是以这种方式实现的 虚拟硬盘 这个玩大了 这样就必须用到驱动 flashplayercontrol用驱动不可能吧 反汇编 跟踪 发现真的搞了一个虚拟硬盘,生成了一个临时文件Z:\FromMemory\46A10F369771449587DE913EFC0A258C\1\E4ED7C01D28A43418DBF2CB92CC35E56.swf http://www.plm.hk/Phpgm/archiver/tid-638.html

Posted in AS3, 編程

強~用css 做 tab style

http://net.tutsplus.com/tutorials/html-css-techniques/how-to-create-diagonal-lines-with-css/

Posted in web, 編程

read this first when u go REST

http://blog.steveklabnik.com/2011/07/03/nobody-understands-rest-or-http.html

Posted in web

first html5 game tutorial with box2d

http://net.tutsplus.com/tutorials/html-css-techniques/build-your-first-game-with-html5/

Posted in web, 編程

Last moment 後制,我的 icon

http://catchtest.pixnet.net/blog/post/22304428 IcoFX download 小工具 ko 吧   或者 on9 solution http://www.convertico.com/

Posted in Windows, 編程

iOS beginner blog 中文呵

http://eddyl.com/blog/

Posted in Blog, mobile

[iOS] 一d code examples

http://mobile.tutsplus.com/tutorials/iphone/learn-ios-game-development-by-example-10-projects-to-get-you-started/

Posted in mobile, 編程

Useful HTML-, CSS- and JavaScript Tools and Libraries,堅得。

http://coding.smashingmagazine.com/2011/06/10/useful-html-css-and-javascript-tools-and-libraries/

Posted in web

Quick Test JS 用

http://jconsole.com/

Posted in web

js secret

http://www.smashingmagazine.com/2011/05/30/10-oddities-and-secrets-about-javascript/

Posted in web, 編程

htaccess cookbook

http://www.catswhocode.com/blog/10-useful-htaccess-snippets-to-have-in-your-toolbox

Posted in web

Optimizing content for Apple iOS devices [其實 d skill desktop version 都用得著]

http://www.adobe.com/devnet/flash/articles/optimize_content_ios.html

Posted in AS3, mobile, 編程

[as3] Unicode range of Flash

睇睇 flex4 sdk / frameworks 裡面 flash-unicode-table.xml

Posted in AS3, 編程

[UX] Mock Up software 紹介 … (即係 layout design)

http://balsamiq.com/

Posted in web, 編程

[UX] Tools for UX

http://www.kissmetrics.com/ (web analytic) http://mixpanel.com/ (web analytic) http://www.usabilla.com/ (micro usability tests)

Posted in web, 編程

[as3] 唔勁,但可以睇下

http://randomcodescraps.tumblr.com/

Posted in AS3, 編程

MUST TRY ITEM

http://puredata.info/ a real-time graphical programming environment for audio, video, and graphical processing

Posted in music, 編程

ebook framework~

http://www.lakercompendium.com/

Posted in web, 編程

Push Button Engine and the console!

http://blog.natebeck.net/2009/11/developing-games-with-pushbutton-engine-using-the-console/

Posted in AS3, 編程

[rest] kaze 話

restful + spring + freemaker 可以玩下 rest 野,try try try

Posted in web, 編程

[as3] 畫圖形的 library

tutorial http://active.tutsplus.com/tutorials/actionscript/quick-tip-easy-shape-creation-with-uniqueshape/ Library http://www.libspark.org/wiki/UniqueShape Shape 之一覽 http://whirlpower.net/documents/uniqueshape/document.html   當然可以 extend 佢 d 野 畫d 複雜d 既野~

Posted in AS3, 編程

em…browser 字

原來……中文個d 係無腳字……Sans-serif

Posted in web, 編程

[box2d][as3] multiple gravity

http://www.emanueleferonato.com/2009/07/17/managing-multiple-gravities-with-box2d/

Posted in AS3, 編程

正野,畫 pixel art 用,同埋寫 game 專用技

http://mtpaint.sourceforge.net/ http://www.libsdl.org/ http://hcsoftware.sourceforge.net/jason-rohrer/ <== 呢條友鍾意用 wor

Posted in graphics, Windows, 編程, 設計, 軟件介紹

[box2d][as3] 睇下 tutorial

Beginner 教程 http://langrisser1981.blogspot.com/2008/02/hello-box2d.html http://www.emanueleferonato.com/2010/02/19/box2d-flash-game-creation-tutorial-part-1/ http://plasticsturgeon.com/2010/08/making-an-as3-game-in-box2d-flash-version-2-0-hello-world-box2d/2/ http://www.emanueleferonato.com/2009/07/06/platform-engine-using-box2d/ 直接睇 wiki http://code.google.com/p/pushbuttonengine/wiki/Index?tm=6

Posted in AS3, 編程

[as3] blog, 講 flash games, 幾過癮既

http://plasticsturgeon.com/

Posted in AS3, 編程

box2d as3 的一般 tutorial

http://www.p-boy.cn/?p=473

Posted in AS3, 編程

[web] flv movieplayer for web

http://flowplayer.org/ http://www.longtailvideo.com/players/jw-flv-player/

Posted in AS3, web, 編程

素材,好野,web 或者 software 用

http://aipotudeng.deviantart.com/art/comMonochromatic-Iconset-2-203677686

Posted in graphics, web, 編程, 設計

JavaScript Tricks And Good Programming Style

http://alexander.kirk.at/2006/08/09/javascript-tricks-and-good-programming-style/

Posted in web, 編程

[as3] Copying Timeline Animation into a Class

http://active.tutsplus.com/tutorials/animation/quick-tip-copying-timeline-animation-into-a-class/

Posted in AS3, 編程

又有素材, social media 野

http://sixrevisions.com/freebies/icons/socialmate-free/

Posted in graphics, web, 編程, 設計

[away3d] 做得好靚既 away3d ,下次做睇睇佢d code 學下野

http://jacobschatz.com/?p=533

Posted in 3D, 編程

[web][js] fancybox 靚過 lightbox 咁囉

http://fancybox.net/

Posted in web

Keith Peters 用的 Host

http://www.dreamhost.com/

Posted in web, 編程

[pbe][as3]既然玩緊 push button,就睇埋呢個。

http://pushbuttonlabs.com/

Posted in AS3, 編程

mobile framework again

http://www.phonegap.com/

Posted in mobile, 編程

[PBE][AS3] Article Studies

http://www.adobe.com/newsletters/edge/august2010/articles/article6/index.html?trackingid=HRTDN http://www.bukisa.com/articles/228717_making-a-space-invaders-clone-with-pushbutton-the-first-enemy http://www.brighthub.com/hubfolio/matthew-casperson/blog/archive/2010/01/06/pushbutton-engine-tutorials.aspx

Posted in AS3

[wp] 好靚,wordpress 改裝 QC system

http://getqualitycontrol.com/

Posted in web

[pbe] Push Button Engine 入門

http://blog.163.com/free_art/blog/static/14156662009111485516228/

Posted in AS3

[pbe][AS3] Experiment: Using SWF MovieClips in PushButton Engine

http://shikii.net/blog/experiment-using-swf-movieclips-in-pushbutton-engine/

Posted in AS3, 編程

[web] Comment management social community

http://disqus.com/

Posted in web, 編程

[mysql/php] Using MySQL Stored Procedures with PHP mysql/mysqli/pdo

http://preetul.wordpress.com/2009/06/26/using-mysql-stored-procedures-with-php-mysqlmysqlipdo/

Posted in web, 編程

[VC++]我想用 regex 但無左 atlrx.h

http://blog.csdn.net/wu_huiwen/archive/2010/04/24/5523128.aspx http://blog.csdn.net/zhuxiaoyang2000/archive/2011/01/17/6147483.aspx

Posted in C++

[IDE][Cloud] Cloud 9 , a JS IDE for JS

http://c9.io/

Posted in web

[素材] Social Icons 1.0 既圖

http://www.alexpeattie.com/projects/justvector_icons/

Posted in web

[as3]八個我最常用的AS3開源類庫(轉載)

http://fan.renren.it/a/bianchengyuyan/Flashbiancheng/20100926/38134.html

Posted in AS3

[as3]What can you do with bytes ?

http://www.bytearray.org/?p=711

Posted in AS3

[web][js] 3 ways to define a JS Class

http://www.phpied.com/3-ways-to-define-a-javascript-class/

Posted in web, 編程

[AIR][AS3] Playing around silent install AIR

Cmd 教你裝 http://stackoverflow.com/questions/821531/how-can-the-adobe-air-installer-itself-require-air 官方教你裝 http://help.adobe.com/en_US/air/build/WS789ea67d3e73a8b22388411123785d839c-8000.html 一炮過 setup.exe http://bishoponvsto.wordpress.com/2010/03/10/deploying-air-application-with-air-runtimeredistributable-in-single-exe/ forum discuss about this http://forums.adobe.com/message/1998708

Posted in AS3, 編程

[adobe] a blog of adobe news

http://www.webkitchen.be/

Posted in AS3, 編程

[as3] readObject, writeObject of ByteArray, good for save 低 d野~

http://ted.onflash.org/2007/11/abcs-of-amf.php

Posted in AS3, 編程

[wordpress] 整 wordpress theme 用 framework

http://whiteboardframework.com/

Posted in web, 編程

[webdesign] 興! 極速做 3D banner for web

http://www.css3d.net/ribbon-generator/

Posted in web, 編程

[as3]使用ByteArray做一些基本的檔案保護

http://blog.iamjason.com/2010/08/bytearray.html

Posted in AS3, 編程

[as3] fscommand fix

fscommand(“exec”, “abc.exe”) 呢個你識用啦,將個 abc.exe 放係 fscommand 既 folder 到 好啦,但係好大問題就係 你想入 argument 入去 係唔 work fscommand(“exec”, “abc.exe argu1″),無呢回事 咁點算好! solution: System.setClipBoard(cmd); 再用 C++ 寫個小 program 個 program 就係貼上 clipBoard 既字再 run 咁就乜 seven 都 run 到啦! 唔洗下下用 C++ 自己寫 flash

Posted in AS3, 編程

[as3] 搵左咁耐終於有教,d 網只係教人爆 zip,唔教人 zip 野

FZip http://lucamezzalira.com/2010/04/13/working-with-zip-files-and-flash-platform/ 或者用 nochump http://pradeek.blogspot.com/search/label/nochump

Posted in AS3, 編程

[M$] 玩 mfc 了嘛?

http://www.codersource.net/mfc/mfc-tutorials/mfc-tutorial-part-1.aspx

Posted in C++, 編程

[AS3][JQuery] jotaquery, as3 直 call jquery 既 script

http://code.google.com/p/jotaquery/

Posted in AS3, web, 編程

[web][design] Japan sample site

http://io3000.com/ http://www.dailywebdesign.com/ http://midashi-design.com/ http://www.designlinkdatabase.net/ http://bm.straightline.jp/ http://www.goodeza.net/ http://web-selection.com/

Posted in web, 書簽, 設計

[as3][C++]有 vc++ 就好 lu

http://blog.csdn.net/zhuxiaoyang2000/category/679833.aspx

Posted in C++

學少少 bat cmd 梗有用

http://ss64.com/

Posted in Windows, 編程

[web font] web font concept

http://www.dlocc.com/articles/modern-web-font-options-for-web-designers/

Posted in web

unicode range

常用正規表達式, 繁簡體中文日文韓文的Unicode字元範圍 //日文 : [\u0800-\u4e00] //漢字 : [\u4e00-\u9fa5] src: http://it4mm.blogspot.com/2010/05/unicode.html

Posted in 編程

[as3] Generative Art in Flash

tutorial a href=”http://active.tutsplus.com/tutorials/design/creating-generative-art-with-hype/”>http://active.tutsplus.com/tutorials/design/creating-generative-art-with-hype/ Framework http://www.hypeframework.org/

Posted in AS3, 藝術

[web][font] typekit, a company provide web fonts

http://typekit.com/

Posted in font, web

[as3] Polygon area calculation

http://ricombination.wordpress.com/2008/11/06/actionscript-3-polygon-area-calculation/

Posted in AS3

[as3] Displacement filter, 可以玩放大,mapping 等等

放大 http://www.emanueleferonato.com/2009/08/12/pure-as3-magnifying-effect-using-displacement-map-filter/ mapping http://www.emanueleferonato.com/2007/12/03/understanding-flash-displacement-map-filter/

Posted in AS3, 編程

[C++][AS3] C++ insert Flash

http://www.n8lm.cn/blog/archives/200910/40/

Posted in AS3, C++

[Web]How to Build an RSS Reader with jQuery Mobile

http://net.tutsplus.com/tutorials/javascript-ajax/how-to-build-an-rss-reader-with-jquery-mobile-2/

Posted in web, 編程

[JS] 其實好 OK, js Magazine style framework

http://treesaverjs.com/

Posted in web, 編程

[AS3] Zinc 夾 GAIA, d path 錯曬!

http://www.designdisclosure.com/2009/07/make-mdm-zinc-applications-with-the-gaia-framework-for-adobe-flash/ Solution here~ July 5, 2009 by Alistair Stead in ActionScript, Flash Comments ( 3 ) The Gaia Framework for Adobe Flash is a something I have been using for some time. It is one of the most useful frameworks

Posted in AS3, 編程

[jquery][plugin] 好多正野,學野無妨

http://www.myjqueryplugins.com/

Posted in web, 編程

[webdesign][css] gradient 靚靚 menu bar

http://www.webdesignerwall.com/tutorials/cross-browser-css-gradient/

Posted in web, 編程

[AS3] 似曾相識的錯,tweenlite removeTint re 極都 re 唔到

TweenPlugin.activate([TintPlugin]); TweenLite.to(mc, 1, {removeTint:true}); 我跟足你做,點解有時唔得? TweenPlugin.activate([RemoveTintPlugin, TintPlugin]); funny, 原來有 RemoveTintPlugin =x= PS 我知啦! 原來舊版本先係咁 成日用 gaia framework 又 update 下個 tweenlite =x=

Posted in AS3, 編程

[wordpress]Theme 抄下參下

http://designinstruct.com/articles/resources/10-free-wordpress-themes-for-portfolio-sites/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+designinstruct+(Design+Instruct)

Posted in web, 編程

[AS3] Signal 野: Signal VS DeluxeSignal

http://insideria.com/2010/10/an-introduction-to-as3-signals.html 睇左先 up 一大春英文,搞咩,超簡單 signal 係可以 pass parameter,但 pass 個個 object 就係個個 object 囉 DeluxeSignal 就勁啦,係 pass event event signal 都識 pass 啦,咁你就錯 呢個 event 係 as3 d fd,你 pass 左,過到去,有翻曬你以前 event 玩既野 例如 event.currentTaret, event.type, event.target 咁 咁咪開心又興奮囉~

Posted in AS3, 編程

[AS3] 兩個 SWF event 傳黎傳去既方法

你仲想利用個 event 傳data ? mother.addEventListener(CustomEvent.MODULE_CLOSE, onModuleClose) function onModuleClose(e:*):void { var data = e.data; } var data = {a:1, b:"hello"}; swf.dispatchEvent(new CustomEvent(CustomEvent.MODULE_CLOSE, data)); PS 如果要玩 bubbling: 記得 extend 個陣 要 override 埋 clone 呢個 function!

Posted in AS3, 編程

[AS3] Loading SWFs into AIR 1.5.X and LoaderInfo.sharedEvents

http://richardleggett.co.uk/blog/index.php/2009/04/02/loading-swfs-into-air-1-5-and-loaderinfo 我見佢打散個 swf 做 byteArray ,再用 loader 砌翻埋佢

Posted in AS3, 編程

[AS3] GAIA Framework, 自己整 custom attribute for site.xml ,這世界突然美好了。

http://www.dustypixels.com/blog/2010/03/17/gaia-accessing-custom-page-attributes-from-site-xml/

Posted in AS3, 編程

[AS3] 又黎一d framework

Swiz is a framework for Adobe Flex and ActionScript that aims to bring complete simplicity to RIA development. http://swizframework.org/ 話勁過快過 event 既 singal https://github.com/robertpenner/as3-signals

Posted in AS3, 編程

[AS3] Hit on hitTestObject

hitTestObject is always use but do u know: mc.hitTestObject(target) if target.visible = false and target.alpha =0 其實都 hit 中 return true 小心d 啦~ 最好加多個 condition mc.hitTestObject(target) && target.visible

Posted in AS3, 編程

[web] Modernizr

http://www.modernizr.com/ Modernizr is a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies.

Posted in web

[web] wunderlist 其實 open src ,學野啦~

https://github.com/6wunderkinder/wunderlist

Posted in web

[AS3] SWF Sheet, flash mc -> sequence img format, good for iphone!

http://www.bit-101.com/blog/?p=2939

Posted in AS3, 編程

[Windows] BAT file Library

http://www.robvanderwoude.com/batexamples.php?fc=P

Posted in Windows, 編程

[AS3] Generate Pdf by AS3 Library

http://alivepdf.bytearray.org/

Posted in AS3, 編程

[AS3] Concept of display list

http://www.oreillynet.com/pub/a/oreilly/digitalmedia/helpcenter/actionscript30cookbook/chapter6.html Highlight : Stage -> Main -> DisplayObject(s) -> …

Posted in AS3, 編程

[AS3][Function]Anonymous, inline, and named functions in ActionScript

what is inline function … http://www.darronschall.com/weblog/2004/08/anonymous-inline-and-named-functions-in-actionscript.cfm

Posted in AS3, 編程

[AS3] Flash Tips (MUST READ)

Flash Tips http://haxe.org/doc/flash/cheatsheet

Posted in AS3, 編程

[AS3] Mac Dock Style Flash

http://jrgraphix.net/r/Flash7_Dock/ read this more happi http://active.tutsplus.com/tutorials/actionscript/create-a-mac-dock-style-menu-with-as3/

Posted in AS3, 編程

[AS3] 搵翻 GAIA 唔洗 FLASH,用 ANT 都得!

http://kevincao.com/2010/03/workflow-robotgaiaant/

Posted in AS3, 編程

[AS3] Flex no MXML using Application

package { import mx.core.Application; import mx.events.FlexEvent; import mx.styles.StyleManager; import mx.styles.CSSStyleDeclaration; import mx.controls.Button; import mx.skins.halo.HaloBorder; import flash.display.Bitmap; public class Main extends Application { [Embed(source="../library/up.png")] public var UpState : Class; [Embed(source="../library/over.png")] public var OverState : Class; [Embed(source="../library/down.png")] public var DownState : Class;

Posted in AS3

[3D] 3d 必學 algor

http://en.wikipedia.org/wiki/Delaunay_triangulation

Posted in 3D, 編程

[AS3] 靚波請睇

http://tukuru296.com/labo/ d 波點做? 一個波其實好多 point 組成,再用 curve 連成 wave effect 係 叫d point 郁少少 x 同 郁少少 y

Posted in AS3

[WebDesign] CSS Font-Size: em vs. px vs. pt vs. percent

http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/

Posted in web, 編程

[AS3] Open source Page Flip Engine

http://www.megazine3.de/

Posted in AS3, 編程

[Maths] Algorithms DB

http://www.cse.ohio-state.edu/~gurari/course/cis680/cis680No1.html#QQ2-46-95

Posted in algorithm

[JS] 新既圓型 concept photo slider

http://www.baijs.nl/tinycircleslider/

Posted in web

[CSS] 將網頁分割,放棄 960 grid 的一個原因

http://lessframework.com/

Posted in AS3, 編程

[AS3] Saving file by FileReference

FileReference.save() http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/ API http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html#save%28%29 (題外話,講 load 的) 叫你注意 loader.dataFormat = URLLoaderDataFormat.BINARY; http://www.actionscript.org/forums/showthread.php3?t=187580 如果 advance d coding的話,用 fscommand出一個小exe將 bytearray -> jpg都得。

Posted in AS3, 編程

[AS3/Flex] Start Module Programming!

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f22.html

Posted in AS3, 編程

[RoR]Ruby on Rails Guides

http://guides.rubyonrails.org/

Posted in web, 編程

[WebDesign] 素材!

ICON http://lab.simurai.com/css/buttons/#material http://greepit.com/open-source-icons-gcons/ http://www.fullcreative.com/2010/09/switch-a-set-of-54-minimalist-vector-icons-part-1/ http://www.webdesignerdepot.com/2010/07/200-exclusive-free-icons-reflection/ http://somerandomdude.com/projects/iconic/ http://www.wpzoom.com/wpzoom/new-freebie-wpzoom-developer-icon-set-154-free-icons/ TILE BKG http://tileabl.es/

Posted in web, 編程, 設計

[AS3] AS3 Framework / API Collection

Adobe APIs corelib, mappr, flickr, youtube and more. http://labs.adobe.com/wiki/index.php…apis:libraries APE (Actionscript Physics Engine) http://www.cove.org/ape/ as3awss3lib ActionScript 3.0 library for interacting with Amazon S3 http://code.google.com/p/as3awss3lib/ as3soundeditorlib Actionscript 3.0 library for sound editing http://code.google.com/p/as3soundeditorlib/ as3ds AS3 Data Structures For Game Developers http://code.google.com/p/as3ds/

Posted in AS3, 編程

[html5] 超勁 canvas 既 function api reference!

http://www.html5.jp/canvas/ref.html

Posted in web, 編程

[JS] 靚靚 progress bar

http://www.catswhocode.com/blog/how-to-create-a-kick-ass-css3-progress-bar

Posted in web, 編程

[JS] Canvas Framework

http://processingjs.org/ 作者 = jquery 作者

Posted in web, 編程

[Flash] Hacking SWF – Everything You Never Wanted To Know About Shapes In Flash

http://wahlers.com.br/claus/blog/hacking-swf-1-shapes-in-flash/ must read item!!!!!!!!!!!!!

Posted in AS3, 編程

[C++] C++ program with Flash GUI

http://www.codeproject.com/KB/cpp/FlashGui.aspx

Posted in 編程

[HTML5] JS Game Engine – ImpactJS

http://impactjs.org/

Posted in 編程

[HTML5] Canvas Demo Blog

http://www.canvasdemos.com/

Posted in 編程

[HTML5] AI -> canvas

http://visitmix.com/labs/ai2canvas/

Posted in 編程

50 Powerful Time-Savers For Web Designers

http://www.smashingmagazine.com/2010/10/19/50-powerful-time-savers-for-designers/

Posted in 編程

[AS3] About Sound

http://www.zedia.net/2008/a-little-bit-about-sound-using-the-sound-soundchannel-soundtransform-classes/

Posted in 編程

[Flash 3D] Z-sorting for flash native 3D

http://blog.generalrelativity.org/actionscript-30/z-sorting-3d-displayobjects-for-flash-player-10/

Posted in 編程

[PV3D]SLERP Concept

http://pv3d.org/2008/12/28/click-then-tween-camera-to-plane/ see this first http://pv3d.org/2009/01/11/tweening-rotated-planes-to-you/ similar things http://embots.dfki.de/doc/seminar_ca/Kremer_Quaternions.pdf the concept http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation wiki

Posted in 編程

[C++]OpenFramework Very Powerful Graphics framework in C++

http://www.openframeworks.cc/

Posted in 編程

[3d graphics] demo of some important concept (e.g. quadTree)

http://away.kiev.ua/away3d/techdemos/

Posted in 編程

[Design pattern] Why extends is evil

http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html?page=3 Why extends is evil

Posted in 編程

[Flex] Beginner for flex

http://zh-tw.w3support.net/index.php?db=so&id=141288 可以使用Flex框架/組件少許的MXML? http://sujitreddyg.wordpress.com/2008/02/05/splitting-flex-application-into-modules/ Splitting Flex application into modules http://mromecki.fr/en/post-using-flex-3-component-without-mxml-only-as3#/post-using-flex-3-component-without-mxml-only-as3 http://cookbooks.adobe.com/post_Creating_Application_without_MXML-11123.html Using Flex 3 Component without MXML – only AS3 (FLEX 3333333333333333333333333!)

Posted in 編程

jquery fundamental tutorial

http://jqfundamentals.com/book/book.html

Posted in 編程

mozilla js guide

https://developer.mozilla.org/en/JavaScript/Guide

Posted in 編程

jQuery: how to tell if you’re scroll to bottom? (or aka wt is scrollHeight)

http://yelotofu.com/2008/10/jquery-how-to-tell-if-youre-scroll-to-bottom/

Posted in 編程

JSFL compile all

http://log.liminastudio.com/programming/automating-flash-cs4-builds-with-jsfl

Posted in 編程

example for a static class function Class to run constructor first (Singleton use)

http://www.ultrashock.com/forums/actionscript/as3-global-stage-singleton-96247.html this is an example of stageReference singleton but it is also a good example using static var instance to store itself, so a class (with static function use) can run a constructor first

Posted in 編程

game on jsfl~

http://www.lostinactionscript.com/blog/index.php/2010/03/06/how-not-to-hate-swf-libraries/

Posted in 編程

jsfl tutorial

http://active.tutsplus.com/tutorials/workflow/create-new-features-for-flash-with-jsfl/

Posted in 編程

Using String to call function (可以玩 “jump” + “offense” / “jump” + “attack” 既 call function 做法)

http://asgamer.com/2009/using-string-variables-to-call-functions-in-as3 同場加映 apply function (try it) Tweenlite.to(mc, ….) 個 mc 都係玩 apply 咋 http://troyworks.com/blog/2008/01/03/as3-functionapply/ http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/Function.html

Posted in 編程

about mask

http://rhinotw.blogspot.com/2009/01/as3mask.html AS3的mask並不會改變原物件的長寬; 舉例來說,一個長寬500×500的A_mc,被一個200×200的B_mc所mask, AS2的時候,trace會發現A_mc的長寬變成200×200了, 但AS3則仍然trace出500×500。 這問題在需要對A_mc縮放的時候,會有大麻煩, 例如我想放大到寬度是1000px,則AS2會放大5倍,但AS3只會放大2倍; 試過DisplayObject的getRect()跟getBounds(),都是trace出500×500, Vanilla找到一個怪招: bitmapData.draw(A_mc); trace(bitmapData.getColorBoundsRect(0xff000000,0xff000000,true)); 就會回報正確的長寬了! 感謝Vanilla!

Posted in 編程

JSFL recommend

find these jsfl ! this would be good to u and faster development

Posted in 編程

Motion XML Elements (係咪我想要既野)

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/motionXSD.html

Posted in 編程

[trytry佢]Runtime Font Publisher, a tool for runtime font sharing.

http://blog.johannest.com/2010/06/22/runtime-font-publisher-a-tool-for-runtime-font-sharing/

Posted in 編程

Notes on Cross Domain Event Flow

http://ticore.blogspot.com/2007/08/as3-cross-domain-event-flow.html

Posted in 編程

a good hitTest class (for isometric too)

http://www.tink.ws/blog/as-30-hittest/

Posted in 編程

About isometric world depth sorting

http://jwopitz.wordpress.com/2008/09/03/absolute-isometric-depth-sorting/

Posted in 編程

game framework

http://www.yogurt3d.com/ (3d game engine) http://www.ffilmation.org/website/ (isomeric engine) http://flixel.org/ (so u heard of it already) http://pushbuttonengine.com/ (one more then)

Posted in 編程

isomeric world 學野啦

http://as3isolib.wordpress.com/

Posted in 編程

SiON ActionScript3 software synthesizer library (造聲必備)

http://sites.google.com/site/sioncenter/

Posted in 編程

ANT on flash develop

http://www.allflashwebsite.com/article/running-ant-from-flashdevelop

Posted in 編程

presentation 之 software (video capture screenshot 個d)

http://www.debugmode.com/wink/

Posted in 編程

Web material and DHTML RIA

http://www.openlaszlo.org/ open laszlo <—— dhtml RIA http://cocoon.apache.org/ web 既發布技術之一

Posted in 編程

flash runtime on javascript

http://paulirish.com/work/gordon/demos/

Posted in 編程

developer blog

http://flexonrails.net/ flex <-> ruby developer http://antimatter15.com/wp/ ajax animator 個作者

Posted in 編程

finite state machine in as3 (for game develop)

http://www.richardlord.net/blog/finite-state-machines-for-ai-in-actionscript

Posted in 編程

about outline finding

http://www.sakri.net/blog/2009/04/13/extract-shape-outline-points-from-bitmapdata/ search about canny edge too

Posted in 編程

meta tag introduction

http://www.switchonthecode.com/tutorials/flex-snippet-tutorial-bindable-meta-tag-part-3 talk about bindable tag http://www.casadirocco.nl/2009/09/the-event-meta-tag-in-actionscript-3-and-flex-builder.html talk about event tag http://www.boostworthy.com/blog/?p=157 general brief of the metatag http://www.bit-101.com/blog/?p=946 frame tag, for making preloader for flex

Posted in 編程

關於 tab 個個核突黃色框

http://mattmaxwellas3.blogspot.com/2008/12/as3-disable-yellow-tab-rectangles.html see the comment as well~answer is in comment…..XD

Posted in 編程

Flash Blogs

http://blog.johannest.com/ http://delfeld.wordpress.com/

Posted in 編程

Web Toolbar~~~

http://www.wibiya.com/?ref=L

Posted in 編程

The MovieClip life cycle, Event.FRAME_CONSTRUCTED, and Event.EXIT_FRAME.

http://blog.johannest.com/2009/05/22/the-movieclip-life-cycle-event-frame_constructed-and-event-exit_frame/

Posted in 編程

Tricks on AS3

http://www.untoldentertainment.com/blog/2010/03/01/5-ways-to-cheat-at-actionscript/comment-page-1 http://insideria.com/2010/04/combining-the-timeline-with-oo.html

Posted in 編程

Using getDefinitionByName and getQualifiedClassName

http://delfeld.wordpress.com/2009/04/21/object_from_class_name/

Posted in 編程

swf and Browser trick

http://www.asual.com/swfaddress/ http://code.google.com/p/swfobject/ http://www.project-nya.jp/modules/weblog/details.php?blog_id=745 swfAdress swfObject swfForceSize

Posted in 編程

swf2exe d solution 成日要人俾錢,用 Screenweaver 啦

http://screenweaver.org/doku.php?id= 花d時間研究下d haxe 同 neko 先

Posted in 編程

Packages are actually namespaces in ActionScript 3 (我都估到架啦!)

http://joshblog.net/2009/05/13/packages-are-actually-namespaces-in-actionscript-3/

Posted in 編程

GUI for as3, with no flash component

http://www.aswing.org/ http://www.minimalcomps.com/

Posted in 編程

error 2007, load swf with Flash UI component error

TypeError: Error #2007: 參數 child 不能是 Null。 at flash.display::DisplayObjectContainer/addChildAt() at fl.controls::BaseButton/drawBackground() at fl.controls::BaseButton/draw() at fl.core::UIComponent/drawNow() at fl.controls::ScrollBar/draw() at fl.controls::UIScrollBar/draw() at fl.core::UIComponent/drawNow() at fl.controls::TextArea/updateScrollBars() at fl.controls::TextArea/drawLayout() at fl.controls::TextArea/draw() at fl.core::UIComponent/callLaterDispatcher() TypeError: Error #2007: 參數 child 不能是 Null。 當你用了 load swf,而咁o岩裡面個 swf

Posted in 編程

Flash右鍵另存圖片 with FP10 API-FileReference.save()

package { import flash.display.Loader; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.ContextMenuEvent; import flash.events.Event; import flash.net.FileReference; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.ui.ContextMenu; import flash.ui.ContextMenuItem; import flash.utils.ByteArray; /** * … * @author Focus1921 * 實作Flash右鍵另存圖檔demo */ [SWF(width = "800",

Posted in 編程

focus unwork as3???

注意 flash IDE 個 flash player 對 focus 是虧的…… 另外自己再用 flash player 開過黎試…… 唔好以為自己錯……

Posted in 編程

Object Handler (MC transformer 既 framework)

http://object-handles-examples.appspot.com/

Posted in 編程

Hack Flash Projector to change some value (e.g. title name)

Player without minimize, maximize and close buttons when not full screen: Using third party projector tools such as mProjector, Zinc, SWF Studio or Screenweaver. Flash alone cannot do that. Another way to hide the minimize, maximize and close buttons (and

Posted in 編程

Using swc rather than Embed tag

http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/ PS What is Flex Assets? When using [Embed] to store some bitmap, it will extends BitmapAssets, etc………. so somethime may not want to use Embed tag, then u can import the Asset class inside and extends by yrself! http://www.ultrashock.com/forums/flex/embed-flex-assets-without-using-flex-123405.html

Posted in 編程

Flash game framework (one is for pixel game!)

http://flixel.org/ http://flashpunk.net/ flixel is a flash game framework for pixel games flashpunk is a flash game framework~~~

Posted in 編程

as3 event bubbling notice

The event can only bubble up through the display list if the object that dispatched the event is a DisplayObject (or an ancestor of DisplayObject, such as a Sprite or MovieClip) so that it can be in the display list AND it

Posted in 編程

edwin 介紹的 web host

http://www.slicehost.com/ http://linode.com/ http://aws.amazon.com/ec2/

Posted in 編程

2D Array -> 1D Array -> Vector -> bitwise Vector 越黎越快

http://alecmce.com/as3/fast-2d-arrays 追求速度。

Posted in 編程

Debug Monster

http://www.demonsterdebugger.com/ a very good debug tool for writing as3

Posted in 編程

K2, a view framework for wordpress

http://getk2.com/

Posted in 編程

Design pattern for as3 Blog

http://www.as3dp.com/

Posted in 編程

Interface trick (main swf –> load external swf and want to call it function)

http://www.zedia.net/2008/another-good-use-of-interfaces/ 同場讀埋,interface 有咩用? http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/

Posted in 編程

模擬 multiple inheritance

http://www.darronschall.com/weblog/2006/10/multiple-inheritance-in-actionscript-3.cfm 用 implement interface + #include 去摸擬 實際上佢 implement 個 interface,但只有 function 名,對嘛 然後每個要 (扮) extends 個個 class implement 完左 #include 一定要個d functions, 咁咪一定要用個d function 囉? 咁就 == 一定有個堆 function 兼 function 名 及可以用 is 等等 咁就可以無限 (扮) extends! (not a

Posted in 編程

AS3 的一些怪野,必睇

http://va.lent.in/blog/2010/03/08/as3-is-weird-true-story/

Posted in 編程

Many Great resources, 最正係 MC transform

http://www.senocular.com/

Posted in 編程

Playing Audio with Flash

http://milkmidi.blogspot.com/2010/07/as3-scratch.html 我由呢個 demo 開始睇 http://www.anttikupila.com/flash/soundfx-out-of-the-box-audio-filters-with-actionscript-3/ 有呢個好正既 sound filter, 識做 echo, phase, feedback, cutoff, resonance 個d effect 用 pixelBlender Mix 歌 http://www.kaourantin.net/2008/10/audio-mixing-with-pixel-bender.html#4759002868008324481 http://blogs.adobe.com/kevin.goldsmith/2009/08/pixel_bender_au.html 載入 mp3 http://www.flexiblefactory.co.uk/flexible/

Posted in 編程

有擬似 bindable for Flash 既 library

http://bumpslide.com/blog/2009/03/04/data-binding-for-flash/ (explanation) http://code.google.com/p/bumpslide/ (src)

Posted in 編程

Some tools playing code -> art

Processing Context Free Structure Synth NodeBox Toolbox vvvv

Posted in 編程, 藝術

Art from code, and a book about art <-> program

http://www.artfromcode.com/ http://www.generative-gestaltung.de/

Posted in 編程, 藝術

Multiple AS3 classes in one file

http://probertson.com/articles/2006/07/28/one-file-many-as3-classes/

Posted in 編程

Keith Peters 個 blog~

http://www.bit-101.com/blog/

Posted in 編程

收錢 engine

http://www.theoworlds.com/products.php 睇下佢搞緊咩 咁舊既野,仲有無得賺?

Posted in 編程

isometric view 既 library

http://code.google.com/p/as3isolib/

Posted in 編程

using zip to pack a bulk of swf/exe

http://teejee2008.wordpress.com/2009/01/12/7-zip-sfx-maker-v20-2/ http://www.7-zip.org/ using this little tools and 7z or use this http://www.chilkatsoft.com/chilkatsfx.asp little good tool

Posted in 編程

The First HTML5 Mobile App Framework

http://www.sencha.com/

Posted in 編程

dojo

http://www.dojotoolkit.org/ a javascript framework rather than jQuery

Posted in 編程 Tagged with: ,

a blog of a flash developer

http://blog.joa-ebert.com/

Posted in 編程 Tagged with: ,

FluorineFX, RIA <-> .NET

http://www.fluorinefx.com/

Posted in 編程

flash 新 3d engine, flare3d

http://www.flare3d.com/

Posted in 編程

pv3d 唔夠用,用呢個擴充 lib 做更多 effect (其實 away3d 都得!)

http://code.google.com/p/as3dmod/

Posted in 編程

一個玩 flash 玩得 ok 勁既台灣人

http://milkmidi.blogspot.com/

Posted in 編程

Web design layout template 排得靚d

http://960.gs/ try 960 grid system

Posted in 編程

data center recommend by 高強

http://www.hostmonster.com/

Posted in 編程

as3 vcam ok 過癮既 tool, 做相機 app 最o岩

http://bryanheisey.com/blog/?page_id=18

Posted in 編程

cpanel alternative

http://www.webmin.com/index.html http://www.vhcs.net/index.html http://sourceforge.net/projects/zpanel/

Posted in 編程 Tagged with: , ,

graphics framework for as3

http://www.degrafa.org/ 呢個正。 http://visualrinse.com/2008/07/01/10-open-souce-or-free-flash-or-flex-code-libraries-you-need-to-check-out/ 10 Open Source Or Free Flash Or Flex Code Libraries You Need To Check Out.

Posted in 編程 Tagged with:

CSS tag menu 鼠黎鼠去個 concept

http://www.alistapart.com/articles/slidingdoors

Posted in 編程 Tagged with: ,

website theme is great

http://ielab.jp/

Posted in 編程 Tagged with:

Flipping books

http://www.rubenswieringa.com/blog/flex-book-component-beta http://pageflip.hu/

Posted in 編程 Tagged with: ,

rpg maker, visual novel engine

http://tkool.jp/products/rpgvx/eng/material.html http://renpy.org/wiki/renpy/Home_Page

Posted in 編程, 設計 Tagged with:

embed xml

[Embed(source="info.xml", mimeType="application/octet-stream")] protected var EmbeddedXML:Class; var ba : ByteArray = (new EmbeddedXML()) as ByteArray; var s : String = ba.readUTFBytes( ba.length ); xml = new XML( s );

Posted in 編程 Tagged with: ,

forum 講寫 game,都會講 as3

http://forums.tigsource.com/index.php

Posted in 編程 Tagged with: , ,

How away3D 解決 Z-order Problem

http://away.kiev.ua/away3d/techdemos/zorder/

Posted in 編程 Tagged with: ,

MVC, pls learn this 好快睇曬

http://www.moock.org/lectures/mvc/

Posted in 編程 Tagged with:

KitchenSync

http://kitchensync.as3lib.org/ an ActionScript 3.0 library for sequencing animations and other time-based actions.

Posted in 編程 Tagged with:

Embed Almost Anything in Your SWF

http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/

Posted in 編程 Tagged with:

a programmer blog

http://blog.brokenfunction.com/

Posted in 編程 Tagged with:

swf 是自己還是載入?

if(this.parent == stage); (一日未 add child ,呢招都唔 work) if (this.stage != null) { } but this work load 入去個個,個 stage 會變左 null =.=

Posted in 編程 Tagged with: ,

some great flash lib

http://blog.everythingflex.com/as3-libraries/ 識得整 pdf! http://code.google.com/p/as3corelib/ 有用既 code library

Posted in 編程 Tagged with:

Box2D, a physics engine for Flash

http://box2dflash.sourceforge.net/

Posted in 編程 Tagged with: ,

少有既 flash game framework

http://pushbuttonengine.com/

Posted in 編程 Tagged with: ,

graffiti framework

http://www.nocircleno.com/graffiti/ 作者個網 http://www.nocircleno.com/

Posted in 編程 Tagged with: , , ,

Papervision3D – Camera Perspective Change

// To increase perspective set the camera close and reduce the zoom camera.z = -600; camera.zoom = 40; // To decrease perspective set the camera far and increase zoom. camera.z = -1510; camera.zoom = 180;

Posted in 編程

得 Outline Material

http://forum.papervision3d.org/viewtopic.php?f=15&t=958&p=5060

Posted in 編程 Tagged with: , ,

3D Font, papervision

http://www.packtpub.com/article/3d-vector-drawing-and-text-papervision3d-part1 3D 字!超靚!!!

Posted in 編程 Tagged with: , ,

papervision, 關於上色

陰影很怪。 這個本應使用了 FlatShadeMaterial 去直接打光上去上色。 在 cube 上再加上一塊 bitmap mapping / movieClip mapping / colorMaterial material = new CompositeMaterial(); var mat = new ColorMaterial(ColorLibrary.YELLOW_COLOR, THREE_D_OBJ_ALHPA); material.addMaterial(mat); var mat = new FlatShadeMaterial(_light, Conf.LIGHT_COLOR, Conf.AMBIENT_COLOR, 20, THREE_D_OBJ_ALHPA); material.addMaterial(mat); 將兩個 material 合埋使用, 因為立體有了自身的顏身再上 flatShade

Posted in 編程 Tagged with: , ,

papervision,將 TriangleMesh3D 一開二

http://www.unitzeroone.com/blog/2008/03/17/papervision3d-cut-any-mesh-into-2-new-meshes-source/ http://www.unitzeroone.com/ btw,佢個 blog 都幾正~

Posted in 編程 Tagged with: , , ,

Thread in as3

For Flash, http://www.joristimmerman.be/wordpress/2009/01/11/pseudo-threading-in-actionscrip-as3/ For Flex, http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html

Posted in 編程 Tagged with:

Flash Framework (二)

Flint Particle System http://flintparticles.org/ Away3D http://away3d.com/ ds – data structures for AS3 http://code.google.com/p/polygonal/wiki/DataStructures

Posted in 書簽, 編程 Tagged with: ,

external assets swf (getDefinition)

package { /* the main swf that loads everything, starting with assets swf… */ import flash.display.*; import flash.net.URLRequest; import flash.utils.*; import flash.events.Event;</code> public class Requiem extends MovieClip { private var AssetLoader:Loader; private var Request:URLRequest; private var AssetsURL:String = "RequiemAssets.swf" public

Posted in 編程 Tagged with: ,

Developer Blog, Site 推薦 (一)

一定要 keep 住睇! 日本 developer 既蒲點,好多 idea 可以係到搵到 http://wonderfl.net/ http://beautifl.net/ 比較淺 http://tutorials.flashmymind.com/ 呢個係賣code 既,睇下都學到好多野 http://activeden.net/ 一個鍾意玩 pv3d 既人既 blog http://sebleedelisle.com/ show news 多 http://www.flashmagazine.com/ 比較淺,可睇可唔睇 http://www.riacodes.com/ 一定要睇,show 新 technique 多過教你寫 code http://www.everydayflash.com/ papervision technical 野多 http://blog.zupko.info/ effect technical 野多,較難,推薦 http://www.dehash.com/

Posted in 書簽, 編程 Tagged with: ,

Flash Framework

GAIA Flash Framework http://www.gaiaflashframework.com/ 寫網站時試用,包了 swfAddress 同自動分頁 Papervision 3D http://blog.papervision3d.org/ 不用介紹吧,正在研究 PureMVC http://puremvc.org/ MVC Model,還在研究中 XIFF http://www.igniterealtime.org/ 做 real-time community 用,例如 chatting,還在研究中 TweenLite http://www.greensock.com/tweenlite/ 做 motion tween 用 JiglibFlash http://www.jiglibflash.com/blog/ Physics Engine For 3D,還在研究中 CASA Lib http://casalib.org/ 提供一大堆有用既 Class BetweenAS3

Posted in 書簽, 編程 Tagged with: ,