How Do I Embedded My Flash .swf Into An HTML File?
It's probably really easy, I just don't know how.
FlashKit > Flash Help > Flash Newbies
Posted on: 11-20-2001, 08:49 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Detecting The Html File That Flash Is Embedded In
I would like to have the flash movie know what html file it is embedded in...automatically. I will be resuing a flash movie across a web site, and you like the contents of the flash movie to be slightly different depending on the page.
If I could detect the html page's name or the url that would do the trick. Is this possible?
Thanks,
Dege
Why Does The Framerate Drop When Flash Is Embedded Into An Html File?
Hey guys,
Basically im wondering why flash runs at a slower frame rate (and consequentially slower animation) when you put the swf into an html file (for instance in dreamweaver). When i open the swf file directly i get perfectly smooth animation. But when i take the same swf and put it inside an html file in dreamweaver (with nothing but the swf on the page) the frame rate is noticably slower (from a solid 30fps to about 20fps it seems, still passable but i'd like it to be 30fps).
So im really confused about what's going on... I've posted a similar question about this before but i've never had a decent answer (some have said something about compression, although i dont understand why this would matter between a stand alone swf file and a html file, both on my computer, not on the internet). I would really appreciate it if anyone can explain this. I see people like red interactive and bigspaceship creating much more intensive sites that run perfectly smooth, so what's happening with mine?
Thx a lot!
Flash Music Player Embedded Into Html File
Hey there.
I have a webpage with a SWF, that is a music player, embedded into an html/php file. although it works fine when you load it seperately as a SWF, it does not load up at all when it is part of the webpage.
http://www.lightsmusic.ca/index.php?section=media
If you click on the option to listen to the song, either one will load an embedded SWF that does not load the song. As I said before, if you play it as a SWF on it's own, it loads fine.
n00b problem, I bet. However, why is it being like this? It's a streaming file that should work.
thanks much!
OnKeyDown Doesn't Work When Flash File Is Embedded In HTML
I am making a Flash game, that uses the following code for key recognition.
Code:
this.createEmptyMovieClip('_keyListener',1);
Key.addListener(_keyListener);
_keyListener.onKeyDown=function(){
if (Key.isDown(Key.SPACE)) {Reload();}
if (Key.isDown(17)) {RandomGravity();}
}
Try playing the game as a standalone SWF file and as an SWF embedded in an HTML page. The SWF file is identical in both cases. Try pressing Ctrl and Spacebar.
For some reason, the standalone SWF file works properly, but the embedded HTML page does not detect keys. Is there some extra code I must add? I've been trying to fix this for an hour now!!
Calling Window.open In Embedded Html In Flash File
hey people,
this one may sound easy but i've been having some problem with it for some time now.
i have a dynamic text field in flash that opens a html script inside of it. now in the html document which is embedded inside the text field i have links to various different websites that call a javascript widow.open command. (each link has its own window.open command) The problem is every time a user presses on the link it opens up a new window to the site like its supposde to but it also replaces the main flash movie browser with a error page.
I've tested it on both pc's and macs and this problem only occurs on pc's. on mac it works completely fine. i also tested it on
Path Of Html File Where .swf Is Embedded
hi everyone
i want to define the path or the name of the html file where a .swf file is embedded.
i can define the path of the .swf file with _url but when i use the swf in multiple html files, thats not really usefull anymore..
any ideas??
thanx
tobyy
Load Variables From Html File Swf Is Embedded In?
Is it possible to capture variables within the html page a swf movie is embedded in?
eg
.....
OBJECT
*PARAM NAME=movie VALUE="bobby.swf?variable1=1&variable2=correct"
*EMBED src="bobby.swf?variable1=1&variable2=correct"
OBJECT
HTML
thanks in advance
Is There A Way To Make An Embedded Swf File To Be In The Background Of A Html Doc?
Is there a way to make an embedded swf file to be in the background of a html doc?
I have a page that has a fly out menu. Written in JavaScript in an html file.
When the fly out happens it fly's out over but in this case under the swf area and it is behind the embedded swf file. This does not allow you to see or use the links in the fly out
Does anyone know how to make the swf file to be in the back allowing the fly out menu to be visible?
Swf Not Accessing Xml File When Embedded In Html Page
What i have is an swf which is basically a counter which counts from one number to another then starts again with 2 different numbers.
The problem i am having is that the numbers are pulled in though loadVars from a url string of an xml file. When viewed on my pc it accesses it fine and displays it correctly, however when i put it live it just doesn't display the numbers constantly saying that it is trying to connect to the url. It doesn't work either when tried on other computers, it only works on mine?
Any ideas?
Printing An Embedded .swf File In A .html Page
not sure which forum to ask this....so this question may appear in other forums as well.
I have a web page that I built in DreamWeaver using CSS. On this webpage I have a .swf file embedded in one of my <div> tags. When the user hits File>Print, I want only the .swf file to print and not the other areas (i.e. header, footer, nav bar etc.) of the webpage. The following website does exactly what I want.
http://www.chevrolet.com/avalanche/colors/
Can anyone point me in the right direction to solve how to do this?
thanks!
D
Loading Variables Embedded In Html Page Containing .swf File
Based on a key code sent out in email messages, variable values will be determined by a data source match and can be written in ASP in the embed or object tag parameters of the page that contains my .swf file. How can I acces these variables using Actionscript?
thanks in advance,
Sean
Embedded Swf File Or Movie Clip That Can Open Html
Hey, i'm doing a website right now that so far the layout is entirely in flash. What i'd like to be able to do is have the content section of the site (the part in the middle) a movie clip that is opens an HTML site inside of it. What I have now is a top bar, and a navigation bar at the left,
http://members.shaw.ca/lyfe/retail/Untitled-1.html
So i'd like to be able to load an html file into the middle section. There are several reasons for this. First, it makes it so others without flash or flash knowledge can update the content, and will also separate the website into modules instead of one big swf.
If this is not possible, was thinking about starting in dreamweaver, importing the flash buttons, and somehow connecting those to the content section of the site.
Can someone please direct me to a post, tutorial or something else that could help me mix HTML and flash? Thanks!
Should I Embedded A Swf File In Html Page In Order To Solve This Problem?
I am having a problem getting a background sound to play in all the web browsers.
Actually what I would like to do is a sound should be played auotmatically once a web page is loaded without clicking on anything to play the sound. I have used the <BGSOUND> tag and this is only works fine in IE, not for other web browsers. So to solve the problem, I have tried a way which is imported the sound in flash and save as swf file then embedded the swf file in html. So could I use this way to do it or is there any way beside this?
Hope someone could give me some idea.
Thanks in advance.
Should I Embedded A Swf File In Html Page In Order To Solve This Problem?
I am having a problem getting a background sound to play in all the web browsers.
Actually what I would like to do is a sound should be played auotmatically once a web page is loaded without clicking on anything to play the sound. I have used the tag and this is only works fine in IE, not for other web browsers. So to solve the problem, I have tried a way which is imported the sound in flash and save as swf file then embedded the swf file in html. So could I use this way to do it or is there any way beside this?
I have tried one example which I have embed the swf file into hml page. But the problem is no sound is played when I opened the page. Below are the code for HTML and action script.
HTML Code:
<html>
<head>
</head>
<body>
<object type="application/x-shockwave-flash" data="testing.swf" width="0" height="0">
<param name="movie" value="testing.swf">
<param name="quality" value="high">
</object>
<title>Testing with sound</title>
To play a background sound.
</body>
</html>
Code:
var dlg:Sound = new Sound();
dlg.loadSound("Testing.mp3", true);
Hope someone could give me some idea.
Thanks in advance.
URGENT: Flash Navigation Embedded In Html That Link To Frameset Content In Html
Hi all,
I want to build a website that consists of a menu navigation (made in flash but embedded in a topframe in dreamweaver. On the left site, there would be some flash animations (images etc.)embedded in the leftframe and in the right/main frame, there would be either flash content or html content (depending on the content). The menu bar is made of 7 buttons; when you mouse over a button, you get a scrolling menu with different items, those buttons items have a rollover effect and when you click on one of this items it will load either a flash or html content in the right/mainframe of my dreamweaver site. My question is what is the best way to build this navigation bar so that when i click on one of this item, it will load the correct content in the right/main.frame.html. When this occurs, i want that the scrolling menu still displays while the content is loading so that when the visitor have seen the content, he just needs to click to another item to load the content (so no ectra step). Please help me with this as it urges.
Be clear in your responses as i am not a pro of actionscrit!
Many thanks, lineda
Flash Embedded In HTML
I am new to Flash & was wondering if anyone out there can help me... I would like to embedded a .swf file to an html and I also need to take it to the home page after it done playing the file. Thank you in advance for your help.
Please Help: Embedded Flash In HTML
I have read several topics about embedding flash in HTML and I feel that I have chosen the best way to my ability. BUT, it is centered appropriately in Internet Explorer and Safari, but not Firefox.
***if you dont want to read my progress in trying to get it centered, just go to bottom***
Begin story (ill write it as briefly as possible)
First I used Flash's built in menu to publish to a 100% by 100% window. This successfully embedded my flash file into html, BUT some users experienced that the flash movie would never launch when I used this method.
I solved this by installing a flash version detection object that I found while browsing this site. I can't remember its name, but you can probably figure it out by viewing my site's source code. After following the tutorial, and cutting/pasting code... everything seemed to work EXCEPT..
Now with this flash version detection object, I had to place my code for embedding the flash movie inside of the code of this detector... the code that I used for the 100%x100% fit would not launch the movie at all now. So I reverted back to simply adding the flash movie without any formatting (Insert>Media>Flash Movie). This version worked perfectly in every way, but it would never center in the window. I've tried changing the variables in the code to 100% x 100% and changing the alignment tags to center.... but none of it had an effect. The closest I got it to be centered with this detector was if the entire movie stretched to fit the screen.
*** End story ***
Would anybody mind checking my source code to see if I have anything that is redundant that may be screwing up the formatting?
http://www.yoelinphotography.com/main.html
Thanks so much for reading
Flash Embedded In HTML
HI!
I was wondering if it is possible to detect wether the mousepointer is hitting a flash movie or not: elsewhere in the HTML page. The movie im making needs to be flash 5 though.
plz help!
Jan
Can You Load HTML Into Flash If It's Not Embedded?
I was just wondering if it is a limitation to use an swf file alone as a homepage.
I like how it fills the entire page when it's not embedded in HTML. However, I want to be able to call up text with the load text action. Is that possible if the swf file isn't embedded in HTML? Can you do pop-up HTML windows from a stand-alone swf file? Thanks
HTML PAGE Embedded In Flash? Since When
Okay I have just been wiewing a flash website over at
http://generals.ea.com/english-full/launch.html
And they have an HTML page embeded in the actual flash movie.
The embeded file is:
http://generals.ea.com/english-full/arc7-2002.html
I always thought this was impossible. Is this a new feature in MX?
(I would have done a search first, but the search feature seems to be down )
Html, Embedded Flash, No Border
id like to place my swf in the upper left corner of the browser. there's normally a ~10 pixel border. possible? how? thanks a bunch.
HTML With Embedded Flash (.swf) Problems
I am building a website that just has a little flash animation embedded into it. The problem is that my .swf isn't displaying...I can place it on my drive and it is fine, but on the server it doesn't work. It displays an inactive grey box with inactive scroll bars. Any ideas? Also, are my codebase/pluginspage attributes correct? I've attached a pic of how the page is displaying. Thanks in advance...Here's how i have it embedded:
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" width="75" height="73">
<param name="movie" value="AAFCS_a.swf">
<param name="quality" value="high">
<param name="LOOP" value="true">
<embed src="AAFCS_a.swf" width="75" height="73" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
Another Embedded Flash / Html Thread
Sorry in advance, I'm sure this question is very trivial.
My flash movie is the perfect size in my browser when it isn't embedded in html.
But, I'm trying to embed my flash movie into a table. It works perfectly, but when the movie is inside the table, there is now a one inch gap on the top and bottom of the movie.
I want it to stretch all the way to the top and bottom of the browser, just like I have it set without html.
The table is set to 100% in height with no border. I'm using dreamweaver to insert the flash .swf into the table.
What am I doing wrong?
Thanks in advance.
Flash Embedded In HTML In AJAX
Hello, I am wondering if it is possible to hover over navigation options on a webpage and have a span tag change its content to a flash SWF (implemented with AJAX).
I can get XML programs to fill the span tag and they are formatted with XSL.
Cannot get flash in HTML to work though - would I need CDATA blocks for this? just a guess.
Cheers anyone
Accessing Embedded Flash In Html
i have embedded a flash file in html file. flash has audio. in html i will have a button using which i have to make audio of flash on / off. please suggest.
Flash Embedded In Html Won't Work
Hi, I have been trying to make a html file containing an swf work on my website. both swf and html are in my public_html folder, the swf works on its own and when I substitute the swf name in the html file for a different swf that one works. Obviously there is a problem with the swf file. It is quite big (2.7MB) and there are a couple of error messages associated with it (because database is not set up yet) but as I say it works as an swf on its own.
Sorry for the rambling question but can anybody help me? Its for a project for college!
Why Can't I See HTML Below My Embedded Flash Object?
<table border=0 cellpadding=0 cellspacing=0 width='100%'>
<tr valign='top'>
<td bgcolor='#000000' height=61 align='right'><img src='lifestyles.jpg' border=0></td></tr>
</tr>
<tr valign='top'>
<td bgcolor='#FFFFFF' height=58 align='right'><img src='labatt.jpg' border=0></td>
</tr>
<tr>
<td align='center' background='background.jpg' height='448' valign='top'>
<!-- URL's used in the movie--><!-- text used in the movie-->
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="800" HEIGHT="448" id="start" ALIGN="">
<PARAM NAME=movie VALUE="start.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="start.swf" quality=high bgcolor=#FFFFFF WIDTH="800" HEIGHT="448" NAME="start" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</td>
</tr>
<tr><td background='bot_clouds.jpg' height='67' valign='top'></td></tr>
<tr><td valign='top' align='right'><img src='keys_logo.jpg' border=0></td></tr>
</table>
Can anyone tell me why I can't see bot.clouds.jpg or keys.logo.jpg? It works perfectly fine in NS6 but I can't see the lower rows in IE. This is really frustrating and I can't seem to figure out why. If you comment out the flash file it works fine. Any thoughts?
Thanks for the help!
You can see the live version here. URL
Importing HTML-embedded XML Into Flash
Hi,
does anyone know if it's possible to have HTML within a XML document, and then get successfully imported into Flash?
For instance, one of the XML nodes to have a hyperlink to another website...if Flash is parsing the XML, wouldn't it treat the hyperlink tag as another node?
Are there any good tutorials or online guides regarding this subject?
Thanks in advance to anyone who can help with this
How Autorun Html-embedded Flash Site From CD Rom?
please help!
i am trying to get a flash website embedded in html (splash.html is the first page to open) to auto open when a CD rom is inserted. i am building this page on a mac, but want the CD to run either on a mac or pc.
i don't know if the [autorun] file will work with an html page, or if the file extensions are the same for a mac...
any help would be greatly appreciated!!
Embedded/importing/whatever HTML (and Javascript) Into Flash
Hi, me again.
I have this script for a mailing list that I had on a basic html site:
<script src=http://www.lavasoft.dk/inet/hotlist.nsf/showButton.js?openagent&listname=WonderBrass></script>
Now, I'm in the process of turning the site into a snazzo Flash site. Is there a way to have this mailing list in a Flash file?
Thanx in advance...
Flash Embedded In Html Screwing Up O Scroll
I have embedded Flash into an htmldocument, but when I scroll down the page, the flash image is out of place and duplicating.
to see what I'm talking about visit: http://www.vip-llc.com
I'm using Netscape 7.0
how can I fix this?
Embedded HTML To Display QTVR In Flash -- HELP :D
Hi everyone,
Here's my problem:
I'm working on a series of marketing pieces for a client of mine that specialises in virtual tour hardware and processing software that exports its final images as QTVRs. Anyway, they're insistent on having this piece built in Flash, but I also know that it's impossible to embed a QTVR in Flash and have it work. So I've resorted to embedding the VR in an HTML file, that I would in turn embed in my Flash movie; likely in external movie clips.
My question is: what do I need to do to accomplish this, from a coding and layout point of view?
TIA!
Xenon.
Flash Content Stripped From Embedded Html
At work we have been sending html emails to our clinet with embedded flash animations. Suddenly these are being stripped out when it goes out of the building. Internally they still play within the email. outside the link to the flash file still works but won't olay as part of an embedded html email.
Any thoughts?
[F8] Preloading Html Pages With Flash Swf's Embedded?
I'm having a tough time as to what to search for so here goes- I have an index.html file with a swf embedded-it has it's own loading bar and is 700k. There is another portfolio page with a giant (3mb)swf embedded.
Is there a way for me to start loading the second page while the first page is playing?
thanks a ton
Html Navigation For Embedded Flash Movie
I have a flash movie embedded into an html page and would like to build three html buttons in the html page to use to navigate the flash movie. I have read some things about using a query string. I think this may be the way to go because I want to keep the flash movie as flash5. Any help? If I should use the query string then how do I do that? I have found things online but they do not explain how to use it very well.
Mouse Moving Outside HTML-embedded Flash
There's no way to tell if the mouse has moved outside of a flash movie residing on a webpage, is there?
I know the _xmouse and _ymouse values take on the last reported position of the mouse....
HTML Embedded Within Flash Or Vice Versa
I was wondering how I would go about this. To incorporate a small HTML page within a flash movie. basically I want the HTML page to be surrounded by the flash content. Or, is it an HTML page that incorporates flash. How would I do start this? I know this is possible I was just wondering how I could do it? Below is an example of what i mean. the text content in the middle is all HTML.
http://www.2advanced.com/realtybid/flash_index.htm
Thanks
Resize Flash? Embedded Within HTML (Firefox)
I'm having a problem resizing Flash movies displayed within a web page viewed using 'Firefox' I'm new to the game, so forgive me if I'm not too clear... I'll try me best Viewed with 'IE', I can get an embedded Flash Movie to resize/scale when the browser window is resized. Yet after recently trying 'FF' as a browser, and liking what I saw, I am keen to have my site compatible with 'FF' and other browsers.
Right, my problem...When I have the movie displaying/scaling on browser resize in 'IE' embedding at 100% of browser window, it all works fine. When viewed using 'FF' (and maybe other Mozilla browsers) it seems to want to resize horizontally. It's the vertical or 'height' where I think the problem lies.
I have done a fair bit of searching via Google and site specific searches (using Search plugins in 'FF' ) and only found a few clues... I'm new to the game remember The little I have learnt trying to solve my problem is that 'IE' is either forgiving or does too much for you... Or it could be that 'FF' is not as forgiving, or does too little I think it's something to do with 'FF' needing to know - "100% of what?" But as I said, I get a hint that 'FF' is taking note of the 100% width. Yet seems to ignore the height. (So I ask - "FF, why do you take note of width% yet ignore height% )
I'm starting to repeat myself... have a look at this little example:-
Click Here - Take no notice of added height that makes scroll bars appear (free host's banner)
I hope to have a little feedback on this. As I'm sure this problem may of been solved endless times in this forum, there seems to be no clear explanation (that I can find) which clears it up for novices and professionals alike.
[Example files inclueded]
Help will be apreciated
How To Load Text Contained In Html Where The Flash Is Embedded On?
Hi, I need some help on a project basically the idea is that if the flash is embedded onto a html and I will have some text within the html codes...is there a way that I can use the Flash to extract those text to be used in the flash movie automatically?
Any help is appreciated!
Controlling Text In Html From Embedded Flash Movie?
I want to build an html page that will have a embedded Flash movie displayed within it so that I can scroll up and down a number of thumbnail images and then when one of the thumbnail is selected the html will display the text associated with that thumbnail description. The emphasis is that this text should be displayed within the html, not within the Flash movie.
I need to keep the whole thing meeting Accessibility guidelines so I want to keep the text on the html part of the page and know that this should be possible. BUT - I am also sure that this will mean me starting to learn php or further xml or something and it would really help if someone could point me in the right direction - at the moment I am not even sure of the correct jargon/words to use to search tutorials. If you haven't a clue as to what skills are going to be needed to achieve something, its hard to then find the help and training needed to acquire those skills!!
Any direction very gratefully received!!!!
Embedded Flash Menu Causes Html Pages To Jump
I have inserted a flash menu into the html pages in my website. I am using the same swf file and ebedding a variable name in each page eg. "menu.swf?x=about".
I then use a conditional statement in the actionscript to determine which page i am on eg
else if (x == "about")
{
mc_menu.about._alpha = 50;
}........
All is working well except when you click a button to change html pages - the page flashes and jumps. Also in IE i have to click the button twice.
The code behind the button is;
on (release) {
getURL("index.html");
}
I would appreciate any help!
How To Let A Flash Movie Embedded In HTML Start On MouseOver?
I've made a simple FlashMovie and embedded it in HTML within a layer:
<div id="layer">
<object width="100%" height="48">
<param name="movie" value="cyclersdef3.swf">
<embed src="sunmovie.swf" width="200" height="148">
</object>
</div>
The layer is hidden, only on a certain command (MouseOver) the layer is made visible. I would like to make it so that at that time the clip starts playing and when the layer is hidden again the clip stops playing. Could anyone tell me how this can be done?
Dropdown Menu In Html Is Hidden Behind Embedded Flash Object
i have a dropdown menu which happens to be positioned above a flash banner in my html page. When i hover over the menu option the dropdown is hidden behind the flash. What do i need to do so that the html elements ie the drop down menu options sit on top of the embedded flash? Thanks in advance.
|