How to Code SWFObject with Alternate Content
I've read umpteen tutorials and articles on embedding Flash
with alternate content, and they're all too different, confusing,
and unsuccessful. All I want to do is insert a JPEG to replace my
Flash movie on non-Flash browsers but have no idea how or where to
code it. I don't want to get into xml or div IDs (if I don't have
to)... just a simple-as-possible, idiot-proof solution for a
beginner like myself.
Here is my Flash object...
<td width="400" height="240">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
height="240" width="400">
<param name="movie" value="images/flashintro.swf" />
<param name="quality" value="best" />
<param name="play" value="true" />
<embed height="240" pluginspage="
http://www.macromedia.com/go/getflashplayer"
src="images/flashintro.swf" type="application/x-shockwave-flash"
width="400" quality="best" play="true"></embed>
</object>
</td>
Thanks.
docmentation:
http://code.google.com/p/swfobject/
AIR app that generates it for you:
http://code.google.com/p/swfobject/downloads/list
The body code will look like something like this:
<div id="flashContent">
<center><p>Please update to the latest version
of <a href="
http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
target="_blank" title="Flash Player">FLASH</a>, and enable
<a href="
http://gsaauctions.gov/brow_details/IE6instr.htm"
title="Enable Javascript"
target="_blank">JAVASCRIPT</a><br /> or view site as
<a
href="index2.php">HTML</a></p></center></div>
<script type="text/javascript">
// <![CDATA[var so = new SWFObject("flash.swf", "mymovie",
"950", "600", "8", "#FFFFFF");
so.write("flashContent");
</script>
Similar Messages
-
How to display string with XML content in 4.6?
Hi,
I`d like to know how to display string with XML content in it for 4.6.
4.6 has not method parse_string.
And example like this is not helpful:
DATA: lo_mxml TYPE REF TO cl_xml_document.
CREATE OBJECT lo_mxml.
CALL METHOD lo_mxml->parse_string
EXPORTING
stream = gv_xml_string.
CALL METHOD lo_mxml->display.
Thank you.Hi,
May be you can use fm SAP_CONVERT_TO_XML_FORMAT. But it have some issues with memory usage, the program consumed tons of memory during convert.
a® -
How can scan directly with webcenter content
how can directly scan with webcenter content without other software for scanner
tnxHi,
If you are referring to not using ODC/ODDC kind of software which has drivers to connect to Webcenter Content then following is what I can think of:
1. Have your scanner drop the scanned images to a shared folder
2. Have a standalone Java program to checkin the scanned images to Webcenter Content using RIDC API calls
3. Access what set of metadata you want to set on the content, advice you set most of the general metadata on the folder so the content inherits them
4. If the metadata is available in a database then you could use the Java program to look up to this DB for metadata which performing the checkin
Regards,
- Anand -
How can I work with LoaderInfo.content while loading?
I'm trying to implement the display of a loading swf into a
papervision scene, as outlined by Paul Spitzer in his devnet about
video in papervision. This requires updating a bitmapdata object to
reflect the playhead position of the swf being loaded.
In my code snippet, you can see that all I am ultimately
trying to do is trace out the object being loaded, by referring to
loaderInfo.content. But if I try to run this code, I repeatedly get
the dreaded:
Error: Error #2099: The loading object is not sufficiently
loaded to provide this information.
At 50% load, I believe I should be able to access
loaderInfo.content. Is there a better way to work with
loaderInfo.content whilst loading an external swf?
Thanks for any help.You need Lightroom 5.5 or later (the most current version is 5.7.1). This is a free update if you have already purchased an earlier version of Lightroom 5.
Product updates -
How to swap movieclip with other content, in a movieclip loaded external
Hi! I'm getting desperated.
I started about 3 days ago trying to solve this problem,
maybe i'm very noob!
I have a main movie. Inside this, i load various externals
swf's. One swf for a menu, another for a image presentation, etc.
In the menu, i load various instances of another swf file...
a button swf, and witch one has to have a different image as
button.
So inside the button, i have a layer with a button, but no
shape or nothing, and in another layer, i have a movieclip to can
swap by an image.
So, the struct is like this:
Main Movie
. image_presentation
. contact
. menu
. . button1
. . . button
. . . image
. . button2
. . . button
. . . image
. . button3
. . . button
. . . image
. . button4
. . . button
. . . image
So, button is only a swf file, with various instances.
"button" inside the buttons, make the button efect, with a white
border apearing on mouse over button. "image" is a movieclip
created only for change with an image (button 1 = image 1, button 2
= image 2, etc).
How can i do this, controlling the images url's from the main
movie?? I had tried a lot of ways, but i could do it.
Please help.
Thanks.sorry there but this system seems convoluted and unecessary.
You should be able to achieve nearly any 'effect' using either a
single button instance, or a movieclip instance used as a button,
but should not need multiple instances to do so, or multiple swf
files Each button symbol has three 'states' that you can apply
different 'images' to to achieve an 'effect'. You can even put
movieclips in a button state to animate something during the
triggering of that state. It seems that you should be able to at
least place all of the buttons within the 'menu' in a single swf
(not to mention that they could all be within the main swf) instead
of 'loading' them as individual swf files.
What is it that you're trying to control? the 'images'? what
do you want them to do, and how are you wanting them to be
controled? -
How to integrate KM with other Content Management Systems
Hi all,
The requirement is to integrate KM with third-party Content Management Systems like Documentum, Interwoven, fileNet etc. Related documents/tutorials can also be shared.
Helpful answers will be rewarded for sure.
Thanks in advance.
Regards,
ShankarHi
These links may be useful
Need to get a SAP NetWeaver component implemented quickly? Try SAP Best Practices
http://www50.sap.com/company/press/factsheets/solution/ep.asp
http://sap.ittoolbox.com/topics/t.asp?t=421&p=421&h1=421
http://blogs.ittoolbox.com/km/portals/archives/001903.asp
http://www.documentum.com/literature/literature.htm?uq=False&printReady=True
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/knowledge management in enterprise portal.pdf -
How to code this with serial communication?
Here's What I Want To Do.
There are two computers A and B. I send some variational data, 1.2,3.4 for example, from A to B once per second. If B has received the right data, he will send "Yes" to A, otherwise he will say "No". If received "Yes", A will get ready for the next data-sending. If "No", A will send the data again.
The examples with LabVIEW for VISA communication are all like that one computer is listening and the other one is writing all the time. So can you help me with two simple VIs for computer A and B?
Regards.You need to connect the two computers' serial ports with a Null Modem Cable (Tx/Rx, CTS/RTS, DTR/DCD reversed). The put the attached vi on computer A. It will send a command from an array, and wait for a response from computer B. If the response is Yes, then the next command will be sent. If not Yes then A will send the same command again and wait for a response. There is an Abort button if you want to abort, but it will only abort the current command. You can modify it to abort the whole thing by using a while loop to replace the for loop, and using the abort button to exit the while loop. I'll leave the coding up to you. You will have to write a vi to reside on B. I'll describe it but you can code it, good practice. Computer B should start off initializing the com port, like in the attached vi. Then loop at Bytes at Port until some bytes come in, then read the bytes. Use a comparison (equal) to check if the data is good. Use a case structure to define what to send back to computer A (Yes or No). Then write it back using Visa Write. Loop around the entire thing except for the com port init. Close the Visa after the main loop.
- tbob
Inventor of the WORM Global
Attachments:
COM_AtoB.vi 50 KB -
How to hide table with empty content using Javascript?
Hello!
I'm using Adobe LiveCylce Desinger integrated in SAP. I have a task to hide a database-table, if the table empty is.
Normmaly we can do following to check, whether the content empty is.
if (this.REMARK_TEXT.rawValue == null )
this.presence = "hidden";
else
this.presence = "visible";
The question is, how to check in Javascript, if a table empty is.
Many thanks in advance!
regards
longholidaycould try something like this:
function showOrHideTable(table){
var isVisible = false;
// gets the count of instance managers, event_initialize and row objects
var rowCount = table.nodes.length;
for(var i=0; i<rowCount; i++)
//get the class name
var myTestNode = table.nodes.item(i).className;
//ignores the instance managers and event_init
if(myTestNode == "subform")
var innerCells = table.nodes.item(i).nodes;
for(var j=0; j<innerCells.length; j++){
//ignores non-input boxes
if(innerCells.item(j).className == "field")
//check value
if(innerCells.item(j).rawValue != ""))
isVisible = true;
else
//hide the row
table.nodes.item(i).presence = "hidden";
//if any row has a value specified
if(isVisible)
table.presence = "visible";
//no value specified
else
table.presence = "hidden"; -
How to print pages with specific content
I have a PDF fie of about 500 pages which contains the pay slip of staff of the entire establishment. I wish to print only the pages that are for the staff in my department who are 70 in number. Each page contains a staff ID number at the top. I have the staff number of the 70 staff in my department in a text file. Is there any way I can make Adobe Acrobat Reader print out only pages that have the staff ID I stored in the text document?
O.K. I also noticed that each page contains the name of the department a staff belongs to. Without using the custom-made script you mentioned, could I use either Acrobat or Reader to print only pages that contain my department's name?
-
Swfobject 2.2 in FireFox displays swf twice when using alternate content
I have built a Flash site and also set it up with alternate content so it can be viewed on iPhone and iPad as well as other mobile devices. It works great everywhere but in FireFox the site's swf loads on the page twice.
Has anyone else experienced this issue and if so, what have you done to work around this FireFox bug?
You can view the url that I'm using to test at http://www.turntwomedia.com/index-altContent.htmlCheck out this post -
http://support.mozilla.com/en-US/questions/669348 -
The following fills a DataTable with the contents of an Excel spreadsheet.
oledbCmd.CommandText = "SELECT * FROM [" + stSheetName + "$]";
DataTable dtDataTable = new DataTable();
using (OleDbDataAdapter oledbAdapter = new OleDbDataAdapter(oledbCmd))
oledbAdapter.Fill(dtDataTable);
How do I fill an Excel spreadsheet with the contents of a DataTable?
bhs67You can try this Excel library, it can help u to
export datatable to excel to Database.
After add the reference to your project ,add the following code:
private void button1_Click(object sender, EventArgs e)
//connect database
OleDbConnection connection = new OleDbConnection();
connection.ConnectionString @"Provider=""Microsoft.Jet.OLEDB.4.0"";Data Source=""demo.mdb"";User Id=;Password="
OleDbCommand command = new OleDbCommand();
command.CommandText = "select * from parts";
DataSet dataSet = new System.Data.DataSet();
OleDbDataAdapter dataAdapter = new OleDbDataAdapter(command.CommandText,connection);
dataAdapter.Fill(dataSet);
DataTable t = dataSet.Tables[0];
//export datatable to excel
Workbook book = new Workbook();
Worksheet sheet = book.Worksheets[0];
sheet.InsertDataTable(t, true, 1, 1);
book.SaveToFile("insertTableToExcel.xls");
System.Diagnostics.Process.Start("insertTableToExcel.xls");
http://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Data-Export-/Import-Export-Datatable-to-Excel-from-Database.html -
How to copy a page( webpart page) with its content using client side.
How to copy a page(in my case webpart page) with its content(it may contain webparts) using client code (i mean using SPservices or ECMA script).
What i am planning is ,to give end user a page where it will contain text box to specify name of page and a button with the help of content editor webpart.
where on click of button we need to write client side code such that it should create a new page from a existing page in a library with given name by user.
Any suggestion would be helpful. For your information we can do it through UI with the help Site Actions / Manage Content and Structure.But i want to automate it using client side code.Server side code is restricted.
or can we create a template of an existing page with content without the help of sharepoint designer.
Thanks in advance
with regards RavichandraThis is good example
http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/
Create web service
http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/. Create method "Create Page" http://www.learningsharepoint.com/2010/09/17/create-publishing-pages-sharepoint-2010-programmatically/
Build your Java Script. You can use Content Editor Web Part if you want to avoid custom web part development http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
Oleg -
how can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc? thank you
No. Get it fix by making an appointment with the Apple genius bar.
-
How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?
I have code that finds / marks words with a different color. Now I want to remove that color. I've started with the following, but cannot complete it.
//int iLength = gRTbxInfo.Length
int iLength = 10;
TextRange trText = new TextRange(gRTbxInfo.Document.ContentStart, gRTbxInfo.Document.ContentEnd);
TextPointer tpStart = trText.Start.GetInsertionPosition(LogicalDirection.Forward);
TextPointer tpSelectionStart = tpStart.GetPositionAtOffset(0, LogicalDirection.Forward);
TextPointer tpSelectionEnd = tpSelectionStart.GetPositionAtOffset(iLength, LogicalDirection.Forward);
TextRange tpSelection = new TextRange(tpSelectionStart, tpSelectionEnd);
tpSelection.ApplyPropertyValue(TextElement.BackgroundProperty, new SolidColorBrush(Colors.White));
bhs67Isn't that just
TextRange tr = new TextRange(rtb.Document.ContentStart, rtb.Document.ContentEnd);
tr.ApplyPropertyValue(TextElement.BackgroundProperty, Brushes.White);
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML -
48 Hours ago I started to upgrade to Mountain Lion on a now 10 day old IMac - 30 minutes ago I got the email with the content code and redeem code for the download from the app store - it said download was happening, but nothing happened for 30 min - HOW DO I (or you) FIX IT!?
This is a User's Forum, yelling at us won't help. You have 90 days of customer support via telephone. Use them as they can interact with their system and hopefully get you back on track. Otherwise take it to them at the Genius Bar and have them make it good.
Maybe you are looking for
-
Also Transfer Problem with ZEN X
Finally i decided it to buy a zen xtra. The player works fine, also the firmware update was no problem. But then i wanted to transfer my mp3 files to the zen, i used just the nomad explorer for that(Because although i read the readme, i didn?t manage
-
Move value to dynamic variable
hi all i have field name and value. i need to put the value in the field name. how should i do it? tks ;david.
-
Filter button on second query in workbook
I'm using BEx 7.10. I have a workbook that I added a second query to by inserting a worksheet and inserting an Analysis Grid. That all works fine. Is there a way to add the "Filter" and "Information" buttons to this second worksheet? I tried to ju
-
Flex Chart Problems, can anyone help?
I get the following run time error when my mouse rolls over one of my charts: ReferenceError: Error #1069: Property hitData not found on mx.charts.HitData and there is no default value. at Chart1/::formatDataTip() at mx.charts.chartClasses::ChartBase
-
How to work with Starter Pages
Many of the sample Starter Pages in DreamWeaver 8.0.2, have the phrase 'Layout is customizable' but what does this mean? For example, I used the Health & Nutrition - Home Page and then wanted to change the layout and use a frameset called 'Fixed Top,