Re: [Flashcoders] print function in AS2

2008-02-19 Thread maurice sallave
cool!  I'll check it out.  Thanks!

On Feb 15, 2008 6:26 PM, Gabriel Laet [EMAIL PROTECTED]
wrote:

 Hi Maurice,

 I highly recommend you to take a look on PrintJob class. It will give you
 much more control and make your life easier. I'm not sure, but I remember
 that was an issue with the print function and layer-masks (and a lot of
 other
 stuff too). But I don't know how complicated will be for you debug and
 test
 this.

 A simple and fast solution would be generate a Bitmap of the screen (like
 a
 print-screen)
 before printing. And then you just dispose the object.

 I hope this helps you to figure out an solution.

 On Feb 15, 2008 6:34 PM, maurice sallave [EMAIL PROTECTED] wrote:

  Hi,
  I'm trying to print  from Flash using  the print function.  I've created
 a
  print button to point to a movieClip that gets dynamically created e.g.
 a
  results page.  What's weird is  that it works as a standalone swf file
 and
  prints fine, but when it's in a browser I get one solid color and no
  images
  - no results.  I've used bframe, bmax, and bmovie where I instantiated
 #p
  at
  the first frame and still no luck.  Thanks for any help.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 ~Gabriel Laet
 ___
 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] Dynamically created gradient fill doesn't mask like a gradient

2008-02-19 Thread Kenneth Kawamoto

Turn cacheAsBitmap on!

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Alistair Colling wrote:

Hiya, I think the title sums this up pretty well.
I have dynamically created a box that is filled with a gradient where 
one of the colour's alphas is 100 and the other is 0, I have made the 
ratios 0, 255 and have made sure the matrix box is the same dimensions 
and xy placement as the box I am drawing.
I want to set the dynamically created gradient box as a mask so I can 
have a nice gradient mask though when I set this I get the mask as if 
the box is a solid fill. I have checked without using setMask() and the 
box looks as it should.


If anyone has successfully drawn a gradient fill and used it as a mask I 
would be really interested to see the code as I can't figure out why 
this isn't working.


Thanks in advance for any advice, suggestions or encouragement,
Ali


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


[Flashcoders] Solved- Re: Dynamically created gradient fill doesn't mask like a gradient

2008-02-19 Thread Alistair Colling
I have it, hope this is helpful to someone, you need to publish to FP  
8 and enable the cacheAsBitmap property of the masker and maskee.

http://www.whatdoiknow.org/archives/002407.shtml

Thanks,
Ali




On 19 Feb 2008, at 11:44, Alistair Colling wrote:


Hiya, I think the title sums this up pretty well.
I have dynamically created a box that is filled with a gradient  
where one of the colour's alphas is 100 and the other is 0, I have  
made the ratios 0, 255 and have made sure the matrix box is the  
same dimensions and xy placement as the box I am drawing.
I want to set the dynamically created gradient box as a mask so I  
can have a nice gradient mask though when I set this I get the mask  
as if the box is a solid fill. I have checked without using setMask 
() and the box looks as it should.


If anyone has successfully drawn a gradient fill and used it as a  
mask I would be really interested to see the code as I can't figure  
out why this isn't working.


Thanks in advance for any advice, suggestions or encouragement,
Ali




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


[Flashcoders] AS3 Accessing objects properties on the stage from other objects

2008-02-19 Thread Johan Nyberg
Hi, I have a question regarding referencing objects on the stage from  
other objects. You should be able to use the root from any object that  
has been added to the display list using addChild. But when I do so I  
get this error message:


1119: Access of possibly undefined property loader through a reference  
with static type flash.display:DisplayObject.


The only way for me to do what I want is if I cast the root reference  
to the class of my document class. For example, if the name of my  
document class is MyDocumentClass it would be like this:


MyDocumentClass( root ).theObjectIWantToAccess.someProperty

My questions are:

1. Why do I have to cast the root property?
2. Is this the best way to go around what I want to do.

To illustrate what I'm talking about, here's a snippet of code:

if( this.inputBubble.x + this.inputBubble.width   
PokerHandComp(root).frame_mc.width )

 {
this.inputBubble.x = x;
this.inputBubble.bubble_mc.scaleX = -1;
this.inputBubble.txt.x = - this.inputBubble.bubble_mc.width + 20;
}

In this case my document class is called PokerHandComp.

Regards,


Johan Nyberg
Designer and web developer

[EMAIL PROTECTED]
08 - 50 00 24 30
070 - 407 83 00



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


[Flashcoders] Placing variables in XML

2008-02-19 Thread Sidney de Koning

Hi List

A short question about XML. When i create XML in Flash i say:

var xmlString:XML = employee ssn=789-789-7890 name first=Mary 
last=Roe/ address street99 Broad St./street cityNewton/city 
stateMA/state zip01234/zip /address /employee /employees;


How do i place variables within that XML? for instance i want the first 
attribute to be a variable called firstName in the name node?


when i compile i get errors: 1086: Syntax error: expecting semicolon 
before xmltagstartend.


Please advice/help,

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


Re: [Flashcoders] Placing variables in XML

2008-02-19 Thread Kenneth Kawamoto

name first={firstName} last={lastName} /

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Sidney de Koning wrote:

Hi List

A short question about XML. When i create XML in Flash i say:

var xmlString:XML = employee ssn=789-789-7890 name first=Mary 
last=Roe/ address street99 Broad St./street cityNewton/city 
stateMA/state zip01234/zip /address /employee /employees;


How do i place variables within that XML? for instance i want the first 
attribute to be a variable called firstName in the name node?


when i compile i get errors: 1086: Syntax error: expecting semicolon 
before xmltagstartend.


Please advice/help,

Sidney


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


Re: [Flashcoders] Placing variables in XML

2008-02-19 Thread Paul Andrews

BTW your xmlString is badly formed. Maybe it should be:

var xmlString:XML =employees employee ssn=789-789-7890 name 
first=Mary

last=Roe/ address street99 Broad St./street cityNewton/city
stateMA/state zip01234/zip /address /employee /employees;

Paul

- Original Message - 
From: Kenneth Kawamoto [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, February 19, 2008 2:20 PM
Subject: Re: [Flashcoders] Placing variables in XML



name first={firstName} last={lastName} /

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Sidney de Koning wrote:

Hi List

A short question about XML. When i create XML in Flash i say:

var xmlString:XML = employee ssn=789-789-7890 name first=Mary 
last=Roe/ address street99 Broad St./street cityNewton/city 
stateMA/state zip01234/zip /address /employee /employees;


How do i place variables within that XML? for instance i want the first 
attribute to be a variable called firstName in the name node?


when i compile i get errors: 1086: Syntax error: expecting semicolon 
before xmltagstartend.


Please advice/help,

Sidney


___
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] Placing variables in XML

2008-02-19 Thread Sidney de Koning

already found that, thanks for the comment.

Sid

Paul Andrews wrote:

BTW your xmlString is badly formed. Maybe it should be:

var xmlString:XML =employees employee ssn=789-789-7890 name 
first=Mary

last=Roe/ address street99 Broad St./street cityNewton/city
stateMA/state zip01234/zip /address /employee /employees;

Paul

- Original Message - From: Kenneth Kawamoto 
[EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, February 19, 2008 2:20 PM
Subject: Re: [Flashcoders] Placing variables in XML



name first={firstName} last={lastName} /

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Sidney de Koning wrote:

Hi List

A short question about XML. When i create XML in Flash i say:

var xmlString:XML = employee ssn=789-789-7890 name first=Mary 
last=Roe/ address street99 Broad St./street 
cityNewton/city stateMA/state zip01234/zip /address 
/employee /employees;


How do i place variables within that XML? for instance i want the 
first attribute to be a variable called firstName in the name node?


when i compile i get errors: 1086: Syntax error: expecting semicolon 
before xmltagstartend.


Please advice/help,

Sidney


___
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] Placing variables in XML

2008-02-19 Thread Sidney de Koning

Thanks! that did the trick!

Sid

Kenneth Kawamoto wrote:

name first={firstName} last={lastName} /

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Sidney de Koning wrote:

Hi List

A short question about XML. When i create XML in Flash i say:

var xmlString:XML = employee ssn=789-789-7890 name first=Mary 
last=Roe/ address street99 Broad St./street 
cityNewton/city stateMA/state zip01234/zip /address 
/employee /employees;


How do i place variables within that XML? for instance i want the 
first attribute to be a variable called firstName in the name node?


when i compile i get errors: 1086: Syntax error: expecting semicolon 
before xmltagstartend.


Please advice/help,

Sidney


___
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] AS3 Accessing objects properties on the stage from other objects

2008-02-19 Thread Cory Petosky
You have to cast the root property because it's statically typed as a
DisplayObject. Because the player/API doesn't know what document class
you might use for your root object, it types root as the base class
your document class must inherit from.

Looking at your code, it seems that you're trying to develop AS3 as if
it were AS2. In general, manually traversing the display list using
parent or root properties is a sign of bad design. In this case,
you're tying your program architecture to your display list
architecture -- if you move one thing in your FLA, everything will
break.

Instead, build your classes in a more object-oriented manner. I don't
know what class the snippet you posted is in, but it looks like all
you need is property derived from another display object's width. In
this case, consider adding a property called maxWidth or something
similar to the object's constructor, and pass the value in when you
create the object. That way you don't need to traverse the display
list to find the information you need -- everything is nice and
encapsulated.

Cory

On 2/19/08, Johan Nyberg [EMAIL PROTECTED] wrote:
 Hi, I have a question regarding referencing objects on the stage from
 other objects. You should be able to use the root from any object that
 has been added to the display list using addChild. But when I do so I
 get this error message:

 1119: Access of possibly undefined property loader through a reference
 with static type flash.display:DisplayObject.

 The only way for me to do what I want is if I cast the root reference
 to the class of my document class. For example, if the name of my
 document class is MyDocumentClass it would be like this:

 MyDocumentClass( root ).theObjectIWantToAccess.someProperty

 My questions are:

 1. Why do I have to cast the root property?
 2. Is this the best way to go around what I want to do.

 To illustrate what I'm talking about, here's a snippet of code:

 if( this.inputBubble.x + this.inputBubble.width 
 PokerHandComp(root).frame_mc.width )
   {
 this.inputBubble.x = x;
 this.inputBubble.bubble_mc.scaleX = -1;
 this.inputBubble.txt.x = - this.inputBubble.bubble_mc.width + 20;
 }

 In this case my document class is called PokerHandComp.

 Regards,


 Johan Nyberg
 Designer and web developer

 [EMAIL PROTECTED]
 08 - 50 00 24 30
 070 - 407 83 00



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



-- 
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AIR - NativeWindow Resizing

2008-02-19 Thread Corban Baxter
Hey guys I am trying to get my AIR app's window to resize to the
dimensions of the FLV that is being displayed. I am not finding what
properties i need to use to make this happen. Can some one point me in
the right direction?

I have been staring at this:
http://livedocs.adobe.com/labs/flex3/langref/flash/display/NativeWindowResize.html
trying to make sense of it. But not having much luck. Thanks in advance!


var meta:Object = new Object();
meta.onMetaData = function(meta:Object)
{
video.width = meta.width;
video.height = meta.height;
NativeWindow.width = meta.width;
NativeWindow.height = meta.height;

}

ns.client = meta;





-- 
Corban Baxter
http://blog.projectx4.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Graphic design universities

2008-02-19 Thread Cor
Amsterdam 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Pedro Kostelec
Verzonden: dinsdag 19 februari 2008 22:26
Aan: Flash Coders List
Onderwerp: [Flashcoders] Graphic design universities

Hi list.

I have two years to choose in which univerity i'll go when my school studies
finish. I am looking for some graphical design universitys in which i can
apply my knowledge offlash, animation, video and audio modeling. So, mostly
about graphics and motion. I've been googling the web, but i found so many
results that my head went bad,and they mostly all of them had some other
studies that i don't like such as ecomony, telecommunication between others.


So, can someone recommend me some universites you think are good?

Thanks

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


--
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date: 19-2-2008
10:55


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date: 19-2-2008
10:55
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date: 19-2-2008
10:55
 

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


[Flashcoders] Graphic design universities

2008-02-19 Thread Pedro Kostelec
Hi list.

I have two years to choose in which univerity i'll go when my school studies
finish. I am looking for some graphical design universitys in which i can
apply my knowledge offlash, animation, video and audio modeling. So, mostly
about graphics and motion. I've been googling the web, but i found so many
results that my head went bad,and they mostly all of them had some other
studies that i don't like such as ecomony, telecommunication between others.


So, can someone recommend me some universites you think are good?

Thanks

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


Re: [Flashcoders] Graphic design universities

2008-02-19 Thread Matt S.
HyperIsland in Sweden is supposed to be an amazing school:
http://www.hyperisland.se/
I don't know how easy it is for out of country students to get in but its
definitely worth looking at.

.m

On Feb 19, 2008 4:26 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:

 Hi list.

 I have two years to choose in which univerity i'll go when my school
 studies
 finish. I am looking for some graphical design universitys in which i can
 apply my knowledge offlash, animation, video and audio modeling. So,
 mostly
 about graphics and motion. I've been googling the web, but i found so many
 results that my head went bad,and they mostly all of them had some other
 studies that i don't like such as ecomony, telecommunication between
 others.


 So, can someone recommend me some universites you think are good?

 Thanks

 Pedro D.K.
 ___
 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] AIR - NativeWindow Resizing

2008-02-19 Thread Kenneth Kawamoto

You may want to try something like:

stage.nativeWindow.width


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Corban Baxter wrote:

Hey guys I am trying to get my AIR app's window to resize to the
dimensions of the FLV that is being displayed. I am not finding what
properties i need to use to make this happen. Can some one point me in
the right direction?

I have been staring at this:
http://livedocs.adobe.com/labs/flex3/langref/flash/display/NativeWindowResize.html
trying to make sense of it. But not having much luck. Thanks in advance!


var meta:Object = new Object();
meta.onMetaData = function(meta:Object)
{
video.width = meta.width;
video.height = meta.height;
NativeWindow.width = meta.width;
NativeWindow.height = meta.height;

}

ns.client = meta;

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


Re: [Flashcoders] AIR - NativeWindow Resizing

2008-02-19 Thread Corban Baxter
genius! I'd been hacking at this all day from 100 different ways. sigh*

that worked perfect. to bad the help docs suck so bad I'd never found that!

On Feb 19, 2008 5:34 PM, Kenneth Kawamoto [EMAIL PROTECTED] wrote:
 You may want to try something like:

 stage.nativeWindow.width


 Kenneth Kawamoto
 http://www.materiaprima.co.uk/


 Corban Baxter wrote:
  Hey guys I am trying to get my AIR app's window to resize to the
  dimensions of the FLV that is being displayed. I am not finding what
  properties i need to use to make this happen. Can some one point me in
  the right direction?
 
  I have been staring at this:
  http://livedocs.adobe.com/labs/flex3/langref/flash/display/NativeWindowResize.html
  trying to make sense of it. But not having much luck. Thanks in advance!
 
 
  var meta:Object = new Object();
  meta.onMetaData = function(meta:Object)
  {
video.width = meta.width;
video.height = meta.height;
NativeWindow.width = meta.width;
NativeWindow.height = meta.height;
 
  }
 
  ns.client = meta;
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Corban Baxter
http://www.projectx4.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] my fullscreen goes black

2008-02-19 Thread laurent

Hi listener,

Using
e.currentTarget.stage.displayState = fullScreen;

on a button mouse event handler, send the fullscreen mode in blackno 
website.


Anyone have a solution for this ?

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