You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(72) |
Jun
(97) |
Jul
(194) |
Aug
(209) |
Sep
(57) |
Oct
(119) |
Nov
(58) |
Dec
(186) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(227) |
Feb
(209) |
Mar
(90) |
Apr
(46) |
May
(20) |
Jun
(114) |
Jul
(25) |
Aug
(41) |
Sep
(42) |
Oct
(14) |
Nov
(1) |
Dec
|
2007 |
Jan
(4) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: Ray C. <rc...@gm...> - 2006-09-04 11:07:59
|
Hi, I'll change the announcement to as follows: >>> I ensured that usage of the variable DEFAULT_THICKNESS when lines are drawn. This allows users to modify the default thickness for lines. <<< On 9/4/06, Ray Chuan <rc...@gm...> wrote: > Oops, not so minor after all. > > On 9/4/06, Tiago Vale <tia...@gm...> wrote: > > Hi Ray, > > > > It seems that your modification is causing some troubles with almost all > > visual components, now they appear with a black square on the top of > > component! > > > > > > > > > > > > > > On 9/4/06, Ray Chuan <rc...@gm...> wrote: > > > > > Hi, > > I ensured that usage of the variable DEFAULT_THICKNESS when lineStyle > > is used. This is because sometimes the thickness was 1 or undefined > > when drawing fills, the outline of which should not have any > > thickness. > > > > -- > > Cheers, > > Ray Chuan > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > -- > > Cheers Tiago Janz > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > -- > Cheers, > Ray Chuan > -- Cheers, Ray Chuan |
From: Zaba Z. <se...@gm...> - 2006-09-04 11:06:48
|
OH! i jusr ran some build on my project... well debugging windows looks really scary. that wasnt really a [minor] change... On 9/4/06, Ray Chuan <rc...@gm...> wrote: > > Oops, not so minor after all. > > On 9/4/06, Tiago Vale <tia...@gm...> wrote: > > Hi Ray, > > > > It seems that your modification is causing some troubles with almost all > > visual components, now they appear with a black square on the top of > > component! > > > > > > > > > > > > > > On 9/4/06, Ray Chuan <rc...@gm...> wrote: > > > > > Hi, > > I ensured that usage of the variable DEFAULT_THICKNESS when lineStyle > > is used. This is because sometimes the thickness was 1 or undefined > > when drawing fills, the outline of which should not have any > > thickness. > > > > -- > > Cheers, > > Ray Chuan > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > -- > > Cheers Tiago Janz > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > -- > Cheers, > Ray Chuan > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > -- Zaba "...The question it NOT why you should migrate to Linux, but WHY NOT?..." Open Source forever! http://gnu.org -- http://www.linux.org -- http://kde.org That's not all! |
From: Ray C. <rc...@gm...> - 2006-09-04 10:47:40
|
Oops, not so minor after all. On 9/4/06, Tiago Vale <tia...@gm...> wrote: > Hi Ray, > > It seems that your modification is causing some troubles with almost all > visual components, now they appear with a black square on the top of > component! > > > > > > > On 9/4/06, Ray Chuan <rc...@gm...> wrote: > > > Hi, > I ensured that usage of the variable DEFAULT_THICKNESS when lineStyle > is used. This is because sometimes the thickness was 1 or undefined > when drawing fills, the outline of which should not have any > thickness. > > -- > Cheers, > Ray Chuan > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > -- > Cheers Tiago Janz > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > -- Cheers, Ray Chuan |
From: Ray C. <rc...@gm...> - 2006-09-04 10:46:32
|
Hi, On 9/4/06, thomas mery <tho...@gm...> wrote: > hi all, > > I'm in the process of animating views and I was looking at NSAnimation and > NSAnimationCurve > > I also noticed the in ASAnimatedTabView the animation process is done with a > timer without resorting to NSAnimation I'm working on making it use A/NSAnimation, so that it can be standardised. NSAnimation uses a timer internally too, by the way. > Also there is only one NSAnimationCurve available and the constructor of > this class is private (from which I deduce that the class needs to be > augented with other curves types or subclassed since NSAnimation requires an > instance of NSAnimationCurve and cannot use ASDraw functions that returns an > easing equation) Please update your working copy. I've added a ton of easing functions. > Also I noticed the NSanimation instance can have a delegate, what would I > typically use it for ? You *must* use the delegate to update/animate, unless you prefer subclassing. Please see the test file /trunk/test/org.actionstep.test.ASTestAnimation for an example. > It would really help me if someone would comment on the best way to go about > animating views. You shouldn't face much difficulty, because views use movieclips anyway. Say you want to move a window accross the screen: animationDidAdvance:function(anim:NSAnimation):Void { win.setFrameOrigin(win.frameOrigin().translate( foo.currentValue() * dx + sx, 0)); // force update win.displayIfNeeded(); } > Thnaks in advance > > Thomas > > -- > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > -- Cheers, Ray Chuan |
From: Tiago V. <tia...@gm...> - 2006-09-04 09:42:00
|
Hi Ray, It seems that your modification is causing some troubles with almost all visual components, now they appear with a black square on the top of component! On 9/4/06, Ray Chuan <rc...@gm...> wrote: > > Hi, > I ensured that usage of the variable DEFAULT_THICKNESS when lineStyle > is used. This is because sometimes the thickness was 1 or undefined > when drawing fills, the outline of which should not have any > thickness. > > -- > Cheers, > Ray Chuan > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > -- Cheers Tiago Janz |
From: thomas m. <tho...@gm...> - 2006-09-04 08:35:24
|
hi all, I'm in the process of animating views and I was looking at NSAnimation and NSAnimationCurve I also noticed the in ASAnimatedTabView the animation process is done with a timer without resorting to NSAnimation Also there is only one NSAnimationCurve available and the constructor of this class is private (from which I deduce that the class needs to be augented with other curves types or subclassed since NSAnimation requires an instance of NSAnimationCurve and cannot use ASDraw functions that returns an easing equation) Also I noticed the NSanimation instance can have a delegate, what would I typically use it for ? It would really help me if someone would comment on the best way to go about animating views. Thnaks in advance Thomas -- |
From: Ray C. <rc...@gm...> - 2006-09-04 06:20:52
|
Hi, I ensured that usage of the variable DEFAULT_THICKNESS when lineStyle is used. This is because sometimes the thickness was 1 or undefined when drawing fills, the outline of which should not have any thickness. -- Cheers, Ray Chuan |
From: Ewan M. <mr...@mr...> - 2006-09-03 11:50:30
|
Great, thanks for the reassurance and advice, Ewan. On 1 Sep 2006, at 21:51, Scott Hyndman wrote: >> Hello, >> >> I'm trying to program my application using MVC pattern as described >> in Cocoa Fundamentals. >> >> "The delegate object itself is typically, but not necessarily, an >> object, often a custom object, >> that controls some part of the application (that is, a coordinating >> controller object)." >> CocoaFundamentals p148. >> >> Great so my thoughts so far I can either initialize my view objects >> with their controller e.g. >> var myView = (new MyView).initWithController((new >> MyController).init()); >> or as the text above suggests I can set it as a delegate and >> implement an informal protocol between the controller and view e.g. >> var myView = (new MyView()).init(); >> myView.setDelegate((new MyController).init)); >> >> From the actionstep source code there are three different ways to >> implement setDelegate in your Delegator >> >> It can be notified (see ASFieldEditor.as) >> It can be called directly and the delegate check to see that it >> conforms to informal protocol(see ASTreeView.as) >> It can be called directly but not checked to see if it responds to >> calls (see NSImage.as , when is m_delegate used?) >> >> You can create an interface if you want (ASFieldEditingProtocol.as) >> The naming strategy is either append Protocol or Delegate. >> >> Does this sound about right? > > Yes, it does. > >> So say I've got 10 small simple views shall I just bundle all my >> control code in one or two Controllers and set either as delegate for >> all the view? > > Yeah, you can absolutely do something like this. In fact, you may > notice that the first argument for most delegate methods is the > "sender", which is the object that is requesting the delegated > behaviour. Just do equality testing on that and have it behave > appropriately. > > Scott > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core |
From: Scott H. <sc...@af...> - 2006-09-02 19:49:39
|
I've made some significant changes (and improvements) to NSMovieView yesterday and today. I know that some of you were using it, but I think that it should still work well (if not better). If you have any problems, just let me know. Scott |
From: Scott H. <sc...@af...> - 2006-09-01 20:51:26
|
> Hello, > > I'm trying to program my application using MVC pattern as described > in Cocoa Fundamentals. > > "The delegate object itself is typically, but not necessarily, an > object, often a custom object, > that controls some part of the application (that is, a coordinating > controller object)." > CocoaFundamentals p148. > > Great so my thoughts so far I can either initialize my view objects > with their controller e.g. > var myView = (new MyView).initWithController((new MyController).init()); > or as the text above suggests I can set it as a delegate and > implement an informal protocol between the controller and view e.g. > var myView = (new MyView()).init(); > myView.setDelegate((new MyController).init)); > > From the actionstep source code there are three different ways to > implement setDelegate in your Delegator > > It can be notified (see ASFieldEditor.as) > It can be called directly and the delegate check to see that it > conforms to informal protocol(see ASTreeView.as) > It can be called directly but not checked to see if it responds to > calls (see NSImage.as , when is m_delegate used?) > > You can create an interface if you want (ASFieldEditingProtocol.as) > The naming strategy is either append Protocol or Delegate. > > Does this sound about right? Yes, it does. > So say I've got 10 small simple views shall I just bundle all my > control code in one or two Controllers and set either as delegate for > all the view? Yeah, you can absolutely do something like this. In fact, you may notice that the first argument for most delegate methods is the "sender", which is the object that is requesting the delegated behaviour. Just do equality testing on that and have it behave appropriately. Scott |
From: Ewan M. <mr...@mr...> - 2006-09-01 13:38:24
|
Hello, I'm trying to program my application using MVC pattern as described in Cocoa Fundamentals. "The delegate object itself is typically, but not necessarily, an object, often a custom object, that controls some part of the application (that is, a coordinating controller object)." CocoaFundamentals p148. Great so my thoughts so far I can either initialize my view objects with their controller e.g. var myView = (new MyView).initWithController((new MyController).init()); or as the text above suggests I can set it as a delegate and implement an informal protocol between the controller and view e.g. var myView = (new MyView()).init(); myView.setDelegate((new MyController).init)); From the actionstep source code there are three different ways to implement setDelegate in your Delegator It can be notified (see ASFieldEditor.as) It can be called directly and the delegate check to see that it conforms to informal protocol(see ASTreeView.as) It can be called directly but not checked to see if it responds to calls (see NSImage.as , when is m_delegate used?) You can create an interface if you want (ASFieldEditingProtocol.as) The naming strategy is either append Protocol or Delegate. Does this sound about right? So say I've got 10 small simple views shall I just bundle all my control code in one or two Controllers and set either as delegate for all the view? There doesn't seem much point spreading all the control code around by having parallel Views and Controllers. (i.e. one controller for each view). Cheers, Ewan |
From: thomas m. <tho...@gm...> - 2006-09-01 09:56:50
|
I was thinking it should be possible to set a center point and compute the new x and y based on the rotation angle, new x, new y , old x, old y without having to resort to a container clip like if you rotate a square by 90=B0 and want its rotation point to be its center you rotate it and then have to add half its width to its x position you then get the desired behaviour I thought there was a formula to have it work with any angle and any rotation point I'll keep on looking for this but if someone knows what I mean and have it handy ... :) maybe its basic stuff but trigonometry and I have to schedule a meeting On 9/1/06, Ray Chuan <rc...@gm...> wrote: > > What do you mean? Share! > > On 9/1/06, thomas mery <tho...@gm...> wrote: > > the good old method > > > > I thought about somethin more complex where the new center was computed > but > > this is way better :) > > > > thanks > > > > > > On 8/31/06, Ray Chuan <rc...@gm...> wrote: > > > Hi, > > > maybe you can attach it to another clip. > > > > > > Say you have a box w by h, which is originally at (x,y). You want the > > > centre of rotation to be at (xc,yc). So, attach it to a clip: > > > > > > daddy_mc.createEmptyMovieClip("kid_mc", > > daddy_mc.getNextHigestDepth()); > > > daddy_mc._x =3D x-xc; > > > daddy_mc._y =3D y-yc; > > > kid_mc._x =3D xc; > > > kid_mc._y =3D xc; > > > > > > Since the absolute coordinates of the attached clip takes into accoun= t > > > > the coordinates of the parent clip, kid clip appears at the point (x, > > > y) but has rotation centre (xc, yc). > > > > > > To do this in ActionStep your movieclip heirarchy should look like > this: > > > > > > mcBounds > > > |- holder > > > |- daddy_mc > > > |- kid_mc > > > > > > On 8/31/06, thomas mery < tho...@gm... > wrote: > > > > by the way is there a method (im not that good with maths ...) to > shift > > the > > > > rotation center ? I know there probably is out there but > already built > > in > > > > actionstep ? > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > -- > Cheers, > Ray Chuan > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > --=20 ---------------------------------------------------------- http://www.myspace.com/thomasmery http://www.thomas-mery.net ---------------------------------------------------------- |
From: thomas m. <tho...@gm...> - 2006-09-01 09:13:29
|
sorry I wrote : like if you rotate a square by 90=B0 and want its rotation point to be its center you rotate it and then have to add half its width to its x position you then get the desired behaviour should have been : you have to add its whole width On 9/1/06, thomas mery <tho...@gm...> wrote: > > I was thinking it should be possible to set a center point and compute th= e > new x and y based on the rotation angle, new x, new y , old x, old y > > without having to resort to a container clip > > like if you rotate a square by 90=B0 and want its rotation point to be it= s > center you rotate it and then have to add half its width to its x positio= n > you then get the desired behaviour > > I thought there was a formula to have it work with any angle and any > rotation point > > I'll keep on looking for this but if someone knows what I mean and have > it handy ... :) > > maybe its basic stuff but trigonometry and I have to schedule a meeting > > > > > > On 9/1/06, Ray Chuan <rc...@gm...> wrote: > > > > What do you mean? Share! > > > > On 9/1/06, thomas mery <tho...@gm...> wrote: > > > the good old method > > > > > > I thought about somethin more complex where the new center was > > computed but > > > this is way better :) > > > > > > thanks > > > > > > > > > On 8/31/06, Ray Chuan <rc...@gm... > wrote: > > > > Hi, > > > > maybe you can attach it to another clip. > > > > > > > > Say you have a box w by h, which is originally at (x,y). You want > > the > > > > centre of rotation to be at (xc,yc). So, attach it to a clip: > > > > > > > > daddy_mc.createEmptyMovieClip("kid_mc", > > > daddy_mc.getNextHigestDepth()); > > > > daddy_mc._x =3D x-xc; > > > > daddy_mc._y =3D y-yc; > > > > kid_mc._x =3D xc; > > > > kid_mc._y =3D xc; > > > > > > > > Since the absolute coordinates of the attached clip takes into > > account > > > > the coordinates of the parent clip, kid clip appears at the point > > (x, > > > > y) but has rotation centre (xc, yc). > > > > > > > > To do this in ActionStep your movieclip heirarchy should look like > > this: > > > > > > > > mcBounds > > > > |- holder > > > > |- daddy_mc > > > > |- kid_mc > > > > > > > > On 8/31/06, thomas mery < tho...@gm... > wrote: > > > > > by the way is there a method (im not that good with maths ...) to > > shift > > > the > > > > > rotation center ? I know there probably is out there but > > already built > > > in > > > > > actionstep ? > > > > > > > > > > > > > > > > > > > > > -----------------------------------------------------------------------= -- > > > Using Tomcat but need to do more? Need to support web services, > > security? > > > Get stuff done quickly with pre-integrated technology to make your jo= b > > > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > > > > > _______________________________________________ > > > actionstep-core mailing list > > > act...@li... > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > > > > > > > -- > > Cheers, > > Ray Chuan > > > > > > -----------------------------------------------------------------------= -- > > Using Tomcat but need to do more? Need to support web services, > > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > -- > > ---------------------------------------------------------- > http://www.myspace.com/thomasmery > http://www.thomas-mery.net > ---------------------------------------------------------- > --=20 ---------------------------------------------------------- http://www.myspace.com/thomasmery http://www.thomas-mery.net ---------------------------------------------------------- |
From: Ray C. <rc...@gm...> - 2006-09-01 01:19:27
|
What do you mean? Share! On 9/1/06, thomas mery <tho...@gm...> wrote: > the good old method > > I thought about somethin more complex where the new center was computed but > this is way better :) > > thanks > > > On 8/31/06, Ray Chuan <rc...@gm...> wrote: > > Hi, > > maybe you can attach it to another clip. > > > > Say you have a box w by h, which is originally at (x,y). You want the > > centre of rotation to be at (xc,yc). So, attach it to a clip: > > > > daddy_mc.createEmptyMovieClip("kid_mc", > daddy_mc.getNextHigestDepth()); > > daddy_mc._x = x-xc; > > daddy_mc._y = y-yc; > > kid_mc._x = xc; > > kid_mc._y = xc; > > > > Since the absolute coordinates of the attached clip takes into account > > the coordinates of the parent clip, kid clip appears at the point (x, > > y) but has rotation centre (xc, yc). > > > > To do this in ActionStep your movieclip heirarchy should look like this: > > > > mcBounds > > |- holder > > |- daddy_mc > > |- kid_mc > > > > On 8/31/06, thomas mery < tho...@gm...> wrote: > > > by the way is there a method (im not that good with maths ...) to shift > the > > > rotation center ? I know there probably is out there but already built > in > > > actionstep ? > > > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > -- Cheers, Ray Chuan |
From: thomas m. <tho...@gm...> - 2006-08-31 16:57:27
|
the good old method I thought about somethin more complex where the new center was computed but this is way better :) thanks On 8/31/06, Ray Chuan <rc...@gm...> wrote: > > Hi, > maybe you can attach it to another clip. > > Say you have a box w by h, which is originally at (x,y). You want the > centre of rotation to be at (xc,yc). So, attach it to a clip: > > daddy_mc.createEmptyMovieClip("kid_mc", daddy_mc.getNextHigestDepth()); > daddy_mc._x = x-xc; > daddy_mc._y = y-yc; > kid_mc._x = xc; > kid_mc._y = xc; > > Since the absolute coordinates of the attached clip takes into account > the coordinates of the parent clip, kid clip appears at the point (x, > y) but has rotation centre (xc, yc). > > To do this in ActionStep your movieclip heirarchy should look like this: > > mcBounds > |- holder > |- daddy_mc > |- kid_mc > > On 8/31/06, thomas mery <tho...@gm...> wrote: > > by the way is there a method (im not that good with maths ...) to shift > the > > rotation center ? I know there probably is out there but already built > in > > actionstep ? > > > > |
From: Ray C. <rc...@gm...> - 2006-08-31 16:27:27
|
Hi, maybe you can attach it to another clip. Say you have a box w by h, which is originally at (x,y). You want the centre of rotation to be at (xc,yc). So, attach it to a clip: daddy_mc.createEmptyMovieClip("kid_mc", daddy_mc.getNextHigestDepth()); daddy_mc._x = x-xc; daddy_mc._y = y-yc; kid_mc._x = xc; kid_mc._y = xc; Since the absolute coordinates of the attached clip takes into account the coordinates of the parent clip, kid clip appears at the point (x, y) but has rotation centre (xc, yc). To do this in ActionStep your movieclip heirarchy should look like this: mcBounds |- holder |- daddy_mc |- kid_mc On 8/31/06, thomas mery <tho...@gm...> wrote: > by the way is there a method (im not that good with maths ...) to shift the > rotation center ? I know there probably is out there but already built in > actionstep ? > > > > > On 8/31/06, thomas mery <tho...@gm...> wrote: > > > > actually I think I was lookng for setFrameRotation and it works :) > > > > > > > > > > > > On 8/31/06, Scott Hyndman <sc...@af... > wrote: > > > This used to work. I'll have a look. > > > > > > Scott > > > > > > On 30/08/06, thomas mery < tho...@gm...> wrote: > > > > Hello all, > > > > > > > > i'm having trouble rotating views ... is there anything I should be > aware of > > > > ? > > > > > > > > using rotateByAngle(90) results in my view disappearing alltogether > > > > > > > > trying to use mcBoundsHolder._rotation does the same > > > > > > > > hope i'l just mising something :) > > > > > > > > tia > > > > > > > > thomas > > > > > > > > -- > > > > > > > > > ------------------------------------------------------------------------- > > > > Using Tomcat but need to do more? Need to support web services, > security? > > > > Get stuff done quickly with pre-integrated technology to make your job > > > > easier > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > > > _______________________________________________ > > > > actionstep-core mailing list > > > > act...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > security? > > > Get stuff done quickly with pre-integrated technology to make your job > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > actionstep-core mailing list > > > act...@li... > > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > > > > > -- > > > ---------------------------------------------------------- > > http://www.myspace.com/thomasmery > > http://www.thomas-mery.net > > > ---------------------------------------------------------- > > > > -- > ---------------------------------------------------------- > http://www.myspace.com/thomasmery > http://www.thomas-mery.net > ---------------------------------------------------------- > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > -- Cheers, Ray Chuan |
From: Ray C. <rc...@gm...> - 2006-08-31 16:19:47
|
It shouldn't matter which clip you pass to repSizeForClip, since the size is not affected by the clip it is attached to. It's a different story for co-ordinates, though. On 8/31/06, thomas mery <tho...@gm...> wrote: > hi > > I was using repSizeForClip(). > > and you're right about _root, I figured it out later. > > It leaves me with my question : > > how do I get the size of the symbol before the draw cycle ? > > because for instance I think If I want to use NSImage.setImageAlignment() > and that I don't set a size for the image (and I want the image to the size > of the symbol) it won't work (since the size() yields widht=undefined and > height=undefined) > > I resort to calling repSizeForClip passing the view mcBounds as the base > clip like : > > var size_mc:MovieClip = > win.rootView().mcBounds().createEmptyMovieClip("__SIZE_MC__",_root.getNextHighestDepth()); > var symbolSize = rep.repSizeForClip(size_mc); > size_mc.removeMovieClip(); > > I also thought about passing the current view to the rep ... > > > > > On 8/31/06, Scott Hyndman <sc...@af...> wrote: > > It's an interesting idea, but there is a problem. You are relying on > > _root to attach the symbol. The symbols may not necessarily be there > > (they could be under a loadMovie'd clip). > > > > Ray is correct in suggesting repSizeForClip(). > > > > Scott > > > > On 31/08/06, thomas mery <tho...@gm...> wrote: > > > Helo all, > > > > > > I've been finding myself trying to use the size of a symbol > representation > > > before its being drawn, like if I want to use setAlignment on it : > > > > > > ---- > > > var rect:NSRect = new NSRect(30,100,200,200); > > > var img:NSImage = (new NSImage()).init(); > > > var rep:ASSymbolImageRep = new ASSymbolImageRep("logo_sm"); > > > img.addRepresentation(rep); > > > > > > var iv:NSImageView = new NSImageView(); > > > iv.initWithFrame (new NSRect(0,0,300,300)); > > > > > > iv.setImage(img); > > > > > > > iv.setImageAlignment(NSImageAlignment.NSImageAlignTopRight > ); > > > > > > win.contentView().addSubview(iv); > > > ---- > > > > > > since it seem the repSizeForClip method is only called when the rep is > drawn > > > it was not working (the scaledImageFrameForRect of the NSImageCell class > > > would not get a size for the NSImage) > > > > > > so I extended ASSymbolImageRep to have the constructor of the child > class > > > look lihe this : > > > > > > --- > > > public function SMSymbolImageRep(symbolName : String, size : NSSize) { > > > > > > super(symbolName, size); > > > > > > var size_mc:MovieClip = > > > > _root.createEmptyMovieClip("__SIZEMC__",_root.getNextHighestDepth()); > > > > > > if(m_size == undefined) { > > > m_size = repSizeForClip(size_mc); > > > } > > > > > > size_mc.removeMovieClip(); > > > > > > } > > > --- > > > > > > it's working for me so I'm happy :) but I was wondering if woud not be a > > > useful addition to the ASSymbolImageRep class, and if not then why ? > > > > > > Thanks in advance > > > > > > thomas > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > security? > > > Get stuff done quickly with pre-integrated technology to make your job > > > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > _______________________________________________ > > > actionstep-core mailing list > > > act...@li... > > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > -- > ---------------------------------------------------------- > http://www.myspace.com/thomasmery > http://www.thomas-mery.net > ---------------------------------------------------------- > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > -- Cheers, Ray Chuan |
From: thomas m. <tho...@gm...> - 2006-08-31 14:59:33
|
by the way is there a method (im not that good with maths ...) to shift the rotation center ? I know there probably is out there but already built in actionstep ? On 8/31/06, thomas mery <tho...@gm...> wrote: > > actually I think I was lookng for setFrameRotation and it works :) > > > > > On 8/31/06, Scott Hyndman <sc...@af... > wrote: > > > > This used to work. I'll have a look. > > > > Scott > > > > On 30/08/06, thomas mery < tho...@gm...> wrote: > > > Hello all, > > > > > > i'm having trouble rotating views ... is there anything I should be > > aware of > > > ? > > > > > > using rotateByAngle(90) results in my view disappearing alltogether > > > > > > trying to use mcBoundsHolder._rotation does the same > > > > > > hope i'l just mising something :) > > > > > > tia > > > > > > thomas > > > > > > -- > > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > > security? > > > Get stuff done quickly with pre-integrated technology to make your job > > > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > _______________________________________________ > > > actionstep-core mailing list > > > act...@li... > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > -- > ---------------------------------------------------------- > http://www.myspace.com/thomasmery > http://www.thomas-mery.net > ---------------------------------------------------------- > -- ---------------------------------------------------------- http://www.myspace.com/thomasmery http://www.thomas-mery.net ---------------------------------------------------------- |
From: Scott H. <sc...@af...> - 2006-08-31 14:57:44
|
nice! On 31/08/06, thomas mery <tho...@gm...> wrote: > actually I think I was lookng for setFrameRotation and it works :) > > > > > On 8/31/06, Scott Hyndman <sc...@af... > wrote: > > This used to work. I'll have a look. > > > > Scott > > > > On 30/08/06, thomas mery < tho...@gm...> wrote: > > > Hello all, > > > > > > i'm having trouble rotating views ... is there anything I should be > aware of > > > ? > > > > > > using rotateByAngle(90) results in my view disappearing alltogether > > > > > > trying to use mcBoundsHolder._rotation does the same > > > > > > hope i'l just mising something :) > > > > > > tia > > > > > > thomas > > > > > > -- > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > security? > > > Get stuff done quickly with pre-integrated technology to make your job > > > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > _______________________________________________ > > > actionstep-core mailing list > > > act...@li... > > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > -- > ---------------------------------------------------------- > http://www.myspace.com/thomasmery > http://www.thomas-mery.net > ---------------------------------------------------------- > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > |
From: thomas m. <tho...@gm...> - 2006-08-31 14:48:24
|
actually I think I was lookng for setFrameRotation and it works :) On 8/31/06, Scott Hyndman <sc...@af...> wrote: > > This used to work. I'll have a look. > > Scott > > On 30/08/06, thomas mery <tho...@gm...> wrote: > > Hello all, > > > > i'm having trouble rotating views ... is there anything I should be > aware of > > ? > > > > using rotateByAngle(90) results in my view disappearing alltogether > > > > trying to use mcBoundsHolder._rotation does the same > > > > hope i'l just mising something :) > > > > tia > > > > thomas > > > > -- > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > -- ---------------------------------------------------------- http://www.myspace.com/thomasmery http://www.thomas-mery.net ---------------------------------------------------------- |
From: thomas m. <tho...@gm...> - 2006-08-31 14:47:52
|
hi I was using repSizeForClip(). and you're right about _root, I figured it out later. It leaves me with my question : how do I get the size of the symbol before the draw cycle ? because for instance I think If I want to use NSImage.setImageAlignment() and that I don't set a size for the image (and I want the image to the size of the symbol) it won't work (since the size() yields widht=undefined and height=undefined) I resort to calling repSizeForClip passing the view mcBounds as the base clip like : var size_mc:MovieClip = win.rootView ().mcBounds().createEmptyMovieClip("__SIZE_MC__",_root.getNextHighestDepth()); var symbolSize = rep.repSizeForClip(size_mc); size_mc.removeMovieClip(); I also thought about passing the current view to the rep ... On 8/31/06, Scott Hyndman <sc...@af...> wrote: > > It's an interesting idea, but there is a problem. You are relying on > _root to attach the symbol. The symbols may not necessarily be there > (they could be under a loadMovie'd clip). > > Ray is correct in suggesting repSizeForClip(). > > Scott > > On 31/08/06, thomas mery <tho...@gm...> wrote: > > Helo all, > > > > I've been finding myself trying to use the size of a symbol > representation > > before its being drawn, like if I want to use setAlignment on it : > > > > ---- > > var rect:NSRect = new NSRect(30,100,200,200); > > var img:NSImage = (new NSImage()).init(); > > var rep:ASSymbolImageRep = new ASSymbolImageRep("logo_sm"); > > img.addRepresentation(rep); > > > > var iv:NSImageView = new NSImageView(); > > iv.initWithFrame (new NSRect(0,0,300,300)); > > > > iv.setImage(img); > > > > iv.setImageAlignment(NSImageAlignment.NSImageAlignTopRight); > > > > win.contentView().addSubview(iv); > > ---- > > > > since it seem the repSizeForClip method is only called when the rep is > drawn > > it was not working (the scaledImageFrameForRect of the NSImageCell class > > would not get a size for the NSImage) > > > > so I extended ASSymbolImageRep to have the constructor of the child > class > > look lihe this : > > > > --- > > public function SMSymbolImageRep(symbolName : String, size : NSSize) { > > > > super(symbolName, size); > > > > var size_mc:MovieClip = > > _root.createEmptyMovieClip("__SIZEMC__",_root.getNextHighestDepth()); > > > > if(m_size == undefined) { > > m_size = repSizeForClip(size_mc); > > } > > > > size_mc.removeMovieClip(); > > > > } > > --- > > > > it's working for me so I'm happy :) but I was wondering if woud not be a > > useful addition to the ASSymbolImageRep class, and if not then why ? > > > > Thanks in advance > > > > thomas > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > -- ---------------------------------------------------------- http://www.myspace.com/thomasmery http://www.thomas-mery.net ---------------------------------------------------------- |
From: Scott H. <sc...@af...> - 2006-08-31 13:08:21
|
This used to work. I'll have a look. Scott On 30/08/06, thomas mery <tho...@gm...> wrote: > Hello all, > > i'm having trouble rotating views ... is there anything I should be aware of > ? > > using rotateByAngle(90) results in my view disappearing alltogether > > trying to use mcBoundsHolder._rotation does the same > > hope i'l just mising something :) > > tia > > thomas > > -- > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > |
From: Scott H. <sc...@af...> - 2006-08-31 13:07:25
|
It's an interesting idea, but there is a problem. You are relying on _root to attach the symbol. The symbols may not necessarily be there (they could be under a loadMovie'd clip). Ray is correct in suggesting repSizeForClip(). Scott On 31/08/06, thomas mery <tho...@gm...> wrote: > Helo all, > > I've been finding myself trying to use the size of a symbol representation > before its being drawn, like if I want to use setAlignment on it : > > ---- > var rect:NSRect = new NSRect(30,100,200,200); > var img:NSImage = (new NSImage()).init(); > var rep:ASSymbolImageRep = new ASSymbolImageRep("logo_sm"); > img.addRepresentation(rep); > > var iv:NSImageView = new NSImageView(); > iv.initWithFrame (new NSRect(0,0,300,300)); > > iv.setImage(img); > > iv.setImageAlignment(NSImageAlignment.NSImageAlignTopRight); > > win.contentView().addSubview(iv); > ---- > > since it seem the repSizeForClip method is only called when the rep is drawn > it was not working (the scaledImageFrameForRect of the NSImageCell class > would not get a size for the NSImage) > > so I extended ASSymbolImageRep to have the constructor of the child class > look lihe this : > > --- > public function SMSymbolImageRep(symbolName : String, size : NSSize) { > > super(symbolName, size); > > var size_mc:MovieClip = > _root.createEmptyMovieClip("__SIZEMC__",_root.getNextHighestDepth()); > > if(m_size == undefined) { > m_size = repSizeForClip(size_mc); > } > > size_mc.removeMovieClip(); > > } > --- > > it's working for me so I'm happy :) but I was wondering if woud not be a > useful addition to the ASSymbolImageRep class, and if not then why ? > > Thanks in advance > > thomas > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > |
From: Ray C. <rc...@gm...> - 2006-08-31 10:01:06
|
Hi, sorry about that, my mistake. You *have* to use repSizeForClip. On 8/31/06, Ray Chuan <rc...@gm...> wrote: > Hi, > > > On 8/31/06, thomas mery <tho...@gm...> wrote: > > Helo all, > > > > I've been finding myself trying to use the size of a symbol representation > > before its being drawn, like if I want to use setAlignment on it : > > > > ---- > > var rect:NSRect = new NSRect(30,100,200,200); > > var img:NSImage = (new NSImage()).init(); > > var rep:ASSymbolImageRep = new ASSymbolImageRep("logo_sm"); > > img.addRepresentation(rep); > > > > var iv:NSImageView = new NSImageView(); > > iv.initWithFrame (new NSRect(0,0,300,300)); > > > > iv.setImage(img); > > > > iv.setImageAlignment(NSImageAlignment.NSImageAlignTopRight); > > > > win.contentView().addSubview(iv); > > ---- > > > > since it seem the repSizeForClip method is only called when the rep is drawn > > it was not working (the scaledImageFrameForRect of the NSImageCell class > > would not get a size for the NSImage) > > What's the problem exactly? Do you have a size with null values, or a > size with zero values? > > > so I extended ASSymbolImageRep to have the constructor of the child class > > look lihe this : > > > > --- > > public function SMSymbolImageRep(symbolName : String, size : NSSize) { > > > > super(symbolName, size); > > > > var size_mc:MovieClip = > > _root.createEmptyMovieClip("__SIZEMC__",_root.getNextHighestDepth()); > > > > if(m_size == undefined) { > > m_size = repSizeForClip(size_mc); > > } > > > > size_mc.removeMovieClip(); > > You could have done this: > > m_size = NSSize.ZeroSize; > > This would have saved you the trouble of creating and destroying a > dummy clip to set the size. > > > } > > --- > > > > it's working for me so I'm happy :) but I was wondering if woud not be a > > useful addition to the ASSymbolImageRep class, and if not then why ? > > > > Thanks in advance > > > > thomas > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > -- > Cheers, > Ray Chuan > -- Cheers, Ray Chuan |
From: Ray C. <rc...@gm...> - 2006-08-31 09:49:03
|
Hi, On 8/31/06, thomas mery <tho...@gm...> wrote: > Helo all, > > I've been finding myself trying to use the size of a symbol representation > before its being drawn, like if I want to use setAlignment on it : > > ---- > var rect:NSRect = new NSRect(30,100,200,200); > var img:NSImage = (new NSImage()).init(); > var rep:ASSymbolImageRep = new ASSymbolImageRep("logo_sm"); > img.addRepresentation(rep); > > var iv:NSImageView = new NSImageView(); > iv.initWithFrame (new NSRect(0,0,300,300)); > > iv.setImage(img); > > iv.setImageAlignment(NSImageAlignment.NSImageAlignTopRight); > > win.contentView().addSubview(iv); > ---- > > since it seem the repSizeForClip method is only called when the rep is drawn > it was not working (the scaledImageFrameForRect of the NSImageCell class > would not get a size for the NSImage) What's the problem exactly? Do you have a size with null values, or a size with zero values? > so I extended ASSymbolImageRep to have the constructor of the child class > look lihe this : > > --- > public function SMSymbolImageRep(symbolName : String, size : NSSize) { > > super(symbolName, size); > > var size_mc:MovieClip = > _root.createEmptyMovieClip("__SIZEMC__",_root.getNextHighestDepth()); > > if(m_size == undefined) { > m_size = repSizeForClip(size_mc); > } > > size_mc.removeMovieClip(); You could have done this: m_size = NSSize.ZeroSize; This would have saved you the trouble of creating and destroying a dummy clip to set the size. > } > --- > > it's working for me so I'm happy :) but I was wondering if woud not be a > useful addition to the ASSymbolImageRep class, and if not then why ? > > Thanks in advance > > thomas > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > -- Cheers, Ray Chuan |