Is a FLEX swf considered an asset?

Just wondering if a FLEX swf should be considered an publishable asset.

thanks in advance!

If you are embedding it directly in an action view, you may simply put it under web folder. No need to go the asset publishing way unless you want to encapsulate it into a widget.

I was going to use the CFlexWidget

Doesn’t seem to be working, I followed the api and the file is in that directory.  ???

I think the API is incorrect. "(without the .swf suffix)". But it only adds the suffix in only some of the references:

generated code:



      <script type="text/javascript">


/*<![CDATA[*/


// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)


var hasProductInstall = DetectFlashVer(6, 0, 65);





// Version check based upon the values defined in globals


var hasRequestedVersion = DetectFlashVer(9, 0, 0);





// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback


if ( hasProductInstall && !hasRequestedVersion ) {


	// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process


	// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed


	// DO NOT MODIFY THE FOLLOWING FOUR LINES


	// Location visited after installation is complete if installation is required


	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";


	var MMredirectURL = window.location;


	document.title = document.title.slice(0, 47) + " - Flash Player Installation";


	var MMdoctitle = document.title;





	AC_FL_RunContent(


		"src", "/VStudios_Yii/themes/default/flex/playerProductInstall",


		"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",


		"width", "100%",


		"height", "100%",


		"align", "middle",


		"id", "VStudiosPriceQuote",


		"quality", "high",


		"bgcolor", "#FFFFFF",


		"name", "VStudiosPriceQuote",


		"allowScriptAccess","sameDomain",


		"type", "application/x-shockwave-flash",


		"pluginspage", "http://www.adobe.com/go/getflashplayer"


	);


} else if (hasRequestedVersion) {


	// if we've detected an acceptable version


	// embed the Flash Content SWF when all tests are passed


	AC_FL_RunContent(


		"src", "/VStudios_Yii/themes/default/flex/VStudiosPriceQuote",


		"width", "100%",


		"height", "100%",


		"align", "middle",


		"id", "VStudiosPriceQuote",


		"quality", "high",


		"bgcolor", "#FFFFFF",


		"name", "VStudiosPriceQuote",


		"flashvars","",


		"allowScriptAccess","sameDomain",


		"type", "application/x-shockwave-flash",


		"pluginspage", "http://www.adobe.com/go/getflashplayer"


	);


} else {  // flash is too old or we can't detect the plugin


	var alternateContent = 'You need Flash 10 to continue.';


	document.write(alternateContent);  // insert non-flash content


}


/*]]>*/


</script>


<noscript>


	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"


		id="VStudiosPriceQuote"


		width="100%"


		height="100%"


		codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">


			<param name="movie" value="/VStudios_Yii/themes/default/flex/VStudiosPriceQuote.swf" />


			<param name="quality" value="high" />


			<param name="bgcolor" value="#FFFFFF" />


			<param name="flashVars" value="" />


			<param name="allowScriptAccess" value="sameDomain" />


			<embed src="/VStudios_Yii/themes/default/flex/VStudiosPriceQuote.swf"


				quality="high"


				bgcolor="#FFFFFF"


				width="100%"


				height="100%"


				name="VStudiosPriceQuote"


				align="middle"


				play="true"


				loop="false"


				quality="high"


				allowScriptAccess="sameDomain"


				type="application/x-shockwave-flash"


				pluginspage="http://www.adobe.com/go/getflashplayer">


			</embed>


	</object>


</noscript>





    $this->beginClip('proposalSwf');


    $this->widget('CFlexWidget', array('baseUrl'=>Yii::app()->theme->baseUrl.'/flex',


                                       'name'=>'VStudiosPriceQuote',


                                       'altHtmlContent'=>'You need Flash 10 to continue.'));


    $this->endClip();

if i remove the <noscript> tags everything seems to work.

Did you check the phonebook demo?

Indeed, I duplicated the widget call and I still have the same issue. Odd  :-\