IDE :: Why A Dynamic Text Box Does Not Appear When A File Is Compiled
Mar 30, 2009Does anyone know why a dynamic text box does not appear when a file is compiled?
View 3 RepliesDoes anyone know why a dynamic text box does not appear when a file is compiled?
View 3 RepliesI have a movieclip created in CS4. I export that into my Flex Project's /lib and then try to access the text. All the textfields have ids, embedded text, and show up in intellisense. But when i run the project, the textfield is blank. What is going on?It appears to only not work when the text is embedded. Non embedded text works fine.
View 1 RepliesI compiled a simple AS3 project using Flex 3.5 (also tried Flex 4.1) to create a small swf which draws a simple red square on screen. Nothing too complex that requires special flashplayer support (see code below)
package
{
import flash.display.Sprite;
/**
[Code]....
and tried to load it into a AS2 swf I have compiled using Flash CS4. But that just didn't work. I don't get any errors when loading and the AS2 swf can load any swf, either compiled in AS2 or AS3 by Flash.
I'm trying to compile an SWC file and everything works great until the part where it needs to add components, none of them added added to the .swc file at all.
The original file should be somewhere around 211 KB and when i compile it its only 1.64 KB, after unpacking the .swc and then the .swf inside it i can see that there is no components added at all.
BTW some components showing some errors but i dont think its a reason to not include ALL the components because the errors are like:
Description Resource Path Location Type
1084: Syntax error: expecting rightparen before leftbrace. XXX.as /XXX/[source path] src/com/XXX line 1469 Flex Problem
What could the problem be? ask me if you need some future info cause i don't really know what to include in here cause there is no code it's only a project with a library.
I've built a form in Flex. When I run the flex project, I get a html file with some js, css and swf files (NOT A SINGLE FILE), swz files. When I run the main swf file alone, many things are working perfectly except at places where it needs to send a HTTPService request. When I use the html file, all works fine.
Now I want to do the following.Import this form made in flex into a flash site (actionscript 3)This form has various ViewStacks, where the user will be travelling through these. I want to reload the form back to its initial stage when the user wants to fill the fields again. Can there be any request sent to the Flash Site from this FORM, regarding the form submission success Can I compile the Flex Project to one single swf file, so that I can use this swf file without any Browser? Can I convert the webpage application Flex Project to an Adobe AIR application [URL]..
I have one swf file, it is JW Player plugin. It have one actionscript file in which is whole plugin code, and rest of files are jwplayer api files. So i need to open that file (where whole plugin code is) and edit few lines. But there is a problem, because when i try to decompile file with sothink swf decompiler (and few others) - to convert it to .FLA, decompiles simply crashes. It is because of some file from jwplayer api library. So, next thing i tried is to edit via HEX (because there is not much to be edited), but i couldn't find what i needed. So what i need is - is there any way or not? If yes, which program can be used for this?
View 2 Replieshow to get this working.I have found that
writeByte(0xFF);
writeByte(0xFE);
At the beginning of the Byte Array alters the Encoding.How ever the resulting String using the toString method still creates escape characters.I am trying to write the byteArray to another AS3 file to be compiled later.
I am working on a feature for an application that requires Flex 4 functionality. Due to some migration issues of the application from Flex 3.5 to 4.0, I have decided to implement this feature as a module that is compiled with Flex 4.0. The theory is that the application would remain compiled in Flex 3.5 and load the module when it needs it.[code]
View 1 RepliesI am dynamically loading external SWFs in a Main Fla in response to clicks on a menu.
The loading code is standard and works fine for all of the SWFs except one. When I try to load it I get the following error: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
I am certain that the URL to the problem SWF is correct. The SWF itself doesn't load any other SWFs or images. The problem SWF is linked to an external class file and compiled with it. i.e. in the properties panel of the main timeline of the problem SWF's Fla I have entered the path to the external class.
1. there is no problem compiling this SWF with the class (it works fine by itself)2. if I remove the external class from the properties panel and don't use it the resulting SWF imports without a problem into the Main Fla mentioned before So the problem seems to be the fact that the external class is linked in the properties panel. Is this a path problem?
I want to import an html file that contains just plain tet inside of a dynamic text box. The things that I have tried jus tmake the html file pop-up as a new page, but i want the information inside of that textbox.
View 2 RepliesI know this is a tutorial on this site but I'm having trouble finding it, and its been a while so I can't remember exactly how to do it. I just need to make a dynamic text field that you can edit via text file.
View 12 RepliesI have a dynamic text field that displays text from an external file. The text file has lists of text such as a1=(text here)&w1=(text here)& etcI want to be able to make a button so that will add one to the word count, such as, a button that says "Next" and when i do that, it loads the text string A2, when i click it again, it loads A3
View 1 RepliesI have a dynamic textfield being populated with an xml files' content. I then have a css stylesheet loaded into format the text. This all works great, but what doesn't work is the ability to bold some of the words in that text. I have both the regular and bold versions of the font embedded into the swf, I can test out just a bold block of text and it works fine. The css is also working as it will change the size of the text that I tell it to. Everything is working, but for some reason I am not able to get the bolder version of the font to display in the same text box as the regular one. I have also tried to change fonts but had the same outcome.
View 2 RepliesI know this is a tutorial on this site but I'm having trouble finding it, and its been a while so I can't remember exactly how to do it. I just need to make a dynamic text field that you can edit via text file.
View 12 Repliesi can't get flash to show, and in a dynamic text box which loads text via a variable from a .txt file on a server.
View 2 RepliesI'm using Flash 8 and I'm trying to load new text into a dynamic text box already populated by a xml file.
I have a home page with 5 different buttons on the top menu.
1. Home
2. News
3. Tips
and a few more.
Upon my home page loading, I have a dynamic text box with the welcome text which is populated by my xml file, here is my code for AS2:
function loadXML(loaded) {
if (loaded) {
_root.home = this.firstChild.childNodes[0].childNodes[0];
_root.tips = this.firstChild.childNodes[1].childNodes[0];
[Code].....
What I want to do is load the news and tips text into the same dynamic text box on the home page when the news or tips button is clicked, so I don't have to load a whole new swf for each category thus making the site faster.
What code would I have to use to clear the text from the xml file and how would I load my new text upon clicking the button?
I cant load and external text file into my dynamic text box...when i trace the loaded var it can be found, but when it's loaded inside the text box, the value that appears is really strange.i tried to load the vars into the MC and on a level, the result is the same, it can be traced but does not appear correctly on the textbox..the code i used is here..i made a text box with about_us instance name, loaded the variables and tried to load my text inside it by setting the text property of the textbox but as u will see...
loadVariables("about.txt", "this");
about_us.text = about;
I have an xml file loading text into a dynamic text field. What would the AS be to fade it in?
View 3 Repliesam setting up a webpage with Flash MX. On the homepage I have a dynamic text box with links to the left (currently the links are just typed words). We want it to setup so that when a user clicks a link (such as "HOME") it will access text from a .txt file and load it into the dynamic text box. We want all of the links ("HOME", "PERSONNEL", "RECRUITS", "CONTACT US") to load their text from a seperate .txt file into that same dynamic text box.
[Code]...
I have a dynamic textfield that loads text from a txt file. The content of the txt file will be modified daily by the client.What i need is that if there is too much text in the txt file, the dynamic textfield resizes (and not only with autosize because the text can be really long).[code]it doesnt look very good but it works. The only problem is that if I have a really long text the maxsizeY doesnt work fine.
View 1 RepliesI�m currently doing work for a local cinema that wants session times to be displayed as .swf's on a few monitors in the foyer, but I�m having difficulties writing the script for it, here's the situation:The session times are generated daily as a text file by the ticketing software, it looks like this:
12 1 0950 101 0 330 0 M MADE OF HONOUR
1 1 1000 95 0 400 0 M WHAT HAPPENS IN
6 1 1000 95 0 154 0 M SMART PEOPLE
9 1 1010 92 0 300 0 PG MISS PETTIGREW
[code]...
Additional requirements are the times disappearing after the session has started as well as session times 13-16 being displayed as a separate .swf (first class seating)So i guess my main question is "can i dynamically load text from a multi-line txt file without editing the txt file to include variable assignment? ('content=' etc)" the txt file generated is intended for an led display and is apparently a Texas Instruments standard.
do i have to use some other server-side code to save a text file to the flash folder?just want to convert some meaningless text from an input dynamic text to a file...
View 3 RepliesI have a dynamic text box that is loading in a text file. It seems to be doing this perfectly well. However, some HTML tags seem to break it. <b> makes the text dissapear. I tried doing a <span> on it, and changing the font-family with CSS, but I dont think its reading the CSS at all.
[Code]...
I have a text file in the same directory as the flash and a text dynamic box with name: news, var: news. I need to load into it the text file news.txt. The dynamic box is inside other MCs so when I do this command on root-actions layer I get this inside the text box: _level0.instance 10.instance12.scrolledMC.news.The command I use is simple but i dont know to how to put the correct path into it: loadVariablesNum("news.txt", 0);
View 5 RepliesGoing step by step to get my data from a MYSQL/php .. right now i am stuck and cannt even get it from a text file.. what am i doing worng!!this is the code i am using:
var myLoader:URLLoader = new URLLoader()
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES
myLoader.load(new URLRequest("trees.txt"))
[code].....
How would i go about attaching 2 dynamic text box's ( textA and textB ) to a movie clip ( caption_mc ) using action script 2 ?
i have tried to convert the tooltip method from the carousel tutorial but there are 2 many other things going on to pin point the few lines of code i probably need to do this simple action.
I am trying to load different .txt files on the screen with each button click. I am in my first flash class and have only grasped a little bit of actionscript.
Code:
the button names are: bberk_btn apost_btn phales_btn
the text file names are: bberk.txt apost.txt phales.txt
How to connect the text files to the function of each button
var content_req1:URLRequest = new URLRequest("text/hales.txt");
var content_ldr:URLLoader = new URLLoader(content_req1);
content_ldr.addEventListener(Event.COM... onComplete1);
function onComplete1(event:Event):void {about_txt.htmlText = event.target.data;
[Code] .....
I'm working with my .fla file and an external .as file. I've got things working the way I want and now I'm trying to add a dynamic text field to my .fla file. I've added the dynamic text field to the stage manually (not via action script code) and when I go to publish my file I get the following error message. 1046: Type was not found or was not a compile-time constant: TextField. Do I need to add an "import" to the front of my .as file? I currently have these import statements... import flash.display.MovieClip; import flash.display.Bitmap; import flash.display.Loader; import flash.events.*; import flash.net.*;
View 3 RepliesI was working on a dynamic text with xml imported file which contains this kind of code:[code]I have more of that example along the xml file, they're kind of a little newspaper. It has no other kind of code in it.Anyway, I wanted to format the text of the body to "justify",but somehow, with justify option selected on the dynamic text box (if that's enough to work), in flash, it didn't work.So i've heard that justify didn't work, or didn't exist on previous versions of flash, so I've verified the version of the flash file and "voil", it was a 6.0 version.But now, that it's on version 10, the text disappears on *.swf file... And I don't have a single clue about it..Because on version 6.0 it was all ok, except the standard left alignment.
View 3 RepliesI am kind of new to AS and not sure how to decrypt a text file. If I have a text file that is on my web server (which I need to be encrypted) and is used to retrieve variables for Dynamic Text fields. How do I decrypt the file and then take the variables and put them in the Dynamic Text fields? What is the best method to make the files unreadable but can be decrypted by the flash file? Currently I use this to get the variables and put them in Dynamic Text field but I want to add some kind of encryption to this.
[Code]....