You could also set a new property on the NetStream instance. For ex.,
in your code replace:
var vidDuration = Math.ceil(obj.duration);
with:
this.vidDuration = Math.ceil(obj.duration);
You can then access the value via something like: myNSObj.vidDuration.
-- Vishal
On 1/30/07, jason vancleave <[EMAIL PROTECTED]> wrote:
You just need to declare var vidDuration outside the metaDataInfo function for
it to remain persistent in the instance of the Class containing it.
class WhateverClass{
var vidDuration:Number;
public function metaDataInfo(obj:Object) {
times = obj.keyframes.times;
vidDuration = Math.ceil(obj.duration);
// pass duration value to another function
durationTime(vidDuration);
positions = obj.keyframes.filepositions;
};
public function getDuration():Number{
return vidDuration;
}
}
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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