Flash Multiple AS targets

btn7._alpha=btn6._alpha=btn5._alpha=btn4._alpha=btn3._alpha=btn2._alpha=btn1._alpha = myEndVal;
btn7.Blur_blurX=btn6.Blur_blurX=btn5.Blur_blurX=btn4.Blur_blurX=btn3.Blur_blurX=btn2.Blur_blurX=btn1.Blur_blurX = mystartval;
doTween([btn1,btn2,btn3,btn4,btn5,btn6,btn7], 'Blur_blurX', [myEndVal], 2, "easeOutSine");
doTween([btn1,btn2,btn3,btn4,btn5,btn6,btn7], '_alpha', 100, 2, "easeOutSine", 0.5);

Flash > Listeners and AsBroadcaster

Introduction

In this section, briefly explain what the tutorial will explain/accomplish. If you want, you can include something “dramatic” that gets readers interested in your topic. Try to enjoy writing tutorials and follow the basic guidelines found below. Before I forget, feel free to modify this document as much as needed.

from http://www.senocular.com/flash/tutorials/listenersasbroadcaster/

Download files

Continue reading “Flash > Listeners and AsBroadcaster”

Flash Libraries

SWFAddress

SWFAddress is a small, but powerful library that provides deep link for Flash. Progression uses deep link function of SWFAddress as enabling brawser synchronous.

Version 2.1
License MIT License
Official website http://www.asual.com/swfaddress/

SWFObject

SWFObject is an easy-to-use and standards-friendly method to embed Flash content, which utilizes one small JavaScript file. Progression uses SWFObject to show SWF file after publishing HTML file.

Version 2.1
License MIT License
Official website http://blog.deconcept.com/swfobject/

PHP Convert Datetime DB fields to timespan


< ?php 
	  
	  $curentdate=mktime(date("h"), date("i"), date("s"), date("m")  , date("d"), date("Y"));
	  $curentdatestart=mktime(date("h",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("i",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("s",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("m",strtotime($row_ekpompes['ext_series_trailer_startdate']))  , date("d",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("Y",strtotime($row_ekpompes['ext_series_trailer_startdate'])));
	  $curentdateend=mktime(date("h",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("i",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("s",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("m",strtotime($row_ekpompes['ext_series_trailer_enddate']))  , date("d",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("Y",strtotime($row_ekpompes['ext_series_trailer_enddate'])));
	// strtotime
	 if($row_ekpompes['ext_series_trailer_startdate']!=null && $row_ekpompes['ext_series_trailer_enddate']!=null && $row_ekpompes['ext_series_trailer']!=null){
	 if($curentdatestart<=$curentdate &&  $curentdateend>=$curentdate ){
	 $video=$row_ekpompes['ext_series_trailer'];
	 }else {
	 $video=$row_ekpompes['ext_trailer'];
	 }
	 }else {
	 $video=$row_ekpompes['ext_trailer'];
	 }
	 echo $video."====";
	 echo date('h:i:s / m/d/y');
	 echo "===".$curentdate."---".$curentdatestart."---".$curentdateend;
	 echo  $row_now['ext_trailer']."----";
	 echo  $row_now['ext_series_trailer']."----";
         echo  $row_now['ext_series_trailer_startdate']."----";
	 echo  $row_now['ext_series_trailer_enddate']."----";
	  
	  ?>

Browser script No-cashe

In HTML
<meta http-equiv="Expires" content="Tue, 01 Jan 2000 12:12:12 GMT">
<meta http-equiv="Pragma" content="no-cache">
In ASP/IIS:
  http://support.microsoft.com/support/kb/articles/Q234/0/67.asp
  <% Response.CacheControl = "no-cache" %>
  <% Response.AddHeader "Pragma", "no-cache" %>
  <% Response.Expires = -1 %>

In PHP:
http://www.php.net/manual/en/function.header.php

< ?php
  Header('Cache-Control: no-cache');
  Header('Pragma: no-cache');
  ?>

In COLD FUSION:
<cfheader name=”Expires” value=”#Now()#”>
<cfheader name=”Pragma” value=”no-cache”>

In JSP:
http://www.jguru.com/faq/view.jsp?EID=377&page=2
<%
response.setHeader(“Cache-Control”,”no-cache”);
response.setHeader(“Pragma”,”no-cache”);
response.setDateHeader (“Expires”, 0);
%>