ActionScript 2.0 :: Levels - Load The Shoppingchart.swf But The Dynamic Textfield Doesn't Change
Aug 23, 2004
I have a swf with a movieClip with a button in it with the following code:
[Code]...
Now the shoppingchart.swf has a movieClip with the instancename "shopLine_mc" in this movieClip there is a dynamic textfield with the var called product. Now I'd say that if I press the button the shoppingchart.swf should load on level2 and show the text "single toothpick" in the textfield right? It doesnt... it does load the shoppingchart.swf but the dynamic textfield doesnt change.
I'm loading some CSS for my dynamic text textfields, but I have lots of MC's containing many other MC's which contain many textfields.[code]but the main nuisance is the fact I need to apply this piece of code for every MC in the movie and every MC within an MC... and every textfield.Isn't there a way to apply this CSS just once, to ANY textfield in ALL levels of the project? (Just like when you load an external txt file with LoadVars)
i have this problem with my text field. i have this dynamic text field, and i want to load external text files and show them there. this all works fine and dandy but when i try to make a scrollbar along with it, it gives the height of the text field as the original one from the flash file, not the new text.
My dynamic textfield doesen't show special characters (%&+...). I have emped the font(uppercase, lowercase, numerals, PUNCTUATION and basic latin) and I've also tried to render it as html.for example:flash.addVariable("newtext"," Word & word2");AC2myTextfield.text = _root.newtext;then it prints just "word", because flash doesen't understand character & as a text format;locally it worked finemyTextfield.text = "Word & word2;";
I have this code that should change the color of a dynamic textfield when I rollover the link movieclip, and then back when I rollout. I get no compiler error, it just doesn't work.
i'm trying to make dynamic textfields during runtime when the user clicks a button titled "new field." this works but i would also need to know if theres a way to make it so that the user can re-position the new textfield just by dragging it to a new spot on the stage.
The textfield is being updated as a user clicks the buttons of a sprite array menu, so that the label names of timeline frames appear in the field. However, I want to be able to click these labelnames also, as they appear in this textfield. The textfield is placed just to the right of the menu, to offer shortcuts to visited menu items. I am not trying to populate a textfield with ton of text in authortime, and then clicking some of it
i'm trying to make dynamic textfields during runtime when the user clicks a button titled "new field." this works but i would also need to know if theres a way to make it so that the user can re-position the new textfield just by dragging it to a new spot on the stage.
I have made a flash site with input/dynamic text fields like 9 horrizontally and 9 vertically I want to use arrows to change WHERE I AM TYPING. if not arrows than i want the tab key to go vertically down rather than horizontally and if you can give me an exhample of the code needed in actionscript 3 to do this
I am creating a button when rollovered produces a textfield. Now, I am producing text lines in this textfield and I want the produced lines to be in different color depending on the value of x. [code]...
I have this script on an invisible button on a banner ad, but the client doesn't want the linked page to open in a new window, but rather load over the page in same window. How can I change the script to accomplish this,
link_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); function mouseDownHandler(event:MouseEvent):void { navigateToURL(new URLRequest("http://www.sdesignsstore.com/store.html"));
I am a newbie in Flash CS3. How to resize the width of of a movie clip according to the size the size of dynamic text inside it. I did it by creating a text field 'myText' and then converted it to a MovieClip symbol and named the MovieClip as myClip. The text in myText is assigned at run-time and its width changes according to the text.
I did it as follows:- myClip.myText.selectable = false; myClip.mouseChildren = false; myClip.useHandCursor = true; myClip.buttonMode = true; myClip.myText.width = myClip.myText.textWidth + 5;
On doing this I find the clickable area changes according to the size of the text field but the text field doesn't appear at all.
how i can load a piece of text from a Url into a dynamic textfield? Im working with AS 2.0 in flash CS3. My goal is to load a name into a dynamic textfield which can be changed in the browser. if you change the name in de navigation bar of your browser the name in the flashmovie also changes.
I just did the "Photo Gallery using XML and Flash tutorial" and it works perfect!! Good tutorial!! I'm struggling with one thing though. Instead of loading the comment text from within XML, I want to load a .txt file into a dynamic textfield in Flash with XML. The code in XML I changed to <caption>folder/pic01.txt</caption>. The code in Flash is now:desc_txt.text = description[p]; I'm think that's the other code that needs to change
I'm trying to load chinese text from an xml-file to a dynamic textField in flash.Is there anyone who knows how I can do that?every feedback - url, idea or what ever will help me - can't find something on google....
I am using a mehot to drag data from a database (via php) and then insert it into the dynamic text field. This works fine locally, however when I put it onto mysite, none of the text loads.
PHP data looks like this Code: $result = mysql_query("SELECT title FROM jos_content WHERE id=46"); $row = mysql_fetch_assoc($result); echo $row['title'];
Actionscript for text looks like this Code: var my_xml = new XML (); my_xml.ignoreWhite = true; my_xml.load ("[URL]"); my_xml.onLoad = function (success){ if (success) titlenewsone_txt.htmlText = this; }
I can't get my text to show in a text field created at runtime within a movieclip on _root. I use a trace statement and it loads into the Output box but is not visible in the textField area. there are no masks in the movieClip.
My function for creating it...
// Call the function to create textField printBtn.onRelease = function() { makeTxtBox("text/print.txt");
I need to load some swfs inside a movieclip with preloader.So on the stage I have some movieclips (linked to "product1" class) which will act as buttons to load particular swf, a holder mc and a dynamic textfield(named-"percent") for preloading stuff.My problem is how to reffer "percent" text field from the "product1" class? my code is like this.
I am building a game right now. I have a variable, saying that Points are 0 and points can be collected throughout the game. And I want the level change to happen when the points are greater that some number. IE: 30 points. I thought I could write something like
if (_root.poeng == 30) { gotoAndStop(15); } or if (_root.poeng <= 30) { gotoAndStop(15); }
Movie clips containing dynamic text fields do not fade properly when _alpha is modified by AS. The text doesnt fade, but appears 100% at all alpha levels.
as you can see it loads an new swf on top of my main. I did not relaize that because of a dropdown menu in the main.swf evrytime I load another swf on top ie obscures the dropdown. besides putting the dropdown in each swf and removing it from the main which would be the obvious, I wanted to avoid this as the loded swfs will have slideshow pro videos which will be a bit heavy.
I've got a flash document using AS3. It dynamically reads data from an XML file, and creates a bunch of single line textFields. Could be like this:
<XMLdata> <Line>this is line 1</Line> <Line>this is line 2</Line> <Line>this is line 3</Line> </XMLdata>
So, for each node, it would create a new TextField, and change the textField.y value so that they are "stacked" on top of each other. All this if fine, except that if you hae so many "lines" (or textfields) that the "stack" is taller than the Flash Document size. What I would like to do is have a scroll bar or something so you can scroll the stack of TextFields. Doesnt' even need to be a scroll bar. Maybe an arrow button at the bottom, and when you click on it, it scrolls down. One for up too.
It looks like this might be a bug, but Im not sure. When you load two or more MediaDispay/Player-components into different levels (using loadMovieNum()) in a project, the project will crash/freeze.
Its enough just having one of these components in the library (ie. not on the stage) in two or more .swf's that gets loaded into the project, for it all to freeze up.
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code: var i:Number = 0; var myInt:Number; var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.