Warning: Parameter 1 to ace_where() expected to be a reference, value given in /nfs/c09/h02/mnt/127482/domains/todepoint.com/html/blog/wp-includes/plugin.php on line 227

Warning: Parameter 1 to ace_join() expected to be a reference, value given in /nfs/c09/h02/mnt/127482/domains/todepoint.com/html/blog/wp-includes/plugin.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c09/h02/mnt/127482/domains/todepoint.com/html/blog/wp-includes/plugin.php:227) in /nfs/c09/h02/mnt/127482/domains/todepoint.com/html/blog/wp-includes/feed-rss2-comments.php on line 8
Comments for toDeBlog http://todepoint.com/blog A blog about User Interface, User Experience, Design, Flash, Product management and all that goes in between. Mon, 30 Apr 2012 08:11:23 +0000 hourly 1 http://wordpress.org/?v=3.3.2 Comment on Random number without repeat as3 by iMath http://todepoint.com/blog/2011/01/15/random-number-without-repeat/#comment-4332 iMath Mon, 30 Apr 2012 08:11:23 +0000 http://todepoint.com/blog/?p=341#comment-4332 That' s the great code. It' s very helpful. Thank you very much. That’ s the great code. It’ s very helpful. Thank you very much.

]]>
Comment on scrollPane background customization – as3 by Vinay http://todepoint.com/blog/2008/03/26/scrollpane-background-customization-as3/#comment-4330 Vinay Mon, 30 Apr 2012 07:06:44 +0000 http://todepoint.com/blog/2008/03/26/scrollpane-background-customization-as3/#comment-4330 Use this code to get 100% emty Backgroud result Scroller.setStyle("upSkin", MovieClip) ; Use this code to get 100% emty Backgroud result

Scroller.setStyle(“upSkin”, MovieClip) ;

]]>
Comment on Random number without repeat as3 by Kaloyan http://todepoint.com/blog/2011/01/15/random-number-without-repeat/#comment-3195 Kaloyan Sat, 10 Mar 2012 17:22:28 +0000 http://todepoint.com/blog/?p=341#comment-3195 Thank you. This AS is doing great job. Best Regards, Kaloayn. Thank you.
This AS is doing great job.

Best Regards,
Kaloayn.

]]>
Comment on Random number without repeat as3 by adi http://todepoint.com/blog/2011/01/15/random-number-without-repeat/#comment-3183 adi Fri, 09 Mar 2012 10:09:06 +0000 http://todepoint.com/blog/?p=341#comment-3183 Hey Will, I think your problem is defining the scope - you should define 'start' & 'end' like this: var startNum:Number = 0; var endNum:Number = 10; var rp:RandomPlus = new RandomPlus(endNum, startNum); Now you can start getting random numbers between 0 to 10 like this: rp.getNum(); Hope this solves your problem, good luck with your project! A. Hey Will,

I think your problem is defining the scope – you should define ‘start’ & ‘end’ like this:

var startNum:Number = 0;
var endNum:Number = 10;
var rp:RandomPlus = new RandomPlus(endNum, startNum);

Now you can start getting random numbers between 0 to 10 like this:

rp.getNum();

Hope this solves your problem, good luck with your project!
A.

]]>
Comment on Random number without repeat as3 by will http://todepoint.com/blog/2011/01/15/random-number-without-repeat/#comment-3182 will Fri, 09 Mar 2012 09:39:45 +0000 http://todepoint.com/blog/?p=341#comment-3182 hey i have 2 things to say. first of all great script seriusly this will help alot in a learning game i am making. no wories i have already put you on the special thanks list. and the game is free for use when it's done sort of a litle project. so big big thanks. second i ran into a smal problem when i use the code in a function that should pik a number and place stones on the game board. var rp:RandomPlus = new RandomPlus(end:Number, start:Number = 0); the debug sas tath this line of code gives the following error. Scene 1, Layer 'functions', Frame 1, Line 120 1084: Syntax error: expecting rightparen before colon. i made a clas file in the same folder and pasted the whole class RandomPlus in it and saved it as RandomPlus.class. am i doing somthing wrong ? will hey i have 2 things to say.

first of all great script seriusly this will help alot in a learning game i am making. no wories i have already put you on the special thanks list. and the game is free for use when it’s done sort of a litle project. so big big thanks.

second i ran into a smal problem
when i use the code in a function that should pik a number and place stones on the game board.

var rp:RandomPlus = new RandomPlus(end:Number, start:Number = 0);

the debug sas tath this line of code gives the following error.

Scene 1, Layer ‘functions’, Frame 1, Line 120 1084: Syntax error: expecting rightparen before colon.

i made a clas file in the same folder and pasted the whole class RandomPlus in it and saved it as RandomPlus.class.

am i doing somthing wrong ?

will

]]>
Comment on Random number without repeat as3 by Craig http://todepoint.com/blog/2011/01/15/random-number-without-repeat/#comment-2891 Craig Wed, 15 Feb 2012 21:14:50 +0000 http://todepoint.com/blog/?p=341#comment-2891 This is a really nice class. Thanks so much. This is a really nice class. Thanks so much.

]]>
Comment on Pure code AS3 spinning loading animation by Uyangaa http://todepoint.com/blog/2010/07/22/spinning_animation-as3/#comment-2219 Uyangaa Mon, 12 Dec 2011 09:58:58 +0000 http://todepoint.com/blog/?p=104#comment-2219 thanks a lot thanks a lot

]]>
Comment on Glossy buttons in pure as3 code by Paul http://todepoint.com/blog/2008/04/10/glossy-buttons-in-pure-as3-code/#comment-1719 Paul Mon, 24 Oct 2011 13:09:45 +0000 http://todepoint.com/blog/?p=46#comment-1719 If we re-define the drop shadow in line 90 as var myShade = new DropShadowFilter(myShadeDist,85,0x020202,0.5,myShadeBlur,myShadeBlur,5,5); (I have changed the last 2 parameters from 1,1 to 5,5); Then write lines 263 to 273 as ////////////////////////////////////////// private function onButPress(ev:Event):void { _typo.textColor = 0xCCCCCC; // apply New shade / bevel filter: var myShadeBlur = _rd/8; var myShadeDist = _rd/12; var myBevelBlur = _rd / 6; var myShade = new DropShadowFilter(myShadeDist,85,0x020202,0.5,myShadeBlur,myShadeBlur,0,0); var myBevel = new BevelFilter(3,325,0x000000,.3,0x000000,.3,myBevelBlur,myBevelBlur,1,2,"outer",false); _glossBut.filters = [myShade, myBevel]; /////////////////////////////////// } private function onButUp(ev:Event):void { _typo.textColor = 0x000000; // apply original shade / bevel filter: var myShadeBlur = _rd/8; var myShadeDist = _rd/12; var myBevelBlur = _rd / 6; var myShade = new DropShadowFilter(myShadeDist,85,0x020202,0.5,myShadeBlur,myShadeBlur,5,5); var myBevel = new BevelFilter(3,325,0x000000,.3,0x000000,.3,myBevelBlur,myBevelBlur,1,2,"outer",false); _glossBut.filters = [myShade, myBevel]; } /////////////////////// Then together with the changte in text colour it creates a VERY noticeable change in appearance on the button clearly indicating which button was pressed. I am sure there are more elegent ways to achieve the same effect but still - not bad for a Newbie ! Paul p.s. I will leave you in peace now. Go Well!! If we re-define the drop shadow in line 90 as

var myShade = new DropShadowFilter(myShadeDist,85,0×020202,0.5,myShadeBlur,myShadeBlur,5,5);

(I have changed the last 2 parameters from 1,1 to 5,5);

Then write lines 263 to 273 as

//////////////////////////////////////////

private function onButPress(ev:Event):void
{
_typo.textColor = 0xCCCCCC;
// apply New shade / bevel filter:
var myShadeBlur = _rd/8;
var myShadeDist = _rd/12;
var myBevelBlur = _rd / 6;
var myShade = new DropShadowFilter(myShadeDist,85,0×020202,0.5,myShadeBlur,myShadeBlur,0,0);
var myBevel = new BevelFilter(3,325,0×000000,.3,0×000000,.3,myBevelBlur,myBevelBlur,1,2,”outer”,false);
_glossBut.filters = [myShade, myBevel];

///////////////////////////////////
}
private function onButUp(ev:Event):void
{
_typo.textColor = 0×000000;

// apply original shade / bevel filter:
var myShadeBlur = _rd/8;
var myShadeDist = _rd/12;
var myBevelBlur = _rd / 6;
var myShade = new DropShadowFilter(myShadeDist,85,0×020202,0.5,myShadeBlur,myShadeBlur,5,5);
var myBevel = new BevelFilter(3,325,0×000000,.3,0×000000,.3,myBevelBlur,myBevelBlur,1,2,”outer”,false);
_glossBut.filters = [myShade, myBevel];

}

///////////////////////

Then together with the changte in text colour it creates a VERY noticeable change in appearance on the button clearly indicating which button was pressed.

I am sure there are more elegent ways to achieve the same effect but still – not bad for a Newbie !

Paul

p.s. I will leave you in peace now. Go Well!!

]]>
Comment on Glossy buttons in pure as3 code by Paul http://todepoint.com/blog/2008/04/10/glossy-buttons-in-pure-as3-code/#comment-1718 Paul Mon, 24 Oct 2011 12:57:08 +0000 http://todepoint.com/blog/?p=46#comment-1718 By way of experiment I changed lines 263 to 273 in the class to; private function onButPress(ev:Event):void { _typo.textColor = 0xCCCCCC; } private function onButUp(ev:Event):void { _typo.textColor = 0x000000; } The effect is that on clicking the button the button text changes colour while on releasing the button the text returns to its original colour. This creates a blink-like effect in the button and lets the user know it was clicked. Fairly simple - sure there are better ways to do it. Anyway GREAT ! Will try to see if I can rather remove the drop shadow to create the impression of depressing the button. Paul By way of experiment I changed lines 263 to 273 in the class to;

private function onButPress(ev:Event):void
{

_typo.textColor = 0xCCCCCC;

}
private function onButUp(ev:Event):void
{
_typo.textColor = 0×000000;
}

The effect is that on clicking the button the button text changes colour while on releasing the button the text returns to its original colour. This creates a blink-like effect in the button and lets the user know it was clicked. Fairly simple – sure there are better ways to do it. Anyway GREAT !

Will try to see if I can rather remove the drop shadow to create the impression of depressing the button.

Paul

]]>
Comment on Glossy buttons in pure as3 code by Paul http://todepoint.com/blog/2008/04/10/glossy-buttons-in-pure-as3-code/#comment-1717 Paul Mon, 24 Oct 2011 12:32:44 +0000 http://todepoint.com/blog/?p=46#comment-1717 Thanks adi. I did see what I thought were a few behaviour reacting listeners in the class so will experiment with it. Must say these buttons are REALLY cool ! Paul Thanks adi.

I did see what I thought were a few behaviour reacting listeners in the class so will experiment with it.

Must say these buttons are REALLY cool !

Paul

]]>