iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-06-2008, 01:10 PM
WebProWorld New Member
 
Join Date: Dec 2007
Posts: 12
dm27 RepRank 0
Default embedded flash

Hi,
Could some one tell me how to embedded flash on my website without having to click one it to get it to activate it. I have some flash content on my site and when you place the mouse over it, a text box appears and prompts the user to click on the swf to activate it. I have viewed other sites and
the swf file has been embedded in such a way the this text box does not appear. How is this done?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 01-06-2008, 01:32 PM
vwebworld's Avatar
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Fairhaven, MA
Posts: 461
vwebworld RepRank 1
Default Re: embedded flash

The autostart function is used to set the flash to start automatically or not.
flashvars="file=yourfile.xml&backcolor=0x000000&au tostart=true"

Usually, when the flash file is created the creator specifies it to start automatically (or not).

~Roland

Last edited by vwebworld; 01-06-2008 at 01:36 PM.
Reply With Quote
  #3 (permalink)  
Old 01-06-2008, 03:54 PM
WebProWorld Member
 
Join Date: Aug 2006
Posts: 82
imsickofwebpro RepRank 0
Default Re: embedded flash

There are two ways, hand code the fix, which I can provide documentation on or use Dreamweaver. Please say you use Dreamweaver!

Do you use Dreamweaver?
__________________
www.jacksonville-website-design.com
High-end Websites and Branding
Reply With Quote
  #4 (permalink)  
Old 01-06-2008, 03:56 PM
WebProWorld Member
 
Join Date: Aug 2006
Posts: 82
imsickofwebpro RepRank 0
Default Re: embedded flash

Quote:
Originally Posted by vwebworld View Post
The autostart function is used to set the flash to start automatically or not.
flashvars="file=yourfile.xml&backcolor=0x000000&au tostart=true"
What???
__________________
www.jacksonville-website-design.com
High-end Websites and Branding
Reply With Quote
  #5 (permalink)  
Old 01-06-2008, 10:53 PM
sands's Avatar
WebProWorld Veteran
 
Join Date: Sep 2005
Location: Kerala, India
Posts: 395
sands RepRank 1
Default Re: embedded flash

Check out: jActivating - Solution to "Click to activate and use this control" issue for a solution.
__________________
My Nook | My Biz | My Photos
Reply With Quote
  #6 (permalink)  
Old 01-07-2008, 12:12 AM
vwebworld's Avatar
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Fairhaven, MA
Posts: 461
vwebworld RepRank 1
Default Re: embedded flash

Quote:
Originally Posted by imsickofwebpro View Post
What???
OK, let's back up a little... the flash you want to embed, did you create it?
If so, you should be able to specify in the flash variable for the file to auto start.

If not and you do not have access to the creating program, you'll need to code the flash variable autostart=true

~Roland
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 12:46 PM
WebProWorld New Member
 
Join Date: Feb 2008
Posts: 7
tom_hicks RepRank 0
Default Re: embedded flash

First, Save the following piece of code into your root directory. Name it 'ieupdate.js'.

Code:
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}
Second include the following piece of code immediately after the closing OBJECT tag of the last flash object of each page.

Code:
<script type="text/javascript" src="ieupdate.js"></script>
Now test in browsers. It should have solved the problem.

Last edited by tom_hicks; 02-21-2008 at 12:48 PM.
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 01:03 PM
kgun's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Norway
Posts: 5,678
kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9
Default Re: embedded flash

objects[i].outerHTML = objects[i].outerHTML;

X=X?

Hm

A little explanation may be in place since:

outerHTML Property (A, ABBR, ACRONYM, ...)

Example:

This example uses the outerHTML property to copy an object, accompanying attributes, and children to a list when a user clicks one of the objects.

<SCRIPT>
function fnCopyHTML(){
var oWorkItem = event.srcElement;
if((oWorkItem.tagName != "UL") && (oWorkItem.tagName != "LI")){
alert("Adding " + oWorkItem.outerHTML + " to the list.");
oScratch.innerHTML += oWorkItem.outerHTML + "<BR>";
}
}
</SCRIPT>

<UL onclick = "fnCopyHTML()">
<LI><B>Bold text</B>
<LI><I>Italic text</I>
<LI><U>Underlined text</U>
<LI><STRIKE>Strikeout text</STRIKE>
</UL>
<P>
<DIV ID = "oScratch" >
</DIV>

Related:

insertAdjacentHTML

Inserts the given HTML text into the element at the location.

These methods are faster than XHR supported by most modern browsers, but there is no public standard that applies to these properties.

Also see:

DOM:element.innerHTML - MDC

Quote:
Originally Posted by tom_hicks View Post
First, Save the following piece of code into your root directory. Name it 'ieupdate.js'.
Is that feature sniffing compatible across all browsers? IE (at least below version 7.0) is a non W3C DOM compliant browser.

See:
Scott Andrew - DIY acoustic pop superhero! >

http://www.sitepoint.com/blogs/2004/...-on-page-load/

Last edited by kgun; 02-21-2008 at 01:20 PM.
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which Embedded Video Player is Best? Crum Internet Industry 0 11-29-2006 03:22 PM
Embedded video (without the buttons) - Help! clivemcg Graphics & Design Discussion Forum 5 02-22-2005 04:52 AM
http://www.manvish.com - seo, dev, embedded sanjaykattimani Submit Your Site For Review 1 07-01-2004 06:26 PM
Embedded baloon ads ldyguique Graphics & Design Discussion Forum 2 02-25-2004 05:35 AM
SQL embedded in HTML bradle01 Web Programming Discussion Forum 1 11-08-2003 04:10 PM


All times are GMT -4. The time now is 04:43 AM.



Search Engine Optimization by vBSEO 3.3.0