Re: [Flashcoders] FPS limit of flash player inside browser?

2008-05-09 Thread Jon Bradley

On May 8, 2008, at 4:27 PM, Zeh Fernando wrote:

But it's important to remember movies work well at 24fps because  
they capture slices of time and not static frames. An entire 1/24  
of a second is present on each of those frames, while with computer  
graphics we have a moment frozen in time.



You're right on the 'slice of time' aspect, but it is still a static  
frame (progressive). It's just that it captures motion blur.


 a good example is some parts of the animated movie Akira and  
specially Ghost in the Shell, where they created the original cut  
at 60fps or 120fps (!) and then frame blended back into 24 to give  
the impression it was a movie.


That's because they didn't have the ability to 'render' motion blur.  
You wouldn't do that today though because there are other efficient  
ways around that (optical flow is one example).


- jon


Post • Central
Visual FX  |  Animation  |  Interactive
170 Linden Oaks, Suite B  |  Rochester, NY  |  14625
P:  585.385.1530 x273  |  F: 585.218.9219
[EMAIL PROTECTED]  |  www.postcentral.com

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


[Flashcoders] Re: Best AS3 MenuBar component for Flash CS3

2008-05-09 Thread Joe Cutting


I've been pretty impressed with the Jumpeye components
(www.jumpeyecomponents.com), but I'm not sure if the menu components come
with a skin that looks like the other CS3 components. They're really easy to
skin, though.

Thanks for this I had a look at the jumpeyecomponents but like you I 
couldn't see a way of making them fit with the rest of the CS3 
components. Since I first posted I've made some more progress with 
the ASTRA components. It seems it is possible to use check, disable 
and instancName with the menu - it just isn't documented. For the 
record you can use the same property names as for the AS2 menu component.

Eg:
menuitem label=red type=check instanceName=redInstance  /
menuitem label=orange enabled=false/
menuitem label=yellow type=check selected=true /

Cheers

Joe



Joe Cutting
Computer exhibits and installations
www.joecutting.com
35 Hospital Fields Road, York, YO10 4DZ
01904 624681

As of 31st May 2007 we have another new office
so please note our new address.
Phone number and email stay the same.  
___

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


[Flashcoders] Data merging problem

2008-05-09 Thread Anthony Cintron
Hi All,

I am dealing with a puzzle here, and I can't figure out the best way to
approach this. I come to you all to see what your thoughts are. I will try
my best to explain this, because I am confused, I can't guarantee it will at
all make sense.

I have an ArrayCollection, workData that has a list of employee work
information.  I want to merge two of the same data together.

workData[0].pm = Bob;
workData[0].resource = Anthony
workData[0].client = Microsoft
workData[0].role = Developer
workData[0].job = XXX-
workData[0].week_date = 7
workData[0].totalHours = 40

workData[1].pm = Bob;
workData[1].resource = Anthony
workData[1].client = Microsoft
workData[1].role = Developer
workData[1].job = XXX-
workData[1].week_date = 14
workData[1].totalHours = 32

workData[2].pm = Tom;
workData[2].resource = Anthony
workData[2].client = Microsoft
workData[2].role = Developer
workData[2].job = XXX-
workData[2].week_date = 14
workData[2].totalHours = 52

The ArrayCollection displayed here has two matching items, 1 and 2. I want
to merge the two because everything matches except for the week_date and
totalHours, which is fine, that will be my next problem to solve. I want to
create a new ArrayCollection to have 1 and 3 show, while having 1 and 2
merged. What is best way of achieving this? I'm basically taking this data
and displaying it into a datagrid, but I don't want the duplicated items to
display on the datagrid. So, instead of 3 items to display, I want to
display two.


-- 
Anthony Cintron
Flash || Flex Developer
Blog - http://codegasm.blogspot.com/
Portfolio - http://www.sweetiesandgangsters.com
[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Data merging problem

2008-05-09 Thread Eduardo Omine
Remove the entry from the array?
workData.splice(1, 1);

-- 
Eduardo Omine
http://blog.omine.net/
http://www.omine.net/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Data merging problem

2008-05-09 Thread Jason Van Pelt
This is untested so it may need a bit of tweaking, but you could do
something like this:

// for each item in the array
for(var i = 0; i  workData.length; i++){

  // compare to all other array elements
  for(var j = 0; j  workData.length; j++){

// do your comparison(s), making sure not to compare to itself
if(workData[i].pm == workData[j].pm  i != j){

  // overwrite the propeties of the first element with the
properties of the second
  for(var props in workData[i]){
workData[i][props] = workData[j][props];
  }

  workData.splice(1,j);
}
  }
}


Things to consider--
Will all elements in your array have the same properties?
Do you need more logic involved in figuring out which properties should be
the ones to keep?


Jason Van Pelt
Interactive Developer
504.210.1232 (p) / 504.581.2731 (f)
Peter A. Mayer Advertising, Inc.
www.peteramayer.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] as3 namespace question

2008-05-09 Thread Dave Segal
I posted about this before and didn't receive and answer but it is still
causing me issues so I am trying again. I need to load an swf from one
server that is a member of some class. For example:

 

http://server1.mydomain.com/load_me.swf that uses the Document class
com.mydomain.componet.LoadMe.as.

 

I want to be able to load this swf from a different server, say
http://server2.mydomain.com/load_stuff.swf, and cast it to a LoadMe when
it is done loading. Should this work? I keep getting errors when trying to
cast in the init handler.

 

 

import com.mydomain.componet.LoadMe;

 

var _req:URLRequest = new
URLRequest(http://server1.mydomain.com/load_me.swf;);

var _ldr:Loader = new Loader();

var _context:LoaderContext = new LoaderContext();

_context.securityDomain = SecurityDomain.currentDomain;

_context.applicationDomain = ApplicationDomain.currentDomain;

_ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler, false, 0,
true);

_ldr.load(_req, _context); 

 

 

private function initHandler($event:Event) () {   

var _lm:LoadMe = LoadMe(_ldr.content);

}

 

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


Re: [Flashcoders] as3 namespace question

2008-05-09 Thread Juan Pablo Califano
I have not tryed this, but check this:

http://livedocs.adobe.com/flex/201/langref/flash/display/LoaderInfo.html


Because the instance of the main class of the SWF file has no Loader
object, the loaderInfo property is the only way to access the LoaderInfo for
the instance of the main class of the SWF file.

Perhaps this means you have to do something like:

private function initHandler($event:Event) () {

   var _lm:LoadMe = LoadMe(_ldr.loaderInfo.content);

}


Cheers
Juan Pablo Califano





2008/5/9, Dave Segal [EMAIL PROTECTED]:

 I posted about this before and didn't receive and answer but it is still
 causing me issues so I am trying again. I need to load an swf from one
 server that is a member of some class. For example:



 http://server1.mydomain.com/load_me.swf that uses the Document class
 com.mydomain.componet.LoadMe.as.



 I want to be able to load this swf from a different server, say
 http://server2.mydomain.com/load_stuff.swf, and cast it to a LoadMe when
 it is done loading. Should this work? I keep getting errors when trying to
 cast in the init handler.





 import com.mydomain.componet.LoadMe;



 var _req:URLRequest = new
 URLRequest(http://server1.mydomain.com/load_me.swf;);

 var _ldr:Loader = new Loader();

 var _context:LoaderContext = new LoaderContext();

 _context.securityDomain = SecurityDomain.currentDomain;

 _context.applicationDomain = ApplicationDomain.currentDomain;

 _ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler, false, 0,
 true);

 _ldr.load(_req, _context);





 private function initHandler($event:Event) () {

var _lm:LoadMe = LoadMe(_ldr.content);

 }



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

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