473,399 Members | 2,774 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,399 software developers and data experts.

flash width and height

43
hello everyone!
so i got this question can anyone help me with this

so i got this flash file test.swf it's width is 350 and height 200
and teen you need to put that flash into the web you need to write like this

<object width="350" height="200">
<param name="movie" value="test.swf">
<embed src="test.swf" width="350" height="200">
</embed>
</object>

buy what if i don't know the width ant height i just got the flash url
can anyone tell me how to get flash width and height when you got only the flash url?
Sep 20 '07 #1
1 4984
xNephilimx
213 Expert 100+
Hi, tader! Welcome to TSDN!
If the falsh movie is yours, or if you have access to manipulate the code you will need to use the ExternalInterface to add callbacks so you can call movie function from javascript, you can make a function in flash to return the dimensions of the movie and from javascript call that function and embed the flash movie with the returned values.
I also reccomend you not to use the pure html object/embed way, use the SWFObject script, is much more secure, customizable and easy.

If the movie isn't yours, or you do not have access to modify the code, one alternative is making a movie large enough to fit -almost- any movie, the load the movie from within your flash movie into another movieclip with the loadMovie method.
I can only think of that, becasue there's no way I know to get the dimensions of a flash movie you don't have access to.

Kind regards,
The_Nephilim

hello everyone!
so i got this question can anyone help me with this

so i got this flash file test.swf it's width is 350 and height 200
and teen you need to put that flash into the web you need to write like this

<object width="350" height="200">
<param name="movie" value="test.swf">
<embed src="test.swf" width="350" height="200">
</embed>
</object>

buy what if i don't know the width ant height i just got the flash url
can anyone tell me how to get flash width and height when you got only the flash url?
Sep 20 '07 #2

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

Similar topics

6
by: Gustav Medler | last post by:
Hello, there is a known problem with Opera and the execution of content shown in <NOSCRIPT> tag. Everythings works fine, if there is only one simple script like:...
9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
1
by: Terry Haufler | last post by:
I am trying to swap/rotate random flash banners using the following Javascript code. I have 3 flash headers/banners. I can get it to open a page with a random header using...
7
by: windandwaves | last post by:
Hi Folk I am trying to add flash onload This is the function I came up with: function makeflash(name, width, height) { //if (!DHTML) return; name = 'v/' + name + '.swf'; var box =...
0
by: crisscross27 | last post by:
Hi, I found a page called "myflashfetish" where you chan choose mp3 players for my space, well the problem is this, I wanted to place 2 or more players in myspace in a particular place, I read...
0
by: dolittle | last post by:
Hi, I'm embedding a last.fm flash widget. I want to be able to remove it from the page using javascript. I've tried to delete the html element that contains the code but it keeps playing in...
1
by: dosingh | last post by:
i've put this page together using asp, html, javascript amd flash. java passes a number of variables over to the flash file but the flash graph does not appear. The error which appears is...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.