Re: [Flashcoders] Object properties not showing up in for..in

2007-07-13 Thread Amir T Rocker

If you switched to AS3, teh for in loop does not work on 'sealed' classes,
only on the legacy AS2 style prototype based objects - like

myObj:Object = { prop: 1 , prop: 2, prop: 3 ...};

For sealed classes like iterating thru the,  say, props of a 
ByteArray or NetStream class,

use the
ObjectUtil.toString
// new Reflection API
myClass.getClass

Hope that helped a bit

amir


Am 02:30 PM 7/13/2007 schrieben Sie:

This is weird:

trace(tProps.nformat.nalignment)
for (var i in tProps.nformat) {
trace (i + :  + tProps.nformat[i])
}

Result:

left

That is: tProps.nformat.nalignment is equal to left, but the for..in loop
is failing to mention it (or any of the other properties in the object).

I'm really baffled - especially because the same code was working fine until
today - I've rewritten the class, but this bit shouldn't be affected at all.

Any suggestions gratefully received
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


___
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] TileList and dragdrop

2007-07-10 Thread Amir T Rocker

Hi,
check th eFlex2 Help ;) DragDrop .. %)

Flex2 supports a simple model of drag and drop
all you need to do is to enable the TileList to accept drags and accept drops

code
myTileList.dragEnable = true;
myTileList.dragEnter = myCustomDragEnterMethod;
myTileList.dragDrop = myCustomDragDropMethod;
/code
if you want to have the real deal - use a DragManager, a DragSource, 
a DragProxy and a DragTarget. Best you look it up in the help 
sectioon of Flex -

BUT ITS NOT A DREAM ;)
amir

Am 11:23 AM 7/10/2007 schrieben Sie:
I am looking for clues to implement  dragdrop features to a 
TileList (AS3) just like in Flex

something like a dynamic basket:

SWF objects are loaded into the a TileList

than you can drop them into a basket

all this in Flash AS3...

Is it a dream ?
___
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] Seeking Experienced Developer for Connecting Flash to Databases with Java

2007-07-09 Thread Amir T Rocker

Hi ,

depends on what type of middleware you are using ... OPENAMF ? JRUN ?
usually you would ask the flash client to connect to a server - java 
classes in your case  I assume - thru something like OpenAMF

or the macromedia / adobe Implementation Flash Remoting with JRun or similar...
The actual connection to the DB is done thru a java connector - like 
a odbc / jdbc driver for oracle.
the java classes prep the data before pushing them down to the flash 
client. ( async calls )
If I may recommend the SPRING Framework for Java on the Server Side 
... it rocks  :)
I hope it helped a bit ... please feel free to contact me if you have 
any more questions.


[EMAIL PROTECTED]

Good luck and happy clicking

Amir Rocker

Certified Flash Developer
SCJP (i.t.)

Am 10:41 PM 7/6/2007 schrieben Sie:

Hello,

I'm working on a really sweet project and need some help from a fellow
freelaner.  If you are knowledgable in connecting Flash to databases (esp.
Oracle) with Java, please contact me.  Perhaps you can give me some pointers
and or work with me as a consultant.  Thanks for your help.

Kind regards,

Phil
___
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] Sorry for the off topic post but is anyone out there a really good Ajax JavaScript person we need help

2007-07-04 Thread Amir T Rocker

Well,

if you want to describe the problem maybe someone can help you 
without having to hire

someone ;)

tom

Am 03:31 PM 7/4/2007 schrieben Sie:

Sorry for the off topic post but is anyone out there a really good Ajax
JavaScript person we need help. I'm not an agent I work for
http://www.avenuea-razorfish.com/. We are really stuck if anyone knows
someone who wants a good job. Just let me know.

Thanks guys
___
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: AW: [Flashcoders] Turn image around effect?

2007-06-30 Thread Amir T Rocker

Hi guys ,

I believe they programmed a  AS3 based  3D 
Rasterizer to create this flip - AS3 can do that quite easy since

it provides all necessities to do so :

ByteArray to hold the pixels
Matrix to do the transforms
BitmapData to manipulate and draw  and more 

I am currently working on building a 3D Graphics 
Engine in AS3 - and if anybody would come to me 
and ask me to program something like this -
that would be the way I would go about it ( 
but I am a programmer - so my solutions are often 
very programmer centric - not an animator :)
next week I will contact the developer and ask 
him/them  how he / they do/did that :) if he tells :)

I am VERY curious wether or not I guessed right 
What do you guys think about that - would you say my suggestion is correct ?

I made a couple of screenshots and noticed that 
the lines are definitely DRAWN BY FLASH @RUNTIME 
- look at the Alias its almost nonexistent
therefore I believe they are probably using a 
Bresenham Algo on a BitmapData to draw lines.


Think about it, its not as hard as it may sound - 
all you need is a simple Polygon whithout any 
depth - no camera , it runs in a fix perspective mode.
Then you create a transform matrix ( rotation 
only ) and transform the Polygon in place ( only inside model space ).
The next step would be to create a simple concat 
Matrix that does the Model-to-Perspective and the 
Perspective to Screen transform.
Done ! well I admit its a shot in the blue - but 
as i said thats how I would do it.
Second question would be the maintainability of 
'flippable' content - If they were to use images 
they would need to 'recreate' each image once its 
content changes - even twice if they would use 
two images per flip - doesnt sound maintainable to me :)
Besides if content is retrieved from inside a DB 
or from some kind of Backend, chances are you 
would not have a way to transform the content ON 
THE CLIENT - meaning you would have to convert 
the content from Text to Image on the Server -- arrghhh sounds tricky :)


Anyone finds out ... let us know ... this flip is 
done VERY NICELY - nice craftmanship


Have a nice Weekend

Amir

Am 08:12 PM 6/29/2007 schrieben Sie:

If you check the code they are using bitmap classes from
http://www.group94.com/. Ask em about com.group94.graphics.TransformImage.
It looks like its using triangles and texture bitmapFills.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthias
Dittgen
Sent: Friday, June 29, 2007 3:50 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: AW: [Flashcoders] Turn image around effect?

have you tried to contact their developer directly? ;-)

2007/6/29, Peter Oliver Geller [EMAIL PROTECTED]:
 But when you use the image distortion effect (Bitmap Data)
 with a two image flip, it´s tricky to program your mask on the point of
 intersection where the image turns around, because on that moment you
 display the front and backside and I think group94 use another type of
 technique which is definitely easier.

 Hmm or you can really simple do a gradient alpha flow on the two images in
 an inversely direction?

 Thanks
 Peter

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Im Auftrag von Cedric
 Muller
 Gesendet: Freitag, 29. Juni 2007 11:40
 An: flashcoders@chattyfig.figleaf.com
 Betreff: Re: AW: [Flashcoders] Turn image around effect?

 maybe by creating the illusion of only one image that is front and
 back ??
 My guess is that there are two images flipped in the same time: one
 from visible to invisible and the other one from invisible to visible

 hth,
 Cedric

  I know the card flip effect,
  but I think its more like the effect Jesse Graupmann posted.
 
  The question is how ja shows the image backside???
  I have no idea how to combine the image distortion to switch from
  front to
  backside and vice versa?
 
  Any ideas?
 
  Peter
 
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag von
  Pedro
  Taranto
  Gesendet: Donnerstag, 28. Juni 2007 19:37
  An: flashcoders@chattyfig.figleaf.com
  Betreff: Re: [Flashcoders] Turn image around effect?
 
  Card Flip Effect:
  http://pixelfumes.blogspot.com/2006/07/business-card-flip-effect-
  class-with.
  html
 
  --Pedro Taranto
 
 
  Peter Geller escreveu:
  Hi list,
 
 
 
  can somebody give me an answer how this turn around effect was
  made when
  you click on the speech bubble?
 
 
 
  http://www.ja-ik-doe-mee.be/
 
 
 
  Or is it done with a visual flatted 3D Image made with
  http://www.flashsandy.org/ ?
 
 
 
 
 
  Another nice technique which interests me is used on this side:
 
  http://lab.mathieu-badimon.com/ same technique?
 
 
 
  Maybe some of you have a link for me how this is done?
 
 
 
  Thanks a lot
 
 
 
  Peter
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the 

Re: [Flashcoders] adapt architecture to facilitate switching component sets

2007-06-30 Thread Amir T Rocker

Hi JC,

Your solution is quite good. Using an 'Abstract Interface' is always 
encouraged :)

The guideline goes like - 'Program to Abstraction not to Implementation'
Unfortunately AS3 does not (yet:) allow Generics / Collection Type 
safety - so we are still forced to make sure we
do the right types, since Casting to the correct type will probably 
be the biggest Problem for this code. ( MY opinion )
* 'Composite'  is the formal Pattern Name for this type of 
architecture - check it out - its worth it !!


BUT if you are planning on using components anyway, you might as well 
build the app in Flex
which already offers this Architecture as the base of mxml / As3 code 
gen and development.
'Abstract interface' for all Displayable Objects in Flex / AS3 is an 
Interface called
- IFlexDisplayObject ( in flash its i believe 'Sprite' but dont nail 
me on that :)

- UIComponent is the base class from which each Component MUST be subclassed
So if you use flex there would be no need for you to 're-invent' the 
wheel :) no offense I dont mean to imply that you would not be capable
but if you are like me ( like a bit lazy :) you will find the offered 
component framework in flex quite

AMAZINGLY GOOD 

Your designer can change ANYTHING and EVERYTHING on the compos inside 
the Design View ( No Coding !!! )
and you can glue functionality on the comps using DataBinding and a 
robust event dispatching model.


As an Example - I built a VideoConference Tool Application( like 
breeze or spreed )  - first in Flash 8 - I had to implement all 
necessary compos so the designer could 'design' them creatively :) ( 
Man i wanted to kill that guy )
Sounded much like what you are planning on doing - I took me about 3 
Months of just implementing compos - from a simple numeric stepper to 
the expandable scroll Accordeon
- altogether around 24 components - boy it was a bitch - and then had 
to add Domain Logic. Due to this enormous workload I completely 
fragged the deadline - project was killed


For my own personal satisfaction I restarted the project myself - 
this time in Flex and it took me about 6 - 7 months to complete it. 
Now the Tool is in Beta and
running. Lesson for me was: Use Flex  Unless you need to animate 
or draw something - use Flex. It harnesses so much power !
And you can really concentrate on your business logic instead of 
having to waste your time on building low-level application components.
AND even if you need to show something done in flash ( animated / 
tweened / handdrawn ) you can import and display in Flex.


I hope I was able to answer your question right and to give you some 
ideas / Suggestions.
Feel free to contact me if you have any questions regarding Flex / AS 
3 , I'll be glad to answer them.


Best regards

Amir

Certified Flash Developer
Sun Certified Java Programmer (I.T.)



Am 07:32 AM 6/30/2007 schrieben Sie:

Hi,

we are looking into using another component set than the v2 architecture.
However we don't want to switch over and over again, and frankly as the
architecture developer I dont want anything to do with components at all.

So I was thinking about a setup where I write component interfaces such as
IComboBox and a set of wrappers such as V2ComboBoxAdapter implements
IComboBox.
Next a designer creates a view, and puts something in his view like (im
making it up as I'm typing) :

getComboBox (id:String):IComboBox {
return AbstractFactory.create (V2Adapters.COMBO_BOX, _root.cbPersons);
}

In terms of being independent of my views, I can just start putting an app
together and if the designer dude wants to skin it differently or use a
whole other component set he is free to do so, even mix and match is an
option.

The main thing I'm wondering about is whether I'm gruesomely
overcomplicating things and just causing a heckload of work for no good
reason other than that I am not familiar with a single very good component
set that satisfies all the designer needs (I'm not saying they don't exist,
I'm saying I don't have enough experience in any of them to make a
wellformed decision, and don't really have the time to test them one by
one:)).

Hope this makes any sense!
greetz
JC
___
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] how to call method in sub-class instace?

2007-06-30 Thread Amir T Rocker

Hi stranger ,  :)

I dont think I quite understand what you need, however i will try anyway.
[quote] How do you get a super-class instance to call an over-riding 
method in a sub-class


Inheritance assumes that you use a 'general' base class and a 
'specialized' subclass. To make sure I understand you right : You 
need to call a method on a child class from inside the Parent class, 
right ? Does it matter from where you call the method ? As long as 
you have a reference to the subclass instance - call the method directly.


class MySuperClass extends Object {
.. important general code here 
}
class ChildClass extends MySuperClass {
... important specialized code here 
}

var msc:Class = new MySuperClass();

var childRef:ChildClass = msc.getChildClassFromList() as ChildClass; 
( I assume the class was stored inside an Array(List)  )
childRef.doDesiredAction( 'execute some really important childClass 
code' ); // there you go :)


[quote] Furthermore, any input values not caught by the parsers of 
the sub-classes need to get passed back up to the super-class.

Calling a method of the Superclass is easy. Just use 'super'.


var msc:Class = new MySuperClass();
var childRef:ChildClass = msc.getChildClassFromList() as ChildClass; 
( I assume the class was stored inside an Array(List)  )


class MySuperClass extends Object {
.. important general code here 

public function doDesiredAction( arg:String){
super.doGeneralDataProcessing( arg );
}

}

class ChildClass extends MySuperClass {
... important specialized code here 

public function doDesiredAction( arg:String){
super.doGeneralDataProcessing( arg );
}
}

childRef.doDesiredAction( 'calls the super class' ); // there you go :)

[quote] Does this make sense?
No offense , but no !!! First as a general rule of thumb: 'Favor 
Composition over Inheritance' [Sierra|Bates] - Inheritance ties you 
down. Say you implement the system as you described
and in 3 months you need to change the BaseClass - suddenly all your 
subclasses, needing to call the base class for processing, must be 
changed since they all depend on your
base class - Strategy Pattern is recommended over inheritance ( but 
thats just my opinion )

Command Pattern to execute the different Parser Classes.
It seems to me that your classes have high coupling / low Cohesion - 
meaning that you use several classes to get one job done , it may 
seem like a good idea at first ,
using the specialized class A, the base class B, another specialized 
class C and so on to work together and parse the desired data.
However it is advised that each class takes care of One 
Responsibility. I dont want to be pretentious, so if you already know 
all that , please forgive :)
So I assume you have written one parser for each special file format 
- a .xml parser  , a .txt parser, a loadVars parser and so on.
They all extend MySuperParser. So why splitting responsibility of 
parsing data across base and child classes ?
Has the BaseClass features / responsibilities that all subclasses 
need ? if so - fine, just call the base class methods from inside your

specialized subClass Parser BEFORE you do the specialized processing like so :

public function mySubClassSpecializedParsingMethod( specialParam:* ) :void {
super.BaseClassPrepFirst( specialParam );
var preppedData:* = super.getPreppedData(); // I havent 
really tried this line :) see wether it works

this.doSpecializedPrepping( preppedData );
}

If you want to freshen up on Composition over Inheritance - This Book 
is my all time favoured Design Pattern and Bets Practice Programming 
Book !!
HEAD FIRST - DESIGN PATTERNS ( Elisabeth Freeman  Eric Freeman || 
Kathy Sierra || Bert Bates )
This was the best Book about Design Pattern - actually generally 
about good Programming.


I hope I was able to help you a bit - did I get it right ? I hope :)

Best of luck
Amir

P.S.
Lingo is NOT OOP - dont get me wrong ! lingo rocks!!! but its 
nothing like ActionScript or Java - Even the Javascript DOM for 
Lingo is strange to say the least :)

But again - lingo rocks!!




Am 11:32 PM 6/29/2007 schrieben Sie:
How do you get a super-class instance to call an over-riding method 
in a sub-class?  I'm using AS2.


I'm parsing data into an object.  The parser method is generalized, 
so it should be in the super-class, I think...  But there are 
exceptions in the sub-classes.  The call to start loading the data 
begins in the super-class, but some of the sub-classes might have 
there own over-riding parser methods.  Furthermore, any input values 
not caught by the parsers of the sub-classes need to get passed back 
up to the super-class.


Does this make sense?  I did this kind of thing all the time with 
lingo, but since I've been reading Moock I'm trying to write better 
OOP.  This has got to be a pretty common thing to run across.


Thanks!

Re[2]: AW: [Flashcoders] Turn image around effect?

2007-06-30 Thread Amir T Rocker

Thats nice to hear :)

I heard software developers have a nag to complicate things
Guess that would concern me
Thanks for the quick reply. I havent worked with flash for over a 
year now- so i am a bit out of date :)

Please share how to do that without having to work a lot

Amir

Am 10:01 PM 6/30/2007 schrieben Sie:


ATR I believe they programmed a  AS3 based  3D
ATR Rasterizer to create this flip - AS3 can do that quite easy since
ATR it provides all necessities to do so :
ATR
ATR ByteArray to hold the pixels
ATR Matrix to do the transforms
ATR BitmapData to manipulate and draw  and more 

Flash 8 has everything what is needed for such an effect.

ATR Besides if content is retrieved from inside a DB
ATR or from some kind of Backend, chances are you
ATR would not have a way to transform the content ON
ATR THE CLIENT - meaning you would have to convert
ATR the content from Text to Image on the Server -- arrghhh sounds tricky :)

If you already know BitmapData, probably you are familiar with
BitmapData.draw(), too :)

Well, I think you are overcomplicating something, this effect is not
so hard to create as you expect :)

  Attila

___
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] Does FLEX have web services?

2007-06-21 Thread Amir T Rocker

Hi,
well yes, i havent used a WebService component, but the WebService class.
Flex / AS3 supports a mxml component as well as a AS3 class - of course:)

for the remoting - I have used amfphp as well as openamf in the last 
two years

- its robust and fast - its a lot faster than Webservices.

Hope that helps .

best of luck
Amir

Am 04:32 PM 6/19/2007 schrieben Sie:


Does FLEX include a SOAP-based web services component?  Does it work
better than the buggy MX component (i.e. huge memory leak)?

We have shied away from Flash Remoting for the time being; I'm simply
looking to determine if there is support for SOAP web services.

Pete Miller
___
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] converting .mov to .flv

2007-06-21 Thread Amir T Rocker

you can use

a) sorenson squeeze
b) flash flv encoder
just google for it and you might even get freeware

amir

Am 05:11 PM 6/15/2007 schrieben Sie:

Hello,

I'm looking for an easy, inexpensive way to convert my .mov QuickTime
movies ( 2 to 10 minutes long) to .flv in order for me to put them on
a web site to be viewed by Flash Player.  I do have Flash MX 2004
installed on my Mac, but I haven't been able to determine if I can
use it to do this conversion.

I'm not a tech person, I'm a musician making instructional videos, so
I do need something easy to learn and use.  Does anyone have hands-on
experience with any program that meets these needs?

I appreciate any help anyone can give.

Thanks.

Jim



___
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] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Amir T Rocker

Hi,

i experienced the same behaviour using this type of cast

var somVar = Caster( Castee );

sometimes it works and sometimes it doesnt ...
I tried to use the 'as' operator and that suddenly works where above 
coed failed.


var someVar = list.getItemAt( i ) as TypeToCast;

I hope maybe that works for you too. I havent figured the casting 
rules quite yet. So if anybody can explain it

its really appreciated :)

Best of luck
Amir

Am 04:07 AM 6/21/2007 schrieben Sie:

Hello,

I've created a custom class:

LiquidObject extends Sprite

I then create several instances of LiquidObject and add them as
children to a parent Sprite.

If I cycle through and trace the children as such:

for (var i:int=0;iparent.numChildren;i++) {
trace(parent.getChildAt(i));
}

Each trace shows the correct type of object:

[object LiquidObject]

When I tried to access a property specific to LiquidObject
(LiquidObject.selected) it does not recognize this to be a property
because it thinks it's dealing with a general Sprite. So, I attempt
to coerce to type LiquidObject as such:

for (var i:int=0;iparent.numChildren;i++) {
trace(LiquidObject(parent.getChildAt(i)).selected);
}

Unfortunately, I receive an error stating that I can't coerce type
Sprite to LiquidObject. I would think that this would be allowed
since (a) LiquidObject extends Sprite and (b) parent.getChildAt(i) is
already presenting a type LiquidObject in the trace.

Any suggestions would be appreciated.

Thanks in advance.
Paul




___
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 - OT FLV Encoder Tools / tips

2007-06-18 Thread Amir T Rocker
Hi try to set the On2VP6 codec set up to 700 K video data rate - 
thats about the best quality you can get :)

It may be too big though to be displayed smoothly :)

hope it works for you

best regards amir

Am 07:00 PM 6/10/2007 schrieben Sie:

Hi,

  This is OT and I am googling too, but my we are trying to import 
an uncompressed AVI into FLV format, except we want higher quality 
than the default Flash Video Importer can provide.


  The FLV itself is going to be running on a local-machine rather 
than the internet, so we don't care about bandwidth.


  The AVI is 3D textured landscape with 2D hand-drawn animations 
inserted.  The pixelation from the FLV compressor is particularly 
noticeable so apart from keyframing as many frames as possible, is 
there anything else we can do to improve the quality?


  Are there any 3rd party compressors better suited to this that 
people can recommend?


  Thanks

  Glen
___
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] upgrading AMFPHP code

2007-05-24 Thread Amir T Rocker

Dear all,
dear al,

with as2 remoting you must / can / may :) use the Responder Object.
All you need to do is to pass the Responder as the second parameter 
for your Service constructor

like so :

// responder class
class MyResponderSubclass extends mx.remoting.Responder { // please 
check the package , i am not really sure but the class name is correct

public function MyResponderSubclass() {}

public function onResult() {  }

public function onStatus() {  }

// private methods .

}

this.service = new Service(this.gatewayUrl,  new 
MyResponderSubclass() , myservice);


or

var responder:Object = new Object();
responder.onResult = function() { ... code here ...  } ;
responder.onStatus = function() { ... code here  } ;

this.service = new Service(this.gatewayUrl,  responder , myservice);

By the way, its kinda best practice to NOT attach event handlers and 
other 'utililty Objects' directly to root.
Better refactor them out to Helper classes or even better write a 
NetConnection Subclass and a NetConnection Responder subclass
and handle all events in there. O'Reilly's Essential Flash 
Remoting  is a great place to learn all about remoting, which by the 
way rocks 


Hope I could help you. If anybody finds a flaw in the code, please 
forgive and correct me. Its been quite a long night.


Live long and prosper :)

amirrocker.de


Am 11:22 AM 5/24/2007 schrieben Sie:

Hi to all,

i've tried to google to obtain a solution, but no way...

how can I catch STATUS events generated by the remoting connector?

with AS 1 remoting:
_root.conn = NetServices.createGatewayConnection(_root.globals.amfGateway);
_root.myService = _root.conn.getService(myservice, this);
_root.conn.onStatus = function(error) {
// code here
};

how should I do this within a class and with the actual AS2 syntax

this.service = new Service(this.gatewayUrl, null, myservice);

i've find a PATCH to AS classes, but I think It's not a great 
idea... maybe there is a smarter way


Thanks in advance

Alfonso Florio

___
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] Dynamic E4X

2007-05-18 Thread Amir T Rocker

hi,

isnt it some like:

trace( [EMAIL PROTECTED] );

i think :)



Am 01:57 AM 5/17/2007 schrieben Sie:

The as3 examples for XML show the following:
var node:String = zip;
trace(employees.employee[0].address[node]); // 98765

What I'd like to do is something like this:
var node:String = zip;
trace(employees..[node]); // 98765

ie: Find all nodes that are called 'zip' in the document, but do it 
dynamically.


any ideas?
C
___
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] Annoying, (should be simple) bitwise problem

2007-03-22 Thread Amir T Rocker

Hi buddy,

isnt the format ARGB ?
HEX = 0x AA RR GG BB ?

Just a suggestion :) But I think what you think are your blues ar ein 
reality your Greens :)

Also dependant on the version of flash you are working with...

Best of Luck and successfull clicking

Amir

Am 07:21 PM 3/21/2007 schrieben Sie:

Hi guys,

This is annoying me - I'm just trying to get the seperate RGB
component values out of a hex number, then manipulate and reconstruct
them.

var col = 0xFF;

r = col  16;
g = col  8 % 255;
b = col % 255;
trace(r=+r.toString(16));
trace(g=+g.toString(16));
trace(b=+b.toString(16));

col2 = r 16 + g  8 + b;
trace(col2=+col2.toString(16));

Anyone got any idea why this isn't working right? My blue values are
doing all sorts of wierd stuff - getting smaller, flipping out etc -
is it a modulo problem maybe? Should be simple but this always gets
me...

Any help much appreciated,
Alias
___
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] as3 book

2007-02-27 Thread Amir T Rocker

Hi
try the AS3 cookbook by o'reilly.

bye

Am 04:13 PM 2/26/2007 schrieben Sie:

Hi Guys, I have to accept I'm the newbiest  guy in this flash thing,
I'm finishing(when I'll get time) the flash oop book , and then I'd
like to move to as3...any book you could recommend me?
I've found the as3 book in a nutshell for O'reilly in 10 bucks in
books a million, so if you know about something better and
affordable...let me know.


Thanks.




Gustavo Duenas

___
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] webcam

2007-02-26 Thread Amir T Rocker

Sure, but only local - means no one else can see you.

// get the camera
var cam = Camera.get( [opt. camName ] ) ;
// attach the camera on the vid display
videoPanel.attachCamera(cam) ;

thats it - nowe you have a working camera - but no way to show it to 
others or record anything.

For that you would need FCS / FMS.

hope i could help.
best regards

Amir Rocker

Am 09:45 AM 2/26/2007 schrieben Sie:

Is there a way to have a webcam in a web site without flashcomm ?

Thank you
___
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