Stupid Dynamic Text Feilds.
i have a dynamic text feild that loads text from a variable that is set by loading an outside TXT file, so i can write entries without having to open up flash and edit the FLA file, the thing is, i can only do this using dynamic text feilds, and when i rotate the text feild, or the movieclip it is nested in, it won;t show, the feild has to be right side up, also, the bigger problem is, the text no longer shows up when i put mask over it.
is there a way to prevent these things?
FlashKit > Flash Help > Flash General Help
Posted on: 06-13-2005, 07:54 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Dynamic Text Feilds
- Arrays And Dynamic Text Feilds
- Filling Dynamic Text Feilds
- Masking And Dynamic Text Feilds...
- Text Feilds
- Tabing To Different Text Feilds
- Help Applying Load Variables To Text Feilds.
- Help Applying Load Variables To Text Feilds.
- Help Applying Load Variables To Text Feilds
- Help Applying Load Variables To Text Feilds
- AS 2 Create Input Text Feilds Dynamically
- Stupid Problem With Dynamic Text
- WHATS UP WITH THE STUPID FSCROLLPANE AND DYNAMIC TEXT?
- [F8] Holy Invisible Feilds, Batman
- Checking Input Feilds For Information
- Dynamic Jpg Loading Woes (stupid Question Probably)
- 'For' Loop Dynamic Variable Quickie... I'm So Tired And Stupid Today
- Stupid Questions About Text
- Stupid Text Question 2
- Stupid Text Question 3
- Stupid Blurry Text
- Stupid Text Question
- Yoz, A Stupid TEXT Question.
- Stupid Text Problem
- I'M GOING INSANE (stupid Blurry Text)
- Input Text. Stupid Question.
- Help: Stupid Text Fade In/out Question
- Stupid Question About Text Loading
- Stupid Question About Input Text
- Font And Text Format Being Stupid
- Stupid Question Coming From Stupid Newb...
- Stupid Workspace Changing After I Save It (Or Stupid Me)
- Stupid Question With Alpha And Fading Text.
- I Want A Button To Activate The Sight Of A Text Box, And I Dno How Because Im Stupid
- Stupid Question: Link Colors In Text
- I Want A Button To Activate The Sight Of A Text Box, And I Dno How Because Im Stupid
- Help Me I'm Stupid... Displaying External Text Files On Specific Dates....
- Stupid Question,,, But Feeling Stupid
- Stupid Employer, Stupid Question
- Stupid Question Hopefully Not Stupid Answers
- Stupid, Stupid, Stupid Question
- Jumping To Areas Of Dynamic Text, Printing Dynamic Text
- Dynamic Text Not Loading On Server . . . Other Dynamic Text Issues
- [AS2] Changing Text In Dynamic Text Field With Dynamic Instance Name
- Set Variable Stupid.user="stupid Question";
- Trying To Take The Text From One Dynamic Text Field And Populate Another Dynamic Text
- Stupid Says As Stupid Does (variables)
- Stupid Stupid Preloader
- Stupid, Stupid Masking.
Dynamic Text Feilds
I have a few feilds resting on _layer0 and a invisiable mouse tracker that updates the feilds with the current _x & _y of the pointer.
The feilds work fine, but i am trying to rotate one of the text boxes to a 45° slope, now for some stupid reason when i do this, the feild does not display the text anymore, but when i level it back out it works fine!
is this a flaw in flash or am I doing something wrong?
any ideas would help alot
this is the action script inside the invisiable mouse tracker...
../:mousex = getProperty("", _x);
../:mousey = getProperty("", _y);
something else i am trying to figure out is i have those 2 feilds but i would really like some other numbers to be on (give it more of a digital feel) is it possible to do something alone these lines....
../:mousex2 = getProperty("", _x+145);
../:mousey2 = getProperty("", _y+145);
the above kicks back a output error, i know my syantex is probly wrong, but its a price you pay when you teach yourself
Arrays And Dynamic Text Feilds
I'm trying to use a dynamic text feild to display information from an array inside of an array.
i.e:
job1 = new Array("text", "text1", "text2", "text3");
job2 = new Array("text4", "text5", "text6, "text7");
job3 = new Array("text8", "text9", "text10", "text11");
job4 = new Array("text12", "text13", "text14", "text15");
alljobs = new Array(job1, job2, job3, job4);
Now, later on in the movie, I put a dynamic text box up and want to refer to, ahh... let's just say "text4". So, I point the dynamic text box to the variable:
_root.alljobs[1][0]
Doesn't display a thing. Then I use the trace function:
trace (_root.alljobs[1][0]);
That works perfectly. I got the message "text5", so I know that the arrays are set up right. How do I go about pointing the dynamic text box to the same thing?
Any help would be greatly appreciated!
Filling Dynamic Text Feilds
ok, so i have 6 dynamic text fields that are empty. They are named -
display_text1
display_text2
display_text3
display_text4
display_text5
display_text6
now, i have 8 shapes that once clicked on add a duplicate of that shape to an area with set parameters. i also have 13 colors. when the duplicate shape is added to it's set parameters the person has to select a color for it. i have it so if a person wants to change the color on an existing shape then they just have to click on any of the ones that have already been duplicated. my issue is that the text fields have to be filled with the shape and the color. so lets say shape number 1 is placed, that means it should target display_text1. but i want to make sure that when shape1 is selected from now on it always targets display_text1 and when the color is changed it will change the color that is in the text field of display_text1. i figure that the text should be added when the color is select because that is the 3rd step to the process and that will be the last value to be set since the shape is already selected.
Any ideas?
Masking And Dynamic Text Feilds...
Hey Everyone!As you may have seen by my title, is there any way to mask a dynamic text feild? It seems Flash has a nasty little tendency to, well, make dynamic text feilds disappear under masks! Is there an alternitave to doing this? I cannot just add like white boxes because this movie is being loaded into another movie, so both the boxes and the text below the boxes would show. Don't pay any attention to that last sentence if you don't understand it
Text Feilds
hello Flash Kit People
I need to make a text field that isnt a square. From what I can remember it is possible. I need to make a text field that is stair stepped on one side.
Thanks
LowTech Designs
Tabing To Different Text Feilds
Hi, I putting a flash form in this game I'm puttin the finishing touches on. For some reason if you tab to get around the text fields when you get half way down it focuses on different buttons.
Is not the distance as their miles away. Its not the depth. What could be close than something on the same level...
I'm stumped - but really need to control this.
Can anyone show me the light?
M@)
Help Applying Load Variables To Text Feilds.
Hi first off thanks for taking the time to read this post and hopefully help out.
This question is dealing with taking text fields set up in flash and then taking the information in those fields and then sending them to a database for storage. Some other FK users suggest that I use load variables to do this but I don't really have any experience in do that so they suggested some related links where I could get a bit better of a foot hold before trying this
sadly most of the info on the LiveDocs was a bit vague and general in scope.
I was wondering if anyone could add any additional insight heres the URL in the Doc that was talking about Load Variables:
http://livedocs.macromedia.com/flash...0001584.ht ml
I read it pretty throughly but I had some questions on
1) defining the text fields as variables to be sent
2) When the user fills out the field and then clicks the submit information button that the info in the fields (defined as the variables) goes to the database for storage.
Once again thanks for taking the time to help your participation as helped me get a lot further a lot faster then I could have done on my own
Take it easy
John
Help Applying Load Variables To Text Feilds.
Help Applying Load Variables to text feilds:
Hi first off thanks for taking the time to read this post and hopefully help out.
This question is dealing with taking text fields set up in flash and then taking the information in those fields and then sending them to a database for storage. Some other FK users suggest that I use load variables to do this but I don't really have any experience in do that so they suggested some related links where I could get a bit better of a foot hold before trying this
sadly most of the info on the LiveDocs was a bit vague and general in scope.
I was wondering if anyone could add any additional insight heres the URL in the Doc that was talking about Load Variables:
http://livedocs.macromedia.com/flash...0001584.ht ml
I read it pretty throughly but I had some questions on
1) defining the text fields as variables to be sent
2) When the user fills out the field and then clicks the submit information button that the info in the fields (defined as the variables) goes to the database for storage.
Once again thanks for taking the time to help your participation as helped me get a lot further a lot faster then I could have done on my own
Take it easy
John
Help Applying Load Variables To Text Feilds
Help Applying Load Variables to text feilds:
Hi first off thanks for taking the time to read this post and hopefully help out.
This question is dealing with taking text fields set up in flash and then taking the information in those fields and then sending them to a database for storage. Some other FK users suggest that I use load variables to do this but I don't really have any experience in do that so they suggested some related links where I could get a bit better of a foot hold before trying this
sadly most of the info on the LiveDocs was a bit vague and general in scope.
I was wondering if anyone could add any additional insight heres the URL in the Doc that was talking about Load Variables:
http://livedocs.macromedia.com/flash...0001584.ht ml
I read it pretty throughly but I had some questions on
1) defining the text fields as variables to be sent
2) When the user fills out the field and then clicks the submit information button that the info in the fields (defined as the variables) goes to the database for storage.
Once again thanks for taking the time to help your participation as helped me get a lot further a lot faster then I could have done on my own
Take it easy
John
Help Applying Load Variables To Text Feilds
Help Applying Load Variables to text feilds.
Hi first off thanks for taking the time to read this post and hopefully help out.
This question is dealing with taking text fields set up in flash and then taking the information in those fields and then sending them to a database for storage. Some other FK users suggest that I use load variables to do this but I don't really have any experience in do that so they suggested some related links where I could get a bit better of a foot hold before trying this
sadly most of the info on the LiveDocs was a bit vague and general in scope.
I was wondering if anyone could add any additional insight heres the URL in the Doc that was talking about Load Variables:
http://livedocs.macromedia.com/flash...0001584.ht ml
I read it pretty throughly but I had some questions on
1) defining the text fields as variables to be sent
2) When the user fills out the field and then clicks the submit information button that the info in the fields (defined as the variables) goes to the database for storage.
Once again thanks for taking the time to help your participation as helped me get a lot further a lot faster then I could have done on my own
Take it easy
John
AS 2 Create Input Text Feilds Dynamically
Hi all
I m working on a new CMS project.
I can create a dynamic Text Feild with createTextField()
but, I just want to know is there any methods to create Input Text Feilds dynamically
Please Help
Any help will be Appreciated
Regards,
Dhiraj Gupta
Flash Developer
Stupid Problem With Dynamic Text
hi all, i apologise as this has no doubt been covered numerous times but the search function wont work
im trying to use dynamic text as you all know its much sharper on screen than static, my problem is that i cant get it to rotate 90 degress without it disappearing, how do i fix this?
WHATS UP WITH THE STUPID FSCROLLPANE AND DYNAMIC TEXT?
I wonder y the FScrollPane component is so lame when it comes to text. I load some text variables in it, and it skips masking the text, so that it just moves it when scrolling. Not only that, it eats up my cpu so that olmost freazes. Im sure that u have met the same problem, so whats the way to come arround this buggy mess?
[F8] Holy Invisible Feilds, Batman
Okay, this one's tricky.
I'm making what is essentially a presentation SWF that pulls data from an XML.
it's got some quirky animation here and there but ultimately it revolves around 6 symbols (or rather 6 instances of 1 symbol) each with a different name, and each with a field within it.
The field is set to trace a variable (local to the symbol) and the outside stage sets that variable (via instance.variable_name) from data provided to it from the XML.
Here's the tricky part. The field never displays the data. At first I thought it might not be getting it (I am using a sort of complicated method for putting the data there) but when I trace instance.field.text it outputs the correct data. I also thought it might have something to do with that layer not drawing properly (perhaps the nearby masking layer was affecting it) so I tried drawing a simple box on top of the field (same layer) and it drew just fine.
It's probably something to do with the actual symbol not updating it's draw or something complicated like that, if you have any idea how to get by this it'd be awesome = thanks
EDIT: I guess it's also worth pointing out that I've tried putting in initial text by hand (sans-action script) and it didn't show up either. I then went so far as to make ANOTHER dynamic text field, give it no trace, and just initial text, it didn't show up either... static, however, did show up
Checking Input Feilds For Information
I want to check my input feild to make sure that information was put into it.
This is what I have for the Variable name "Name"
if(firstname !=""){
loadVariables ("form.php", this, "POST");
}else{ . . .
Any help?....
Dynamic Jpg Loading Woes (stupid Question Probably)
Hi,
Trying to use dynamic loading jpgs with the following script on the frame where the jpgs are needed.
loadMovie("latestprojects/project1.jpg", "left");
loadMovie("latestprojects/project2.jpg", "right");
where left and right are the names of the movie clips on the main stage to load into. However it loads in the top right corner instead of on top of the movie clip. How exatly do you place the dynamic jpgs?
'For' Loop Dynamic Variable Quickie... I'm So Tired And Stupid Today
This should be fairly easy, but I can never keep my dynamic variables straight. If I am using a for loop (below), how would I tack on my increment (i) to the end of this line:
Code:
for (var i = 0; i <= 10; i++) {
trace("result = " + thingySO.data.site[i]);
}
It keeps coming back as undefined (yes, it's defined earlier in the swf as: thingySO.data.site4 = 1).
I also tried:
thingySO.data.site(i); and thingySO.data.site+i;
No dice.
Stupid Questions About Text
Sorry about these questions - but these are holes in my knowledge about Flash.
I'm actually using Flash MX - but want to write this for compatibility with the Flash 5 player.
All I want to do is to detect if the user has pressed the return key while typing inside a particular input text field.
Can I also detect if a when new character has been entered.
If not, can I poll to test if the text cursor is inside a particular text field?
Up to now, I've used ClipEvent to detect a character - but I want something specific to characters entered inside particular fields - and I don't want to use new MX actionscript.
I have another stupid question - but I'll start a new thread.
Stupid Text Question 2
Stupid Question 2.
I'm typing text into a text field, and when the text reaches a certain length (in pixels, not characters) I want to execute some code. Can anyway suggest a way to do this?
What I'm hoping is that someone will say - there's an actionscript function that just gives this pixel length value.
Otherwise, there's an overkill way of setting up a table of pixel lengths for every character. Or the simple way of assuming that for a long enough string the average width of each character tends towards a constant. Midway between these is a technique that just detects how many characters are upper case (or numbers), and how many are lowercase - and does a simple calculation based on average length of these two categories.
Any other suggestions?
Stupid Text Question 3
Is there a way to determine the position of the text cursor within an input text field?
Stupid Blurry Text
Is it only me that is having this frickin annoying problem with blurry text thats embedded in a dynamic text field.
The non-embedded text looks great! Why the heck is static text and embedded dynamic text blurry! GAHhhhhhhhhhhhh is there some secret i dont know gahhhhhhhhhhhh take a look at this .fla and see what i mean! Its really pissin me off if you cant already tell!
Stupid Text Question
ok i feel retarded for asking but for the life of me i can't figure this out...
i have a text scroller in one of my flash movies...
all i want to do is BOLD a few words within that scrollable text box but it bolds ALL the text within that box....
anybody know how i can just bold like a few words here and there?
Yoz, A Stupid TEXT Question.
Hi guys,
I just ran over this problem, and lol, i never noticed it... Is there a maximum charcter limit in a textbox ? I mean, let us say i want to load dynamically some text into a textbox ( a quite huge amount of text )... would it display all of it ? I kinda tried it out and sometimes it does, othertimes it doesn't... it's really wierd... Anyone knows anything about character limitation ?
Thanks,
Biro
Stupid Text Problem
Hey guys I've been searching the forums for about a half hour and can't find the asnwer to my stupid question. I'm almost embarassed posting this because its such a n00b question and the answer is gonna be real simple. But anyways with a dynamic text box with html checked, when I hit a hard enter key on my keyboard in the text file to go down a line, flash double spaces that line. It's only where I want to go down a line that Flash does this, in the regular text the text wraps and is single spaced. How do I get rid of this?
EXAMPLE:
<b>In text file:</b>
myVar=Hello
Hi.
<b>In Flash it comes out as:</b>
Hello
Hi.
Thanks!
-brad-
I'M GOING INSANE (stupid Blurry Text)
ok... i have asked this before and got no answers...
i searched the board and movies and tutorials as well..
someone PLEASE help me. its driving me insane.
ok, i can do everything right with dynamic text, but when i export the swf and look at it, the text doesent look crisp.
heres an example http://www.preachergonetotexas.com
now how can i make it look like the text here http://www.asterikstudio.com/welcome.html
PLLLEEAAASSSE HELP!
Input Text. Stupid Question.
I'm feeling pretty dumb right now. I've got an mc that is having it's ._y position calculated using Sine (Math.sin) and then is duplicating itself to leave a trail, sortof like wavelengths. All that is working perfectly, but I can't get the friggin input text boxes to work! I want to be able to put in different numbers that change the xstretch, ystretch, and so on of the animation, but I've never had to use input text boxes before and everything I try isnt working . All I really need to know is how I can enter certian numbers into the input feild and hit enter to have that set the variable that controls the movieclip.So it would be something like:
code: ball._y = Math.sin(i)*q
i++
Then I need q to be defined by what is typed into the input field. It's really easy I know but it's been hanging me up for an hour now.
Any help would be appreciated.
Help: Stupid Text Fade In/out Question
Okay, ha ha, very funny. Now will someone please tell me how to correctly do a text fade in/out in Flash MX????
Sometimes I can get it to work, most of the time I can't. Sometimes I can convert to movie and then do a motion tween and it will work, most of the time it won't work. Sometimes I convert text to graphic, apply motion tween and it works, most of the time it doesn't.
Is there a trick? I'm under deadline and this little gadfly is KILLING ME!!!! =)
Thanks in advance,
Bill
Stupid Question About Text Loading
Whats the best way to "check" if the external text file is loaded so that you dont end up with an empty box.
Im to tired to look for it in my book. lol
Stupid Question About Input Text
Okay, don't make fun. Here's the question:
How can I restrict an input text field to only accept numbers?
I'm using this very simple and straightforward script and it doesn't work. I have a "money_txt" text input field. If the entered value is under 1000 the timeline should go to frame "cheap" and if over, it should go to "thanks". But it doesn't work. it always goes to "cheap". And of course you can input letters too.
This seems like such a simple and obvious function, but I have searched high and low and don't find any information on this issue.
ActionScript Code:
var moneySend:Number = money_txt.text;
send_mc.onRelease = function() {
if (moneySend<=1000) {
gotoAndStop("cheap");
} else {
gotoAndStop("thanks");
}
};
Font And Text Format Being Stupid
hey guys im trying to make my fone set toArial. It wont work
heres what i have tried.
ActionScript Code:
_root.createTextField("menit"+num+i, D*2, this._x+12, Y, _root["men"+num]._width, 50); _root["menit"+num+i].selectable = false; var my_format:TextFormat = new TextFormat(); my_format.font = "Arial"; _root["menit"+num+i].text = list[i]; _root["menit"+num+i].setTextFormat(my_format);
ActionScript Code:
_root.createTextField("menit"+num+i, D*2, this._x+12, Y, _root["men"+num]._width, 50); _root["menit"+num+i].selectable = false; var my_format:TextFormat = new TextFormat(); my_format.font = "Arial"; _root["menit"+num+i].text = list[i]; _root["menit"+num+i].setNewTextFormat(my_format);
neither work any ideas?
Stupid Question Coming From Stupid Newb...
Yeah, I know this is probably the stupidest question you're ever going to here, but I'm desperate and I can't find out anywhere, so as embarassing as it is, this is my last resort.
How do you increase or decrease the thickness of lines in Flash MX?
Stupid Workspace Changing After I Save It (Or Stupid Me)
I have a dual-monitor setup and I have my timeline, stage, and properties panel on one monitor. That's all fine.
On the other monitor, I have the actions panel in one group and about 3 panels grouped into another group. The actions panel takes up the left 2/3 of the screen and the other panels take up the right 1/3 of the screen. That works fine.
I want to switch the actions panel with the other group of panels, so that the actions is on the right 2/3 of the screen and the other group of panels are on the left 1/3 of the screen. Problem is when I save my workspace layout, it somehow defaults the actions to the left side of teh screen and the other panels to the right side of the screen! It's driving me crazy. Anyone have any tips? Run into similar problems?
Stupid Question With Alpha And Fading Text.
Stupid question time!
Hi people im having a bit of trouble! someone help!
ok i have figured out with the movie clip to have the text say what i want it to say and then fade in and then out.
BUT im having trouble getting the text to fade in, show the message,fade out again and then, fade in with a different message.
can i do that on the same movie clip/scene or do i need to make another one? or would i go into the scene editor and change the sentence? cuz i have tried that and then it changes the message from frame one onward.
someone help me!
thanx ppl! yall are great on this forum!
I Want A Button To Activate The Sight Of A Text Box, And I Dno How Because Im Stupid
Guys, The .fla that im talking about is downloadable off this and I think its helpful to see what Im talking about.
There are some buttons down the left in a menu bar, the actual button being the coloured square behind the text. Anyway, there is a dark green area in the centre of the field, and when the button is pressed, I want to fade in some text into that area. But, when I press a different button, then I want to be able to load some different text in the same area. I know this is probably simple, but im not action script fluent and I couldn't find anything about activating texts in the forums. Not being picky, but is it possible to do it with static text?
Please help,
Jonny.
(The buttons I am talking about are in folder 'Side Bar', and prieviewing the page will come up with errors because there are sounds and text commands that arent there.)
Stupid Question: Link Colors In Text
Hey all,
So back when I used to make crappy html webpages we had tags that allowed us to determine the color of visited links, and links in general. I don't know how to do this in flash.
Here's my particular situation: on my site I have a links page. I have used a static text box which I have set up links on separate lines in a paragraph by highlighting the text, and under properties, adding a URL for each line (each line is a different link) But I would like to set it up so moused-over links change to a color, and visited links become a color (much like old html pages, except for the mouse-over part). Is there a way to do this so I that I don't have to make each line of the paragraph a separate button? And is there a way to globally set up a visited links color? I remember in MX there was a dialog called "color scheme" which I can't find in flash 8.
Thanks for your help,
trippel
I Want A Button To Activate The Sight Of A Text Box, And I Dno How Because Im Stupid
Guys, The .fla that im talking about is downloadable off this and I think its helpful to see what Im talking about.
There are some buttons down the left in a menu bar, the actual button being the coloured square behind the text. Anyway, there is a dark green area in the centre of the field, and when the button is pressed, I want to fade in some text into that area. But, when I press a different button, then I want to be able to load some different text in the same area. I know this is probably simple, but im not action script fluent and I couldn't find anything about activating texts in the forums. Not being picky, but is it possible to do it with static text?
Please help,
Jonny.
(The buttons I am talking about are in folder 'Side Bar', and prieviewing the page will come up with errors because there are sounds and text commands that arent there.)
Help Me I'm Stupid... Displaying External Text Files On Specific Dates....
Ok, had some great help from Whispers on Flashkit forums (http://www.flashkit.com/board/showthread.php?t=667462) but i really need to get it working...
At the moment the code is as follows:
ActionScript Code:
// Get DATE:
myDate = new Date();
Date = myDate.getDate();
month = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
year = myDate.getFullYear();
file = month[myDate.getMonth()]+"-"+date+"-"+year+".txt";
trace(file);
// Load text file of same name as DATE:
myVars = new LoadVars();
myVars.onLoad = function(success) {
if (success) {
_root.textBox.html = true;
_root.textBox.htmlText = (myVars.info);
// info = variable in text file
} else {
_root.textBox.htmlText = "Error loading text file";
}
};
myVars.load(file);
Whats not working...
I need to have the script print the contents of a text file IF it exists for the days date, if it doesn't it shows another frame/scene in the movie.
_root.textBox.htmlText = "Error loading text file";
should probably not be like that...
At the moment it isn't displaying the text from the text file, but it is working out what the days date is.
The FLA file is at http://www.petendom.co.uk/portfolio/EADT2.fla
Thanks so much for any help anyone can provide! Need to get this done quick ekkkkkeeek!
Dom
Stupid Question,,, But Feeling Stupid
why wont " ' " show up in my text which is dynamically imported from an html formated text file.
i know that " means " but what is a single quote?
helllppp
Stupid Employer, Stupid Question
hey there. my current employer currently has a header on an html page with a banner inside it. it looks like crap but his "web guys" have told him that the banner must stay in the exact place that it is otherwise it will destroy his flux capacitor or something along those lines. so im stuck trying to design a flash header for this guy with an animated gif banner inside of it. kinda like the gif banner is the hole in the donut. i guess my question is how do i leave the hole in the donut blank for the gif to be tossed into it without having to make 8 "sliced" flash movies that work together? sorry and i know theres an easy way to do this, i just havent touched flash in a few months and im rusty as all tarnation. thanks in advance
Stupid Question Hopefully Not Stupid Answers
I have put a trace on a variable that i use as a counter in a loop.
Everytime the loop in initialized it shows "undefined" before counting.
Can I ignore this or will it have some future impact on my work????
Stupid, Stupid, Stupid Question
But I need to know.
I'm learning actionscript.
How come sometimes the script is placed in ( ) and sometimes in [ ] what does each mean?
ex. (if move ==1)
or _root.Array [_root.arraysize]
thank you
Jumping To Areas Of Dynamic Text, Printing Dynamic Text
hello,
I have a movie clip that loads a .txt file into a dynamic text field. Due to the amount of content in the file a scroller bar is needed in order to view all of it. I want to create buttons that jump to different areas of the dynamic text for easier navigation so the user can go directly to various sections instead of having to use the scroller all the time. What kind of coding would I need to put on the buttons and within the .txt file at the areas I want to jump to?
Also, I would like to give the user the option to print everything within the dynamic text field only, not the surrounding elements in my movie clip. Is that possible?
thanks!
Dynamic Text Not Loading On Server . . . Other Dynamic Text Issues
ok - here's the url
http://www.rongilcreast.com/Test_Site/main.html
when I 'test movie' in Flash, the text comes in. But not now that it's online . . .
2nd problem. I want to add a scrollbar to the textbox, but when I drag the scrollbar onto the textbox, it doesn't snap-to the text box and resize itself.
all the files are here:
http://www.rongilcreast.com/Test_Site/main.fla
http://www.rongilcreast.com/Test_Site/main.swf
http://www.rongilcreast.com/Test_Site/Index.txt
whatamIdoin'wrong?
tia . . .
[AS2] Changing Text In Dynamic Text Field With Dynamic Instance Name
I dont know what I am missing here but what I want to do is change the text inside a dynamic text field via actionscript. the code I am using runs in a loop within a function. Trace is outputting the correct values.
PHP Code:
for(i=0; i<=4; i++) {
if(_root["order_"+ q][i] == 0) {
["order_"+ i]text = "First";
trace("first");
} else if (_root["order_"+ q][i] == 1) {
["order_"+ i]text = "Second";
trace("Second");
} else if (_root["order_"+ q][i] == 2) {
["order_"+ i]text = "Third";
trace("Third");
} else if (_root["order_"+ q][i] == 3) {
["order_"+ i]text = "Fourth";
trace("Fourth");
} else if (_root["order_"+ q][i] == 4) {
["order_"+ i]text = "Fifth";
trace("Fifth");
}
}
basically I want to do this -
PHP Code:
order_0.text = "First";
So how can I change this line to work as expected?
PHP Code:
["order_"+ i]text = "First";
EDIT- The instance names for the dynamic text fields are set
Thanks
Set Variable Stupid.user="stupid Question";
right... i got a bit of help with this yesterday but i need some more now....
lets say i have 1 button with 10 instances of it in a movie.
when you point to each instance, i want different text to hover over it.
with help from someon on here yesterday, i have now set up a dynamic text field on the 'over' frame of the button, and i have done the set variable lines saying:
button1.text = 1 banana
button2.text = 2 bananas
button3.text = 3 bananas
and so on, but i don't know how to tell each instance of the button what button it is.... so in other words, how do i tell button 1 that it is button 1 and button 2 that it is button2, etc?
Trying To Take The Text From One Dynamic Text Field And Populate Another Dynamic Text
I'm trying to take the text from one dynamic text field and populate another dynamic text field with its contents.
I want to display the text that is in the text field _root.MC_Control.tab_title in another text field called _root.video_title.
I have tried this:
_root.video_title.text = _root.MC_Control.tab_title.text;
and this:
_root.video_title.text == _root.MC_Control.tab_title.text;
neither one seems work....am I missing something?
Stupid Says As Stupid Does (variables)
I have an actionscript question::
I need to pass variables from html to flash but have run aground......
in the html :
username='ted'
in the flash movie
button action: http://www.happy.com/username
(obviously the username is equal to 'ted')
How do I do this????
please respond w/ a solid answer - 'cause boy it looks easy , but man am I stumped!!
Thanx
Stupid Stupid Preloader
I have a simple preloader animation that is suppossed to loop as my main page loads (take note, this IS NOT a progress bar!!).
As the animation is looping, the percentage of the movie loading is suppossed to be displayed. However the preloader never advances past the first frame in the preload scene (I'm keeping the preloader in its own scene to keep from adding keyframes to every layer in the main scene).
Here is the scripting I'm currently using:
Preload scene>>
frame 01:
percent = Math.floor(getBytesLoaded()/getBytesTotal()*100);
myOutput.text = percent + "% is loaded";
frame 02:
if (percent == 100){
gotoAndStop(3);
}else{
gotoAndPlay(1);
}
frame 03:
gotoAndPlay ("xscene:, 1)
Is there something missing? Something I did wrong? Help!!
Stupid, Stupid Masking.
Im kinda at a loss, and am thinking my problem lies somewhere in the software.
Im trying to animate a mask over a button. The mask works but the button is having issues. Whenever the animated mask hits one of its keyframes, the button stops working for (1) frame; ie, the up state becomes visible for (1) frame. Kinda sucks if you happen to be pressing or rolling over the button at the time.
The mask isnt a gradient or a symbol, just a crappy shape that moves.
Anyhow, when I publish the movie in Flash6 it works just fine but anything less and I get the glitches. Is there a workaround or something?
|