PDA

View Full Version : Recompiling Flvplayback.as


Jamsoft
01-23-2006, 03:34 PM
I have a need to count how many people actually hit "play" on my recorded movies, so I added 1 line of code inside flvplayback.as (inside the "first run" folder tree).

Now, when I used to use the "MediaController" component, all I had to do was re-start flash, and it used the new version of the actionscript. Now, however, I cannot make it use the new version of the flvplayback.as. I have added a TON of tracing, and should see my traces show up in the output window, but it just does not take.

Is there something else I need to do, to make the new flvplayback.as be used?

Any alternative ideas, rather than what Im doing? Im adding a line of code to the "PLAY" function, and doing a "loadVariables" call to a certain URL, which increments the counter for me.

Thanks!

Rich

hangalot
01-23-2006, 04:58 PM
sub class the component

Jamsoft
01-23-2006, 05:13 PM
sub class the component


Dont mean to sound ignorant, but how do I do that?

I kinda got it to work like this:


hasitrun = "no";
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.playheadUpdate = function(eventObject:Object):Void {
if (hasitrun <> "yes") {
hasitrun = "yes";
varx = "http://mysite.com/test.php?var=" + getTimer();
loadVariablesNum(varx, 0);
}
};


I know its not perfect, but it DOES work. Is there a better way?

hangalot
01-23-2006, 05:18 PM
thats fine. i would have done it differently, but thats no matter