ActionScript 2.0 :: Dynamic Text Only Appears Once And Can't Loop
Apr 26, 2007I'm not sure why the dynamic text only appears once and doesn't loop. It's in a movieclip that's in another tweened movieclip. [code]...
View 4 RepliesI'm not sure why the dynamic text only appears once and doesn't loop. It's in a movieclip that's in another tweened movieclip. [code]...
View 4 RepliesI have a complex workflow movie that is almost entirely loaded with dynamic text populated by XML files. The problem is that when I view the movie the dynamic text doesn't always appear on some frames. If I click back out of the frame and then click back into it the dynamic text appears.
To simply what I am talking about:Frame 1 has a button on it that opens frame 2.The button on frame 1 is clicked and frame 2 opens however no text is displayed.The 'back' button on frame 2 is clicked returning the movie to frame 1The button on frame 1 is clicked and frame 2 opens again, but this time all the text displays as it should.The coder bangs his head on the table and exclaims 'WTF?'
I have a complex workflow movie that is almost entirely loaded with dynamic text populated by XML files. The problem is that when I view the movie the dynamic text doesn't always appear on some frames. If I click back out of the frame and then click back into it the dynamic text appears.
To simply what I am talking about:Frame 1 has a button on it that opens frame 2.The button on frame 1 is clicked and frame 2 opens however no text is displayed.The 'back' button on frame 2 is clicked returning the movie to frame 1The button on frame 1 is clicked and frame 2 opens again, but this time all the text displays as it should.The coder bangs his head on the table and exclaims 'WTF?'
The image on the left has a text field that has been already dynamicly loaded.The image on the right has not loaded dynamically yet.The drop down menu is inside of a MovieClip that is on a layer higher than the textfields.How can I prevent the dynamic text from appearing on top of the Buttons/MovieClips?
View 1 RepliesI want to make a Blog in my website, but I don't know how to loop the parameters into the same dynamic text box! The XML will be basicly like this:
<xml bla bla bla's>
<post>
<newpost id=1>
<date>12.13.2007</date>
[Code]....
I'm creating a searchable database in Flash where all the content loads dynamically from external sources. the main interface is columns of buttons where clicking in the first column sends the user to a named frame with a second column of buttons, then onto the third column then the final content is loaded into a new movie clip. The interface uses just one button(a movie clip) and the columns of buttons are created with a duplicateMovieClip function. that part works fine. However I can't get the button labels to load from an external text file even though I'm using the explicit button names, and I can't get the buttons to react to clicks even though they're "hot", i.e., the cursor changes when I mouse over them. the button behaviors use the dynamic button names.
Here's my code:
//creates a load Variables object
loadText = new LoadVars();
loadText.load("text/patent01NumbersText.txt");
//this makes a column of duplicate button movie clips
for (i=0;i<13;i++){
[Code] .....
Why do the dynamic text font size appears smaller than what I specified in the flash dynamic text properties? I used a font size of 50 for the dynamic text and when I test movie, it appears to be only a font size of 12. Why is it so?
View 3 RepliesI have 10 text input. (txtin1, txtin2, txtin3,.....) I going to change the maxChars for every text input but I going to do that dynamic in a loop. I have tried
ActionScript Code:
txtin[nr].maxChars=maxnr;
But nothing happened. I know that the variable "nr" and "maxnr" have a number.
I am just learning how to use Flash AS3. I have made a very basic animation that is a circle with a slice in it that grows larger over a couple of seconds until it is about a quarter of the size of the circle. It is designed for my research subjects to watch and follow for range of motion and speed as they complete a leg exercise task. I used a basic for loop in the animation to repeat it 10 times, then a frame appears that says "Set Complete." I would like to add a repetition counter to the screen so that subjects know which rep they are on throughout the animation. I know that I have to use a dynamic text box to do this, but I don't know where to put the script so that the new counter number will appear on the screen after each loop. Here is what I have so far for script:
Action Layer first frame of loop:
var count: Number=0;
Action Layer last frame of loop:
count++;
if(count<=9){
[code]....
I`m trying to assign values to a dynamic text field.[code]Can you please tell me how to make it work trought for loop #1
View 1 RepliesI have a Flash site I am developing that feeds in XML into various arrays and populates dynamic movie clips and text fields. I am having trouble making a for loop that works with my movieclips and text fields. I am probably only missing one step and if I can figure it out I will cut my lines of code about 10X. I have attached the fla and image files in a zip file.
View 1 RepliesMaybe the title is not self explanatory but in most iphone games eg you click the correct example and you see a +100 points mc appear and rise and alpha out. I did this with a png done in photoshop BUT not all goes well - it doesn't work.
[Code]...
It seens perfct but I can't see it work. The funny thing is that the custom currentBubble - with a dot after you see the code hints but a dot after pb100 - you see no code hints. Well not normal.
I have a swf thats loading external images to it.In all IE browsers, when i resize the browser window and the scroll bar appears, over half the images in my flash swf disappear.When i resize and the scrollbar disappears then the all flash images appear.Oddly enough this only happens when flash is loading over 38 images.
View 1 RepliesI'm just wondering if it's possible to have a page of text that is 'invisible' (for want of a better word) and when you move your mouse over the page, the text appears in a circle (of whatever radius) around the mouse point.The text would be clearest and darkest at the mouse point, and fade out towards the outer circle, and 'appear' smoothly as the mouse is dragged around the white page.
View 3 Repliesthese are dynamic textfields, and everything is tweened from alpha 0 to 1 at inital loadand this screenshot is taken like one second before second one; look at the first picture, the text is all nice and crisp:now look at the second one, when it tweens to alpha 1, it looks like there is a "second pass" of text over the inital one it looks like it doubled itself:
View 2 Repliesi am a newbie flash designer. a client has asked me to make modifications in a flash file used on his website. it is flash 8 actionscriptfile which i decompiled using sothink decompiler 4.5 build 90120 to '~divisions original.fla'. the xml folder resides in the same folder as ~divisions original.fla. it contains divisions.xml.i discovered a problem - if you view 'divisions.swf' - when you click on 'retail visual solutions'and scroll to the bottom, you can see that there is no space after the text. the end of the text aligns with the end of the scrollbar. but when you click on eyesite, and scroll to the bottom, you can see that there is space after the text. the end of the text does not align with the end of the scrollbar.
my additional questions are:has the creator of the swf file used some unique scrollbar code or is this scrollbar provided in flash itself. in this case, i can read a tutorial to understand it better.i have given 'is correct - no space at bottom of text.jpg' and 'is incorrect - space at bottom of text.jpg' to further explain my query.
I created a site for a client and they are experiencing something weird with the top links in the base SWF. The links appear to be distorted or doubling up. I don't have anything extra in the MC. And what's worse is that I can't see this effect on any of the computers I have. They see it on their laptop.
I've attached a screenshot from them.
Attachments:
distortedText.jpg
(120.5 K)
I have a problem with multiple listeners. Basically I have a box which displays some text and when I hit the space key additional text from the box appears. But the problem is the space key also starts the game.
I want the space key to first display the additional text then hitting the space key starts the game.
So, any ideas how I can use the space key twice without disrupting the first key press?
I got help the other day of how to add dynamic text as the tutorial didn't work for me(that worked). but how to preload the text as it appears later than the movie which had already preloaded(i made a simple preloader for now) the address [URL]
View 13 RepliesUsing regular font styles are fine such as Arial, Verdana and so forth but I tried using unicode font outlines inside an external text file for future use. This is what I have in the external text file:Code:Ive also set the file to unicode and set "render as html" in flash. My problem is when I load the textfile and the swf on my host, the text doesnt appear. It does appear but what happens is that the text appears for 1 second and disappears.This is the coding in the first frame of the main timeline:
Code:
loadText = new loadVars();
loadText.load("http://www.minimalistik.f2p.net/bobs.txt");
[code].....
I'm loading some text from a .txt file into a dinamic text field, but the acentuations from my language (portuguese) do not appear. I've already tried to search the site and on the internet but found nothing. tried to embed the font but it's not working.
View 5 RepliesThis is something I tried to do once long ago with Flash MX, and it did not work for me, and now with CS3, I find that the same concept is not working. What I am trying to do is make an animation where the text appears via a masked layer, but I would like the mask's gradient to be revealed in the animation. Here is what I have: And here is how it is being displayed during the animation:
View 8 RepliesI have a for loop updating a dynamic text element but it seems to iterate so fast that only the last item in the loop is updating the text. I'd like the dynamic text element to be updated with EACH item in the loop, not just the last.
1. I have a single frame movie where I create a simple array of strings from an external text file:
[Code]...
How can I create a for loop so I can use different values of the same node? So I want to count the "<Text>" nodes of the XML and use their different values on different dynamic textfields. Note that I have mutliple Movieclips on the stage with the same amount of textfields and I would like to include them in the loop, so I named them mc1 mc2 etc.
[Code]..
ive been trying to get a mouseover working but im having some trouble.
I need it so when i mouseover a movieclip text appears in a textfield at the bottom of the stage.
also when i click the mc the text stays there as im dragging it into the correct location.
The code runs fine, but the problem I'm having is that the text box that is suppose to go onto of my answer buttons is behind the button itself... however, if I change two lines of code around, the answer validation code doesn't pick up the which answer was clicked (it returns undefined). This is infuriating!Look for the line "//INSERT HERE." If I take the line, "var answerField:TextField = createText(answer,answerFormat,answerSprite,0,0,450);" and put it there instead, it returns the right answers (doesn't return undefined), but I can no longer see the text. I've included the createText function as well.
private function askQuestion()
{
trace("asking question...");
[code]......
How do you make a flash movie where you press a button and a number (lts say three) appears in a text field?
View 6 RepliesHow do you make a flash movie where you press a button and a number (lts say three) appears in a text field?
View 6 RepliesI am attempting to use a loop to create text field with the loop's current value. The code looks like this:
ActionScript Code:
for (var i = 1; i<=10; i++) {
var 'nameHolder'+[i]+'_txt':TLFTextField = new TLFTextField();
'nameHolder'+[i]+'_txt'.x = 40
'nameHolder'+[i]+'_txt'.y = 40
'nameHolder'+[i]+'_txt'.text = "Hello World"
}
So essentially what it should do is create 10 text fields at 40, 40 with the text: "Hello World".
i have a problem with the line space flash creates when a dynamic text is loaded in a dynamic text field on the stage i put a dynamic textFild with istance name "profile_text". then im loadin in it a text. my text is written in the Notepad like this
[Code]...
i already set a Textformat to my dynamic text with i tryied to play with the "Leading".. but i think it something dealing with paragraph. how i can decrease spacing between paragraphs??