RE: [Flashcoders] Annoying, (should be simple) bitwise problem

2007-03-21 Thread Jonathan.Doklovic
 var col = 0xFF;
 r = col  16;
 g = (col  8)  0xff;
 b = col  0xff;

 var col2 = r  16 | g  8 | b;


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Alias(tm)
Sent: Wednesday, March 21, 2007 1:22 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Annoying, (should be simple) bitwise problem

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] FLVPlayback with Live Streams: Access to NetStreamonStatus OR Equivalent of NetStream.Play.UnpublishNotify

2007-03-20 Thread Jonathan.Doklovic
You basically want access to the NetStream object from the VideoPlayer
class.
Luckily flash let's you do dumb things like this:

var vp:VideoPlayer = myFLVPlayback.getVideoPlayer();
vp.getNetStream = function():NetStream{
   return _ns;
};

var stream:NetStream = vp.getNetStream();

Give that a shot.

- Jonathan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 12:31 PM
To: Flashcoders mailing list
Subject: [Flashcoders] FLVPlayback with Live Streams: Access to
NetStreamonStatus OR Equivalent of NetStream.Play.UnpublishNotify

i have a requirement where i have to use the FLVPlayback component with
live streams from FMS. with FLVPlayback, is there any way that i can
have access to the NetStream.onStatus event so that i can test for
NetStream.Play.UnpublishNotify?

or does FLVPlayback have anything equivalent to
NetStream.Play.UnpublishNotify for determining when a live stream
concludes? i have reviewed the docs on FLVPlayback and i am at an
impass.

background follows:

i am writing a swf that receives live streams from FMS. The requirement
calls for using the FLVPlayback component. i would like to display the
current state of the live broadcast, for example: Not yet started, Live,
Broadcast Over, etc.

in an article by Stefan Richter i have found sample code that sets up an
NetStream.onStatus handler. from Stefan's article it looks like the
following two codes on the NetStream info object can be used to
determine when a stream starts and stops: NetStream.Play.PublishNotify
(start), and NetStream.Play.UnpublishNotify (stop).

however, when using a FLVPlayback component it is unclear to me how to
access the NetStream.onStatus event. Is this possible?

with FLVPlayback to detect stream starts, the FLVPlayback stateChange
event provides logic I can use instead of NetStream.Play.PublishNotify.

but i can not yet find logic on FLVPlayback that provides an alternative
to UnpublishNotify. so far I have test without success the following
FLVPlayback events: stateChange, complete, stopped, playing, paused, and
close. I also put an onEnterFrame handler to test the FLVPlayback state
property, but it just continues to display buffering after the live
stream UnpublishNotify event occurs.

any assistance would be appreciated.
 
-
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.
___
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] [AD] New flash site (spiderman3 contest) written with new framework

2007-03-18 Thread Jonathan.Doklovic
Hi,
 
I work at target and we just launched our spiderman3 contest.
http://spiderman3.target.com
 
To build this site, I used a new framework I helped develop that
includes a port of the springframework for flash as well as lots of
other APIs.
 
The framework will be released as an open-source project within the next
few weeks. (I will post the release info to this list when it's ready)
 
If you've got some free time, check it out and let me know what you
think.
 
Thanks,
 
Jonathan Doklovic
Sr. Specialist Interactive Development
http://www.target.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