ActionScript 3.0 :: Present An Swf File From Html?
Jun 10, 2011
Which is the best way to present an swf file from html?Is it better to embed the swf file directly into the html page, or is it better to <a href= > it from the html file?
The site I'm making uses a tabbed navigation and MooTools to fade the pages in and out. One of the pages has a Flash player embedded on it, and all of the others consist of pure HTML. The problem occurs on the HTML pages -- somehow the Flash player is causing the HTML pages to display oddly. Vertical borders and text will be jagged in the same locations of the top and bottom of the player.!
I have a flash (.swf) movie on the homepage of a website which runs automatically after been downloaded to browser. However this is creates problems since the swf soon crashes(with message :The Adobe Flash plugin has crashed) and gives error messages like "A script is becoming unresponsive...." Since rest of my site is pure html and js but flash content makes the site very sucking and I want to replace it with a simple better alternate. What options exist for me to replace flash content?
I am thinking of creating an app which will read the contents i mean the library of the fla/swc file and use it to check whether the items present in that swc/fla is used in as3 project.... can do it manually... but wanna automate it..
The issue is loading data from an XML file and having it present in a Flash website. Its a 'book review' thing (i've altered the XML and AS3 for posting here, so the XML looks a little like this:
I'm loading a external text file to flash and according to the number present in the text file i'm trying to do a IF - ELSE command. It's not working coz the value I load from the external file is string. How can i get this as intiger.
I have created a flash website that looks like this (see below). When you click on any of the menu buttons (home, architecture, etc), the menu bar stays stationary while everything else slides horizontally. The title of the page (black with yellow outer glow) scrolls horizontally as well and stops as you see here to show the next page has "arrived" or loaded. There is no page loading or timeline jumping in Flash. It's all programmed for the menu buttons to trigger the entire site to start moving.
My problem is trying to figure out the best way to show images for the portfolio. Each page will have pics depending on the category, and I am wanting to display them as best as possible. I considered using a Web Gallery made through Bridge, but it makes an HTML file that won't slide like the rest of the site will. I am needing the images to slide as well like the rest. Because of this, the images at some point have to be Movie Clips so the script will move them accordingly.
Is there any way to have the images as MC's, bring them into view, and then somehow make them clickable that starts up LightBox2 or a Bridge-made Web Gallery of those images? Or am I screwed?
I am a newbie to Flash and ActionScript 3.0 platform. I don't know whether this is the correct place to post this kind of queries/problems/issues here. Till now, I had posted only basic flash issues here in this forum. I feel this is the most powerful issue which created head-ache to me till now. I spent nearly 4 hours working with this issue. But, I don't find any solution even in google.I have created a swf file, which when gets executed, gets data from backend database and displays as items in Combo-box. In swf file, if we select an item from Combo-box, collects data from database and gets back to flash and displays them as items in Combo-box. Each item has a specific image(.jpg file)associated,which gets displayed on stage of flash file(.swf file) upon selected from combo-box.
I am calling/invoking the flash file, When I click on a Button/select a tab created within my Java application.But,when the button gets clicked/tab gets selected, Combo-box is visible in flash file, but with no elements when we try to click upon it and the following error is getting displayed in a dialog-box:Title of the error is: An action-script error has occured.[URL]
I was reading about Flex- JavaScript communication via ExternalInterface.But I had a doubt, it said that the javascript code should be written in the HTML file of the application ? Now which is this HTML file ? Is it the index.template.html file per project or the HTML file created per MXML application ?
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):
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.
What am I missing here because my video doesn't have any controls? Is there a special parameter I need or do I need to encode the SWF file in a special way? I just used a MPEG to SWF converter provided by Blaze Media Pro.
I want to make div into my intex.htm file (already built site) to place in a .swf file that will cover the whole screen, and a few seconds later the animated page will disapear and the htm page will appear. I don't want to make different htm file, neither put a button on flash(ie on click...). I just want after a few seconds and after the flash has ended, the flash will go away and the page will appear.
I have a application developed in flex deployed on server. In the application data is filled by user and saved in cookies so as to be available even when the user closes the application. However if new version of application is released the user can still access the older version saved in the cahe. How can it be assured that whenever a new version of application is released the application is loaded from the server and not from the cache and at the same time data saved in the older version (in cookies) can also be accessed in the new version.
I'm having some problems inserting my ammap into my webpage. I've read through the documentation and it isn't helping. The map works with if I use the .html file in my original folder but all the paths are relative and I'm trying to make this work in an ASP.NET MVC project using visual studio. It's rather tough to explain the problem since I don't know what's wrong (no javascript or flash debugger).Here is the code that embeds the ammap:
Let me give the context first. A user opens a local html file which has a reference to a network url of an swf file to embed.
(1) If the embed swf requests a local image file , will Flash allow the request? ( 2) If the embed swf requests an image file on a non local url other than one of the swf file, will Flash check a crossdomain.xml file on the url?
This code works perfect when testing, and it works perfect viewing the SWF, but when you view the HTML file with the SWF embedded, it doesn't display the text file content.
within a few banners that I'm realizing I insert a variable, clickTAG, as a step in the url of the landing page after the click.Because the variable changes, I would like to capture this variable externally to externally store how many times you see a banner and how many times you see another.I like using some language asp, php or javascript to extrapolate outside this value?
I have a file full of text; if this were html, I'd just make an iframe and in the frame, I'd have the text page with "back to top" links throughout. But since this is flash, I'm loading an external text file, and I'd like some "back to the top" links within it. I know how to do a "back to the top" in html, but it doesn't seem to work in a loaded text file in flash. Or is there a better way to present a lot of information in flash?
I have trouble passing a variable from HTML to Flash.I use swf-object2.2.how to code the variable in the html-file and how to receive it in the as-file?Its a simple shopId = 110
I am trying to send a function to my SWF file via a HTML file, and every browser works fine except for Internet Explorer.The test file is supposed to animate the graph when you mouse over the word click, and come to a halt upon mousing off of it.Here is the example URL:[URL]
*** begin *** <script type="text/javascript"> function sendToActionScript(str) { document["accelachart"].sendToActionScript(str); }</script> <a href = "#" onmouseover="sendToActionScript('fast')" onmouseout="sendToActionScript('slow')">click</a>
[code]....
Like I said before, it works on all browsers I tested (Chrome, FireFox, Safari) except for IE (7 or 8).
I have a flash file using xml to link to html pages all within SharePoint. When I click on a link from inside flash, it opens up a new browser window with the html content.Is there a way to open the html content in the same browser that the flash file is in?
I have a task to upgrade a web site. I have a map of ND with some cities on it. I needed to add a new city to the SWF which did not seem to be hard (asuming I did it correct). The action on all the buttons for each city look like this except the name after the # is the city selected.
on (release){ getURL("locations_info.html#minot", "location_content");} In HTML code snip that controls this looked like this : <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
when I click continue shopping paypal sends me back to the swf file and not the html page is their a variable or something on paypal that directs it to send it to the html page instead
I want to read in a HTML file and format with a CSS file.I'm using MX2004.From what I've read, this should be possible?I'm getting stuck at the first obstacle, I can't figure out how to read in the HTML file.THe use of the CSS styling seems to be straight forward.