ActionScript 2.0 :: Show HTML In Flash?
Apr 11, 2010i need to show HTML in Flash
View 1 Repliesi need to show HTML in Flash
View 1 RepliesI asked a question last night and got an answer almost instantly. LOVE stack overflow!I am working on the same site and the other day I was on a computer and the uploader script was not working (uploadify), I was frustrated and looked through the code and everything was fine, worked on all other computers, then I decided to check if flash was installed and it wasnt.
Is there any way to check if the user has flash, and if they dont somehow say that on the page? I know for Javascript there is a tag, but is there something I can use for Flash?
There are various ways to show flash(swf file) on html, for example, object or embed tags.I want to support IE6-9, FireFox3-, Chrome, Safari, and as many other browsers as possible.(especially IE6-9)But I also want to use simple tag as possible.What is the best way to write html tag to show flash(swf file)?
View 2 RepliesI am using jcupload whats nice is all i need to write is the below and the flash+js does the rest
<div id="jcupload_content"></div>
However this is the ONLY flash on my site. If the user doesnt have flash (think ipod) i'd like to fallback to an html implementation. How do i do it? I know logically ppl wont be uploading via ipods but if i were to play music i can use a flash audio player fallback to html5 audio in that case.
You can build apps in HTML using Adobe AIR which parses it using Webkit, can this be done in Flash?For example you have a string that contains <html><body><b>hello world</b></body></html> and then call a function that runs the WebKit parser over it and then outputs 'hello world' in bold to the stage?
View 2 Repliesi'm developing a web where i want to show a flash on the index page. The flash got 3Mb size. But while it is downloading, i just see a white space where it should be.
I have tried putting an image in the background, but i just see white until the flash is fully downloaded...
I would like to see the first image of the flash, or an static image while it is loading?
im just putting it in the direct way
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="899" height="138">
[Code].....
I've created a full screen flash website. When I test the file in flash, its all good. Now I need to put it online to show the client, but whenever I try to do this...all I get is a black screen. Even if I use Flash's own Publish as HTML option, all I see is a black screen. the code on my main timeline is like this:
[AS]
import caurina.transitions.Tweener;
import caurina.transitions.properties.ColorShortcuts;
import caurina.transitions.properties.FilterShortcuts;
[code]....
nothing is wrong when I test the actual SWF from Flash, or even just open the SWF in windows...
I developed something in flex. It works great on FF and Safari. But on IE the "swf area" remains blank until mouse moves over it. I am embedding it like that:
<object height="100%" width="100%" id="myApp">
<param value="example.swf" name="movie"/>
<param value="high" name="quality"/>
[code]......
I'm using the following AS3 code to load an external swf (one with dimensions I don't like) into another swf. When I view the loader swf while embedded in a html page nothing is displayed even though the loader swf displays the nested swf without a problem in preview.
package
{
import flash.display.Loader;
import flash.display.MovieClip;
[Code]....
If I substitute the name "loaderSwf" with the nested swf name it plays fine. It seems as though the local html page does not like the fact that I'm playing a swf through another swf.
is it possible to get <tables> from a external HTML file to load in flash? I've searched google like crazy and everywhere I see they say it can't load the tables from the external HTML file..
Is there maybe a way to cheat in this? or make something that will look the same?
so apparently with the new update in IE8, it starts up with NO add-ons. Since I cannot program a code to turn on add-ons in a browser, I need to show a message when this occurs. Much like an image has alternative text in the event the image doesn't load...how can I add a message that states:
You are using Internet Explorer 8+ and need to turn on your add-ins like FLASH Player. This site is optimized for Mozilla Firefox or Google Chrome.
Let's say I have a plain HTML website. More than 80% of my visitors are usually from search engines like Google, Yahoo, etc. What I want to do is to make my whole website in Flash.However, search engines can't read information from Flash or JavaScript. That means my web page would lose more than half of the visitors.So how do I show show HTML pages instead of Flash to the search engines?
Note: you could reach a specific page/category/etc in Flash by using PHP GET function, for example: you can surf trough all the web pages from the homepage and link to a specific web page by typing page?id=1234.
the thing i'm searching for my site is something that can show, and after 10 seconds, hide some html.Exactly is for a games site. I want to show ads during 10 seconds, and after this time, load the .SWF file of the game.During 10 seconds i want to show the window of the ad in the center of the field where later the game will be displayed. It's like a 700x500px window.One of the problems is that the ad window maybe 300x200px and i want to put it in the center. It's like i want to make a scene of 10 seconds with tha ad showing like the game is loading.I beg you to answer in a begginer level, i'm not expert in scripts, just know some html, that's why i'm a bit overwhelmed with the info i found in the net.
View 1 RepliesCan Flash hide/show a DIV-Layer on a html-page?
View 16 RepliesI have a movie clip that displays an embedded html with a bunch of divs that are expected to hide and show other divs when the users click them. i.e. imagine that you have a span with an instruction in javascript to show a div when you click it. I already made the html file, the external css and the external js. The movieclip (in actionscript 3.0) loads and displays the html content and also the css, but i haven't managed to figure out how am i supposed to link or use the javascript to do the trick. I've tried so far doing an exhausting research over the internet for the past few days and the only infromation i've got is that web developers use externalInterface to access javascript functions, but they use flash buttons to execute the js code, and it appears to me that i cannot use or embed flash btns in my site. I don't know, I'm kinda new to flash and this is the first time I work with actionscript 3.[code]or how do I achieve de hide/show thing with another method? I'll be wandering around the site in case you have any extra doubts about this subject.
View 2 RepliesI don't have a clue on what I'm doing wrong. Sometimes, when I open this page my html page , the swf don't appear. It won't happen always, but is really frequent.Important: when it don't appear, I do can hear the sounds that the swf movie makes. In other words, I'm shure that the object is on the page, but it just won't be visualizable.The error occurs on Firefox and Chrome (I didn't see it happening with IE, but I won't doubt that it is possible)The problem isn't in the swf because I have already tested with another file that have no code at all and the same problem occurs.Here is the page's code, generated by Flash CS5.5 when publishing the swf:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
[code]......
I was recently testing the Amazon MP3 Widget on my site. It was not appearing and I realized it was being blocked by my ad blocker plug-in that prevents cross site flash objects. I want to know if there is a way to tell people that they are missing this content. It seems like the ad blocker simply removes any embed code. What can I do to tell people they might be missing something they actually want to see. I'm hoping there's something similar to the no script tag, but I'm assuming its more than that.
View 1 RepliesWhen i create a menu, the dropdowns go behind the flash element. But in some sites, like Digg, it is shown above. z-index is of no use
View 2 RepliesI want to show PDF in Flex AIR. I have done this with HTML components but the problem is that whenever I view the PDF in Flex HTML component the popup or Alert goes behind the component.
how can I show the Alert on HTML component?
is this possible? i have a box with falling stars and i want the stars to fall out of the box and be visible in html.
View 5 Repliesi created a slide show with buttons, when i test it in flash it works correctly but when i put it in a html page, it does not redirect you to the page when you click on it.
View 2 Repliesgetting a button in a SWF to hide and/or show DIV layers in the HTML page the SWF is sitting in.
View 9 RepliesI'm using Flash CS5 , Actionscript 3.0 and export fo Flash Plaer 10.
I create a class, myHtmlText.as, that builds a basic TextField. I create an empty file myHtmlText.fla I embedded two fonts inside the myHtmlText.fla: "Ghotam Light" and "Ghotam Book"; I selected all characters for each font and exported for actionscript with the following linkage name: "GhotamBook" and "GhotamLight"
I wish to use the fonts embedded, in the TextField using htmlText, like this:
var tf:TextField = createTextField(10, 10, 400, 22); tf.htmlText = '<p><font face="GhotamBook">Lorem ipsum dolor sit amet.</font></p>';
//tf.embedFonts = true;
[Code]....
but it does not work; the text is not displayed; If I use .text instead fo .htmlText, the latin text is displayed with a system font.
I want to show a local html file into my application but I could't find to do that.
I used <mx:HTML> component with using its location property but it is not working when I try to do it with a local file which is in applicationdirectory.
EDIT: Here is my code :
<fx:Script>
<![CDATA[
private function init():void {
[Code].....
I'm currently learning to make facebook apps with Flex from here:[URL] I've done step 6 in "Upload the application to your web server" section which is to upload the Flex files in bin-debug folder via FTP and run it, but the facebook apps just doesn't show on the webserver I use. here is where I uploaded the files:[URL]I can't locate the problem, is it because the webhosting or what?
View 2 RepliesI was new to Adobe flash, and I am design a webpage which provide a flash game. Then when user play the game it wil have highscore, so I wanna ask how I can pass the value of score and show at my website?getURL("includes/theme/submit.php?game=" + myid + "&score=" + varScore + "&theme=" + themeid);
View 0 RepliesI have made an mp3 player where xml data is shown in an dynamic textbox in flash movie. It is correctly showing the html links in text box.
But I want that when user clicks the link of a song, it should open the artist image in an image-holder. How can I do that?
I have made an mp3 player where xml data is shown in an dynamic textbox in flash movie. It is correctly showing the html links in text box. But I want that when user clicks the link of a song, it should open the artist image in an image-holder. How can I do that?
View 5 RepliesIn most browsers, when you have one in focus and you type something, the combobox will try to find the value within its options and show the closest one. I was wondering what kind of algorithm is used for that.I don't think its Levenshtein or similar since it only works with the beginning of the string.I'm thinking that it works by keeping a buffer of what has been written, and tries to find a string starting with that... if it doesn't find anything, it clears the buffer, and searches a string beginning with the last character pressed.I already prototyped this, and it works quite ok, with one caveat... In HTML, when you repeatedly press the same key, it will rotate between all options starting with that character.
View 4 RepliesAnyone know how I can go about doing this:
I want to create a sort of slide show with several SWFs and 1 html page. The SWF itself has FORWARD and BACK buttons (its a long story, but I can't just have FORWARD and BACK coded in the html), and upon hitting them, i would like the SWF to call another SWF to replace itself. (again another long story, but each SWF has a low size maximum, which is why I just cant make the entire thing one large SWF).
Annnnd, to make it all smooth and easy, I would like the forward and back buttons to be coded not with the specific SWF that they are calling, but rather with a function which will determine which SWF is currently displayed and then call the appropriate next or previous SWF from an array or list....