HTML inside flash
I am trying to display a html based weather widget inside a flash asctinscript 2 file using CS3.
Can anyone point me to a tutorial on this?
Forrest
kglad, would it be possible for you to look at my other posting called,
Loading a swf into a swf
That is the proper forum for this discussion. I have posted my files there in a zip format.
My yourwidget.fla (or in the my case, palm_springs_2.fla), has 2 scenes. When I use my loadMovie in my "Test load.fla", it loads the preload scene and not the main scene. However, when I remove the preload scene from palm_springs_2.fla it will not load the main scene content either.
I am using an empty movieClip (with a instance name of "empty_mc") to load the incoming "palm_springs_2.swf" and using the code;
empty_mc.loadMovie("palm_springs_2.swf");
If I use "empty_mc.loadMovieNum("palm_springs_3.swf",1);", I get nothing at all.
I know I am missing something. If you are able to look at this code I would really appreciate it.
Forrest
Similar Messages
-
Open html inside flash it´s posible?
open html inside flash it´s posible?
I've been trying to create a link in flash8, to link to an
html page the whole week, no success at all. I dont think anyone in
this
forum's got any answer to that. When I run the swf file alone
it works but as soon as I import it into Dreamweaver, all links to
an html file created in flash fails.But if by any chance you get
the answer please would u send it to this emall address:
[email protected] -
Embedding HTML inside Flash File
HI.
I would like to inquire on how to embed a HTML file insides a
Flash File.
This is the scenario, I have several HTML files, e.g. a.html,
b.html, c.html.
Where there would be a links inside that flash file, to open
a.html, b.html, and c.html (not a new browser).
How can I do this? Guides / Tutorials would help.
I am a bit a newbie in the world of Flash. Thank you in
advance.
/928 :)mauve928,
> I would like to inquire on how to embed a HTML file
insides
> a Flash File.
Dynamic text fields do support some HTML formatting, but
it's important
to understand that at this time, the supported tags comprise
only a very
small subset of the full HTML specification. (Search the Help
panel for
"supported HTML tags," and you'll see which ones they are.)
As such, Flash
Player simply doesn't load HTML files.
What Flash Player does load is XML, so if your documents are
formatted
as XHTML (that is, technically XML), you'll have the
beginnings of something
you can use. Flash won't necessarily be able to display
elements it doesn't
understand (e.g. tables), but because the document is XML,
you'll be able to
parse those tags and extract information from them, using
what Flash *is*
capable of displaying.
I wrote a series at Community MX not long ago that makes
some
exploration into what you're after.
http://www.communitymx.com/abstract.cfm?cid=02395
The first article (of three) is free, and you sign up for a
non-obligatory free trial to read the rest.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
How can i link and view any html page inside a flash movie,
for example, i
want to view a yahoo page inside of a movie... I apreciate
all coments and
help... Please!!!EFREN,
> How can i link and view any html page inside a flash
movie,
> for example, i want to view a yahoo page inside of a
movie...
> I apreciate all coments and help... Please!!!
I'm afraid you can't. If you were reading your HTML
documents with a
browser, that would be one thing. Browsers are HTML-reading
machines. The
Flash Player is not. The Flash Player reads Flash files.
While Flash does
support a modicum of the full HTML spec -- see "About
supported HTML tags"
in the documentation for details -- Flash does not, as a
rule, open HTML
documents.
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design." -
HTML inside Flash a joke?
I'm not really sure what's going on here...I've had some bad
HTML tranlation on flash's behalf before, but never as bad as this.
It seems all my carriage returns are getting displayed and all my
<br> tags are being ignored. I'm setting htmlText for sure so
that's not the issue here, and I've had to take my carriage returns
out before via using a split and join (because of course, why would
flash include a replace function by CS3?!) but now I just have one
giant line of text because my BRs are getting ignored. I've tried
adding select html tags (such as <html> and <body>) but
they don't seem to do anything. I've even tried a straight up XHTML
template, but it seems to just throw lots of carriage returns in
the beginning. Maybe someone can take a look at my html page I'm
loading in (using LoadVars object) and tell me what I'm missing
because I'm just getting one straight line of text out of it, and
that's only when I manually remove all the carriage returns.So I really have absolutely no idea what's going on here. I'm
using the onData event handler, which seems to be more what I want,
because I don't even need to set a key/value pairing, I can just
put the html straight in the text file and it will load that as the
src variable passed to my function.
So anyways, I traced what I'm assigning to my content_txt
textfield right before I assign it, and then afterwards do an
immediate trace on content_txt.htmlText and it's completely
different. Here's what I'm getting, the first is what is coming
from the page I'm loading in, and the second is what I'm getting
back as being the htmlText the textfield. I've even tried it with
and without the HTML and BODY tags.
<html><body>So this is my page, hope you
enjoy!<br>Check out this <a href="
http://benrosenbach.com">link</a>.<br>testthis
should be on the same line<br /><br /><br
/><br /><br /><br /><br /><br
/><br /><br /><br /><br />ok<br
/><br /><br /><br /><br /><br
/>this is dumb<br /><br /><br
/>yup.</body></html>
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT
FACE="Helvetica" SIZE="13" COLOR="#FFFFFF" LETTERSPACING="0"
KERNING="0">So this is my page, hope you enjoy!Check out this
<A HREF="
http://benrosenbach.com"
TARGET="">link</A>.testthis should be on the same
lineokthis is dumbyup.</FONT></P></TEXTFORMAT>
And here you can see my code: -
Load html document inside flash
I have been informed that it is possible to load an html
document inside flash, that you use an HTML tag, but I cannot find
it in the scripts, can anyone show an example and explain how to
make it work or if there is a tutorial for creating this inside of
flash.
ThanksDear All
I do not know why they call themselves professionals in flash and html, while they can not help us with a simple webpage inside a flash movie.
No offense
I was trying the whole week to do that by checking if any body post any tip over the internet, but as usual the profs said that you can only make it in test and only text and bla bla bla.....
Let me tell you that I have managed to open a whole webpage in my flash website.
I have this page that is html and have so many codes and things that I do not know, and in my flash website I have a menu which one of its buttons must open that html file, and as every body knows that you will loose the whole work if you poped up another window from your flash website.
So Cheer up I have managed to open my html page in my flash movie website.
You can check it up following this link www.compuhometech.com/html_inside_flash/index.html
If you like to have it please mail me : [email protected]
Thank you -
Html content inside flash ? how?
Hello, I have the following problem ... I have a flash site where in the back there is a Content Management System for the site moderator to post offers. So when the users visit the site they can see the offer and if they like it to contact the company. But inside the Content management system i have a textarea where the moderator wants to paste-in some tables in a html format ... something like this ...
GENERAL
2G Network
GSM 900 / 1800 / 1900
GSM 850 / 1800 / 1900 - US version
Announced
2006, November. Released 2007, January
Status
Discontinued
SIZE
Dimensions
106.4 x 43.6 x 11.7 mm, 56 cc
Weight
91 g
DISPLAY
Type
TFT, 16M colors
Size
240 x 320 pixels, 2.0 inches, 31 x 41 mm
- Downloadable wallpapers, screensavers
SOUND
Alert types
Vibration; Downloadable polyphonic, MP3 ringtones
Speakerphone
Yes
MEMORY
Phonebook
1000 entries, Photocall
Call records
20 dialed, 20 received, 20 missed calls
Internal
7.8 MB
Card slot
microSD, up to 2GB
DATA
GPRS
Class 10 (4+1/3+2 slots), 32 - 48 kbps
EDGE
Class 10, 236.8 kbps
3G
No
WLAN
No
Bluetooth
Yes, v2.0
Infrared port
No
USB
Yes, miniUSB
CAMERA
Primary
2 MP, 1600x1200 pixels
Video
Yes, QCIF
Secondary
No
FEATURES
Messaging
SMS, MMS, Email, Instant Messaging
Browser
WAP 2.0/xHTML
Radio
Stereo FM radio; Visual radio
Games
Yes + Downloadable
Colors
Silver, Black, Red-Silver, White-Silver
GPS
No
Java
Yes, MIDP 2.0
- Push to talk
- MP3/MP4/AAC/AAC+/eAAC+ player
- Voice memo
- Voice command
- T9
- Organizer
BATTERY
Standard battery, Li-Ion 860 mAh (BL-4C)
Stand-by
Up to 348 h
Talk time
Up to 3 h 30 min
Basically a table with some text in it ... but then i need to save this in some file (this is still done in the php) and after it is saved in a file I need to somehow show it in its table form inside a textarea in flash. Or if not in a textarea in some other way inside the flash movie i need to display that content in its table form. What I am using now is a web text editor from http://ckeditor.com/ which provides a way to paste the table in the content management system (or admin panel) and then it saves it to a file. The problem is how do I display the table inside flash ?Flash has very limited support of html tags and tables are not included. So if you want to show an html table then your best bet will be to link to an html web page.
-
Opening a PDF inside Flash compile errors
I'm trying to open a pdf inside flash. I followed a tutorial online but I'm have issues with the compiler. Here's my code:
import flash.html.HTMLLoader;
import flash.html.HTMLPDFCapability;
import flash.html.HTMLWindowCreateOptions;
if( HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK )
var htmlLoader:HTMLLoader = new HTMLLoader();
var url:URLRequest = new URLRequest( "01_Advanta2_Master.pdf" );
htmlLoader.width = 800;
htmlLoader.height = 600;
htmlLoader.load( url );
var pdfHolder:UIComponent = new UIComponent();
pdfHolder.addChild (htmlLoader);
addChild (pdfHolder);
It results in these errors:
1046: Type was not found or was not a compile-time constant: UIComponent.
1180: Call to a possibly undefined method UIComponent.
I've tried to import fl.core.UIComponents in the beginning but that resulted in this error:
1172: Definition fl.core:UIComponent could not be found.
Any help would be greatly appreciated.You need to have components in the library in order for them to be accessible.
-
Can you Open Html in Flash?
Such as in a frame , kind of like in an iframe
say after an animation , the iframe or whatever would move out and open the html page inside?flash supports a very limited number of html tags so, loading html into flash is generally unsatisfactory.
you can either limit yourself to those supported tags or open the html in a browser window that's either the same or different than the one that displays your swf. -
Can we open Web pages inside Flash Movie!!!!!
Is there a way to open HTML Webpages inside Flash Movies
Please Help...............you can display certain html tags in an html-enabled
textfield or a textarea component. but you can't display a webpage,
per se. -
Send data from html to flash action script
Hi,
I would like my flash to act differently depending on what
html page it is on. Can I send information from html code to action
script?Hi,
Yes you can, by using FLASHVARS. Refer the attached code for
example. Also you can use Javascript setVariable method of Flash
object to set values in between i.e. after the page has loaded, as
in case of FLASHVARS these are sent to flash just at the begining
i.e. once SWF loads. In the attached exmple i've sent 2 variables
to Flash one is 'username' and other is 'userId', thse will be
fetched inside flash movie as _root.username and _root.userId.
Note: I've added flashvars as PARAM and also as an attribute
for EMBED tag (used by Mozilla, NS etc)
Hope this helps.
Thanks,
Sumeet -
How to load a pdf inside flash
I need open a pdf inside flash how I do this?
armandix,
> I need open a pdf inside flash how I do this?
You can't, really. Flash Player doesn't support Acrobat.
Specifically,
you can't open a PDF in Flash and have it act like a PDF
(scrollable,
searchable, etc.). But you can certainly convert your PDF (or
a page from
your PDF) to an image format and import that.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
Flex mobile 4.6 app works inside flash builder but not in android emulator
Originally posted on stackoverflow: http://stackoverflow.com/questions/8663892/flex-mobile-4-6-app-works-inside-flash-builder- but-not-in-android-emulator
I have a basic flex mobile 4.6 app and it works fully fine in the flash builder built-in emulator using an android device profile like aria...
It also launches fine in the android emulator but one particular view shows blank (and this view works fine in flash builder).
Before I get in to many details of the view are there any categorical gotchas that can be causing this?
I can't seem to get the trace statements from the app to show in 'adb logcat'. It seems I need to compile a debug version of the apk but I don't know how to do this. I use the 'Export Release Build' from the Project menu in flash builder and it doesn't seem to have an option for debug=true.
The problematic/blank view basically uses the stagewebview and iotashan's oauth library to call linkedin rest apis... A different (and working) view can make restful web service calls in the emulator fine, so it doesn't seem to be an internet permission.
The source code contained in the problematic/blank view is almost identical to the tutorial found at:http://www.riagora.com/2011/01/air-and-linkedin/
The differences are: a) The root tag is a View b) I use StageWebView instead of HtmlContainer c) I use my own linkedin key and tokens.
I would appreciate it if someone can provide me with some pointers on how to troubleshoot this situation. Perhaps someone can tell me how to debug the app while running in the emulator (I think I need the correct adt command arguments for this which matches the 'Export Release Build' menu but adds the debug param?)
Thanks for your help in advance.
Comment Added:
I suspect that this has to do with connections to https:// api.linkedin.com and https:// www.linkedin.com. The only reason I can think of that the same code is not having issues inside of Flex Builder but indeed having issues in the Android emulator is something to do with certificates. Any ideas?Thanks er453r,
I have created a project that clearly reproduces the bug. Here are the steps:
1) Create a UrlLoader and point it to https://www.google.com (HTTPS is important because http works but HTTPS does not)
2) Load it
3) Run in Flash Builder 4.6/Air 3.1 and then run in Android emulator. The former works with an http status 200. The latter gives you an ioerror 2032. I am assuming what works in Flash Builder is supposed to work in the Android Emulator and what what works in the emulator is supposed to work in a physical device (plus or minus boundary conditions).
I see a certificate exception in adb logcat but not sure if it's related...
Here is the self contained View code which works with a TabbedViewNavigatorApplication:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:ns1="*"
xmlns:local="*"
creationComplete="windowedapplication1_creationCompleteHandler(event) "
actionBarVisible="true" tabBarVisible="true">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected var requestTokenUrl:String = "https://www.google.com";
protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
var loader:URLLoader = new URLLoader();
loader.addEventListener(ErrorEvent.ERROR, onError);
loader.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
loader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpResponseStatusHandler);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
var urlRequest:URLRequest = new URLRequest(requestTokenUrl);
loader.load(urlRequest);
protected function requestTokenHandler(event:Event):void
protected function httpResponse(event:HTTPStatusEvent):void
label.text += event.status;
// TODO Auto-generated method stub
private function completeHandler(event:Event):void {
label.text += event.toString();
trace("completeHandler data: " + event.currentTarget.data);
private function openHandler(event:Event):void {
label.text += event.toString();
trace("openHandler: " + event);
private function onError(event:ErrorEvent):void {
label.text += event.toString();
trace("onError: " + event.type);
private function onAsyncError(event:AsyncErrorEvent):void {
label.text += event.toString();
trace("onAsyncError: " + event);
private function onNetStatus(event:NetStatusEvent):void {
label.text += event.toString();
trace("onNetStatus: " + event);
private function progressHandler(event:ProgressEvent):void {
label.text += event.toString();
trace("progressHandler loaded:" + event.bytesLoaded + " total: " + event.bytesTotal);
private function securityErrorHandler(event:SecurityErrorEvent):void {
label.text += event.toString();
trace("securityErrorHandler: " + event);
private function httpStatusHandler(event:HTTPStatusEvent):void {
label.text += event.toString();
//label.text += event.responseHeaders.toString();
trace("httpStatusHandler: " + event);
private function httpResponseStatusHandler(event:HTTPStatusEvent):void {
label.text += event.toString();
trace("httpStatusHandler: " + event);
private function ioErrorHandler(event:IOErrorEvent):void {
label.text += event.toString();
label.text += event.text;
trace("ioErrorHandler: " + event);
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Label id="label" y="185" width="100%" color="#0A0909" horizontalCenter="0" text=""/>
</s:View> -
How do I get a program to run inside flash
How do I get a program on my harddrive to run inside flash on my computer? I would like to build a Flash front end for my boat pc, but I would need to be able able to open up a program inside a flash.exe?
would a external .ini File work? if so what code would I use internally to execute the .ini
any help would be greatly appreciated Sincerely newwaveboatsThanks for the tip about Zink, but it is not what I'm after.
On (Release)
FS Command ("exec", "install.exe")
End On
google search just revealed this button code but it was for back in the day "Flash 8" as1 or 2. as3 your not allowed code to be plaaced on buttons.
So I know it is possible, I just need the know how.
EDIT: I looked further into to this, and it is perfect for my needs. my first look was quick and I saw a close to 300 price tag and that it was a compiler, 2nd longer look showed it was free for personal use and has lots of great system features.
Thanks again combustion007 for your help was greatly appreciated, Sorry I did not realize how perfect it was when you first told me about it. -
HTML inside .swf?
Is there any way to use flash to show html? Something similar
to an iframe if it can't display it naturally. Maybe something
could be accessed externally in the browser?NathanJD wrote:
> Is there any way to use flash to show html? Something
similar to an iframe if it can't display it naturally.
> Maybe something could be accessed externally in the
browser?
No, you can't display html in flash.
Flash can load text dynamically, from txt or xml. This text
can be formated
with basic HTML 1.0 tags like HREF, BOLD, etc... Nothing
beyond that.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Maybe you are looking for
-
Powerpivot Report 2010 - OLE DB or ODBC error: Query timeout expired; HYT00
0 I have report already developed by someone in powerpivot 2010 and deployed to sharepoint in powerpivot gallery library. The data source for this report is SQL Server 2008 r2. I have set the refresh options in sharepoint to run after business hours
-
XML parsing error: web-jsptaglibrary_1_1.dtd not found
I'm getting the following Exception while Tomcat is parsing my welcome jsp page: exception org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/struts-template.tld: Internal Error: File /javax/servlet/jsp/resources/web-jsptaglibrary_
-
Why itune 10.3 wont open?
Since i upgraded my itune,it does not open at all.I have already tried all the ways,but nothing changed.unfortunity the only way that I can connect to my iphone is using itune10. I appretcate your help.
-
I am able to determine the link for a report. How can I determine the link for the selection screen which is to be presented before the query is run? The query is web based. Thanks
-
Incompatible Types... NOT!
Why am I getting incompatible types in this method? C:\jdk1.3\src\CalcBusinessDays.java:53: incompatible types found : java.util.Date required: Date Date covDate = sdf.parse(dt, pos);^ <-- carat is at end of line public Date dateConver