[Flashcoders] A Flex 2 component in Flash CS3

2007-12-23 Thread Patrick Mineault
Hey everyone,

I have to figure out a way to have a Flex 2 component work in both Flex 2
and in Flash CS3. Basically the component is a custom made "Google maps"
type component entirely written in AS3 (no MXML at all). The component
itself is pretty light, but it can have layers and tiles as children (no
Flex UI components though). Thankfully, everything that can be attached as
children to the component inherits Sprite, not mx.core.UIComponent. It's
currently working swell as a Flex component, and now I have to figure out
how to make it work in both Flex and Flash as painlessly as possible.

The component extends mx.core.UIComponent and implements createChildren,
updateDisplayList, saveState and loadState (implements
IHistoryManagerClient). I was thinking maybe rewriting the component so it
inherits Sprite instead and then create one dummy component for Flex and one
for Flash, add an instance of the component in the dummy component, and
forwarding the events between the real and dummy components (basically using
composition). As I understand it, I have to inherit fl.core.UIComponent in
Flash and NOT mx.core.UIComponent, so I don't see a way around composition.
Also, I was wondering whether Flash would choke on the [Bindable] metatags
sprinkled through the layers classes.

If anybody has done this kind of work and has any hints on going forward, it
would be highly appreciated.

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


Re: [Flashcoders] Estimate FLV file size?

2007-12-23 Thread Micky Hulse

Latcho wrote:
512 Kbits / 8 bitsperbyte = streaming 64 KBytes per sec = 3840 KBytes 
per minute = (3840 / 1024)  3.75 MBytes


Wow, thanks for that. ;)

Interesting stuff.

I finally had a chance to compress a vid (using settings I mentioned in 
first post) and the file size was compressed to about 13mb (note to 
self, mb = megabytes) :D


Playing with the numbers now though... the formula above is good to 
know. Thanks Latcho and Marc!


Cheers,
Micky

--
Wishlist: 
Switch: 
BCC?: 
My: 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Estimate FLV file size?

2007-12-23 Thread Latcho
512 Kbits / 8 bitsperbyte = streaming 64 KBytes per sec = 3840 KBytes 
per minute = (3840 / 1024)  3.75 MBytes


Marc Hoffman wrote:
Wouldn't it be kbps x total running time in seconds?  So if it's 512 
kbps for 100 seconds then it's 512 x 100 = 51,200 kb.


Marc

At 10:34 AM 12/22/2007, you wrote:


Hi all,

Just wondering if there is a good way to estimate flash video file 
sizes?


For example, lets say I have 2:30 of RAW DV footage that I want to 
convert

to:

* Video Codec: On2 VP6
* Encoding: 2-Pass VBR
* Resolution: 480x360 pixels
* Frame Rate: 30 fps
* Video Data Rate: 464 kbps
* Audio Data Rate: 48 kbps
* Total Data Rate: 512 kbps
* Keyframe: Every 6 seconds

Is there a mathematical way to calculate/approximate file size based on
(above) settings?

My rough estimate: 9.5 to 13.5 megabytes

Sound right to you?

Unfortunately, I do not have access to the/any video at the moment... I
would prefer to just test some real video, rather than bothering all of
you folks. :(

Tips on how I could roughly estimate file size would be great! Or, 
does my

guestimation sound close?

Thanks!
Cheers,
Micky


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



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


[Flashcoders] projector ports

2007-12-23 Thread Costello, Rob R
Hey all

Whats the deal with flash projectors and port numbers / firewalls? 

I have a swf with a line like this 

mcLoader.loadClip(image_url, valid_mc) 

Anyway, this works fine from inside the browser 

And, from home, it works fine from the flash projector 

but, from work, it only loads if I have previously been to the image_url
in the browser - ie doesn't work if image_url is a valid but new file 

is this a port thing? 

Cheers and thanks and merry merriment 

Rob 


Important - This email and any attachments may be confidential. If received in 
error, please contact us and delete all copies. Before opening or using 
attachments check them for viruses and defects. Regardless of any loss, damage 
or consequence, whether caused by the negligence of the sender or not, 
resulting directly or indirectly from the use of any attached files our 
liability is limited to resupplying any affected attachments. Any 
representations or opinions expressed are those of the individual sender, and 
not necessarily those of the Department of Education and Early Childhood 
Development.

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