I'm using flash cs5... I've made a file uploader and it works great, only problem is it makes this textLayout_1.0.0.591.swf file (in addition to my actual swf)... is this really necessary? I have an embedded font that I think is putting this here and the whole thing doesn't work unless this swf is here.
I have a panel with a custom skin whose height is smaller than its hostcomponent's height. When I layout this out in a vgroup, the component's size doesn't reflect the skin's smaller size.
Is there a way to completely delegate the size of a container to the skin class?
I created a somewhat custom Spark button by doing the File > New > MXML skin and basing it on spark.components.button. The problem is that I need to add an extra text field to the button component and dynamically change that text...but of course, the property isn't recognized on a Spark Button.
Is there a simple way to add this field to my custom button skin & its property so it can be addressed? If not, is there a simple way to take what I've done and just extend the Spark Button? I can't seem to find any examples that show how to do it without writing it all up in ActionScript.
I can't figure out how to get rid of extra white space in the browser at the top of a swf file. It looks fine when I preview the file, but when I do publish preview in flash/ try to incorporate in HTML, there's an extra 1/4" at top of window.
Im still relativly new to bringing in xml to flash, but i have read some tutorials and other pages on it. Everything is working fine except for the fact that all the text that isnt an attribute as lots of extra spacing infront of it. I made sure my i set ignoreWhite to true but it still is cuaseing those spaces.
I'm trying to build a workaround for embedding my (downloaded) flash videoplayer. (it's the JWplayer...)
At the moment, when somebody wants to embed the videoplayer they have to include the swf with all the added flashvars (url...). That's messy, and it feels a bit risky... people who know what they are doing can also just remove the plugin and other added data, resolving in me not being able to track pageviews etc.[code]...
Turns out that, when I use file_get_contents on a regular test file, info.php, that responds through a $_GET['var'], the above stated code works, but when I use it on the flashplayer, it doesn't...
As in: the flash file does not seem to be accepting (or responding to) the added header variables...
I'm trying to modify an XML jukebox by adding an artwork functionality to it. The problem is that the jukebox is a component so I'm not able to pull it to pieces. I would like to use the same XML file though to add an extra variable (is that the right term?) called artwork. Here is the modified XML:
I've just took the K-tutorial "News Ticker" for a spin and everything worked fine. ([URL]) I have only one problem: I want to add an extra text field called "time". This extra field is been extracted from the XML file:
how to make the preloader works on the full screen website/ fluid layout. I add the Stage.resize on the code for FYI When I added this code to the bar, it expanded to full screen, but there's no loading bar. The text is also no progress.
I have a project I am trying to put together that includes closed captioning with a scrollbar (standard flash component). In my navigation file I have a text box with a dynamic text box with _level10.ccText as the Var
I have a series of pages that get called into a level below the navigation file. On each of them I have code in an actions frame _level10.ccText = "text text text text";
The text displays fine in the text box but when I scroll down the scrollbar scrolls down too far. The text gets to the end and the scrollbar is only about halfway down the bar. If I keep pushing the down button or drag the slider it will go all the way down but my text doesn't move. Its almost like there are extra lines somewhere that it is trying to scroll to.
I'm using loadVars to import text from a text file and then put it into a dynamic text field - rendered in HTML. There is an extra space in the first line of text for some reason. I've checked the dynamic text field and theres no spaces or returns in it - its empty before putting the text into it.
So I'm building a little contact form in flash and it works, but it is passing along all of the font styling information into the email sent to the client. Kind of annoying. I want it just to send the plain text.
Here's what I'm using:
This code is in the actionscript, picking up the input text fields and posting them to the PHP file. It also tells a status box to update with current info:
Code: loadVariables("send_email.php?flashmo=" + random(1000), this, "POST"); message_status.text = "sending..."; var i = 0;
I'm using loadVars to import text from a text file and then put it into a dynamic text field - rendered in HTML. There is an extra space in the first line of text for some reason. I've checked the dynamic text field and theres no spaces or returns in it - its empty before putting the text into it.How can I get rid of that extra line?
I'm using the text layout component offered by adobe labs. I read the documentation and now capable of doing almost all what I need. I just have a small problem. Lets say I have a text layout object on my stage containing some text. How can I know the height of the text or the number of lines in it?
I found their is a porperty: "contentHeight" and a method "calculateHeight()" but they are in another class of the libraries that comes with the text layout component. I don't know how to reach them. Please help and write me the lines of code that do this job.
I put together an .html page using a photoshop jpg that I sliced into sections. I was asked to replace two graphics from the original .jpg file with animated content of the same size. Using my slices as a guide for size, I created the two animated graphics in flash and saved them out as .swf files. They are both the exact same size(px) as the static images. I opened my newly sliced html file in dreamweaver, deleted the static images and placed the .swf files.
For some reason the .swf files cause gaps in my html page. Tere are no borders on the .swf files and I can't figure what I've done wrong.
One note: It seems to only ad space when viewing from Mozilla. Havent' tested it on a pc yet either.[URL]
Below is code for the left hand speaker:
<td colspan="3" rowspan="4"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="246" height="378"> <param name="movie" value="index_images/speaker_left.swf"> <param name="quality" value="high"> <param name="wmode" value="opaque"> <param name="swfversion" value="7.0.70.0"> <!-- Next object tag is for non-IE
I am printing a dynamic text from flash. Every thing works fine, But I get unwanted spaces/ small boxes at the end of every page. Using string functions I tried to remove the last character if it is a space.Even though I am getting this problem.
I keep asking myself why Flash is so simple when it comes to text layout and finally today I was thinking that that really can't be, considering Flash is meant to layout text in web sites. In my text field, I am looking to create a half return, so if I want space between two paragraphs, I don't have to use an empty return each time. Kind of like p padding in css. I also want to create a tab order in my text field, for better alignment of information. I am looking to create the look of two columns, where I have a date with a paragraph associated with it, with the paragraph being more then one line of the date, but staying indented. Lastly, and I am assuming this is a given, I would like the text to come from a xml or html file.
I have an mx:vbox and inside i have several mx:text elements.how do i decrease the gap between each line of text that is shown ?i tried doing the following:
Its all about printing a Sprite that holds (besides others) a TLFTextField instance thats textFlow has been imported from an external XML file.
Everthing works fine, the content is formatted in correct way, the textfield is aligned at the desired coordinates so that i have nothing to complain about concerning what is visible ON THE SCREEN.
I then instantiated the PrintJob class, added the sprite to the job and sent it to the printer.
But no text from inside the TFLTextField is printed. Except for that, everything else (I added a background color to the sprite holding everything and a normal TextField instance with dummy text) is processed well.
Here is an excerpt from my sourcecode:
ActionScript Code: var canvas:Sprite = new Sprite; canvas.graphics.beginFill( 0xFFFF00 ); canvas.graphics.drawRect( 0, 0, 800, 600 );
In my text field, I am looking to create a half return, so if I want space between two paragraphs, I don't have to use an empty return each time. Kind of like p padding in css. I also want to create a tab order in my text field, for better alignment of information. I am looking to create the look of two columns, where I have a date with a paragraph associated with it, with the paragraph being more then one line of the date, but staying indented. Lastly, and I am assuming this is a given, I would like the text to come from a xml or html file.!!!
Any Way to load text externally into text fields in flash but arranged in linked columns (like in Quark). I'd like to be able to just add text to the external file and the text to be rearranged automatically in the columns. For example, if you add a name in the middle, all the following text has to be moved down.
I am trying to re-use a page layout multiple times in one site, but importing different parts of an external text file for each use. The site has various different page layout designs, which can easily be swapped around and still display the correct content. I'm using this code to import the text: loadVarsText = new LoadVars(); loadVarsText.load("mainText.txt"); loadVarsText.onLoad = function(success) { if (success) { [Code] ..... The text field displays the name of the variable ("page1Title") rather than the content of the page1Title in the text file.
I am trying to figure out how I can implement the new Text Layout Framework 2.0 in Flash CS5. There are some Flex and FlashBuilder4 examples, but nothing relating to Flash CS5. How do I update my Flash CS5 to support TLF2.
I am particularly interested in creating new List/Bullets features so some example code for Flash would be great.
The goal is to being able to parse "<span style="color: #ff6600;">text</span>" that kind of tag, and apply styles from it. I know that TLF does not support CSS. I found in some example files for TLF a class that implements "IFormatResolver" and is doing its job in case of external CSS, but is there any clean way to parse style information that is inside (of tag)?