473,395 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

javascript_Flash/Windows/"click to activate..control"

5
WHEN I'M PUBLISHING A FLASH - .SWF FILE IN HTML,
I'M GETTING IN WINDOWS THE NOTE:
"CLICK TO ACTIVATE AND USE THIS CONTROL"

AND MY QUESTION IS, HOW DO I GET A ROUND THAT ???
I SEE MANY WEB SITE THAT USE FLASH, AND DOESN'T NEED TO CLICK TO ACTIVATE THE CONTROL, EVEN WHEN I BROWSE WITH WINDOWS

I'M NOT MUCH OF AN EXPERT SO I HOPE THAT THE PEOPLE HERE THAT ARE KNOWN AND WILLING TO HELP WILL MAKE IT SIMPLE

BY THE WAY I TRIED THE swfobject_source.js THAT WHERE PUBLISH HERE
BUT IT DIDN'T HELP ME..


SOOO PLAESE HELP....

THANKS
OFIR
Dec 18 '07 #1
8 1951
vituko
48
I heard (I've never tried) that you have to create the object by a script (js) loaded in an external file (<script src="..."></script>).
Let me know if it works, please.
Dec 18 '07 #2
ofir
5
That's what i tried to do with the file that i got in this site:
"swfobject_source.js"
you can see in the code, but i dont know if this is the answer, and if so what am I doing wrong...

Thanks for your comment


Expand|Select|Wrap|Line Numbers
  1.  
  2.  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3.  
  4.       <html xmlns="http://www.w3.org/1999/xhtml">
  5.  
  6.       <head>
  7.  
  8.       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  9.  
  10.       <title>:: PAULINE NG ::</title>
  11.  
  12.       <script type="text/javascript" src="Htm/js/swfobject_source.js"></script>
  13.  
  14.       </head>
  15.  
  16.  
  17.  
  18.       <body >
  19.  
  20.  
  21.  
  22.       <center>
  23.  
  24.  
  25.  
  26.  
  27.  
  28.     <div id="flashcontent" align="center">
  29.       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="750" height="128">
  30.         <param name="movie" value="../Flash/dack_lightgray.swf" />
  31.         <param name="quality" value="high" />
  32.         <embed src="../Flash/dack_lightgray.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="128"></embed>
  33.       </object>
  34.     </div>
  35.  
  36.  
  37.       <script type="text/javascript">
  38.  
  39.          var so = new SWFObject("dack_lightgray.swf", "mymovie", "#EADBBF");
  40.  
  41.          so.write("flashcontent");
  42.  
  43.       </script>
  44.  
Dec 18 '07 #3
vituko
48
1 - swfobject_source.js, you didn't give me the whole url.
2 - I understand that you're inserting twice the flash object :
- line 28 : embeded in the html main page
- line 38 : I imagine that it uses a class declared in the imported script. But you give no path, only the file name :
var so = new SWFObject("dack_lightgray.swf", "mymovie", "#EADBBF");
so.write("flashcontent");

I don't know, maybe it helps you.
Dec 18 '07 #4
ofir
5
this the code page...

http://blog.deconcept.com/swfobject/

there is another link relate..

http://64.233.169.104/search?q=cache...ient=firefox-a


i did just what i saw over there,as i understand it,
if its my answer i dont know...

i'll say it again, thanks a lot man!
Dec 18 '07 #5
acoder
16,027 Expert Mod 8TB
There are six required attributes - you've only provided 3.
Dec 18 '07 #6
ofir
5
thanks..its not that my friend..
vituko i see what you mean when you said i load it 2 times,
and the thing is that this way i don't need the external code cause seeing the swf wasn't the problem at first place so i don't know way they did it in the example in the link that i wrote before, any way without the regaler flash code i cant see the application at all...

ok still looking for the right answer some where over the rainbow....
Dec 18 '07 #7
vituko
48
In the first case you use the full path (../Flash/dack_lightgray.swf), and in the second one (with the script), only the file name (dack_lightgray.swf, I've already said it you).
The six first arguments of the constructor seem needed...
Use the js console, firebug...
I've seen it working by googling... good luck!!

In Spain it's time to go home, I'll look tomorrow
Dec 18 '07 #8
Found your good samaritan ofir. =)
Jan 3 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Yoni Rapoport | last post by:
Hy everyone, just wanted to share a thought regarding UI. If you really think about it, events such as "Click", "DoubleClick", "KeyDown", "KeyUp", etc... (which clutter every winforms control we...
5
by: Al Christoph | last post by:
I have a program that mixes wizard like behavior with random access to the various dialogs in the wizard. I do this by having each step map to a toolstripmenuitem. Users can randomly choose the...
0
by: Quentin Huo | last post by:
Hi: In my page, there is a user control and there are some actions in the user control like "save", "delete",...which are the control <asp:button onclick="btSave_Click" ......>. And there are...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
21
by: Ben | last post by:
Hello I have frames set up in an asp.net application and need one frame to refresh another. Seeing as events need to be registered at the time the page is sent from the server, I was wondering...
7
by: the_grove_man | last post by:
How do I invoke a "Right-Click" Programmtically? John
2
by: fniles | last post by:
For IE users, we now encountered a "Click to activate and use this control" when the web page has an ActiveX Control. There is a compatibility patch that changes the default bahavior back to what...
2
by: Simon | last post by:
Dear reader, How to start the event "Activate" in a report as the report is a sub report. By opening the main report the event "Activate" in the sub report is not actived.. Thanks for any...
1
by: ofir | last post by:
WHEN I'M PUBLISH FLASH .SWF FILE IN HTML, I'M GETTING IN WINDOWS THE NOTE: "CLICK TO ACTIVATE AND USE THIS CONTROL" AND MY QUESTION IS, HOW DO I GET A ROUND THAT ??? I SEE MANY WEB SITE THAT...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.