Positioning of Flash Objects
Because of the recent changes to IE i have had to embed flash into my html using Java script.....
<script type="text/javascript" src="flashobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var fo = new FlashObject("flash/navbar.swf", "navbar", "725", "215", "7", "#ffffff");
fo.write("flashcontent");
</script>
I don't know anything about Java.
I got it to work.
I was wondering how you position the flash movie in the brouser page: such as centering and placing it inside tables.
Try google to find a javascript or html forum.
Similar Messages
-
Css absolute position question? with flash object?
am only concerned with the "top" and left margin how do i
play it to flash objects. I figure i can put it in a div but how do
i format it.........
<object type="application/x-shockwave-flash"
allowScriptAccess="never" allowNetworking="internal" height="125"
width="250" align="middle" data="
http://www.profilepitstop.com/mp3_players/flash/slimline.swf?uid=157681&extc1=3D3D3D&extc2 =3A3738&extc3=2E3A2D">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="movie" value="
http://www.profilepitstop.com/mp3_players/flash/slimline.swf?uid=157681&extc1=3D3D3D&extc2 =3A3738&extc3=2E3A2D"
/>
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent" />
</object>On Wed, 25 Jun 2008 15:50:27 +0000 (UTC), "antman24"
<[email protected]> wrote:
>bump
bump doesn't work with the vast majority of people who reply
- we
don't use the web page - but a news feed from it.
you need to repost the entire question
~Malcolm~*...
~* -
Getting mouse position into flash from JavaScript?
Is there a way to get mouse coordinates in a browser that is
cross browser compatible? I am able to track the mouse coordinates
in all browsers except FireFox (Windows). In Windows firefox I can
track the coordinates outside of the flash object but not inside
the flash object. I am using the below script. Any help in this
would be greatly appreciated. Thanks in advance.
Regards,
BeauI guess the easiest way is still to use a MouseMotionListener that you could add to your top level container. You could then store the value of the last position and still be able to access it even if the mouse hasn't moved.
You might also want to use the following method : SwingUtilities.convertPointFromScreen(Point p, Component c); -
Hi,
I've imported a flash file into dreamweaver, got it working
great no problems. The Problem i am having though is that the flash
object (550 x 550px) doesnt position flush to the edge of the
browser window, theres a white border to the left and at the top.
How i've got this site is that the main page loads into a 550 x 550
window containing the flash file but i want it so only the flash
document is visible in this window. Does anyone know how to import
a file and have it positioned to the edge. I've tried all the
positioning properties.
Thanks, much appreciated - OliHave you tried zeroing the margins, padding and borders on
the body with
CSS?
Nancy Gill
Adobe Community Expert
BLOG:
http://www.dmxwishes.com/blog.asp
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"Oli_Wales" <[email protected]> wrote in
message
news:e5g49c$jo9$[email protected]..
> Hi,
>
> I've imported a flash file into dreamweaver, got it
working great no
> problems.
> The Problem i am having though is that the flash object
(550 x 550px)
> doesnt
> position flush to the edge of the browser window, theres
a white border to
> the
> left and at the top. How i've got this site is that the
main page loads
> into a
> 550 x 550 window containing the flash file but i want it
so only the flash
> document is visible in this window. Does anyone know how
to import a file
> and
> have it positioned to the edge. I've tried all the
positioning properties.
>
>
> Thanks, much appreciated - Oli
> -
I've added the following to my .ASPX page:
<object style="position:absolute; left:-169px; top:0px;"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="170" height="60" id="FlashFileUpload" align="middle"
VIEWASTEXT>
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="misc/FlashFileUpload.swf"
/>
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#d4d0c8" />
<embed src="misc/FlashFileUpload.swf" quality="high"
wmode="transparent" bgcolor="#d4d0c8" width="170" height="60"
name="FlashFileUpload" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
</object>
The .swf and code checks out fine within a plain .html file
but when i plug it into my .ASPX page outside the <form> tag
(or even within) i get a "FlashFileUpload is undefined" javascript
error window. I've debugged it and foudn it is an eror within some
foreign code (possibly Macromedia Flash marshalling code between JS
and the .SWF ?)
I'm confused. The error occurs immediately when the page
appears. I had an <body onload> to initialize some key areas
within the .SWF file but removed it, so the JS error isn't being
caused by any of my own JS code. The FlashFileUpload is an ID of
the <object> tag and is only used once as an ID and again as
a name attribute for <embed>. The flash object does have an
onscreen display and yes i do see it in my browser window despite
the several JS error windows however interaction with it from my
web page via JS seems impossible. Again all is fine within Firefox
and within a plain HTML web page.
Im using Flash 8 on Windows 2003 and IE6 and am making use of
external.ExternalInterface.Did you check the generated page? Meaning, since you might be
working in
.Net, it usually adds some code, HTML & Javascript, just
try to debug the
page generated by IIS (If you've not done so already). The
other option is,
remove the VIEWASTEXT (but I'm not quite sure what this one
does, just
wondering if this is a flag processed by .Net).
JG
"bs9999" <[email protected]> wrote in
message
news:[email protected]...
> I've added the following to my .ASPX page:
>
> <object style="position:absolute; left:-169px;
top:0px;"
> classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
> codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
> version=8,0,0,0" width="170" height="60"
id="FlashFileUpload"
> align="middle"
> VIEWASTEXT>
> <param name="allowScriptAccess" value="sameDomain"
/>
> <param name="movie" value="misc/FlashFileUpload.swf"
/>
> <param name="quality" value="high" />
> <param name="wmode" value="transparent" />
> <param name="bgcolor" value="#d4d0c8" />
> <embed src="misc/FlashFileUpload.swf" quality="high"
wmode="transparent"
> bgcolor="#d4d0c8" width="170" height="60"
name="FlashFileUpload"
> align="middle"
> allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
> pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
> </object>
>
> The .swf and code checks out fine within a plain .html
file but when i
> plug it
> into my .ASPX page outside the <form> tag (or even
within) i get a
> "FlashFileUpload is undefined" javascript error window.
I've debugged it
> and
> foudn it is an eror within some foreign code (possibly
Macromedia Flash
> marshalling code between JS and the .SWF ?)
>
> I'm confused. The error occurs immediately when the page
appears. I had
> an
> <body onload> to initialize some key areas within
the .SWF file but
> removed it,
> so the JS error isn't being caused by any of my own JS
code.
>
> Im using Flash 8 on Windows 2003 and IE6 and am making
use of
> external.ExternalInterface.
> -
Positioning a flash movie in column
New to Dreamweaver (from FrontPage.) Simple page with two column. In right column I inserted swf 323x323 that should be positioned at V 210 and H 75. Published and it looks great in Firefox but in IE the flash is far far down (have to scroll to even see it.) What am I overlooking? As I said, I'm new to this.
http://www.spaceliftstaging.com/dreamweaver/
Much appreciate any help you can give me. ThanksOpen a new blank HTML document and paste the following code into it. Save it as something. To see what I did differently, compare my code to yours. As an FYI, this page doesn't have any content on it for search engines to see. If you intend to add content, you may need to re-work your layout a bit to keep page flexible.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home Staging & Interior (re)Design</title>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<style type="text/css">
/**zero out default browser settings on everything**/
* {margin: 0; padding: 0; line-height: 1; font-size: 100%}
body {font-family:Verdana, Arial, Helvetica, sans-serif; background: silver;}
#container {
width: 960px;
margin: 0 auto;
background: #232323;
color: #FFF;
overflow: hidden;
#right_column {
float: right;
width: 474px;
text-align: center;
margin-top: 175px; /**adjust margin-top as needed**/
.clearing {clear:both; line-height:1; width: 100%; font-size: 12px}
#left_column {background: url(images/spaceliftstaging_left_column_474x650.jpg) no-repeat;
width: 474px;
height: 650px; /**consider using min-height here**/
#footer {
text-align: center;
font-size: 12px;
padding: 12px;
border-top: 1px solid #CCC;
</style>
</head>
<body>
<div id="container">
<div id="right_column">
<!--begin Flash -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="323" height="323" title="flash_grid">
<param name="movie" value="flash/spacelift.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object data="flash/spacelift.swf" type="application/x-shockwave-flash" width="323" height="323" hspace="75" vspace="210">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<!--end Flash Code -->
</div> <!--end right_column -->
<div id="left_column">
</div> <!--end left_column -->
<br class="clearing" /> <!--IMPORTANT! after floats, use a clearing p, br, div or hr -->
<div id="footer">
<p>some footer text goes here</p>
</div> <!--end footer -->
</div> <!--end container -->
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>
Good luck with your project!
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.com/blogspot.com -
Firefox shrinks flash objects if dynamically written from javascript but not if static in html
firefox shrinks flash objects if the code for the and are written to the page via document.write() in javascript during page load. The object is rendered correctly if the same and are tags in the html document.
== This happened ==
Every time Firefox opened
== tried to dynamicly write object and embed via javascriptHi Tom,
This looks like a real bug. The problem is this forum is for end user support.
Please report this issue at http://bugzilla.mozilla.org, and be sure to search and see if your problem is already known.
See also https://developer.mozilla.org/en/Bug_writing_guidelines -
How to read a local file using as3 in a flash object in HTML? [urgent]
My web site contains a flash object.
I want to use as3 to read some local .txt file
by getting the user directory of the file.
i know AIR can support this by sth like:
File.desktopDirectory.resolvePath
but when i open a AIR file for this, it seems
the action cant be run when i embed it in html.
And i tried to use the above function in a normal
flash file in the action script.
But it cant recognize the File. class..
How can it be done ?
It's reli urgent,
please help...
Thanks !a web based flash app can't detect user directories. you can use the filereference class'es browse method to let the user locate a file in any directory the user wants. flash can then retrieve the file's name and type. but, as mentioned before, flash can't determine the file's directory.
-
Flash Player dosn't work in IE 11 even shockwave flash object is activated
Hello,
Flash Player dosn't work in IE 11 even shockwave flash object is activated.
I've installed Adobe Flash Player Version 16.0.0.287 (today).
then
I checked on this page:
http://helpx.adobe.com/de/flash-player.html
says Flash Player not installed or not activated
Active X Version 16.0.0.287
Internet Explorer 11
Win 7 SP1 32 Bit
Please help me.
Thank you in advance
PaulFirst, confirm that ActiveX Filtering is configured to allow Flash content:
https://forums.adobe.com/thread/867968
Internet Explorer 11 introduces a number of changes both to how the browser identifies itself to remote web servers, and to how it processes JavaScript intended to target behaviors specific to Internet Explorer. Unfortunately, this means that content on some sites will be broken until the content provider changes their site to conform to the new development approach required by modern versions of IE.
You can try to work around these issues by using Compatibility View:
http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11
If that is too inconvenient, using Google Chrome may be a preferable alternative. -
Can there be buttons/links on or in flash object?
Hi, I have no idea how to ask this question properly. I am only designing this, not making it, so simple answers for me would be good, but also technical answers that I can pass on to the flash person.
On my home page, I am going to have 3 images that switch out, each that need to have a "learn more >" link and a 1, 2, 3, and pause buttons.
My question is whether or not these image buttons/links can be placed on or embedded in the flash object. I read this is not possible and that buttons or links have to be separate from flash. Ideally if I wanted to place a "go" button on top of my flash image, that would be great.
However I have been told the only option is to make one side of this in photoshop where I have the buttons and then place that next to the flash image. My example of this would be the msn.com home page.
If further descriptions are needed I can post an example.Your image hasn't loaded yet, so I'll describe what you should do. Chances are you will only need one set of buttons to manage everything rather than creating a set for each image.
If you want to convert each of these items into usable buttons, then select one of them, being sure that all its pieces are selected, then right click on it and select Convert to Symbol ( select it and in the toolbar choose Modify -> Convert to Symbol).
In the interface that appears, select Button (you could also select MovieClip, but for now, select Button) and give it a name that relates to its functionality in some way, just so it is recognizable by its name in the library. Click OK.
Do that for all of the items you want to turn into buttons. To make things easier to manage, you should place the buttons on their own layer in the timeline.
If you are handing this over to someone who knows Flash, they should be able to deal with coding the buttons to function the way you want. -
HTML page with FLASH object doesn't reload upon a redirect
Am using: ECC 6.0 and ABAP SAPGUI development
Hi All,
I'm seeing a frustrating issue that i'm hoping others have seen and resolved.
Here is what i'm attempting and below that is the issue:
1) I have created a ABAP program in which i'm using the HTML viewer (class: cl_gui_html_viewer ) within a container that is on one of my ABAP screens.
2) I load up a web page on our (intra)network that displays an HTML page that has a nice FLASH navigation object. This navigation object operates as such - when a node is clicked it will go to another html page (on the same network) that will then parse apart what node they clicked on and via javascript submit a form in which I've defined a SAPEVENT for.
3) My ABAP program has defined the event handler for this sap event and calls the appropriate method just fine (ON_SAPEVENT). I am able to trap the event details and do some other things.
This is all working just fine, except....I want it to then go back to the first page (original page) that contained the FLASH navigation on it upon after the page that trapped the SAPEVENT is complete automatically. Easy? - that's what I thought...I tried several different ways to do this "go_back" on the html control, "show_url" (with the original URL)...even a redirect in the actual html page itself to go back.
They all DO go back to the first page, however my flash navigation object on that page NEVER shows up! It's almost like the frontend is thinking it is already loaded and will not load it again. I thought maybe I need to do a "flush" or some such - but that didn't seem to solve it. Has anyone seen this and resolved it or knows what this is? The thing is...I can completely exit out of the program - and the flash object will load just fine (but only after I wait a minute or so). What gives...anyone know?
Thanks in advance,
MattAm using: ECC 6.0 and ABAP SAPGUI development
Hi All,
I'm seeing a frustrating issue that i'm hoping others have seen and resolved.
Here is what i'm attempting and below that is the issue:
1) I have created a ABAP program in which i'm using the HTML viewer (class: cl_gui_html_viewer ) within a container that is on one of my ABAP screens.
2) I load up a web page on our (intra)network that displays an HTML page that has a nice FLASH navigation object. This navigation object operates as such - when a node is clicked it will go to another html page (on the same network) that will then parse apart what node they clicked on and via javascript submit a form in which I've defined a SAPEVENT for.
3) My ABAP program has defined the event handler for this sap event and calls the appropriate method just fine (ON_SAPEVENT). I am able to trap the event details and do some other things.
This is all working just fine, except....I want it to then go back to the first page (original page) that contained the FLASH navigation on it upon after the page that trapped the SAPEVENT is complete automatically. Easy? - that's what I thought...I tried several different ways to do this "go_back" on the html control, "show_url" (with the original URL)...even a redirect in the actual html page itself to go back.
They all DO go back to the first page, however my flash navigation object on that page NEVER shows up! It's almost like the frontend is thinking it is already loaded and will not load it again. I thought maybe I need to do a "flush" or some such - but that didn't seem to solve it. Has anyone seen this and resolved it or knows what this is? The thing is...I can completely exit out of the program - and the flash object will load just fine (but only after I wait a minute or so). What gives...anyone know?
Thanks in advance,
Matt -
Flash objects not displaying in Firefox (but works fine in Chrome and IE)
Well, I'm trying to embed a Shockwave Flash object into a website I'm building. It displays in Chrome and IE, but it doesn't show up at all in Firefox. It's just white space. Ive tried it on two machines, so it's presumably the code. Both the machines have Adobe Flash enabled... I'm not sure what the problem is. I've not worked with embedding Flash objects in HTML before, so, it's probably something really obvious. I just used the insert command on dreamweaver and it wrote the code that I'm using. If anyone can help me, it would be much appreciated. Here's my code:
<pre><nowiki><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="99%" height="600" id="FlashID">
<param name="movie" value="The file path" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="10.1.0.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="../Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="the file path" width="99%" height="76.5%">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="10.1.0.0" />
<param name="expressinstall" value="../Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]--></nowiki></pre>If you can't post an address for a page demonstrating the problem, could you check the Web Console (Ctrl+Shift+k) and Browser Console (Ctrl+Shift+j) for any messages related to the Flash media? For example, does either console show that Firefox is requesting the SWF file? Does either show an error in content type or any kind of security message?
-
Problem Viewing Flash Object in IE
I have been managing my wife's website. She had someone design it, then the guy stopped responding, so I took over. Im somewhat of a beginner, so I cant figure this one out, and have looked online for resolutions. There are two pages on her site that have flash objects. When you go to either page in IE, you get an error : Content on this page requires a newer version of Adobe Flash Player. It then gives you a link to update, which lets you update, but then doesnt resolve the problem. Like I said, someone else did the basic design, so im not sure where they went wrong.
The two pages are:
http://www.karabakerphotography.com/index.html
and
http://www.karabakerphotography.com/gallery.html
The pages work fine in Firefox and Safari. So its only IE that doesnt work. I know differet browsers can use different versions of Flash. I have been using Dreamweaver CS4.
I have not spoken with anyone who can view it using IE. Everyone that uses IE has mentioned the problem to me.
Any help would be greatly appreciated. If you need any further info from me, just let me know.Do the flash communicate with files which is outside of the sitedomain?
-
Problem for web service path for Xcelsius engage in flash object
Hi, All
I had created one xcelsius through Web Service of SAP B1.it works well.
but when I run the flash object came from xcelsius by explorer,it gives one message
"Can not access external data"
thier I have to give path for swf file and web service path -- (which is given at the time of connection of xcelsius through web service in data manager)
and I have to run the web service then it shows
the dash board made from Xcelsius very well.
but when i change the path of same web service to other m/c then flash file does work and it gives message
"Can not access external data"
but in practical my web service path can be changed, it should not fixed for path which is given in data manager in Xcelsius.
I am using Xcelsius Engage 2008 sp3
please give suggetions for solve the problem
thanks in advanceHi Venky CRMIT, Bruce007
Aside from the question, I tried another methods and I have succeeded calling webservice. A reference URL is
http://www.webbasedcrmsoftware.com.au/crm-on-demand-tutorials/65-java-access-to-crm-on-demand#_Toc224720963
Main cause may be jsessionID as you guess. When I try with EAI, I have send login information and message call at once, so URL may be incorrect.
Thank you for your help. -
Hello,
I have a pdf-file (which was created from a MS-word.doc).
On some pages, there is a word and a line (at the top of the page) which I want to copy to all the other pages (and later I want to change the wording slightly, so that there is a different word on each page). I know how to "copy" the object with Tools/Advanced Editing/TouchUpObject and from one page to another, but:
The PROBLEM: I want to have the words on exactly the same place(=position) on every page (e.g. in centimeters from top margin and left margin of the page). So my question: Can I somehow find out the "position" of the object (e.g. in centimeters from margins of page) and then assign this position to the other object(s). Is this possible?
Thanks for your help.Hi,
I don't think you can focus on static objects (static text, static images).
I think the down and dirty workaround is your best option. Maybe make the button very small (0.01in) and you can always place a static image (icon) over it to mask the button.
N.
Maybe you are looking for
-
Data Federator - Read timed out
Hi, I'm using Data Federator XI 3.0 SP2. I have a datasource connecting to a web service. The web service may return take a long time to do heavy processing, etc., before returning any data. If I call the web service via Data Federator, I will get th
-
File sharing in the File server preference pane
System preferences to File Server to File sharing. When I choose a share point folder and want to change permissions, I click the radio button to restrict access to certain users and save. When I re-enter the the folder it defaults back to let everyb
-
Status of Sales Order Open Even after assigning Reason for Rejection.
Hi All, I am facing with a basic problem wherein even after assigning a reason for rejection status for a sales order, the sales order numbere is appearing in the list of Open Sales Order(VA05). Also another case is i created a sales order with one
-
OSB Xquery mapping from multiple to single by separating its value(s).
Hi, I have one requirement in OSB, can some one explain the implementation for this: I have one element which is of type unbound. I need to map this element to a single element and to append all the element values by separating each element value wit
-
Strange folder appears out of no where under Macintosh HD
Today I noticed a strange folder with a strange name "㉠ㆨ䞦າ" under root folder appeared in one of the macs in my computer lab, initially i thought it could be someone messing with the computer, but It's zero k in size and the date says it was created