RE: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Merrill, Jason
Following up, I have a good solution. I figured out I can simply just put the 
captioning text in the Chapter field for the marker in Premiere instead and 
that works well.  I can also insert XML with metadata to include additional 
information like offset positioning for the caption if I parse that out at the 
other end in Flash  - cool!


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences - join 
the Bank of America Flash Platform Community 


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


Re: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Karl DeSaulniers
Ah.. well that would make it difficult to use Final Cut to do that  
then..

I thought you might have that as an option.
Sry for any misunderstanding..

Karl

On Jul 14, 2009, at 9:19 PM, Merrill, Jason wrote:

OK thanks, I appreciate your comments, but let me be clear, I am  
using Adobe Premiere Pro CS3, and I don't have a copy of Final Cut.



Jason Merrill

Bank of  America   Global Learning
Shared Services Solutions Development

Monthly meetings on the Adobe Flash platform for rich media  
experiences - join the Bank of America Flash Platform Community





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- 
boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers

Sent: Tuesday, July 14, 2009 6:29 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Export cuepoints from Premiere CS3 for  
useinFlashCS3.


I'm by no means a sales man for Final Cut, but I believe it does save
that data. Not positive. Would have to test.


Karl

Sent from losPhone

On Jul 14, 2009, at 4:34 PM, "Merrill, Jason"  

wrote:



Ah - after a lot more digging and testing, it seems Premiere Pro only
embeds the marker's name, time, and type into the flv.  It doesn't
include comments or chapter data.  Bummer!  I wish they would put  
that

in the docs.  I guess it's over to Soundbooth and XML to do this...
unless someone knows otherwise - please correct me if I am wrong.  I
guess there isn't much use using Premiere Pro to add cuepoint  
captions

to FLV video, only cuepoint events. Very odd feature missing!


Jason Merrill

Bank of  America   Global Learning
Shared Services Solutions Development

Monthly meetings on the Adobe Flash platform for rich media
experiences
- join the Bank of America Flash Platform Community


___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


RE: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Merrill, Jason
OK thanks, I appreciate your comments, but let me be clear, I am using Adobe 
Premiere Pro CS3, and I don't have a copy of Final Cut.  


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences - join 
the Bank of America Flash Platform Community 




-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers
Sent: Tuesday, July 14, 2009 6:29 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

I'm by no means a sales man for Final Cut, but I believe it does save  
that data. Not positive. Would have to test.


Karl

Sent from losPhone

On Jul 14, 2009, at 4:34 PM, "Merrill, Jason"  wrote:

> Ah - after a lot more digging and testing, it seems Premiere Pro only
> embeds the marker's name, time, and type into the flv.  It doesn't
> include comments or chapter data.  Bummer!  I wish they would put that
> in the docs.  I guess it's over to Soundbooth and XML to do this...
> unless someone knows otherwise - please correct me if I am wrong.  I
> guess there isn't much use using Premiere Pro to add cuepoint captions
> to FLV video, only cuepoint events. Very odd feature missing!
>
>
> Jason Merrill
>
> Bank of  America   Global Learning
> Shared Services Solutions Development
>
> Monthly meetings on the Adobe Flash platform for rich media  
> experiences
> - join the Bank of America Flash Platform Community
>
>
> ___
> 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] no more mac ppc for adobe?

2009-07-14 Thread John R. Sweeney Jr
Since Apple is dropping support for the G5 PPC, I'm sure Adobe is following
suit. 

John


on 7/14/09 5:39 PM, Gustavo Duenas at gdue...@leftandrightsolutions.com
wrote:

> 
> 
> Is adobe dropping the making of programs for the mac g5 ppc machines?
> I'm asking this because I've just downloaded the coldfusion builder
> beta and  the flash builder beta(gumbo)
> and those are not going to run on g5 ppc machines , only for mac
> intel, is that the new direction of adobe or juts because of the beta
> releases?
> 
> Regards,
> 
> Gustavo


John R. Sweeney Jr.
Interactive Multimedia Developer


OnDemand Interactive Inc
945 Washington Blvd.
Hoffman Estates, IL 60169
Office/Fax: 847.310.5959
Cellular: 847.651.4469
www.ondemandinteractive.com


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


Re: [Flashcoders] separating MouseEvent.MOUSE_UP from MouseEvent.CLICK

2009-07-14 Thread Karl DeSaulniers
Hmmm... looks like this works, wich is like a combonation of all of  
them.


function formVisible():Void {
this.quoteRequest_mc.gotoAndPlay("startQuote");
}

function showForm() {
	this.quoteRequest_mc.ySlideTo(quoteShowY,2.8,"easeincirc",0,function 
() {formVisible();},20,.8);

}

Would still like to know the logic on why those others didn't work if  
anyone can shed some light.

Thanks.

Karl


On Jul 14, 2009, at 6:05 PM, Karl DeSaulniers wrote:


Ok, am I missing something... ?

This works, but starts playing the MC at the same time as the tween  
and not at the end.


function formVisible():Void {
this.quoteRequest_mc.gotoAndPlay("startQuote");
}

function showForm() {
	this.quoteRequest_mc.ySlideTo(quoteShowY,8,"easeincirc", 
0,formVisible(),80,6);

}


This doesn't work... (with or without the :Void)

function formVisible():Void {
this.quoteRequest_mc.gotoAndPlay("startQuote");
}

function showForm() {
	this.quoteRequest_mc.ySlideTo(quoteShowY,8,"easeincirc", 
0,formVisible,80,6);

}


and this doesn't work...

function showForm() {
	this.quoteRequest_mc.ySlideTo(quoteShowY,8,"easeincirc",0,function 
() {this.quoteRequest_mc.gotoAndPlay("startQuote");},80,6);

}

Am I not calling basically the same thing every time?
And why would the () make it work but not treat it as an "end" call  
back function,

instead just trigger the function as soon as that line is read??
Thanks in advance.

Karl

On Jul 14, 2009, at 5:09 PM, Karl DeSaulniers wrote:


Ahhh, spoke too soon.
It worked on some, but not on others.
funny thing is its almost identical code.
just a difference in how long the tween goes for.
Is it possible that my tween timing could nullify my callback

Karl


On Jul 13, 2009, at 1:51 AM, Jiri wrote:


nice! Good luck.

Jiri

Karl DeSaulniers wrote:

Thanks Jiri,
That worked perfectly.
I knew I had been looking at this code too long
and that it was something as simple as deleting a couple of  
parenthesis.

Thanks again..
Karl
On Jul 12, 2009, at 2:47 PM, Jiri wrote:
I think that it makes sense that the functions like formHidden 
() gets called, because that is what you put down.


It think you will need to put only the function name/ref like so:
 this.quoteRequest_mc.ySlideTo(quoteHideY,4,"easeoutbounce",.5,  
formHidden ,20,4.5);



Give it a try.

Jiri



Karl DeSaulniers wrote:

Hello List,
I'm having an issue getting my MC_Tween2 scripts to behave  
appropriately. AS2.
I am trying to set a function that triggers after the tween is  
done.

I am sure this is easier than I am figuring, but I'm stuck.
I can get the tweens to work, but they trigger the function  
while tweeneing.

[code eg]
var beginAlpha = 0;
var endAlpha = 100;
var quoteShowY:Number = 219.9;
var quoteHideY:Number = -219.9;
this.quoteRequest_mc._y = quoteHideY;
function formVisible() {
if (!this.quoteRequest_mc.isTweening()) {//this way  
doesn't work at all ???

this.quoteRequest_mc.gotoAndPlay(2);
}
}
function formHidden() { //this way plays while hideForm() is  
Tweening

this.quoteRequest_mc.gotoAndStop(1);
}
function showForm() {
this.quoteRequest_mc.alphaTo(endAlpha,3.5,"easeoutquint",.5);
this.quoteRequest_mc.ySlideTo(quoteShowY, 
4,"easeoutbounce",.5,formVisible(),20,4.5); }

function hideForm() {
this.quoteRequest_mc.alphaTo(beginAlpha, 
3.5,"easeoutquint",.5);
this.quoteRequest_mc.ySlideTo(quoteHideY, 
4,"easeoutbounce",.5,formHidden(),20,4.5); }

showForm();
What on earth am I doing wrong??
It all looks like it should work!
Also, on the tweens themselves, they dont play very smooth.
Am I doing somthing wrong with the timing or the ease period  
or amount of ease? What?

I want them to play somewhat quickly, but smooth.
Thank you for any help.
Karl DeSaulniers
Design Drumm
http://designdrumm.com
___
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

Karl DeSaulniers
Design Drumm
http://designdrumm.com
___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] no more mac ppc for adobe?

2009-07-14 Thread Kerry Thompson
Gustavo Duenas wrote
> 
> Is adobe dropping the making of programs for the mac g5 ppc machines?

I don't know that Adobe have a company-wide policy. It seems to be more on a
product-by-product basis, or perhaps across the CS suites.

But yes, they do seem to be heading in that direction. I don't have any
inside information, but historically they have phased out support for
obsolescent machines and OS's. Support for 68K Macs is long gone. On the
Windows side, I see fewer and fewer products that support the old Windows 9x
line.

By and large, Adobe make tools for developers, and we tend to move to new
technology faster than others.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] separating MouseEvent.MOUSE_UP from MouseEvent.CLICK

2009-07-14 Thread Karl DeSaulniers

Ok, am I missing something... ?

This works, but starts playing the MC at the same time as the tween  
and not at the end.


function formVisible():Void {
this.quoteRequest_mc.gotoAndPlay("startQuote");
}

function showForm() {
	this.quoteRequest_mc.ySlideTo(quoteShowY,8,"easeincirc",0,formVisible 
(),80,6);

}


This doesn't work... (with or without the :Void)

function formVisible():Void {
this.quoteRequest_mc.gotoAndPlay("startQuote");
}

function showForm() {
	this.quoteRequest_mc.ySlideTo(quoteShowY,8,"easeincirc", 
0,formVisible,80,6);

}


and this doesn't work...

function showForm() {
	this.quoteRequest_mc.ySlideTo(quoteShowY,8,"easeincirc",0,function()  
{this.quoteRequest_mc.gotoAndPlay("startQuote");},80,6);

}

Am I not calling basically the same thing every time?
And why would the () make it work but not treat it as an "end" call  
back function,

instead just trigger the function as soon as that line is read??
Thanks in advance.

Karl

On Jul 14, 2009, at 5:09 PM, Karl DeSaulniers wrote:


Ahhh, spoke too soon.
It worked on some, but not on others.
funny thing is its almost identical code.
just a difference in how long the tween goes for.
Is it possible that my tween timing could nullify my callback

Karl


On Jul 13, 2009, at 1:51 AM, Jiri wrote:


nice! Good luck.

Jiri

Karl DeSaulniers wrote:

Thanks Jiri,
That worked perfectly.
I knew I had been looking at this code too long
and that it was something as simple as deleting a couple of  
parenthesis.

Thanks again..
Karl
On Jul 12, 2009, at 2:47 PM, Jiri wrote:
I think that it makes sense that the functions like formHidden()  
gets called, because that is what you put down.


It think you will need to put only the function name/ref like so:
 this.quoteRequest_mc.ySlideTo(quoteHideY,4,"easeoutbounce",.5,  
formHidden ,20,4.5);



Give it a try.

Jiri



Karl DeSaulniers wrote:

Hello List,
I'm having an issue getting my MC_Tween2 scripts to behave  
appropriately. AS2.
I am trying to set a function that triggers after the tween is  
done.

I am sure this is easier than I am figuring, but I'm stuck.
I can get the tweens to work, but they trigger the function  
while tweeneing.

[code eg]
var beginAlpha = 0;
var endAlpha = 100;
var quoteShowY:Number = 219.9;
var quoteHideY:Number = -219.9;
this.quoteRequest_mc._y = quoteHideY;
function formVisible() {
if (!this.quoteRequest_mc.isTweening()) {//this way doesn't  
work at all ???

this.quoteRequest_mc.gotoAndPlay(2);
}
}
function formHidden() { //this way plays while hideForm() is  
Tweening

this.quoteRequest_mc.gotoAndStop(1);
}
function showForm() {
this.quoteRequest_mc.alphaTo(endAlpha,3.5,"easeoutquint",.5);
this.quoteRequest_mc.ySlideTo(quoteShowY,4,"easeoutbounce",. 
5,formVisible(),20,4.5); }

function hideForm() {
this.quoteRequest_mc.alphaTo(beginAlpha,3.5,"easeoutquint",. 
5);
this.quoteRequest_mc.ySlideTo(quoteHideY,4,"easeoutbounce",. 
5,formHidden(),20,4.5); }

showForm();
What on earth am I doing wrong??
It all looks like it should work!
Also, on the tweens themselves, they dont play very smooth.
Am I doing somthing wrong with the timing or the ease period or  
amount of ease? What?

I want them to play somewhat quickly, but smooth.
Thank you for any help.
Karl DeSaulniers
Design Drumm
http://designdrumm.com
___
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

Karl DeSaulniers
Design Drumm
http://designdrumm.com
___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


[Flashcoders] no more mac ppc for adobe?

2009-07-14 Thread Gustavo Duenas



Is adobe dropping the making of programs for the mac g5 ppc machines?  
I'm asking this because I've just downloaded the coldfusion builder  
beta and  the flash builder beta(gumbo)
and those are not going to run on g5 ppc machines , only for mac  
intel, is that the new direction of adobe or juts because of the beta  
releases?


Regards,

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


Re: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Karl DeSaulniers
I'm by no means a sales man for Final Cut, but I believe it does save  
that data. Not positive. Would have to test.



Karl

Sent from losPhone

On Jul 14, 2009, at 4:34 PM, "Merrill, Jason" > wrote:



Ah - after a lot more digging and testing, it seems Premiere Pro only
embeds the marker's name, time, and type into the flv.  It doesn't
include comments or chapter data.  Bummer!  I wish they would put that
in the docs.  I guess it's over to Soundbooth and XML to do this...
unless someone knows otherwise - please correct me if I am wrong.  I
guess there isn't much use using Premiere Pro to add cuepoint captions
to FLV video, only cuepoint events. Very odd feature missing!


Jason Merrill

Bank of  America   Global Learning
Shared Services Solutions Development

Monthly meetings on the Adobe Flash platform for rich media  
experiences

- join the Bank of America Flash Platform Community


___
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


Re: [Flashcoders] separating MouseEvent.MOUSE_UP from MouseEvent.CLICK

2009-07-14 Thread Karl DeSaulniers

Ahhh, spoke too soon.
It worked on some, but not on others.
funny thing is its almost identical code.
just a difference in how long the tween goes for.
Is it possible that my tween timing could nullify my callback

Karl


On Jul 13, 2009, at 1:51 AM, Jiri wrote:


nice! Good luck.

Jiri

Karl DeSaulniers wrote:

Thanks Jiri,
That worked perfectly.
I knew I had been looking at this code too long
and that it was something as simple as deleting a couple of  
parenthesis.

Thanks again..
Karl
On Jul 12, 2009, at 2:47 PM, Jiri wrote:
I think that it makes sense that the functions like formHidden()  
gets called, because that is what you put down.


It think you will need to put only the function name/ref like so:
 this.quoteRequest_mc.ySlideTo(quoteHideY,4,"easeoutbounce",.5,  
formHidden ,20,4.5);



Give it a try.

Jiri



Karl DeSaulniers wrote:

Hello List,
I'm having an issue getting my MC_Tween2 scripts to behave  
appropriately. AS2.
I am trying to set a function that triggers after the tween is  
done.

I am sure this is easier than I am figuring, but I'm stuck.
I can get the tweens to work, but they trigger the function  
while tweeneing.

[code eg]
var beginAlpha = 0;
var endAlpha = 100;
var quoteShowY:Number = 219.9;
var quoteHideY:Number = -219.9;
this.quoteRequest_mc._y = quoteHideY;
function formVisible() {
if (!this.quoteRequest_mc.isTweening()) {//this way doesn't  
work at all ???

this.quoteRequest_mc.gotoAndPlay(2);
}
}
function formHidden() { //this way plays while hideForm() is  
Tweening

this.quoteRequest_mc.gotoAndStop(1);
}
function showForm() {
this.quoteRequest_mc.alphaTo(endAlpha,3.5,"easeoutquint",.5);
this.quoteRequest_mc.ySlideTo(quoteShowY,4,"easeoutbounce",. 
5,formVisible(),20,4.5); }

function hideForm() {
this.quoteRequest_mc.alphaTo(beginAlpha,3.5,"easeoutquint",.5);
this.quoteRequest_mc.ySlideTo(quoteHideY,4,"easeoutbounce",. 
5,formHidden(),20,4.5); }

showForm();
What on earth am I doing wrong??
It all looks like it should work!
Also, on the tweens themselves, they dont play very smooth.
Am I doing somthing wrong with the timing or the ease period or  
amount of ease? What?

I want them to play somewhat quickly, but smooth.
Thank you for any help.
Karl DeSaulniers
Design Drumm
http://designdrumm.com
___
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

Karl DeSaulniers
Design Drumm
http://designdrumm.com
___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Export cuepoints from Premiere CS3 for use in FlashCS3.

2009-07-14 Thread Karl DeSaulniers
I believe what was happening with making the mov was that all that  
metadata was written to it and the flash video encoder was able to  
retrieve all the data, because, I was able to edit them, rename them,  
etc.


Karl

Sent from losPhone

On Jul 14, 2009, at 4:05 PM, "Merrill, Jason" > wrote:



Thanks - I'm an idiot - I had pathed to the wrong .flv file.  Duh.  I
can read the metadata now produced in Premiere - it embeds it in the  
flv

- doesn't support XML export like Soundbooth does.  However, I seem to
only be able to grab the following metadata from the MetadataEvent:

private function onCuePoint(event:MetadataEvent):void
{
   trace("Elapsed time in seconds: " + flvPlayback.playheadTime);
   trace("Cue point name is: " + event.info.name);
   trace("Cue point type is: " + event.info.type);
}

I can't find any info in the docs or online about grabbing the actual
value of the cuepoint (the cuepoint text itself) so I can post it to a
textfield.  Any ideas?  Thanks.


Jason Merrill

Bank of  America   Global Learning
Shared Services Solutions Development

Monthly meetings on the Adobe Flash platform for rich media  
experiences

- join the Bank of America Flash Platform Community



___
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


RE: [Flashcoders] Export cuepoints from Premiere CS3 for useinFlashCS3.

2009-07-14 Thread Merrill, Jason
Ah - after a lot more digging and testing, it seems Premiere Pro only
embeds the marker's name, time, and type into the flv.  It doesn't
include comments or chapter data.  Bummer!  I wish they would put that
in the docs.  I guess it's over to Soundbooth and XML to do this...
unless someone knows otherwise - please correct me if I am wrong.  I
guess there isn't much use using Premiere Pro to add cuepoint captions
to FLV video, only cuepoint events. Very odd feature missing! 


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 


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


RE: [Flashcoders] Export cuepoints from Premiere CS3 for use inFlashCS3.

2009-07-14 Thread Merrill, Jason
No, thanks - but I also have to target FP9.  Thanks though.


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences - join 
the Bank of America Flash Platform Community 





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Bob Wohl
Sent: Tuesday, July 14, 2009 5:22 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Export cuepoints from Premiere CS3 for use 
inFlashCS3.

Just throwing this out there, haven't messed with cue points in
ages(thank god) ;) but have you looked at onXMPData? I believe it's
only FP10+




hth,
B.

On Tue, Jul 14, 2009 at 2:05 PM, Merrill,
Jason wrote:
> Thanks - I'm an idiot - I had pathed to the wrong .flv file.  Duh.  I
> can read the metadata now produced in Premiere - it embeds it in the flv
> - doesn't support XML export like Soundbooth does.  However, I seem to
> only be able to grab the following metadata from the MetadataEvent:
>
> private function onCuePoint(event:MetadataEvent):void
> {
>        trace("Elapsed time in seconds: " + flvPlayback.playheadTime);
>        trace("Cue point name is: " + event.info.name);
>        trace("Cue point type is: " + event.info.type);
> }
>
> I can't find any info in the docs or online about grabbing the actual
> value of the cuepoint (the cuepoint text itself) so I can post it to a
> textfield.  Any ideas?  Thanks.
>
>
> Jason Merrill
>
> Bank of  America   Global Learning
> Shared Services Solutions Development
>
> Monthly meetings on the Adobe Flash platform for rich media experiences
> - join the Bank of America Flash Platform Community
>
>
>
> ___
> 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Export cuepoints from Premiere CS3 for use in FlashCS3.

2009-07-14 Thread Bob Wohl
Just throwing this out there, haven't messed with cue points in
ages(thank god) ;) but have you looked at onXMPData? I believe it's
only FP10+




hth,
B.

On Tue, Jul 14, 2009 at 2:05 PM, Merrill,
Jason wrote:
> Thanks - I'm an idiot - I had pathed to the wrong .flv file.  Duh.  I
> can read the metadata now produced in Premiere - it embeds it in the flv
> - doesn't support XML export like Soundbooth does.  However, I seem to
> only be able to grab the following metadata from the MetadataEvent:
>
> private function onCuePoint(event:MetadataEvent):void
> {
>        trace("Elapsed time in seconds: " + flvPlayback.playheadTime);
>        trace("Cue point name is: " + event.info.name);
>        trace("Cue point type is: " + event.info.type);
> }
>
> I can't find any info in the docs or online about grabbing the actual
> value of the cuepoint (the cuepoint text itself) so I can post it to a
> textfield.  Any ideas?  Thanks.
>
>
> Jason Merrill
>
> Bank of  America   Global Learning
> Shared Services Solutions Development
>
> Monthly meetings on the Adobe Flash platform for rich media experiences
> - join the Bank of America Flash Platform Community
>
>
>
> ___
> 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


RE: [Flashcoders] Export cuepoints from Premiere CS3 for use in FlashCS3.

2009-07-14 Thread Merrill, Jason
Thanks - I'm an idiot - I had pathed to the wrong .flv file.  Duh.  I
can read the metadata now produced in Premiere - it embeds it in the flv
- doesn't support XML export like Soundbooth does.  However, I seem to
only be able to grab the following metadata from the MetadataEvent:

private function onCuePoint(event:MetadataEvent):void
{
trace("Elapsed time in seconds: " + flvPlayback.playheadTime);
trace("Cue point name is: " + event.info.name);
trace("Cue point type is: " + event.info.type);
}

I can't find any info in the docs or online about grabbing the actual
value of the cuepoint (the cuepoint text itself) so I can post it to a
textfield.  Any ideas?  Thanks.


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 



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


Re: [Flashcoders] Export cuepoints from Premiere CS3 for use in Flash CS3.

2009-07-14 Thread Karl DeSaulniers
I have used final cut for making my cue points, but I do not export to  
a flv from final cut when I do this. I first make a mov file with the  
cue points saved in it and then use the flash video encoder to import  
my mov file and create my flv. The encoder reads all my cue points and  
let's me work with them.


Karl

Sent from losPhone

On Jul 14, 2009, at 2:42 PM, "Merrill, Jason" > wrote:



Have any of you ever used Premiere to create cuepoints (called markers
in Premiere) and save out an flv for use in Flash?  I created the
cuepoints/markers with text for the captions and titles for chapters
just fine, and thought it (Premiere Pro CS3) would export the XML  
along

with the flv, but I can only get it to export the FLV.  Flash (the
FLVplayback component) seems to need an XML file of the cuepoints in
order for cuepoints to work - and I don't want to create the XML
manually unless I have to.  Is the cuepoint metadata embedded within  
the
.flv? If so, I tried reading out the .flv's metadata after the  
metadata

event was detected, but it's null.  Any ideas?  Thanks,


Jason Merrill

Bank of  America   Global Learning
Shared Services Solutions Development

Monthly meetings on the Adobe Flash platform for rich media  
experiences

- join the Bank of America Flash Platform Community

___
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


RE: [Flashcoders] To Void or not to void?? That is my question..

2009-07-14 Thread Merrill, Jason
Besides the compiler checking, specifying the return type is also good when you 
write code - enforces you to return the correct type and code correctly.  Also 
helps apps like FlashDevelop know what the method returns, so great with 
code-hinting.


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences - join 
the Bank of America Flash Platform Community 




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


[Flashcoders] Export cuepoints from Premiere CS3 for use in Flash CS3.

2009-07-14 Thread Merrill, Jason
Have any of you ever used Premiere to create cuepoints (called markers
in Premiere) and save out an flv for use in Flash?  I created the
cuepoints/markers with text for the captions and titles for chapters
just fine, and thought it (Premiere Pro CS3) would export the XML along
with the flv, but I can only get it to export the FLV.  Flash (the
FLVplayback component) seems to need an XML file of the cuepoints in
order for cuepoints to work - and I don't want to create the XML
manually unless I have to.  Is the cuepoint metadata embedded within the
.flv? If so, I tried reading out the .flv's metadata after the metadata
event was detected, but it's null.  Any ideas?  Thanks,


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 

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


RE: [Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Robert Leisle
Ah yes. I missed that part.
How about this moderately less simple one using Kenneth's suggestion?

function swapCharAt(s:String, index:Number, char:String ):String{
var ptrn:RegExp = new RegExp("(.{"+index+"}).(.*)");
return( (s).replace(ptrn, "$1"+char+"$2") );
}
trace( swapCharAt("Flash", 2, "e") );

hth,
Bob

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven
Sent: Tuesday, July 14, 2009 10:32 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Equivalent of setCharAt to change a character in
a string

Thanks Robert - yes I am able to replace patterns but just wondered If  
simple way to change a particular character in a string based on the  
character index?

Thanks
Paul

Sent from my iPhone

On 14 Jul 2009, at 18:10, "Robert Leisle"  wrote:

> Does this not work for you?
>
> // Change the first instance only
> var myPattern:RegExp = /sh/;
> // Change all instances
> //var myPattern:RegExp = /sh/g;
> var str:String = "She sells seashells by the seashore.";
> trace(str.replace(myPattern, "sch"));
> // She sells seaschells by the seashore.
>
> Hth,
> Bob
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- 
> boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven
> Sent: Tuesday, July 14, 2009 8:50 AM
> To: 'Flash Coders List'
> Subject: [Flashcoders] Equivalent of setCharAt to change a character  
> in a string
>
> Probably something really simple but can't for the life of me recall  
> the syntax to change a particular character of a string.
>
> For example if I have the word "Flash" and want to change the letter  
> "a" to an "e", I was hoping there was a function like setCharAt(2,  
> "e");
>
> Btw I am coding in AS3.
>
> Thanks
>
> paul
>
>
> ___
> 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 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


Re: [Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Paul Steven
Thanks Robert - yes I am able to replace patterns but just wondered If  
simple way to change a particular character in a string based on the  
character index?


Thanks
Paul

Sent from my iPhone

On 14 Jul 2009, at 18:10, "Robert Leisle"  wrote:


Does this not work for you?

// Change the first instance only
var myPattern:RegExp = /sh/;
// Change all instances
//var myPattern:RegExp = /sh/g;
var str:String = "She sells seashells by the seashore.";
trace(str.replace(myPattern, "sch"));
// She sells seaschells by the seashore.

Hth,
Bob

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- 
boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven

Sent: Tuesday, July 14, 2009 8:50 AM
To: 'Flash Coders List'
Subject: [Flashcoders] Equivalent of setCharAt to change a character  
in a string


Probably something really simple but can't for the life of me recall  
the syntax to change a particular character of a string.


For example if I have the word "Flash" and want to change the letter  
"a" to an "e", I was hoping there was a function like setCharAt(2,  
"e");


Btw I am coding in AS3.

Thanks

paul


___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash cs4 swf page combobox dropdown resize issue in flex 3 swfloader

2009-07-14 Thread Margo Powell
Sorry about the images not getting through. Pictures are worth a 
thousand words and you can view them at these links


Combobox dropdown menu problem 
illustrated(http://nim.unc.edu/comboProblem.jpg) 



and here is the way I would like it to look within the swfloader

The way I expected the dropdown menu to 
look(http://nim.unc.edu/comboOutside.jpg) 




Any feedback would be greatly appreciated


On 7/14/2009 1:10 PM, Margo Powell wrote:
I apologize if this appears as a cross posting, I tried to post in 
flexcoders but have not seen it yet. Maybe it is still getting approved.


My issue pertains to both flex and flash CS4.

I have created a course player in flex that loads flash cs4 swf files 
using swfloader.


This swfloader is set to scale the content. The player can be sized 
depending on a control setting(800x600, 1024x768,..)


The Flash CS4 swf files are created at 800x600 and scale appropriately 
to larger sizes within the flex player EXCEPT for a page that has a 
combobox embedded in it.


When this combobox page is viewed at 1024x768, everything looks fine 
and the swf content appears to have been scaled appropriately on the 
page but when I select the combobox the dropdown menu list has not 
scaled properly. Playing inside the flex swfloader the dropdown menu 
list remains at the 800x600 size and appears to be 2/3 of the total 
width of the combobox. See image below:


combobox problem illustrated


If the swf file is made full screen outside the flex based player, the 
dropdown menu list scales properly and expands to 100% of width of the 
combobox. See image below


combobox dropdown looks good


When I look at the combobox width and dropdownWidth using De 
MonsterDebugger when the Flash CS4 swf page is playing within the 
swfloader, the values of both are set to 330. If I increase the 
dropdownWidth to 500, the width of the dropdown list expands to the 
full width and a smidgen more but the font stays small. It is almost 
like the dropdown list is not being refreshed/scaled when the content 
is being scaled.


Any hints or recommendations on how to get the combobox list to resize 
appropriately within swfloader would be greatly appreciated. Is there 
a new actionscript 3 combobox method which I need to define to make 
this happen?



Margo

Noto Bene - my flash 8 swf file with a combobox loads in the swfloader 
and scales beautifully. Not a solution since we are upgrading our 
content to flash cs4 actionscript 3.





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



--
Margo Powell
Applications Analyst
MS Computer Science
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu

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


RE: [Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Robert Leisle
Does this not work for you?

// Change the first instance only
var myPattern:RegExp = /sh/;
// Change all instances
//var myPattern:RegExp = /sh/g;
var str:String = "She sells seashells by the seashore.";
trace(str.replace(myPattern, "sch"));
// She sells seaschells by the seashore.

Hth,
Bob

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven
Sent: Tuesday, July 14, 2009 8:50 AM
To: 'Flash Coders List'
Subject: [Flashcoders] Equivalent of setCharAt to change a character in a string

Probably something really simple but can't for the life of me recall the syntax 
to change a particular character of a string.

For example if I have the word "Flash" and want to change the letter "a" to an 
"e", I was hoping there was a function like setCharAt(2, "e");

Btw I am coding in AS3.

Thanks

paul


___
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] flash cs4 swf page combobox dropdown resize issue in flex 3 swfloader

2009-07-14 Thread Margo Powell
I apologize if this appears as a cross posting, I tried to post in 
flexcoders but have not seen it yet. Maybe it is still getting approved.


My issue pertains to both flex and flash CS4.

I have created a course player in flex that loads flash cs4 swf files 
using swfloader.


This swfloader is set to scale the content. The player can be sized 
depending on a control setting(800x600, 1024x768,..)


The Flash CS4 swf files are created at 800x600 and scale appropriately 
to larger sizes within the flex player EXCEPT for a page that has a 
combobox embedded in it.


When this combobox page is viewed at 1024x768, everything looks fine and 
the swf content appears to have been scaled appropriately on the page 
but when I select the combobox the dropdown menu list has not scaled 
properly. Playing inside the flex swfloader the dropdown menu list 
remains at the 800x600 size and appears to be 2/3 of the total width of 
the combobox. See image below:


combobox problem illustrated


If the swf file is made full screen outside the flex based player, the 
dropdown menu list scales properly and expands to 100% of width of the 
combobox. See image below


combobox dropdown looks good


When I look at the combobox width and dropdownWidth using De 
MonsterDebugger when the Flash CS4 swf page is playing within the 
swfloader, the values of both are set to 330. If I increase the 
dropdownWidth to 500, the width of the dropdown list expands to the full 
width and a smidgen more but the font stays small. It is almost like the 
dropdown list is not being refreshed/scaled when the content is being 
scaled.


Any hints or recommendations on how to get the combobox list to resize 
appropriately within swfloader would be greatly appreciated. Is there a 
new actionscript 3 combobox method which I need to define to make this 
happen?



Margo

Noto Bene - my flash 8 swf file with a combobox loads in the swfloader 
and scales beautifully. Not a solution since we are upgrading our 
content to flash cs4 actionscript 3.



--
Margo Powell
Applications Analyst
MS Computer Science
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu

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


Re: [Flashcoders] Playing an encrypted f4v

2009-07-14 Thread Carl Welch
Thanks for that info. Actually we have a fully licensed version of the
Flash Media Server, but to tell you the truth, We didn't care for how
the video streams from the server. My client really needs to have
smooth seek functions, plus want want to capture screenshots of frames
using the bitmap functions (FMS won't let you do this). If there is a
way to implement progressive streaming and still maintain a level of
security that would be great. They like the responsiveness of the seek
controls after the video fully (progressively) downloads. Where as,
with FMS the video has to re-buffer... the responsiveness just seem to
be lacking. If I am wrong about this, please correct me.

Security on this project is key, and of course as luck would have it,
one of the higher-ups had Real Player installed and is able to
download the videos we are loading. So, that's where the encrypted
video request comes in. To test, I was given a f4v encrypted with
blowfish. So I'm hoping I can load the f4v as a binary or bytearray
-decrypt and play... I'm having doubts that its even possible.

On Tue, Jul 14, 2009 at 12:35 AM, Sidney de
Koning wrote:
> Hi Carl,
>
> What i think i hear is that your client want their video only to be shown to
> certain people.
> If that is the case, you can check out this article by ted patrick:
> http://onflash.org/ted/2006/03/licensing-drm-and-flash-player.php
>
> Some other good info comes from here:
> http://www.flashcomguru.com/index.cfm/2006/9/7/vcsacp
>
> I think, but i'm not 100% sure you can also find this feature in Red5 an OS
> alternative to Flash Media Server (http://code.google.com/p/red5/)
>
> Good luck!
>
> Sid
>
>
> On Jul 14, 2009, at 7:26 AM, Carl Welch wrote:
>
>> Hi guys,
>>
>> My client asked if I could load an encrypted f4v, decrypt it and then
>> play it. I found the as3Crypto libraries, so I have that part covered.
>> Now I'm wondering if its even possible to load the f4v as a binary
>> file or something, decrypt and then play it. I've tried a couple of
>> tests with an unencrypted file but I can't figure out how to get
>> around not using the netstream function.
>>
>> So basically my question is if this is even possible or am I headed
>> down a dead end street?
>>
>> Thoughts, comments, suggestions?
>>
>> Thanks.
>>
>> --
>> Carl Welch
>> http://www.carlwelch.com
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Sidney de Koning - be a geek, in rockstar style!
> Flash / AIR Developer @ www.funky-monkey.nl
> Technical Writer @ www.insideria.com
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Carl Welch
http://www.carlwelch.com
805.403.4819
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Kenneth Kawamoto

trace(("Flash").replace(/(.{2}).(.*)/, "$1e$2"));

// Flesh

Perhaps not the answer, I know ;)

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Paul Steven wrote:

Probably something really simple but can't for the life of me recall the syntax 
to change a particular character of a string.

For example if I have the word "Flash" and want to change the letter "a" to an "e", I was 
hoping there was a function like setCharAt(2, "e");

Btw I am coding in AS3.

Thanks

paul

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


[Flashcoders] Mouse Over animation not firing because my mouse is already over the object

2009-07-14 Thread zurie


I have a series of frames with navigation that covers the left 50% and
right 50% of the images. 

When I click the navigation it fades 1 picture out and a new one in, but
the mouse events are not firing the mouseover animations because my mouse
is already over the button. I have to pull my mouse OUT of the screen and
then back in to make the animation trigger. How am I able to tell if a
mouse over is triggering without actually pulling the mouse OUT and then
back in? AS3. 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Equivalent of setCharAt to change a character in a string

2009-07-14 Thread Paul Steven
Probably something really simple but can't for the life of me recall the syntax 
to change a particular character of a string.

For example if I have the word "Flash" and want to change the letter "a" to an 
"e", I was hoping there was a function like setCharAt(2, "e");

Btw I am coding in AS3.

Thanks

paul


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


Re: [Flashcoders] Question on preventing this array[n] = 'whatever' on Array var

2009-07-14 Thread Jiri
Thanx. Well i could extend Array and then override all the methods and 
have them dispatch events, like ON_CHANGE.

Overwriting all the public mehtods is a pain, so I suspect i can use the
flash.utils.Proxy for  this.
I just need to understand this utils.Proxy and flash_proxy thing.

Could somebody hint me if this would be worth looking into for this 
particular case?


Jiri

Glen Pike wrote:

Sounds like you want to use a kind of "Observer" pattern:

Can you "wrap" up your array class in something that implements the 
methods you want, ignores / passes on the stuff you care about and then 
notifiies listeners of any changes that you care about?


Flex makes this quite easy with {watching} objects virtually 
automatically - not sure if there is something in PureAS3 that would 
help without requiring some huge framework.


The safest way of doing this though might be to prevent any external 
class accessing your array.  Make your class implement some kind of 
"ArrayInterface" and allow the calling classes to use your class rather 
than your array to add and remove things?


Glen

Jiri wrote:

Hello list,

Lets say I have a class with a public getter to a private var which 
holds an Array.

Some other class can do this then:

var tArr:Array = class.myArray;

I can then do this:
tArr.push(int) and the content of the array has changed without the 
class knowing. This is in most cases I use it ok, but now I am 
wondering how to deal with it when I really want to create a read only 
array.


I am aware that I can copy it, but then this can be very expensive 
when it is requested a lot of times and it is a relative big array.


So i was thinking the following.

class A{
private var pArray:Array = [1,2,3]

public function get list():listArray{
return new listArray(pArray);
}

}

class listArray{

private var pList:Array
public function listArray(tArr:Array):void{
pList = listArray
}

override function push():void{
throw new IllegalOperationError()
}

}

I would have to override all the public methods of Array which can be 
a pain.


My question is.
How would I prevent users from doing this:
listArray[n] = 'whatever'


Much appreciated

Jiri
___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Question on preventing this array[n] = 'whatever' on Array var

2009-07-14 Thread Glen Pike

Sounds like you want to use a kind of "Observer" pattern:

Can you "wrap" up your array class in something that implements the 
methods you want, ignores / passes on the stuff you care about and then 
notifiies listeners of any changes that you care about?


Flex makes this quite easy with {watching} objects virtually 
automatically - not sure if there is something in PureAS3 that would 
help without requiring some huge framework.


The safest way of doing this though might be to prevent any external 
class accessing your array.  Make your class implement some kind of 
"ArrayInterface" and allow the calling classes to use your class rather 
than your array to add and remove things?


Glen

Jiri wrote:

Hello list,

Lets say I have a class with a public getter to a private var which 
holds an Array.

Some other class can do this then:

var tArr:Array = class.myArray;

I can then do this:
tArr.push(int) and the content of the array has changed without the 
class knowing. This is in most cases I use it ok, but now I am 
wondering how to deal with it when I really want to create a read only 
array.


I am aware that I can copy it, but then this can be very expensive 
when it is requested a lot of times and it is a relative big array.


So i was thinking the following.

class A{
private var pArray:Array = [1,2,3]

public function get list():listArray{
return new listArray(pArray);
}

}

class listArray{

private var pList:Array
public function listArray(tArr:Array):void{
pList = listArray
}

override function push():void{
throw new IllegalOperationError()
}

}

I would have to override all the public methods of Array which can be 
a pain.


My question is.
How would I prevent users from doing this:
listArray[n] = 'whatever'


Much appreciated

Jiri
___
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] Question on preventing this array[n] = 'whatever' on Array var

2009-07-14 Thread Jiri

Hello list,

Lets say I have a class with a public getter to a private var which 
holds an Array.

Some other class can do this then:

var tArr:Array = class.myArray;

I can then do this:
tArr.push(int) and the content of the array has changed without the 
class knowing. This is in most cases I use it ok, but now I am wondering 
how to deal with it when I really want to create a read only array.


I am aware that I can copy it, but then this can be very expensive when 
it is requested a lot of times and it is a relative big array.


So i was thinking the following.

class A{
private var pArray:Array = [1,2,3]

public function get list():listArray{
return new listArray(pArray);
}

}

class listArray{

private var pList:Array
public function listArray(tArr:Array):void{
pList = listArray
}

override function push():void{
throw new IllegalOperationError()
}

}

I would have to override all the public methods of Array which can be a 
pain.


My question is.
How would I prevent users from doing this:
listArray[n] = 'whatever'


Much appreciated

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


Re: [Flashcoders] Getting hypertext to work

2009-07-14 Thread Joel Stransky
Just test it within a browser.

On Tue, Jul 14, 2009 at 12:25 AM, Karl DeSaulniers wrote:

> Do you have your swf set to access local or network only in the publish
> settings?
>
> If you have your swf set to local only, it will generate this warning if
> you click a web url inside the swf.
>
> HTH
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
>
> On Jul 13, 2009, at 11:14 PM, Alan Neilsen wrote:
>
>  When I use 'Options' in 'Properties' to apply a link to text in my Flash
>> movie (CS4), it works okay when I test the movie, but when I create the SWF
>> and try the same thing, it tells me, "Adobe Flash player has stopped a
>> potentially unsafe operation." This seems strange, because hypertext created
>> in Dreamweaver does not generate a "potentially unsafe" warning, so why
>> should it happen in Flash? There is no point me changing my Flash Player
>> settings (as advised by the warning) because it still won't work for my
>> client's end users (who are generally computer-illiterate, and cannot be
>> expected to understand about changing Flash Player settings). Is it possible
>> to create a hypertext link in Flash CS4 that will just work without the need
>> to change Flash Player settings?
>>
>> This message is for the named person’s use only. It may contain
>> confidential, proprietary or legally privileged information. No
>> confidentiality or privilege is waived or; lost by any mistransmission. If
>> you receive this message in error, please immediately delete it and all
>> copies of it from your system, destroy any hard copies of it and notify
>> the sender. You must not directly or indirectly, use, disclose,
>> distribute, print or copy any part of this message if you are not the
>> intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
>> any of its subsidiaries each reserve the right to monitor all e-mail
>> communications through its networks. Any views expressed in this
>> message are those of the individual sender, except where the
>> message states otherwise and the sender is authorised to state them
>> to be the views of any such entity.
>>
>>
>> #
>> This e-mail message has been scanned for Viruses and Content and cleared
>> by MailMarshal
>>
>> #
>> ___
>> 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
>



-- 
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] To Void or not to void?? That is my question..

2009-07-14 Thread Joel Stransky
If I remember correctly, in AS2, you need to write a complete function
signature including the scope.
Try including the scope on the functions that stopped working when you added
:Void

*public* function fName():Void {
   gotoAndPlay(2);
}

You can choose between internal, private, protected or public. Until you
understand their purpose more, use public.

On Tue, Jul 14, 2009 at 12:57 AM, Karl DeSaulniers wrote:

> That is what I figured.
> Then why would my function not fire the gotoAndPlay when there was a :Void
> and would when removed??
> This isn't a bug is it? I mean were talking about a simple
>
> function fName():Void {
>gotoAndPlay(2);
> }
>
> Not working and a
>
> function fName() {
>gotoAndPlay(2);
> }
>
> Working...
>
> This is why I thought I might be missing something about the :Void.
> Maybe its something else in my code, but I don't think so.
>
> Here is the code I am working on:
> I took Jiri's advice on fixing the function calls on my tweens,
> but it either is not firing the function or not firing the gotoAndPlay.
> my first thought was that because the other tweens started working after I
> made the change to the function call,
> that this was a :Void culprit.
>
> [code]
> var beginAlpha = 0;
> var endAlpha = 100;
> var quoteShowY:Number = 219.9;
> var quoteHideY:Number = -219.9;
> this.quoteRequest_mc._x = 354.1;
> this.quoteRequest_mc._y = quoteHideY;
> this.quoteRequest_mc._alpha = 0;
> function formVisible():Void {
>this.quoteRequest_mc.gotoAndPlay("startQuote");
> }
>
> function formHidden():Void {
>this.quoteRequest_mc.gotoAndStop(1);
> }
>
> function showForm() {
>this.quoteRequest_mc.alphaTo(endAlpha,5,"easeincirc",.5);
>
>  this.quoteRequest_mc.ySlideTo(quoteShowY,5,"easeincirc",.5,formVisible);
> }
>
> function hideForm() {
>this.quoteRequest_mc.alphaTo(beginAlpha,5,"easeincirc",.5);
>
>  this.quoteRequest_mc.ySlideTo(quoteHideY,5,"easeincirc",.5,formHidden);
> }
>
> Thanks for taking the time to answer my question everyone.
>
> Karl
>
>
>
> On Jul 13, 2009, at 11:43 PM, Taka Kojima wrote:
>
>  Let's say I wanted to do something like this...
>>
>> trace("Taka " + getLastName("Taka"));
>>
>> function getLastName(firstName:String):String{
>> if(firstName == "Taka"){return "Kojima";}
>> else{return "";}
>> }
>>
>> That function returns a String. Having a gotoAndPlay() inside a function
>> is
>> not a return value.
>>
>> Hope that helps.
>>
>>  -Taka
>>
>> On Mon, Jul 13, 2009 at 9:29 PM, Karl DeSaulniers > >wrote:
>>
>>  Thanks for the quick response Taka,
>>>
>>> So what contitutes a return?
>>>
>>> I have used the :Void on functions that had a gotoAndPlay() inside it and
>>> it didnt work.
>>> But if I removed the :Void, it did!?!
>>>
>>>
>>> Karl
>>>
>>>
>>>
>>> On Jul 13, 2009, at 11:18 PM, Taka Kojima wrote:
>>>
>>>  :Void is AS2, and :void is AS3
>>>

 The definition of void is "nothingness: the state of nonexistence"...

 The syntax of functionName():void{} simply states that the function
 returns
 nothing... i.e. there is no return at the end of the function.

 Although specifying a :void return type is not necessary in AS3, it is
 considered best practice to include it. I believe it will generate
 warnings
 if you don't.

 In AS2, it really doesn't matter if you do :Void after functions.

 The reason this syntax exists is to make it easy for compilers to easily
 identify problems in regards to object types, i.e. if you're trying to
 use
 the return value of a function as a MovieClip when it should really be
 an
 Array, or void. It also makes it easier for you to see what type of
 value
 the function is returning just by looking at the top of the function
 definition.

 - Taka

 On Mon, Jul 13, 2009 at 9:07 PM, Karl DeSaulniers >>>
> wrote:
>

  Using AS2.

> When is it best to use the :Void ? and what is the difference between
> that
> and :void ?
> I have a somewhat understanding of what each are,
> I am asking more to "you" (The List) as a programers, what is the best
> case
> scenarios to use these things?
> What are the advantages and why use them if say, your function works
> without them?
> I know that the Void is a Boolean, but I also know you cant use it when
> the
> statement returns something.
> Does this "return" include any of the basics like gotoAndPlay? or does
> it
> literally mean a return(); ???
>
> Thanks for any clarification anyone can give me.
>
> Best,
>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>  ___
>
 Fl

Re: [Flashcoders] To Void or not to void?? That is my question..

2009-07-14 Thread Eric E. Dolecki
void is good when you compile - if your method does not return something and
you try to return something from the method, your compiler will complain
which is good:
private function foo():void {
return true;
}

// 1051:Return value must be undefined.

Also, if you define something being returned as an expected part of the
method but do not return something you'll also get an error

private function foo():Boolean {
//
}

// 1170: Function does not return a value.



On Tue, Jul 14, 2009 at 2:58 AM, Kerry Thompson wrote:

> Karl DeSaulniers wrote:
>
> > Using AS2.
> > When is it best to use the :Void ? and what is the difference between
> > that and :void ?
>
> You use void when a function doesn't return anything. In fact, there are
> some languages, like Pascal and, I believe, Fortran, that have that built
> in. In Pascal, a function returns something, while a procedure doesn't. A
> Pascal programmer would use a function to do something like perform a
> calculation--let's say, figure the square root of a number. A procedure
> would do something like drawing a line.
>
> Void is AS2, and void is AS3. I have no idea why the spelling change, but
> ActionScript is, of course, case sensitive.
>
> > What are the advantages and why use them if say, your function works
> > without them?
>
> Clarity, mainly. Also, in AS3, if you have strict type checking on (it's
> the
> default), every function must have a type, so you use void when your
> function won't return anything. If you declare a function as :void, and
> have
> a return in it, I believe the compiler throws an error.
>
> > I know that the Void is a Boolean, but I also know you cant use it
> > when the statement returns something.
> > Does this "return" include any of the basics like gotoAndPlay? or
> > does it literally mean a return();
>
> Void actually isn't a Boolean. Technically, its value is undefined. AFAIK,
> :void can only be used as the return type of a function. You can't declare
> a
> variable as void.
>
> Down on the nuts and bolts level, every function is a subroutine. You call
> it, and it returns control to the calling object. So every function
> returns;
> some pass a value back, and some don't.
>
> HTH.
>
> Cordially,
>
> Kerry Thompson
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Playing an encrypted f4v

2009-07-14 Thread Sidney de Koning

Hi Carl,

What i think i hear is that your client want their video only to be  
shown to certain people.

If that is the case, you can check out this article by ted patrick: 
http://onflash.org/ted/2006/03/licensing-drm-and-flash-player.php

Some other good info comes from here: 
http://www.flashcomguru.com/index.cfm/2006/9/7/vcsacp

I think, but i'm not 100% sure you can also find this feature in Red5  
an OS alternative to Flash Media Server (http://code.google.com/p/red5/)


Good luck!

Sid


On Jul 14, 2009, at 7:26 AM, Carl Welch wrote:


Hi guys,

My client asked if I could load an encrypted f4v, decrypt it and then
play it. I found the as3Crypto libraries, so I have that part covered.
Now I'm wondering if its even possible to load the f4v as a binary
file or something, decrypt and then play it. I've tried a couple of
tests with an unencrypted file but I can't figure out how to get
around not using the netstream function.

So basically my question is if this is even possible or am I headed
down a dead end street?

Thoughts, comments, suggestions?

Thanks.

--
Carl Welch
http://www.carlwelch.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Sidney de Koning - be a geek, in rockstar style!
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com

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