Re: [Flashcoders] drawing with mouse / pen

2007-05-01 Thread Lists
Nik, if it can save you any energy, be sure you show a proof of concept to
your client/colleague before you get too hip-deep into this. We've tried to
do similar things in the past with little success. The issue is not
technical, it's more of a usability issue.

If you provide a VISIBLE area in which to draw, the end result will be that
you're defeating the purpose of drawing freehand. You might as well just
click on the area you've dedicated. (Remember, these are usability opinions,
and your mileage may very. The crucial thing is that, in what you've
described, your opinion typically doesn't matter. It's the collective
opinion of your users and how well they understand, and can complete, the
task that matters.)

If you want to draw anywhere, you can create an empty movie clip as a canvas
that allows you to draw over everything and, as you said, do a stroke with
no fill so you don't have to worry about closing the path, and it looks more
natural like a marker on a whiteboard. You can just use lineTo and an
interval if you want something simple, or smooth out the line using curveTo
and an interval. You can then determine the geographical center of the
circle and see if that coordinate matches up with a hitTest on the answer
clip. You can't use hit test between circle and answer unless the answers
are no where near each other. But, you can say: center of circle is at
100,100, and answerMC.hitTest(100,100,false) (No shape flag will be easier,
I think.)

The problem will be one of user satisfaction. How hard is it to draw a
circle with the mouse? How accurately can they get it over the answer? How
many times do they have to do it? For example, doing this for a
five-question quiz is great. But for a 20 question quiz it is unbearably
tedious. You want to just click the answer and move on.

Anyway, I suggest that you spend a little time with testers to see how they
react before committing.

Rich



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] printJob, orientation and rotation or scaling issues

2007-05-01 Thread Dave Wood

Hi

I'm having problems correctly rotating a movieclip to accomodate  
users printing in either portrait or landscape format.


There was a thread about this maybe 4 to 6 weeks ago and I'm unable  
to locate it in the archives. If anyone recalls that, would they mind  
pointing me to it?


The item to print is a landscape formatted movieClip and I'm wanting  
to rotate and scale it so that users with print setup to portrait  
will still print it OK.


Here's my code which works OK on some machines but not others.  
MovieClip to print is postcardClip and it's normal size is much  
smaller than  page size...


var myPrintJob:PrintJob = new PrintJob();
var notCancelled:Boolean = myPrintJob.start();
if (notCancelled){
var startScaleX:Number = postcardClip._xscale;
var startScaleY:Number = postcardClip._yscale;
if (myPrintJob.orientation == "portrait"){ // NEED TO ROTATE
postcardClip._rotation = 270;
}
postcardClip._xscale = 180;
postcardClip._yscale = 180;
myPrintJob.addPage(postcardClip);
myPrintJob.send();
postcardClip._rotation = 0;
postcardClip._xscale = startScaleX;
postcardClip._yscale = startScaleY;
}
delete myPrintJob;

What's happening is that on some computer/printer combinations, a  
triangular portion (half the image) is printing correctly with the  
other triangular half printing as solid triangular block. I suspect  
something wrong with the scaling part of my code.


Any help appreciated.

David
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] CrossDomain and Forms

2007-05-01 Thread Jason Rayles
You need a proxy script, which is a file on your server that will read in 
the data from the other server and write it out for you. As far as Flash is 
concerned, the data is from your server. There's an example on adobe.com 
somewhere.



- Original Message - 
From: "Helmut Granda" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, May 01, 2007 4:49 PM
Subject: [Flashcoders] CrossDomain and Forms



Is there anyway to go around the crossdomain for testing purposes besides
testing locally (from flash IDE)?

final files will be at

Form:
subdomain.zzz.com
Processing form:
differentsubdomain.zzz.com

Testing is being done at

yyy.com

and of course me being at yyy.com dont have access tot xxx.com and I dont
want to send files and be like, test it if it fails send it back, then 5
minutes later ask for the file again and so forth.

TIA
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] CrossDomain and Forms

2007-05-01 Thread Helmut Granda

On 5/1/07, Robert Brisita <[EMAIL PROTECTED]> wrote:


The crossdomain.xml has to be on the server with the data you want to
access.



That is what I was afraid of :( and the server where the data I want to
access is in the client's hands.

Thanks for the confirmation.


You could also you LocalConnection to get around it.


Helmut Granda wrote:
> but the crossdomain.xml has to be in the client's machine not on my
> testing
> server. is that correct?
>
> On 5/1/07, Robert Brisita <[EMAIL PROTECTED]> wrote:
>>
>> Search for an example of a crossdomain.xml, which would sit on the root
>> directory of your website.
>>
>> Hope this helps,
>> Rob.
>>
>> Helmut Granda wrote:
>> > Is there anyway to go around the crossdomain for testing purposes
>> besides
>> > testing locally (from flash IDE)?
>> >
>> > final files will be at
>> >
>> > Form:
>> > subdomain.zzz.com
>> > Processing form:
>> > differentsubdomain.zzz.com
>> >
>> > Testing is being done at
>> >
>> > yyy.com
>> >
>> > and of course me being at yyy.com dont have access tot xxx.com and I
>> dont
>> > want to send files and be like, test it if it fails send it back,
>> then 5
>> > minutes later ask for the file again and so forth.
>> >
>> > TIA
>> > ___
>> > Flashcoders@chattyfig.figleaf.com
>> > To change your subscription options or search the archive:
>> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> >
>> > Brought to you by Fig Leaf Software
>> > Premier Authorized Adobe Consulting and Training
>> > http://www.figleaf.com
>> > http://training.figleaf.com
>> >
>> >
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] drawing with mouse / pen

2007-05-01 Thread Joshua Sera
The drawing part's easy. For closing off the circle,
just do what Flash does for the endFill() method, just
connect the last point in the polygon you're creating
with the first.

The for selecting the right answer, it's a point in
polygon problem.

Now that I think about it, create an empty movie clip,
do a beginFill(0,0) in the new clip, follow the mouse
to draw, on release, endFill(), then do a hitTest with
the center point of each answer and the movieclip you
just created.

If there's two center points that hit your clip, kill
it and make the user draw again.



--- nik crosina <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am working on a project that would possibly
> require the user to
> select an answer from a quiz by circling it with the
>  mouse. Has
> anyone of you done something similar before - we
> want the user to
> roughly draw around the object, not necessary join
> the ends of the
> lines. I am thinking of providing a kind of doughnut
> shaped area into
> which the user has to draw.
> 
> But how would I track the movement of the mouse in
> the right way?
> 
> Thanks,
> 
> Nik
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the
> archive:
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] drawing with mouse / pen

2007-05-01 Thread nik crosina

Hi,

I am working on a project that would possibly require the user to
select an answer from a quiz by circling it with the  mouse. Has
anyone of you done something similar before - we want the user to
roughly draw around the object, not necessary join the ends of the
lines. I am thinking of providing a kind of doughnut shaped area into
which the user has to draw.

But how would I track the movement of the mouse in the right way?

Thanks,

Nik
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] CrossDomain and Forms

2007-05-01 Thread Robert Brisita
The crossdomain.xml has to be on the server with the data you want to 
access.

You could also you LocalConnection to get around it.

Helmut Granda wrote:
but the crossdomain.xml has to be in the client's machine not on my 
testing

server. is that correct?

On 5/1/07, Robert Brisita <[EMAIL PROTECTED]> wrote:


Search for an example of a crossdomain.xml, which would sit on the root
directory of your website.

Hope this helps,
Rob.

Helmut Granda wrote:
> Is there anyway to go around the crossdomain for testing purposes
besides
> testing locally (from flash IDE)?
>
> final files will be at
>
> Form:
> subdomain.zzz.com
> Processing form:
> differentsubdomain.zzz.com
>
> Testing is being done at
>
> yyy.com
>
> and of course me being at yyy.com dont have access tot xxx.com and I
dont
> want to send files and be like, test it if it fails send it back, 
then 5

> minutes later ask for the file again and so forth.
>
> TIA
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] CrossDomain and Forms

2007-05-01 Thread Helmut Granda

but the crossdomain.xml has to be in the client's machine not on my testing
server. is that correct?

On 5/1/07, Robert Brisita <[EMAIL PROTECTED]> wrote:


Search for an example of a crossdomain.xml, which would sit on the root
directory of your website.

Hope this helps,
Rob.

Helmut Granda wrote:
> Is there anyway to go around the crossdomain for testing purposes
besides
> testing locally (from flash IDE)?
>
> final files will be at
>
> Form:
> subdomain.zzz.com
> Processing form:
> differentsubdomain.zzz.com
>
> Testing is being done at
>
> yyy.com
>
> and of course me being at yyy.com dont have access tot xxx.com and I
dont
> want to send files and be like, test it if it fails send it back, then 5
> minutes later ask for the file again and so forth.
>
> TIA
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS2: generating new instances dynamically?

2007-05-01 Thread O. Fouad

are u executing the class post view?

On 5/1/07, Andy Herrman <[EMAIL PROTECTED]> wrote:


Or have the function return it, which is what it seems like would be
the right thing for that method.

  -Andy

On 5/1/07, Ron Wheeler <[EMAIL PROTECTED]> wrote:
> I am not sure if you are showing all the code but in your code fragment,
> newPost is a local variable that will be destroyed as soon as createPost
> ends. A short and brutal life.
>
> It needs to be a class property and you will want to have a getter to
> access it.
>
> Ron
>
> sebastian chedal wrote:
> > Hello Flashcoders,
> >
> > Sorry to bother you with another simple AS2 questions, I'm making good
> > progress but I am stumped with one simple thing.
> >
> > I have one class/object that I want to use to generate copies
> > [instances] of
> > another class.
> >
> > The second class is an object in the library with an ID and an
assosiated
> > *.as file [in the linkage panel].
> >
> > The code is:
> > =
> >
> > //PostModel.as
> >
> > import com.blabla.PostView;
> >
> > class com.blabla.PostModel {
> >
> >   public function createPost (__id) {
> >var newPost = new PostView (__id);
> >   }
> > }
> >
> > =
> >
> > When I run this code, the class doesn't construct an instance...
> >
> > What am I missing? If I need to call the Library Identifyer instead,
how
> > would I do that?
> >
> > I don't want to attach the PostView to the PostModel class, I just
> > want to
> > create instances of them and attach them to _root [or some other MC in
> > the
> > timeline].
> >
> > Thanks!!
> >
> > Seb.
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
O.Fouad - Digital Emotions
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] CrossDomain and Forms

2007-05-01 Thread Robert Brisita
Search for an example of a crossdomain.xml, which would sit on the root 
directory of your website.


Hope this helps,
Rob.

Helmut Granda wrote:

Is there anyway to go around the crossdomain for testing purposes besides
testing locally (from flash IDE)?

final files will be at

Form:
subdomain.zzz.com
Processing form:
differentsubdomain.zzz.com

Testing is being done at

yyy.com

and of course me being at yyy.com dont have access tot xxx.com and I dont
want to send files and be like, test it if it fails send it back, then 5
minutes later ask for the file again and so forth.

TIA
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] CrossDomain and Forms

2007-05-01 Thread Helmut Granda

Is there anyway to go around the crossdomain for testing purposes besides
testing locally (from flash IDE)?

final files will be at

Form:
subdomain.zzz.com
Processing form:
differentsubdomain.zzz.com

Testing is being done at

yyy.com

and of course me being at yyy.com dont have access tot xxx.com and I dont
want to send files and be like, test it if it fails send it back, then 5
minutes later ask for the file again and so forth.

TIA
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Freelance Flash / Zinc developer needed for music project

2007-05-01 Thread Rob

Dear Flashcoders,

I'd like to widen this request out location-wise. We'd be interested to talk
to any freelance Flash developers worldwide with good Zinc experience,
particularly delivering to the Mac desktop. You'd need to be online and able
to conference on Skype.

See below for more details.

Please email [EMAIL PROTECTED] with your links, resume and
rates. Serious applicants only and NO agencies.

All the best,

Rob

-- Forwarded message --
From: Flashcoder Zinc <[EMAIL PROTECTED]>
Date: 29-Apr-2007 17:34
Subject: US-based freelance Flash / Zinc developer needed for music project
To: flashcoders@chattyfig.figleaf.com

Dear Flashcoders,

We are looking for an experienced freelance Flash and MDM Zinc developer
with a good portfolio and an educational background in software development
to work on an exciting music-related project.

You are comfortable working with Zinc to deliver robust executables to the
PC and Mac desktop. You are familiar with file download/upload, Flash local
connection, XML in Flash, writing and reading files to the local file
system, coding Flash GUIs and creating installers.

You must be able to make it to New York initially and for meetings from time
to time.

Please call me on +1 646 884 4236 or email
[EMAIL PROTECTED] your links, resume and rates.
Serious applicants only and NO agencies.

I look forward to hearing from you.

Thanks,

Rob
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] factory with varying numbers of params

2007-05-01 Thread T. Michael Keesey

On 5/1/07, pedr browne <[EMAIL PROTECTED]> wrote:

Hi,

A have a Factory that needs to instanciate Objects with differing numbers of
parameters (1-4). Is there any way to deal with this situation and maintain
strong typing.

private function createItem(param_ob:Object, key:String):Void{
   switch(key){
  case "item_1":
 myItem = new Item_1(param_ob.width, param_ob.y);
 break
 case "item2":
 myItem = new Item_2(param_ob.height, param_ob.color);
 break
 etc...
   }
}


(Why is the factory method private?)

One way is to split it into two functions:
public function static createFromWidthY(width:Number, y:Number):Item {
   return new Item1(width, y);
}
public function static createFromHeightColor(height:Number, color:Number):Item {
   return new Item2(height, color);
}

(Or call them createItem1 and createItem2 or whatever.)

Another way is to use classes for parameter types:

// Make an "abstract" class for parameters:

class myPackage.ItemParams extends Object {
   private function ItemParams() {
   super();
   }
}

// Then make "concrete" subclasses for specific types of parameters:

class myPackage.WidthYParams extends ItemParams {
   public function WidthYParams(width:Number, y:Number) {
   super();
   this.width = width;
   this.y = y;
   }
   public function get width():Number {
   return _width;
   }
   public function set width(value:Number):Void {
   if (isFinite(value)) {
   _width = value;
   }
   }
   public function get y():Number {
   return _y;
   }
   public function set y(value:Number):Void {
   if (isFinite(value)) {
   _y = value;
   }
   }
   private var _width:Number = 0;
   private var _y:Number = 0;
}

class myPackage.HeightColorParams extends ItemParams {
   public function HeightColorParams (height:Number, color:Number) {
   super();
   this.height= height;
   this.color = color;
   }
   public function get color():Number {
   return _color;
   }
   public function set color(value:Number):Void {
   if (isFinite(value)) {
   _color = Math.min(0xFF, Math.max(0, Math.floor(value)));
   }
   }
   public function get height():Number {
   return _height;
   }
   public function set height(value:Number):Void {
   if (isFinite(value)) {
   _height = value;
   }
   }
   private var _color:Number = 0;
   private var _height:Number = 0;
}

// Then, in your factory method:

public static function createItem(params:ItemParams):Item {
   if (!(params instanceof ItemParams)) {
   throw new Error("Invalid argument in call to
MyFactory.createItem: " + params);
   }
   if (params instanceof WidthYParams) {
   return new Item1(WidthYParams(params).width, WidthYParams(params).y);
   }
   if (params instanceof HeightColorParams) {
   return new Item2(HeightColorParams(params).height,
HeightColorParams(params).color);
   }
   throw new Error("Unrecognized item parameters: " + params);
}

--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS2: generating new instances dynamically?

2007-05-01 Thread Andy Herrman

Or have the function return it, which is what it seems like would be
the right thing for that method.

  -Andy

On 5/1/07, Ron Wheeler <[EMAIL PROTECTED]> wrote:

I am not sure if you are showing all the code but in your code fragment,
newPost is a local variable that will be destroyed as soon as createPost
ends. A short and brutal life.

It needs to be a class property and you will want to have a getter to
access it.

Ron

sebastian chedal wrote:
> Hello Flashcoders,
>
> Sorry to bother you with another simple AS2 questions, I'm making good
> progress but I am stumped with one simple thing.
>
> I have one class/object that I want to use to generate copies
> [instances] of
> another class.
>
> The second class is an object in the library with an ID and an assosiated
> *.as file [in the linkage panel].
>
> The code is:
> =
>
> //PostModel.as
>
> import com.blabla.PostView;
>
> class com.blabla.PostModel {
>
>   public function createPost (__id) {
>var newPost = new PostView (__id);
>   }
> }
>
> =
>
> When I run this code, the class doesn't construct an instance...
>
> What am I missing? If I need to call the Library Identifyer instead, how
> would I do that?
>
> I don't want to attach the PostView to the PostModel class, I just
> want to
> create instances of them and attach them to _root [or some other MC in
> the
> timeline].
>
> Thanks!!
>
> Seb.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] rotate a cube

2007-05-01 Thread Tom Gooding
I've seen some really good stuff done recently in Papervision3d
http://www.papervision3d.org/ , also WireEngine3D I've used before
pretty successfully http://osflash.org/we3d . As with any 3D engine,
you'll need reasonable maths to get on with either of these.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ron
Wheeler
Sent: 01 May 2007 15:36
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] rotate a cube

Why not Sandy3D ???

Waseem Shahzad wrote:
> Hello Flashcoders
>
> I am trying to rotate a cube which i made in the flash authoring
> environment. However it is not a real cube but I don't want to use API
to
> make a cube first and then rotate it. I want that a cube which have a
> specific design then it is rotate in the 3d environment using flash
> Actionscript.
>
> Please help me I don't find any solution and now i think that might be

> it is
> not possible to rotate such type of cube.
>
> Thanx in advance.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OT: Share Music Online

2007-05-01 Thread Martin Jonasson
I've been using http://freesound.iua.upf.edu/ for a while, it's not 
completely free but licensed under creative commons, so you can do 
pretty much whatever you want as long as you attribute the samples. 
Great stuff.


Glen Pike skrev:

Hi,
 "Flickr is to photo's what ? is to audio"
 
   This is a bit OT, but does anyone have any links to sites that 
would fill in the blank for me?


   Googling also... 
   (Not myspace).


   Thanks in advance.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] rotate a cube

2007-05-01 Thread Ron Wheeler

Why not Sandy3D ???

Waseem Shahzad wrote:

Hello Flashcoders

I am trying to rotate a cube which i made in the flash authoring
environment. However it is not a real cube but I don't want to use API to
make a cube first and then rotate it. I want that a cube which have a
specific design then it is rotate in the 3d environment using flash
Actionscript.

Please help me I don't find any solution and now i think that might be 
it is

not possible to rotate such type of cube.

Thanx in advance.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS2: generating new instances dynamically?

2007-05-01 Thread Ron Wheeler
I am not sure if you are showing all the code but in your code fragment, 
newPost is a local variable that will be destroyed as soon as createPost 
ends. A short and brutal life.


It needs to be a class property and you will want to have a getter to 
access it.


Ron

sebastian chedal wrote:

Hello Flashcoders,

Sorry to bother you with another simple AS2 questions, I'm making good
progress but I am stumped with one simple thing.

I have one class/object that I want to use to generate copies 
[instances] of

another class.

The second class is an object in the library with an ID and an assosiated
*.as file [in the linkage panel].

The code is:
=

//PostModel.as

import com.blabla.PostView;

class com.blabla.PostModel {

  public function createPost (__id) {
   var newPost = new PostView (__id);
  }
}

=

When I run this code, the class doesn't construct an instance...

What am I missing? If I need to call the Library Identifyer instead, how
would I do that?

I don't want to attach the PostView to the PostModel class, I just 
want to
create instances of them and attach them to _root [or some other MC in 
the

timeline].

Thanks!!

Seb.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS2: generating new instances dynamically?

2007-05-01 Thread Robert Brisita

If it is a movie clip you want to instantiate then you have to use:
_root.attachMovie(libraryID, instanceName, depth);

The class associated with it will construct and the onLoad event will 
trigger if it is being listened to.


Ciao,
Rob.

sebastian chedal wrote:

Hello Flashcoders,

Sorry to bother you with another simple AS2 questions, I'm making good
progress but I am stumped with one simple thing.

I have one class/object that I want to use to generate copies 
[instances] of

another class.

The second class is an object in the library with an ID and an assosiated
*.as file [in the linkage panel].

The code is:
=

//PostModel.as

import com.blabla.PostView;

class com.blabla.PostModel {

  public function createPost (__id) {
   var newPost = new PostView (__id);
  }
}

=

When I run this code, the class doesn't construct an instance...

What am I missing? If I need to call the Library Identifyer instead, how
would I do that?

I don't want to attach the PostView to the PostModel class, I just 
want to
create instances of them and attach them to _root [or some other MC in 
the

timeline].

Thanks!!

Seb.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] factory with varying numbers of params

2007-05-01 Thread Andy Herrman

There are two ways I can think of to do this.  One would be to have
multiple factory functions, one for each type of object you want to
create.  The other would be to create a simple class (FactoryParams or
something like that) which stores all the parameters.  You pass that
as the parameter object, and you can have that parameter object be
strongly typed.

class FactoryParams {
 public var firstParam:String;
 public var secondParam:Number;
 public var thirdParam:SomeComplexObject
}

By using a class instead of a generic object you can keep the type
information (and if you use getters/setters instead of public
variables then you can even do validation on the values if you want).

  -Andy

On 5/1/07, Listas <[EMAIL PROTECTED]> wrote:

pedr, i would prefer to use the arguments array, instead of an object,
but i´m afraid this isn´t strong typed as you wish

private function createItem(key:String):Void{

  switch(key){
 case "item_1":
var wid_num:Number = arguments[1];
var y_num:Number = arguments[2];
myItem = new Item_1(wid_num, y_num);
break
case "item2":
var hei_num:Number = arguments[1];
var color_num:Number = arguments[2];
myItem = new Item_2(hei_num, color_num);
break
etc...
  }

}

Ruy Adorno
> Hi,
>
> A have a Factory that needs to instanciate Objects with differing
> numbers of
> parameters (1-4). Is there any way to deal with this situation and
> maintain
> strong typing.
>
> private function createItem(param_ob:Object, key:String):Void{
>   switch(key){
>  case "item_1":
> myItem = new Item_1(param_ob.width, param_ob.y);
> break
> case "item2":
> myItem = new Item_2(param_ob.height, param_ob.color);
> break
> etc...
>   }
> }
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>
>

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AS2: generating new instances dynamically?

2007-05-01 Thread sebastian chedal

Hello Flashcoders,

Sorry to bother you with another simple AS2 questions, I'm making good
progress but I am stumped with one simple thing.

I have one class/object that I want to use to generate copies [instances] of
another class.

The second class is an object in the library with an ID and an assosiated
*.as file [in the linkage panel].

The code is:
=

//PostModel.as

import com.blabla.PostView;

class com.blabla.PostModel {

  public function createPost (__id) {
   var newPost = new PostView (__id);
  }
}

=

When I run this code, the class doesn't construct an instance...

What am I missing? If I need to call the Library Identifyer instead, how
would I do that?

I don't want to attach the PostView to the PostModel class, I just want to
create instances of them and attach them to _root [or some other MC in the
timeline].

Thanks!!

Seb.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] dynamic image loading in mc

2007-05-01 Thread Robert Hadsell

Mastro --

One way to load a graphic file into a parent movie clip is to use a 
MovieClipLoader to create a new movie clip with the graphic, nested in a 
parent movie clip.  Here is code where the selection is made with a ComboBox 
that has graphic file pathways in its data parameter:


var listenerObject: Object = new Object();  //handles addEventListener() to 
detect a change in the ComboBox

listenerObject.change = function (evt:Object):Void {

   var imageLoader_ml: MovieClipLoader = new MovieClipLoader;
   parent_mc.createEmptyMovieClip("child_mc", 
parent_mc.getNextHighestDepth());
   imageLoader_ml.loadClip(evt.target.selectedItem.data, 
parent_mc.child_mc);


};

This might be useful for part of what you want to do.

-- Bob Hadsell


From: mastro <[EMAIL PROTECTED]>
Reply-To: flashcoders@chattyfig.figleaf.com
To: Flashcoders mailing list 
Subject: [Flashcoders] dynamic image loading in mc
Date: Tue, 1 May 2007 08:24:57 +0200


hello,

I'm looking for a solution witch can handle the following problem:

i need a mc witch will load several images and text dynamically from  a 
folder into the flash-file. (the number of images change  sometimes)


also 2 buttons should give the possibility to go from image 1 to  image 
however and back...


my xml file looks like this:




   
  








in flash on my mc the AS looks like:

--snip!


mein_xml = new XML();


mein_xml.ignoreWhite = true;


mein_xml.load("test.xml");


mein_xml.onLoad = function(status) {
if (status && this.loaded) {
anzahl = mein_xml.firstChild.childNodes.length;
geladen = true;
aktbild = 0;
ladeBild(aktBild);
}
};


function ladeBild(paktBild) {
status_mc._visible = 1;
bild = mein_xml.firstChild.childNodes[paktBild].attributes.pic;
bildname = mein_xml.firstChild.childNodes[paktBild].attributes.name;
loadMovie(bild, "bild_mc");
titel_txt.text = bildname;
}


weiter_btn.onRelease = function() {
if (geladen && aktbild0) {
aktbild--;
ladeBild(aktBild);
}
};



---snip!

here is a link to a test file:

http://nano.machfeld.net/test/test.zip




someone an idea?

cheers,

michael



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_
The average US Credit Score is 675. The cost to see yours: $0 by Experian. 
http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] dynamic image loading in mc

2007-05-01 Thread noentourage

You'll probably need some backend scripting like php or whatever your host
has installed to read the contents of the folder then send that info to your
flash app as xml.


On 5/1/07, mastro <[EMAIL PROTECTED]> wrote:



hello,

I'm looking for a solution witch can handle the following problem:

i need a mc witch will load several images and text dynamically from
a folder into the flash-file. (the number of images change
sometimes)

also 2 buttons should give the possibility to go from image 1 to
image however and back...

my xml file looks like this:




 









in flash on my mc the AS looks like:

--snip!


mein_xml = new XML();


mein_xml.ignoreWhite = true;


mein_xml.load("test.xml");


mein_xml.onLoad = function(status) {
if (status && this.loaded) {
anzahl = mein_xml.firstChild.childNodes.length;
geladen = true;
aktbild = 0;
ladeBild(aktBild);
}
};


function ladeBild(paktBild) {
status_mc._visible = 1;
bild = mein_xml.firstChild.childNodes[paktBild].attributes.pic;
bildname = mein_xml.firstChild.childNodes[paktBild].attributes.name;
loadMovie(bild, "bild_mc");
titel_txt.text = bildname;
}


weiter_btn.onRelease = function() {
if (geladen && aktbild0) {
aktbild--;
ladeBild(aktBild);
}
};



---snip!

here is a link to a test file:

http://nano.machfeld.net/test/test.zip




someone an idea?

cheers,

michael



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] rotate a cube

2007-05-01 Thread Fumio Nonaka

Flash 8 source fla file can be downloaded.

3D Transformation:
http://www.fumiononaka.com/Sample/3D_Box/3D_Box.html
_
Danny Kodicek wrote:

If you made your cube as a perspective object in Flash, you're right, you
can't rotate it automatically (how would Flash know what the rest of it
looked like?!) There's no way to do what you're trying without using some
actionscript (and a fair amount of maths). However, there are a fair number
of 3d tutorials out there - a Google on 'rotate cube actionscript' brought
up this one as a first hit:
http://www.kirupa.com/developer/actionscript/rotation_center.htm

--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My books
Flash community
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] rotate a cube

2007-05-01 Thread Danny Kodicek
 
> Hello Flashcoders
> 
> I am trying to rotate a cube which i made in the flash 
> authoring environment. However it is not a real cube but I 
> don't want to use API to make a cube first and then rotate 
> it. I want that a cube which have a specific design then it 
> is rotate in the 3d environment using flash Actionscript.
> 
> Please help me I don't find any solution and now i think that 
> might be it is not possible to rotate such type of cube.

If you made your cube as a perspective object in Flash, you're right, you
can't rotate it automatically (how would Flash know what the rest of it
looked like?!) There's no way to do what you're trying without using some
actionscript (and a fair amount of maths). However, there are a fair number
of 3d tutorials out there - a Google on 'rotate cube actionscript' brought
up this one as a first hit:
http://www.kirupa.com/developer/actionscript/rotation_center.htm

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] factory with varying numbers of params

2007-05-01 Thread Listas
pedr, i would prefer to use the arguments array, instead of an object, 
but i´m afraid this isn´t strong typed as you wish


private function createItem(key:String):Void{

 switch(key){
case "item_1":
   var wid_num:Number = arguments[1];

   var y_num:Number = arguments[2];
   myItem = new Item_1(wid_num, y_num);
   break
   case "item2":
   var hei_num:Number = arguments[1];
   var color_num:Number = arguments[2];
   myItem = new Item_2(hei_num, color_num);
   break
   etc...
 }

}

Ruy Adorno

Hi,

A have a Factory that needs to instanciate Objects with differing 
numbers of
parameters (1-4). Is there any way to deal with this situation and 
maintain

strong typing.

private function createItem(param_ob:Object, key:String):Void{
  switch(key){
 case "item_1":
myItem = new Item_1(param_ob.width, param_ob.y);
break
case "item2":
myItem = new Item_2(param_ob.height, param_ob.color);
break
etc...
  }
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] rotate a cube

2007-05-01 Thread Waseem Shahzad

Hello Flashcoders

I am trying to rotate a cube which i made in the flash authoring
environment. However it is not a real cube but I don't want to use API to
make a cube first and then rotate it. I want that a cube which have a
specific design then it is rotate in the 3d environment using flash
Actionscript.

Please help me I don't find any solution and now i think that might be it is
not possible to rotate such type of cube.

Thanx in advance.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] XMLSocket connection in flash 8 /AS2.0

2007-05-01 Thread Tom Gooding
Calling all AS2.0 developers who have experience working with XMLSocket
connections..
I've recently been seeing an odd behaviour in an app I've developed
which has a continual connection to a socket server.

The symptom I've been seeing is the connection becoming inactive, the
onClose event does not get fired, it just stops receiving XML. My
current workaround is to monitor idle time on this connection and
reconnect if a ceiling is reached. The current thinking is that this is
due to some network/firewall/environmental issue and investigation is
time-consuming, though a bug with flash has not been ruled out.

I was wondering if anyone has experienced anything similar and found the
root cause of it? Any thoughts would be greatly appreciated.

Tom
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Using a flex2 swc in Flash CS3

2007-05-01 Thread Mike Mountain

How do I go about using a flex 2 SWC library in Flash CS3? I tried dropping
it into the components directory but no joy

Anyone help?

Cheers

M
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] factory with varying numbers of params

2007-05-01 Thread pedr browne

Hi,

A have a Factory that needs to instanciate Objects with differing numbers of
parameters (1-4). Is there any way to deal with this situation and maintain
strong typing.

private function createItem(param_ob:Object, key:String):Void{
  switch(key){
 case "item_1":
myItem = new Item_1(param_ob.width, param_ob.y);
break
case "item2":
myItem = new Item_2(param_ob.height, param_ob.color);
break
etc...
  }
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Study material for flash certification

2007-05-01 Thread Muzak
Look for this one on amazon.com:
Macromedia Flash 8 On Demand

Muzak

- Original Message - 
From: "Prince Zain" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 01, 2007 9:27 AM
Subject: [Flashcoders] Study material for flash certification


> Hi All,
>
> I wanted to know, which is the best study book for flash certification.
> Also is there any online resources available for the same. I visited the
> adobe.com but didn't get the sufficient information.
> Kindly share with me.
>
> Thanks in advance.
> Xian 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Study material for flash certification

2007-05-01 Thread Lists
As far as I know, the only book avoilable at present is for the MX 2004
certification--an outdated exam at this point.


On 5/1/07 3:27 AM, "Prince Zain" <[EMAIL PROTECTED]> wrote:

> I wanted to know, which is the best study book for flash certification.
> Also is there any online resources available for the same. I visited the
> adobe.com but didn't get the sufficient information.
> Kindly share with me.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Two column forms and removing null

2007-05-01 Thread Muzak
Dennis,

Try the "flexcoders" list ;-)
http://groups.yahoo.com/group/flexcoders/

regards,
Muzak

- Original Message - 
From: "Dennis Asher" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 01, 2007 3:18 AM
Subject: [Flashcoders] Two column forms and removing null


> Just starting with Flex. A couple of questions:
>
> Can I auto layout my form in 2 columns without absolute positioning? ie.
> specify n columns or???
>
> and I have text boxes and images sourcing content from a database. How do I
> stop the 'null' appearing in the text box when there is no data in the field
> and the 'image missing' outline appearing when there is no image listed in
> the source field.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] dynamic image loading in mc

2007-05-01 Thread Muzak
Please sign up for the flashnewbie list and try your question there.
http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie

regards,
Muzak

- Original Message - 
From: "mastro" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 01, 2007 9:10 AM
Subject: Re: [Flashcoders] dynamic image loading in mc



hi seb.

thanx for your quick answer !

but i didnt get it...

i chanced the code how you suggest it. but now i get an error massage...

also, what i have to do with the buttons? is it possible to take the
same 2 buttons
to go one picture up/down during the sliteshow?

thanks !

michael



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Study material for flash certification

2007-05-01 Thread Prince Zain

Hi All,

I wanted to know, which is the best study book for flash certification.
Also is there any online resources available for the same. I visited the
adobe.com but didn't get the sufficient information.
Kindly share with me.

Thanks in advance.
Xian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] dynamic image loading in mc

2007-05-01 Thread mastro


hi seb.

thanx for your quick answer !

but i didn´t get it...

i chanced the code how you suggest it. but now i get an error massage...

also, what i have to do with the buttons? is it possible to take the  
same 2 buttons

to go one picture up/down during the sliteshow?

thanks !

michael




hi Michael,

quick reply here, but you may want to consider assigning the XML  
data to an Array instead of to variables. This way, you can call  
positions in the array easily.


So instead of:

bild = mein_xml.firstChild.childNodes[paktBild].attributes.pic;

you would have:

pictureArray = new array
for i loop with max = XML.children.length
pictureArray[i] = mein_xml.firstChild.childNodes[i].attributes.pic;
position = 0;//position tracker

next/previous just calls 'position' of 'pictureArray[i]' array and  
loads up. also saves reloading XML EVERY time you call an image  
[less load on server/flash]


cheers,

seb.

mastro wrote:

hello,
I'm looking for a solution witch can handle the following problem:
i need a mc witch will load several images and text dynamically  
from a folder into the flash-file. (the number of images change  
sometimes)
also 2 buttons should give the possibility to go from image 1 to  
image however and back...

my xml file looks like this:


Bild>



Bild>
Bild>




in flash on my mc the AS looks like:
--snip!
mein_xml = new XML();
mein_xml.ignoreWhite = true;
mein_xml.load("test.xml");
mein_xml.onLoad = function(status) {
if (status && this.loaded) {
anzahl = mein_xml.firstChild.childNodes.length;
geladen = true;
aktbild = 0;
ladeBild(aktBild);
}
};
function ladeBild(paktBild) {
status_mc._visible = 1;
bild = mein_xml.firstChild.childNodes[paktBild].attributes.pic;
bildname = mein_xml.firstChild.childNodes[paktBild].attributes.name;
loadMovie(bild, "bild_mc");
titel_txt.text = bildname;
}
weiter_btn.onRelease = function() {
if (geladen && aktbild0) {
aktbild--;
ladeBild(aktBild);
}
};
---snip!
here is a link to a test file:
http://nano.machfeld.net/test/test.zip
someone an idea?
cheers,
michael
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


---
Michael Mastrototaro
A-1020 Vienna, Max Winter-Platz 21/1
Phone: +4(0)650 99 103 04
http://www.machfeld.net




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com