ActionScript 3.0 :: Embedded Html Text In Full Flash Website?
Nov 1, 2010I was wondering if i can convert all my flash websites text into HTML so that flash can get it from external .html files.
View 6 RepliesI was wondering if i can convert all my flash websites text into HTML so that flash can get it from external .html files.
View 6 RepliesI can view it in my browser by going directly to the file however when it is embedded the photos will not load. The images it loads has to be in the same directory as the .swf file and as i stated it clearly works when going directly to the file but not once it has been embedded.
View 1 Repliesi have a site entirely built on flash. its basically an e-magazine with lots of textual data. i need to implement a full text search where the user enters search terms in a text field and i need to highlight the occurrence of this search term within the textual contents inside this e-magazine
in a way its similar to what you do within a browser search or pdf search where after typing your search term they highlight all occurrences of this search term within the webpage / pdf document
what is the best way to do this? any ready component / solution / code available?
I know people would have asked this question many times, but i have a different problem. I want to make a fullscreen flash website like now my design is a bit different, i want my background to be full screen (i don't mind if its not to proportion) but the text on it should not stretch in-proportionately
View 1 RepliesI made a flash mp3 player and it works fine in any other test pages. but when i embed it onto my site it just shows blank. what do i do? my site is [URL] and the flash player i tested here [URL] and it plays. What im i doing wrong? i tryed everything. right now i just got it in a iframe but i dont want that iframe.
View 1 RepliesI am trying to implement htmlText for a text component as the returned string is in html format (with the html tags etc). If I put a text=.... i get the full text, but with the tags (which i want converted to html). So i use htmlText=.... and it formats it fine, but cuts half the text from the variable. The text im supposed to get back has tons of html tags, and maybe its cutting it somewhere because of the tag its not able to escape... How do i fix this?
View 1 RepliesI embed image in html text field like [code]...
The problem is that text is being wrapped around an image. How can I get the text to be displayed under the inserted image?
It's what this image describes:For some reason, I cannot use bold tags to set the TLF text to bold, even though both the regular and bold fonts are embedded.so that the webpage that embeds this movie can call its function (otherwise the movie itself will be wrapped by TLF).his is not exactly a question since there is an obvious solution to this. Just set the htmlText as something like "<font face='Myriad Web Pro'><b>BOLD</b></font>" and you're done.hs issue is, why does it not render the bold text without the font tag in the first place, if I have already set the font of the TLF text in the PI?
View 2 RepliesI have a setup where an air app dynamically reads files, and throws the contents to an SWF inside of it. This SWF is a Flash 10 file and contains a textField where the contents are then displayed.I want to display the text as htmlTest so i can have it formatted. However, without embedding fonts, the htmlText is jagged and unprofessional.Though it is a pain to figure out, I am able to embed fonts and display regular dynamic textField text, however i have not been able to a) embed fonts and b) display htmlText without the text disappearing.
View 0 RepliesI am trying to create a text box with actionscript, using an embedded font, and populating it with HTML text. It seems I can either use an embedded font, or HTML formatted text, but not both. To illustrate the problem, I have created a little test.
1. Create a font symbol in the library. Export it for actionscript as "_mainFont".
2. Create a dynamic text box on the stage using _mainFont and type some random text in it, including the use of bold and italics. Set the font size and colour to whatever you like. Name the instance "templateText".
3. On the first frame, type in these actions:
[Code]...
The textbox should display correctly, using the correct font, colour and all the HTML formatting. Unfortunately, I need to create text on the fly. So modify the actionscript to create a new text field instead of using the template text:
[Code]...
What happens? I get the right font. The < font color > tag works OK, I get the breaks and the underline, but I get no bold and no italics. Finally, let's make some use of the templateText box by using its formatting. Replace the line:
var textBoxFormat = new TextFormat(); with
var textBoxFormat = _root.templateText.getTextFormat();
Now the text is formatted with the right font, the same colour and size of the templateText box, but I've lost the HTML font colour and underline in addition to the bold and italics.If I take out the Embed Fonts, I get back bold and italics, but loose font colour and underline, as well as the wrong font.
i'm trying to use htmlText on a dynamic text field with embedded fonts. i've searched for an hour for an answer and i still don't have one.
on stage, there is a dynamic text field with no text. i've embedded both regular and bold versions of Myraid Pro. the text field on stage is set to regular (have to choose something). "Render Text As HTML" is selected.
the following code in my document class doesn't work:
myText.autoSize = TextFieldAutoSize.CENTER;
myText.htmlText = "Not Bold <b>Bold</b>";
the html tags only work if the text field on stage is set to "use device fonts" in the anti-alias setting.
just downloaded the flash cs4 trail, very nice some of the irritating IDE bugs are gone that i had on my mac, and didn't had on windows. but enough of that
The first project i checked out, a bug jumps up.when you create a texfield on stage, make it html text. set it to verdana or arial regular, emded the basic symbols.give the textfield a name and try to make some bold text using actionscript.
Code:
my_textfield.htmlText = "regular text, <b>bold text</b>"
preview it and every thing stays regular.the only way to get right is to embed the font styles in your library. but for some of the more special symbols, that's not good enough.that's the only reason i re-installed flash cs3, after thinking maybe that was the problem.
I want to use a flash preloader for my php website. I have seen some javascript examples; but I want something attractive and cool. So I want use flash preloader which will show the percentage of the website loaded.My website is kinda heavy(with lot of images). It looks bad when the contents load. So I want to show a flash preloader while the site loads.
View 2 RepliesWhen using a StyleSheet with html text in a dynamic textfield with embedded fonts line breaks are ignored. It is as if TextField.condenseWhite is being set to true. Essentially the <p> tags are being treated as a <br/> tag. If I don't embed fonts it works fine. Another weird thing is if I add an empty paragraph <p></p> between the first two paragraphs it makes any subsequent paragraph behave correctly.
E.g.
<p>first paragraph text here</p>
<p>second paragraph text here</p>
<p>third paragraph text here</p>
Displays as if there are <br/> between each one.
But
<p>first paragraph text here</p>
<p></p>
<p>second paragraph text here</p>
<p>third paragraph text here</p>
behaves correctly even for the third paragraph.
Here is the code I am working with (using XML as I am dynamically populating the textfield from XML). After reading [URL] I tried the same experiment using a TF drawn in the IDE, the results for each, even though the TextFields are essentially the same are totally different. Updated Code accordingly - just need a TF on stage, called "ideTextField" with font 'Arial'.
If you're creating a htmlText field via the createTextField method, is there a way to get html formatting like <b></b> to show up if you are also embedding a font? I'm guessing not, since you can only embed a single font in a TextFormat, and you would have to embed both italic and bold variants too to make it work. Is this true?Maybe I'm better off creating a generic text field on the stage with both bold and italics embedded, and use the attachMovie method instead?This is my code:
ActionScript Code:
myformat = new TextFormat();
myformat.font = "Akzidenz_Grotesk_BE_Light";
[code].....
I have a full screen Flash Website Click Here The problem i am having is that they wont play at all in FireFox and wont work correctly in IE but they play just fine in Chrome. Does anyone know of a fix or anything i can try?
View 2 RepliesI would like to know if you could tell me how to mke a full website Flash XML? what i need to do? I'm beginner and i need to learn it ASAP!
View 1 RepliesI am desiging a flash website with the intend of having the pages (background) filling the whole screen on every browser like
View 2 RepliesI have tried putting fs command for full screen for my Flash site, but that only works if I open the SWF on its own.
If I try opening the Flash website thru my browser, a warning pops up that Flash is trying to comunicate with the browser.
I would like it when a person goes to the website, that the website will automatially open up as a full screen website. No tool bars, address, navigation etc., like a DVD movie. Just the whole screen covered by my Flash site and it does not rescale. The Flash site is the same size as if there is no full screen.
I want to make a full flash website, and the news section would be my facebook wall. But I can't find any help or tutorial to how can I do this in flash AS3. I found an example how to embed the Facebook wall on HTML website or blog, but not for flash.
View 8 RepliesI waqs wondering if someone can point me in the direction of a good set of tutorials for making a full website in flash cs4.
View 2 Repliesi'm recently creating a full browser flash website. the important thing is: the stage.height should never be smaller than 768px because things are cut then. but how to tell actionscript not to make the stage.height smaller than 768 onResize? i've tried the following things, but they don't work:
[Code]...
how to build and structure a full flash website using the OOP approach. I have an idea of how to structure an application using the MVC design pattern, but I cannot put things together in order to structure a whole website.
View 4 RepliesI have a question on Flash structure "best practices". I am wondering which is the best way to go about designing a full website in Flash.I have seen the tutorials provided by Kirupa and others, but nothing answers the question I have. My question is this: How do I combine what I can do in actionscript and use the Flash timeline also? Or should I even try to combine both?
Ideally, I know we should use actionscript to design Flash pages, using CreateEmptyMovieClip, etc. That way the pages are truly dynamic using external images and xml files, and the entire Flash movie is only 4-5 keyframes. However, I cannot accomplish all the tasks in actionscript.I can do many things using Actionscript, write functions, tweens, filters, etc. But obviously I cannot do everything. Many things I want to do are easier using the Flash timeline. For example, a navigation bar which slides in from the outside once the entire page loads. I know the AS to make the nav bar slide in and out, but I cannot use AS to draw the nav bar in the way I want it (two layers of buttons with a line in the middle).
What is the best way to go about designing a site in this manner? Should I use the first few keyframes for the things I can do in AS, such as loading global variables, loading external data, etc. Then use regular Flash animation tools (keyframes & timelines) for the rest?
I have scoured this site and other sites for the basics on how to plan and create a full screen flash website. None have quite exactly what I was looking for however.[url]....The images take up the entire monitor even on different monitors, but the crispness of the images is always consistent.
View 2 RepliesI'm currently making a website that i would like to be full size, whatever the resolution/window size is. Whenever i search for help i just get tutorials for fullscreen mode which is not what im looking for.
an example of what i'd like is this: [URL]
Whatever size you make the window - the flash file is stretched to fit.
I am making a website. Client's requirement is full browser will be flash but content will be fixed. There is a line in the header which will scale full browser.k the attached rough layout. Red border will be removed. Now it is a guide of flash movie. I need to make white line in the header full screen and rest of the movie fixed size. Scrolling no problem.
View 2 Replies I'm trying to figure out what line of code, or option, I need to have to make it so when I'm scrolling in a webpage and the cursor crosses the swf, the scrolling doesn't stop. i thought it used to be an option in publishing back in CS3 (earlier?), or maybe something in the HTML embed code. Anyway, I scoured google with as many different terms as I could think of, and turned up nothing.
I haven't built in Flash for a few years now, so I'm still using AC2 -- in case the scroll (lock?) code is in Flash itself. Though it could be in the HTML...
In my flash site there is a video player that I want to have an option of switching into full-screen mode. It's the video player that needs to be set to full screen, not the whole stage. How would I go about this?
View 2 Replieshow do you setup a full Flash web site, do all files including linked docs go in one folder?. are you suposed to use the publish pannel? The Flash site i am trying to create is to be used as an intrenet site that resides on the server how do I name links to doc in that folder?
View 1 Replies