FORUMS: list search recent posts

flash video ad replay button that works

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
steve shirilla
flash video ad replay button that works
on Jul 26, 2010 at 7:49:43 pm

trying to get video FLVplayback video in a flash ad that has viewer activated sound, and some other code to let the whole thing be clickable I think (see below), to be able to replay video when its live (with a button), I know just enough to get me into trouble (flash) I can create the button but can't get it to work... was wonder if anyone out there could help me out

thx steve
sshirilla@wkyc.com


"sendData = new LoadVars();

receiveData = new LoadVars();

sendData.sendAndLoad("http://view.atdmt.com/4G1/view/185812637/direct/01/"+Math.floor(Math.random()*1000000000)+"?",receiveData,"POST");

receiveData.onLoad = function(success:Boolean) {

if (success) {

trace("success");

} else {

trace("no-success");

}

};

receiveData.onHTTPStatus = function(httpStatus:Number) {

this.httpStatus = httpStatus;

if (httpStatus<100) {

this.httpStatusType = "flashError";

} else if (httpStatus<200) {

this.httpStatusType = "informational";

} else if (httpStatus<300) {

this.httpStatusType = "successful";

} else if (httpStatus<400) {

this.httpStatusType = "redirection";

} else if (httpStatus<500) {

this.httpStatusType = "clientError";

} else if (httpStatus<600) {

this.httpStatusType = "serverError";

}

trace("Status: "+this.httpStatus);

};"


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]