Functions used to display flash in Sina. They can be used after formatting.Sinaflash. jsCopy codeThe Code is as follows:/*** @ Author [sina] zhangping1 @* @ Version v1.1.3* Date: 2006-9-8 2006-12-15*/If (typeof (sina )! = "Object") {var sina = {}}Sina. $ = function (objId) {if (! ObjId) {throw new Error ("sina. $ (String objId) parameter must be ")}If (document. getElementById) {return eval ('document. getElementById ("'+ objId +'") ')} else if (document. layers) {return eval ("document. layers
Common Methods:Copy codeThe Code is as follows:[Code]Dynamic loading.[Code]Codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"WIDTH = "120" HEIGHT = "60" id = "468x60" ALIGN = "" VIEWASTEXT> There are many methods for detecting PLUGIN, because this problem cannot be solved by using only one method, so there are so many methods.I. built-in DetectionNN and IE on MAC cannot use the following detection, only IE
;If ObjIsEmpty () Then LoadForumAdCode1If IsArray (Value) And Forum_ChanSetting (3) = "1" ThenTempData = ValueAdcode_1 = ReCssUrl (TempData (1, rndnum-1 ))We will add three codes later:Response. write replace (ReCssUrl (TempData (1, rndnum-1), ""Response. write replace (TempData (1, rndnum-1), ""Response. write TempData (0, 0)In this way, you can enter the URL to browse the home page to see the following words:Object classid = "clsid: d27CDB6E-AE6D-11cf-96B8-444553540000
HTML, insert Web page can be transparent flash effect.
Yes, if you do this, you can publish an HTML page with transparent Flash. But there is a problem: The Flash animation that is published only displays transparency in the HTML pages it publishes with it, and if you create a new file with Dreamweaver, insert it in the page, save the-->>F12 preview, we'll find it opaque! What the hell is going on here?
I have carefully compared the HTML pages with flash and the source code of the two HTML page
SCRIPT LANGUAGE="JavaScript">
var SWF = New ActiveXObject (' Shockwaveflash.shockwaveflash ');
(SWF)? Document.writeln (' You have installed the plugin '): Document.writeln (' You do not install plugins ');
//-- >
SCRIPT >
Dynamic loading.
OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ID ="Mflash"
codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WID
>media>flash, and select this Flash (2) To switch to Code view, we need to modify the selected (3 In the Object tab, insert the id= "Myflash" /pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 width=366 height=142 id= " Myflash Note: If you are pasting the copied code, make sure that you delete the unnecessary line break. Otherwise, you may cause errors; IDs can also be entered directly in the Properties panel (4) In the Embed tab, insert Nam
icons
In the above table "O" denotes a action bar item and "=" an overflow icon. Sharing dataWhenever your app permits sharing of data, such as images or movie clips, use a share action provider in your act Ion Bar. The share action provider is designed to speed up sharing by displaying the most recently used sharing service next to a s Pinner button that contains the other sharing options.The Gallery app ' s share action provider with extended spinner for additional sharing options.
SetVariable method.Example:Download the source file: javascript_to_flash.zip (17 k)Steps:Flash in progress1. Create a new file and save it as javascript_to_flash.fla2. Use a text tool to create a text field on the stage3. Select this Text field. On the property panel, select Dynamic Text from the drop-down list and fill in "myVar" in the variable column"Note: The best practice is to use Instance and use myVar. text to change the value of myVar. For simplicity and compatibility with Flash4 and F
upload ends, and the file name is used as a parameter.
It took a night to write this SWF, and the call was quite simple.
Embedded httphandler without any processing calls
Object Classid="CLSID: d27cdb6e-ae6d-11cf-96b8-444553540000" Codebase=Http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
Width="250" Height="80" ID="Swffileupload" Align="Middle">
the flash setvariable method.
View Example:Example Download source file:Javascript_to_flash.zip (17 K)
Steps:
Flash in progress1. Create a new file and save it as javascript_to_flash.fla2. Use a text tool to create a text field on the stage3. Select this text field. On the property panel, select Dynamic text from the drop-down list and fill in "myvar" in the variable column"Note: The best practice is to use instance and use myvar. Text to change the value of myvar. For simplicity and compa
through the flash setvariable method.
Example:Download the source file: javascript_to_flash.zip (17 K)
Steps:
Flash in progress1. Create a new file and save it as javascript_to_flash.fla2. Use a text tool to create a text field on the stage3. Select this text field. On the property panel, select Dynamic text from the drop-down list and fill in "myvar" in the variable column"Note: The best practice is to use instance and use myvar. Text to change the value of myvar. For simplicity and compa
. Sharing data
Whenever your app permits sharing of data, such as images or movie clips, useShare action providerIn your action bar. The share action provider is designed to speed up sharing by displaying the most recently used sharing service next to a spinner button that contains other sharing options.
The Gallery app's share action provider with extended spinner for additional sharing options. Contextual Action Bars
AContextual action bar (CAB)Is a temporary action bar that overlays the app'
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.