ActionScript 2.0 :: HTML Page Opens Flash Site - Loads External Swf File
Jul 11, 2005
I have an HTML page with buttons. Each button needs to have a getURL to open the Flash site, but then somehow, needs to also load the appropriate swf into that Flash site... My reasoning is because I have some scripts under my site that need to be in HTML (or PHP) for search engines, that way I don't have to do the whole site in HTML.. I hate having a HTML index page, but it's the only solution I could come up with. So, when a visitor selects any of the navigation buttons, I don't want them to have to select that button again, when the Flash site loads. how to do this for Flash 7 / AS 2.0? Or if there are any posts here about it?
View 2 Replies
Similar Posts:
Feb 29, 2012
How do I redirect to a html page when my flash site opens in non-flash browser?
Here is the code I am curently using
<link rel="shortcut icon" href="/77east.ico" type="image/x-icon" />
<!--[if lte IE 8]>
<script type="text/javascript">window.location = 'ebrowser.html'</script>
[Code].....
View 2 Replies
Sep 28, 2011
I have a main.swf file. In first frame i load a background slideshow with this code:
[Code]...
My problem is that when the site loads the 1st time and click from the menu to go to the 2nd frame (1st content page) then i have to wait at about 3-4 seconds to load my html content. The same for the 3rd frame. If these two content pages load for the 1st time, then the pages open immediately. What can i do for this? Is there a way to open this content pages more quickly, or place a loader, and with what code?
View 3 Replies
Sep 22, 2009
I am using Flash CS4, I have been looking for a tutorial out there about full screen mode, but haven't find one, what want is something like this: http:[url].....I want the website, in html page to fit the screen as soon as the site loads, in, I mean as soon as the user enter the address in the browser, I want the sire to fit the screen like the URL provided above,
View 2 Replies
Aug 3, 2010
I have a little Flash intro SWF i prepared and handed off to a friend who is implementing my intro animation into an HTML site.... The problem is that once the SWF (intro) finishes, there is a short gap (blank white page) before the actual HTML site loads. Is there a way around this? Is this something i need to code on my side (AS3) or is this a problem for my HTML/javascript buddy to figure out......or both.
View 3 Replies
Jul 25, 2009
I have a .swf I'm inserting at the top of a page in DW. I have a button named "aboutUs_btn" which when pressed needs to load "aboutUs.html. That part works fine, but it always loads the page into a new window. How do I make it load into the same window? I could do this in AS2 with getURL and using _self. Here is what I have:
var aboutUsLink:URLRequest = new URLRequest("aboutUs.html");
aboutUs_btn.addEventListener(MouseEvent.CLICK,aboutUsClick);
function aboutUsClick(event:MouseEvent):void{navigateToURL(aboutUsLink);}
[code].......
View 5 Replies
Jun 25, 2009
I have an animated logo swf file that loads and runs once on the home page every time the page loads. The logo has been updated to appear in three different colour schemes. I want one scheme to load and when the page is refreshed or revisited, one of the other colour schemes to load in its place. They can appear in any random order, just a different one to the one that played before reloading.Can someone point me to an answer or tell me how to do it? I have found a way in JavaScript but this only works on plain images, not swf files.
View 6 Replies
Jun 11, 2010
[URL] Above is a link to view the project I'm working on. Once the site loads if you go to the "Contact Us" page the content doesn't load correctly. I'm using an extrnal .xml and .css files for the content. I'm also embedding the fonts dynamicly. If I test the file locally on my computer is works fine the image loads as it's supposed to and content looks correct. However when I post the files to the server (which work exactly the same way) I get the white box when you can see from the link above. I'm at a complete loss as to how to to fix this.
View 3 Replies
Dec 16, 2010
I am running an swf on my localhost and it loads another swf from an external site. It gives me the following error:Connection to [external site] halted - not permitted from [localhost]localfile.swf.I have included the localhost directory in my Global Security Settings, as well as the local file. swf, so it should be trusted and allow the external link.
View 0 Replies
Nov 8, 2011
I have a site that embeds 3 flash movies in an HTML page. The site works in all browsers on Mac and PC except IE 7, IE8, and IE9. (I'm not worried about IE6).
View 1 Replies
Sep 28, 2011
I load an external html content page through contents.xml file, in page.swf, which loads in main.swf like external file. The code of contents.xml is this:
Code:
<?xml version="1.0" encoding="utf-8"?><xml>
<content>
[Code]...
View 2 Replies
Apr 17, 2011
Is there any way I can embed HTML in flash? I know I can do this with text boxes but is there any other way I can do it? If not I know theres is the load feature where I can load text from a text file. With the html text box editing, Can i link that to the text file?. As in when you edit the text box with html could i have the textbox's instance name equal to the text file? With this my issue is with the <a href> in one textbox, I would like when i click those it open another text file in a different text box.
Clarification: I have two text boxes in my flash file.One has current products. And the other is the description of the product they select. I would like a way to edit and change the products in the first text box without having to keep using the FLA file. Which is why i am using this code
var myTextLoader:URLLoader = new URLLoader(); myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {trace(e.target.data);}
myTextLoader.load(new URLRequest("myText.txt"));
The contents of myText.txt are <a href=(not sure what to put here)> Product 1 </a> But all that does is put it in the text output section in flash.It does not show it in flash. I need help getting it to show up in a text box.That is the first part But the main problem is im not sure how to code the a href correctly so that when i click it, another text file opens in the second text box.So that when a user clicks on a product ,like "Product 1" It opens the correct description text file in the second text box.
View 2 Replies
May 24, 2004
I'm looking to create a popup which opens a "template" html page with an image placeholder. This way you should be able to send a variable from the swf and open up the same html page each time but the image would change as you change the variable from the flash button.
Basically I have flash page containing various thumbnails and when clicked, each one will open a larger version, but I dont want to make a html page for each one so rather 'send' the filename to the html page if this is possible?
[URL]
I was given this:
<html>
<head>
<title>Image viewer</title>
<script>
function loader(){
[code]....
I just basically want the swf file to decide which jpeg is to be loaded into the popup.html.
View 2 Replies
Dec 14, 2005
I have an html page with an .swf in it.when this page loads, i want it to play a certain section in my swf (which I have labelled).Is there a way for me to do this? using javascript?i.e. <body onload=( gotoandPlay (starthere) )
View 1 Replies
Jan 28, 2009
I'm creating a site that loads external .swfs as pages. I have little understanding of how Loaders and instance names work with AS3 (even after reading the documentation), so I'm having some difficulties.
I'm loading the .swfs in a movie clip named "container." I want to replace the contents of "container" with the web page .swf that the user chooses, but I don't know how to write the condition to:
a) check to see if something is already inside "container"b) remove the contents by instance name or method of MovieClip. I'd prefer to remove whatever is inside of "container" rather than switching cases for different instances.
[Code]...
View 3 Replies
Sep 15, 2009
So I'm wanting to create a DocumentClass that is willing to accept a variable for a path to an XML file, passed in from the HTML, like thisindex.HTML page would have this: mySWF.swf?xmlPath=xml/xmlFileName.xmlIn the FLA (SWF) I would have only a DocumentClass load a .AS file.In the .AS File I need to accept or read the paramater being passed in from the HTML page.
View 4 Replies
Mar 11, 2011
I want to set link of another html page on flash file.
View 1 Replies
Nov 26, 2010
I made a 'movie' in Premiere and exported as FLV., Its suppose to be a banner on the top of a web page. The site was made with Dreamweaver. When played locally, the banner does great. When I put it on the server, thats a different story. I can tell thats something is there because it loads the background color of the flash file but it doesn't play the FLV.
View 1 Replies
Mar 28, 2009
Everything is embedded in an HTML site. The HTML loads a preloader that then loads the actual flash movie. Inside this movie I created a few buttons, inside a scroll bar movie clip. I want the buttons to load a whole new movie inside the same html. The code I'm using in the button is simply:
on(release) {
loadMovie("new_movie.swf", 0);
}
The problem is that it works beautifully in the Flash movie tester but doesn't do anything when tested inside the browser, embedded in the HTML. I think the problem is that the HTML embeds as an object the first movie, the preloader for the menu movie, not the menu movie itself.
View 3 Replies
Nov 3, 2009
I'm working with a flash template that loads external images and text using an xml file. Everything works well the only problem is I've promised a client that as well as a "title" and "description" I will also include a clickable URL link. I can edit the flash to a certain extent but I am having a nightmare of a time including a clickable url. Is there anyone out there who can help? "photo_description", "photo_title" and "photo_url" are the names of the dynamic text fields.
XML snippet looks a little like this...
<title>Title</title>
<description>Description</description>[code].....
View 3 Replies
Mar 6, 2011
I am having a nightmare using CSS to style HTML within a dynamic textfield in my flash doc. From what i now understand after much trial and error and reading online, CSS doesn't even work properly in flash even for the tags that it does understand (which are few and far between anyway). For some reason my layout is getting completely screwed up in certain scenarios (predominantly when there are images present too) when i hover over links (which are styled in an external CSS file). If i remove the external CSS styling (which only contains the following simple code):
a:link {text-decoration: none;}
a:active {text-decoration: none;}
a:visited {text-decoration: none;}[code]....
Then everything works fine (but no links are underlined as standard or on hover). Does anyone know of any way to style the links without using an external CSS file (all i want to do is have no underline as standard and then underline them on hover). As this is from user input into a text editor I cannot place these links manually on the page in flash as they could be anywhere, I need a way of parsing the HTML and then displaying it accordingly.
View 1 Replies
Feb 18, 2011
I have 25 buttons on a page. Each page loads an external swf. How do i write for each loop that will have the same result, but instead of 25 different pages, it loads the same page with different text. I know the text can be displayed with xml. The xml is not my concern. The for loop is.
View 5 Replies
Nov 14, 2007
I have my main swf embedded into a html page, and what I want is that when a user selects a certain button it unloads my main swf and loads up a different one in the same HTML page.
View 1 Replies
Sep 27, 2011
I'm using the Flash CS4 IDE, and the first page of my site takes a lot longer to load than I want it to. So I wanted to go through the varied images / symbols / movie clips / sounds and so on to see where all the memory is being chewed up. When I go into my library, however, I can see the Name, LInkage, usecound and Type of my elements, but no mention of file size and I can't seem to find any right click menu that lets me add file size to the list of details being displayed. Is there a way to make it show file size? Or some workaround? And are there any best practices to reduce file size aside from using symbols for anything that's used more than once and reducing image and sound quality?
View 4 Replies
Sep 13, 2010
I have two SWFs on an HTML page. One loads fine and the other (loaded externally) apparently fails.
I get this from the server:
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
I get this when testing it locally in Safari:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
I don't really understand where the hick-up is... because my paths are actually quite simple. All my flash files on the website are located in the same folder. The first one loads in fine, but the one being loaded into it does not. When viewing the SWF by itself, everything checks out as well.
View 7 Replies
May 9, 2011
how to load external html page into flash? (AS3)
View 1 Replies
May 9, 2011
how to load external html page into flash? (AS3)
View 2 Replies
Aug 4, 2011
Does anybody know how to embed an external HTML page into Flash? I am envisioning something like an iFrame, but can't really figure how this would work. I've attempted using a scrollpane, but it didn't work at all.
View 5 Replies
Sep 3, 2009
I am having a strange delay issue when clicking on a button. My code is simple and is as follows:
fight.onPress = function() {
getURL("pages/pageOne.html", "_self");
}
stop();
-fight is the instance name of the button
-the code is in the actions layer as it should be
-there is no other AS within the animation
The problem is when the animation finishes and a "click here" button comes up, it takes several clicks for the button to actually work. It eventually goes to the url but only after multiple clicks, between 1 and 8. The hit box of the button is larger than the button itself so its not the empty counters in the letters or spaces between words.
View 2 Replies
Jun 23, 2009
We need to display an HTML page within a Flash executable file. We request the members of this forum to kindly guide us on how to go about it.
View 1 Replies