Re: [Flashcoders] Dancing characters...

2009-07-23 Thread Ashim D'Silva
I'd say the width value you're using isn't so dependable because of
the way text scales. If you turn autoSize off it may help.
Failing that, I'd render each piece to a bitmapData and use a bitmap.
They work better for scaling and rotation, although scaling up is
ofcourse a bad idea, so render your largest size and then scale down.

Ash

The Random Lines
My online portfolio
www.therandomlines.com



2009/7/22 Sander Schuurman b...@chello.nl:
 Hi list...

 I'm trying to make some kind of Dock...

 http://www.sentoplene.com/dock

 But sometimes when I stop with the mouse, some characters keep on moving
 slightly... How can I get rid of that?

 I'm simply doing on Event .ENTER_FRAME: scaleIcons and then positionIcons.
 I'v tried to trigger the 2 functions only on MouseMove, but the
 responsiveness isn't accurate when you suddenly stop your mouse...

 So anyone any idea with this?

 thnx!

 Sander Schuurman
 sentoplene.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Just a stupid question (hope you can help me)

2009-07-23 Thread Mark Burvill
Have you tried posting on the Gaia forum? Stephen is usually pretty  
good at answering.



On 22 Jul 2009, at 17:07, PWMedia|Paul Wolthuis wrote:


Hi Guys,

Thanks for helping me out!!!

I know about the Gaia panel option to set 100% width and 100% height  
in combination with the center/center option.

This option scales the background (index).

The thing i'm trying to do is to make the diferent pages i've  
designed scale up or down as well.


There is an gaia-examplewith 100% width, 100% height and center/ 
center posted under:

www.pwmedia.nl/test/index.html

what i want is the gaiapages behave like:
www.pwmedia.nl/test/index2.html
(this is just a flas file)

Hope jou can help me!
Thanks so far.



Op 22 jul 2009, om 16:28 heeft Joel Stransky het volgende geschreven:



You should be able to set this in the Gaia panel that's added to  
the Flash

IDE when you install the framework.

On Mon, Jul 20, 2009 at 11:09 AM, Mario Gonzalez ma...@wddg.com  
wrote:


I'm not familiar with the Gaia framework, so I'm not sure what  
some of

those function calls (alignSite()) or properties are (__WIDTH).
However all you need to do, is call this on onResize

--
x = int(stage.stageWidth/2 - width/2);
y = int(stage.stageHeight/2 - height/2);
-
Another thing to note, is that width and height will change  
depending on

whats on the stage.
If you know that going in you will have stuff that might break the  
frame
(even if masked), you want to use your preset width and height in  
which case

you just call:
--
x = int(stage.stageWidth/ 2 - 1024/2);
y = int(stage.stageHeight/ 2 - 768/2);
---

You want to make sure you place the center of the stage to the  
center of

your object (half it's width).

Hope it helps,
http://onedayitwillmake.com


PWMedia | Paul Wolthuis wrote:


Hi there,

I've got a question.

I'm sort of a scriptdummy and having a problem to make a gaia  
sit  fully

scalable.
To make it clear, i want the full site to scale  up or down to  
the  size

of the browserwindow and center it horizontal and vertical.

Hope anyone can help me.
Thanks so far!

Paul

--

package
{
 import com.gaiaframework.core.GaiaMain;

 import flash.display.StageScaleMode;
 import flash.display.StageAlign;
 import flash.events.Event;

 public class Main extends GaiaMain
 {
 public function Main()
 {
 super();
 siteXML = xml/site.xml;
 }
 override protected function
onAddedToStage(event:Event):void
 {
 stage.align = StageAlign.TOP_LEFT;
 stage.scaleMode = StageScaleMode.NO_SCALE;
 alignSite(1024, 768);
 super.onAddedToStage(event);
 }
 override protected function onResize(event:Event):void
 {
 view.x = Math.round((stage.stageWidth -  
__WIDTH) /

2);
 view.y = Math.round((stage.stageHeight -  
__HEIGHT)

/ 2);
 }
 }
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





__ Information from ESET NOD32 Antivirus, version of virus
signature database 4261 (20090720) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





--
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Just a stupid question (hope you can help me)

2009-07-23 Thread PWMedia | Paul Wolthuis

I've been reeding for weeks and trie to find it myself.
I found a simular question and the reaction of steve was to post it  
here... Steve thinks it's a regular actionscript thing (he's proberbly  
right) and not a flash thing.


Maybe i have to post a message over there but i'm affraid i'll be back.


Op 23 jul 2009, om 18:40 heeft Mark Burvill het volgende geschreven:



Have you tried posting on the Gaia forum? Stephen is usually pretty  
good at answering.



On 22 Jul 2009, at 17:07, PWMedia|Paul Wolthuis wrote:


Hi Guys,

Thanks for helping me out!!!

I know about the Gaia panel option to set 100% width and 100%  
height in combination with the center/center option.

This option scales the background (index).

The thing i'm trying to do is to make the diferent pages i've  
designed scale up or down as well.


There is an gaia-examplewith 100% width, 100% height and center/ 
center posted under:

www.pwmedia.nl/test/index.html

what i want is the gaiapages behave like:
www.pwmedia.nl/test/index2.html
(this is just a flas file)

Hope jou can help me!
Thanks so far.



Op 22 jul 2009, om 16:28 heeft Joel Stransky het volgende geschreven:



You should be able to set this in the Gaia panel that's added to  
the Flash

IDE when you install the framework.

On Mon, Jul 20, 2009 at 11:09 AM, Mario Gonzalez ma...@wddg.com  
wrote:


I'm not familiar with the Gaia framework, so I'm not sure what  
some of

those function calls (alignSite()) or properties are (__WIDTH).
However all you need to do, is call this on onResize

--
x = int(stage.stageWidth/2 - width/2);
y = int(stage.stageHeight/2 - height/2);
-
Another thing to note, is that width and height will change  
depending on

whats on the stage.
If you know that going in you will have stuff that might break  
the frame
(even if masked), you want to use your preset width and height in  
which case

you just call:
--
x = int(stage.stageWidth/ 2 - 1024/2);
y = int(stage.stageHeight/ 2 - 768/2);
---

You want to make sure you place the center of the stage to the  
center of

your object (half it's width).

Hope it helps,
http://onedayitwillmake.com


PWMedia | Paul Wolthuis wrote:


Hi there,

I've got a question.

I'm sort of a scriptdummy and having a problem to make a gaia  
sit  fully

scalable.
To make it clear, i want the full site to scale  up or down to  
the  size

of the browserwindow and center it horizontal and vertical.

Hope anyone can help me.
Thanks so far!

Paul

--

package
{
import com.gaiaframework.core.GaiaMain;

import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.events.Event;

public class Main extends GaiaMain
{
public function Main()
{
super();
siteXML = xml/site.xml;
}
override protected function
onAddedToStage(event:Event):void
{
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
alignSite(1024, 768);
super.onAddedToStage(event);
}
override protected function onResize(event:Event):void
{
view.x = Math.round((stage.stageWidth -  
__WIDTH) /

2);
view.y = Math.round((stage.stageHeight -  
__HEIGHT)

/ 2);
}
}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





__ Information from ESET NOD32 Antivirus, version of virus
signature database 4261 (20090720) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





--
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] accessing movieclips, problem using preloader

2009-07-23 Thread Isaac Alves
Hi fellows, I´m having a weird problem here:

This code is inside the movieclip Info_1, which is a child of the stage in
top.swf.

function intro():void{
trace (this:  + this);
trace (thischldren:  + this.numChildren);
trace (child 0:  + this.getChildAt(0));
trace (child 0name:  + this.getChildAt(0).name);
(...)

and i-m using is a preloader.swf that loads top.swf.
when running  top.swf it traces:

this: [object Info_1]
thischldren: 9
child 0: [object MovieClip]
child 0name: faixa
12988

when running  preloader.swf it traces:

this: [object Info_1]
thischldren: 1
child 0: [object Shape]
child 0name: instance6
18669

as you can see, the object faixa as well as many others are unacessible
when I execute preloader.swf.
any clue why that happens ??
thanks !!
isaac
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] accessing movieclips, problem using preloader

2009-07-23 Thread Isaac Alves
it worked with MovieClip(parent).

im looking now for something like lockRoot   for as3
any clue how could I handle this?

thanks!
isaac
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders