Choose Text From List In DynamicText
Hi friend, excuse my english
I have list of users in the DynamicText.
I want select one user, then that username automaticly
display in Input text...
...see figure (login proceedure)
thx
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-03-2003, 10:05 PM
View Complete Forum Thread with Replies
Sponsored Links:
Choose A Colour Out Of List?
hey there,
does anyone know how i would go about setting up a bit of actionscript so that for each duplicate MC i make it could only be one out of the three colours i specify.
At the moment ive got this at the end of my script:
Code:
myColor = Math.round( Math.random()*0xFFFFFF );
myColoredObject = new Color ("newleaf"+i);
myColoredObject.setRGB(myColor);
this works great,makes all the MC different colours as they spawn, but i want to limit the possible colours to three at random.
any ideas?
cheers
9114
View Replies !
View Related
Actions On Text In Dynamictext Scroller?
i have a menu of sorts that scrolls with arrows,
i know i can render the text in the dynamic text field as html, enabling me to create a hyperlink, but how do give a line in the text field an action to
control other aspects of the flash, can text within a dynamic scrolling text field have button actions?
thanks
View Replies !
View Related
Actions On Text In Dynamictext Scroller?
i have a menu of sorts that scrolls with arrows,
i know i can render the text in the dynamic text field as html, enabling me to create a hyperlink, but how do give a line in the text field an action to
control other aspects of the flash, can text within a dynamic scrolling text field have button actions?
thanks
View Replies !
View Related
How To Choose Which Text To Load From A Text File.
I posted this recently without a response but I think my subject line was misleading..
I am trying to pass a variable to choose which text to load, with multiple variables in the text file. This works if I replace the _global.curTxt with just Pic0001, it loads the text but I want to be able to pass which portion of the text I want loaded from the text file.
Here is the code:
_global.LoadText = function() {
PhotoTextVar.load(_global.curPath+"PhotoInfo.txt") ;
PhotoTextVar.onLoad = function (success){
if (success){
_global.curTxt = ("Pic"+_global.curPic)
trace (_global.curTxt);
PhotoInfo.text = this._global.curTxt //PROBLEM HERE!
}
}
};
My Text file looks like this:
Pic0001=Testing 01
&Pic0002=Testing 02
&Pic0003=Testing 03
The output is this:
Pic0001
Pic0002
Pic0003
Thanks in advance
View Replies !
View Related
Pass Variable To Choose Which Text To Load - Please Help
I've been reading the forums but I am at a loss here.
I am trying to pass a variable to choose which text to load, with multiple variables in the text file.
Here is the code:
_global.LoadText = function() {
PhotoTextVar.load(_global.curPath+"PhotoInfo.txt") ;
PhotoTextVar.onLoad = function (success){
if (success){
_global.curTxt = ("Pic"+_global.curPic)
trace ("curPic="+_global.curTxt);
PhotoInfo.text = this._global.curTxt //PROBLEM HERE!
}
}
};
My Text file looks like this:
Pic0001=Testing 01
&Pic0002=Testing 02
&Pic0003=Testing 03
The output is this:
curPic=Pic0001
curPic=Pic0002
curPic=Pic0003
Thanks in advance
View Replies !
View Related
Choose External Text File To Read In
Hi there
Not sure if this is possible but would be great if it is.
I would like my online app (Flash 8) to include a button that when clicked will present the user with a dialogue box allowing them to select a text file from their hard drive. The text file contains data that will populate some fields and combo boxes.
Hence once they have selected the text file, the flash app reads in the values of various variables from this text file.
Any help much appreciated!
Thanks
View Replies !
View Related
Changing Dynamic Text To A Font I Choose.
Hi - First post. I'm trying to have the dynamic text in my buttons show a font I choose when posted and viewed in a browser. I imagine there is a code for this? I tried embedding the fonts but that didn't seem to work.
the code for the buttons looks like this:
============================
stop();
myText.text = this._name.substring(1);
============================
pretty simple and it works. The numbers rise in the order they should and are correct in the position I put them on the stage. Great. Now I would like to choose a font. Any hints?
Thanks
Cardwell.
View Replies !
View Related
[MX04] Enabling User To Choose Input Text Font
Greetings. I am in need of a way to enable a user to be able to choose and change the font within a predetermined text box. The finished flash projector will need to be able to go into the user's font folder figure out what font the user has avaiable to them and must display them within a list for the user to see (as would any word processing or design program). When the user chooses the desired font the input text box will start displaying anything typed in as the chosen font. I have no idea where to even begin
(I'm not very good at explaining this stuff so if clarification is needed just ask)
View Replies !
View Related
DynamicText For AS 3.0
I made a FLA with a dynamicText box and named the instance "myText"....
Then I wrote AS code with
myText.text = "abc";
I even made sure I did this:
import flash.text.TextField;
The desired output should be able to display that text 'abc' on the movie.
However, I only get compile errors saying that the myText instance is undefined. Anyone understand how to fix this?
Cheers
View Replies !
View Related
Enter In DynamicText
Hi! I have one problem:
I have DynamicText field with Mulitiline setting. And take text from XML date.
If it has enter inside, mean not one line, then the spaces
between lines are to large. If it's just one line, then it
makes anouther interval between lines. So, I can not set
equal properties for to types of texts. Please, what to do?
Alex.
View Replies !
View Related
DynamicText Problem
Hi All,
I have a dynamic text box in stage and am passing text to the dynamic text box during runtime , the problem is how to make the text in the dynamic text box to bold , i have tried in many ways like
>for the dynamic text box enabled the Bold button during authoring time ,
>through action script i have given the following code and tried
_root.myText.bold=true .
but nothing is working , can anyone tell wat am doing wrong?
Thanks,
Saddu.
View Replies !
View Related
Dynamictext And Mask
I have an animation which is masked. Inside the mask is a movie clip. Within the movie clip I have created dynamic scrollable text. When I test the movie it does not display the text. If I remove the mask and test it shows the text.
However I cannot remove either of the objects as both are needed.
Any better solutions??
View Replies !
View Related
DynamicText With Anchor?
Hi all!
I have a dynamic textbox that i load text in from different external .txt's, and I want to have a button that will jump(or scroll) to an achored or set point inside the actual loaded text!!
I tried to have an anchor point in my txt(i set the textbox "render as html")
<a name="anchor point"></a>
and than call it with action script(on my "scrollTo" button)
on(release){
_root.textbox.setScrollContent("textbox")
}
but this obviously wont work.
Anyone know how to do this?
thx in advice
View Replies !
View Related
Buttons.dynamicText.impossible?
Here's an easy one... Is it possible to use dynamic text boxes inside of butons? I wanted to make one button symbol and set a dynamic text box inside of it, then duplicate the button several times with a unique instance name, and assign the text of each button using _root.buttonInstance.dynamicTextBox.text, but that doesnt seem to work.. The text box doesnt even show on the target locator..
any info on that?
thanks,
-myk
View Replies !
View Related
DynamicText Placement With An Array
I have an array of numbers, that are certain percentages of a number the user inputs earlier in the program...
On the click of a button, a star comes up and I want one of the values in the array to show on top of the star... closest I have so far is this:
Quote:
var BlackJackResult:Number;
stop();
BgStr_mc.onLoad = function() {
_root.createTextField("txt", 1, 10, 10, 437,294.9);
for (lcv=0; lcv<39; lcv++) {
rnd = Math.random(41);
for (i=0; i<lcv; i++) {
if (rnd=trash[i]) {
rnd = Math.random(41);
i = -1;
}
}
trash[lcv] = rnd;
BlackJackResult = block[rnd];
txt.TextFormat.Color("0000FF");
txt.swapDepths(this.getNextHighestDepth());
txt.text(""+BlackJackResult+"");
}
this.gotoAndPlay(7);
I'm stumped on this, as I'm new to Actionscript as a whole beyond the actual "on(release){play();}" sort of scripting...
Any help is greatly appreciated
View Replies !
View Related
DynamicText's Instancename Took From Array...help
Hi guys,
quick help...
I'm loading some information from an XML file into different dynamic text in flash...
one of my text field is named: "news1_title"
code:
var news = new Array("news1","news2","news3");
function processNews(xmlDoc_xml) {
for (var n = 0; n<xmlDoc_xml.firstChild.childNodes.length; n++) {
trace(_root.news[n].concat("_title"));
_root.news[n].concat("_title").text = xmlDoc_xml.firstChild.childNodes[n].firstChild.nextSibling.firstChild;
}
}
trace show me what I want: "news1_title"
but nothing is assigned to the text field...
for sure nothing is wrong with XML... if I write _root.news1_title.text = xmlDoc_xml.firstChild.childNodes[n].firstChild.nextSibling.firstChild;
its ok!
is there some problem to assign a value to a dynamic text with an instance name took from an array?
thx!
View Replies !
View Related
Giving Effect To A Mc Which Has Dynamictext...
hi everybody,
i use a dynamictext in a movieclip that gets the data from XML.
i want to give an effect this text, i put dynamictext into a movieclip, and i use movieclip to give effect, but when i use mask on this mc, data doesn't displayed or when i change the alpha in tweenmotion, this changes don't be active...
can't i give any effect to a movieclip which has a dynamic text in?
thanks everybody for helps...
View Replies !
View Related
Giving Effect To A Mc Which Has Dynamictext...
hi everybody,
i use a dynamictext in a movieclip that gets the data from XML.
i want to give an effect this text, i put dynamictext into a movieclip, and i use movieclip to give effect, but when i use mask on this mc, data doesn't displayed or when i change the alpha in tweenmotion, this changes don't be active...
can't i give any effect to a movieclip which has a dynamic text in?
thanks everybody for helps...
View Replies !
View Related
DynamicText Scrollbar Driving Me Nuts
Using the scrollBar component in MX. I can't seem to get the scrollbars to work with my dynamic text boxes. The text loads into the field fine using this code loadVariables("lvtest.txt", this); but the text extends further than what is shown and the scrollbar isn't recognizing that for some reason. The buttons on the scrollbar are not active and there is no bar to drag. My text is plenty long and needs to be scrolled. What's with this component...i thought it was going to make my life easier.
View Replies !
View Related
DynamicText Inside A MovieClip(Symbol)
I need some hep with the actionscript...
i am trying to make a Flash Movie with dynamically loaded text(from a .txt file).
I have successfully achived this by adding the cod
"
loadText = new loadVars();
loadText.load("dyText.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.dyText;
};
"
This code works fine when i use it on the Main Movie i.e when my DynamicTextBox and the ActionFrame is on the Main Movie.
But when i add a MovieClip Symbol in my Flash Movie and place my DynamicTextBox and ActionFrame inside that movie clip then it doesnt works.
I mean to say that i dont want the text box on the Main Movie. I want it in a Symbol(MovieClip)
Please guide me what changes should i make in code to make that work.
Thanks in Advance
View Replies !
View Related
Finding The Full Path Of My DynamicText
Is there a way to retrieve the full path of my target dynamic text?
I purchased this template but it seems quite intricated.....
I mean: the text I wanna change is inside a movieclip that is inside a movieclip tha is inside yet another movieclip that is ........ well ok I admit it I'm lost!
Can I somehow retrieve the full path of the dynamic text so I can adress it with:
.text = "newtext"
Thanks
View Replies !
View Related
Accessing DynamicText From External Class
Hi everyone,
I know this has been asked countless times, I had a look at a many posts concerning this subject, but it got me confused more than anything. For example, I have looked at Senocular's Tip of the day, but i'm still not quite sure what code needs to go where.
Here's my setup: I have a DynamicText object on the main timeline, which is instantiated as "txtContent". Now, from an external class (let's call it LanguageManager, stored in LanguageManager.as) i'm trying to get access to this object so i can pass some text (ex: txtContent.text = "some text").
So, which code should i put in a separate class file, and which code do i need to put in the class LanguageManager? Also, do i need to do :
Code:
addChild(txtContent);
in the main timeline even if the object is already sitting on the stage?
Thanks in advance for any help!
View Replies !
View Related
Capturing OnRollOver DynamicText Event
Hi ,
i want to know how i can capture text on mouse overevent in flash , In the case, i am getting text from XML,although i hav added <a href='asfunction:myfunc'>Click here</a> to call a function in flash , now i want to add a tool tip or if possible it should call a function when i rollover that text. Please help
View Replies !
View Related
Cannot Change Alpha In DynamicText Box (its Contained In A Movie)
I am coding a button on a webpage and i cannot alter the alpha (transperancy) of the text. The text is in a dyanamic text box contained in a movie clip.
Movie instance name= home
Dynamic Text Box Instance Name= home
Any help??
The code i hav so far is:
var txt_fmt:TextFormat = new TextFormat();
txt_fmt.color = 0x000000;
txt_fmt.size = 9;
hom.hom.setTextFormat(txt_fmt);
var txtmt:TextFormat = new TextFormat();
txtmt.color = 0xFFFFFF;
txtmt.size = 9;
home.home.setTextFormat(txtmt);
it alters size but not alpha. The code is not contained for alpha as it did not work
Thanks
View Replies !
View Related
Simply Load Txt File To Dynamictext Field
Hello everybody in here!
I have a simple question. I had never the necessity to load external text because till now i hadn't big blocks of text to put into my sites.
So I searched tutorials or threads that coul tel me how to do this. Unlucky.
tutorials had buttons ans so on, and I'm quite green on AS.
can some one tell me how one creates a dynamic Text box and load and external txt file into it.
I'd be much thankfull to you, thanks for your help.
AlípioSequeira.
Portugal.
View Replies !
View Related
DynamicText(html) In ScrollBar Two Clicks To Open Link
I have a few dynamic text fields (htmlText) with links, either using the .url property in TextFormat and "<a href>" tags. The text files are then placed in a movie clip that was created dynamically which is then bound the the ScrollBar component.
At first it appeared that everything was working perfect....but after a while I noticed if I left the window containing Flash Movie and came came back, it would then takes two clicks for the links to work again.
Trying to track down this little bugger of a problem, I added a listener to the text field to check the stage.focus
Here is my return:
[object TextField] // clicked on a link that opened a browser window out of the Flash IDE
[object TextField]// clicked on another link that opened in the same window
// went and check out the new window that loaded the link
// when I come back and click on the same or another link I get ScrollPane as the trace on the stage.focus
[object ScrollPane]
//second click works and link opened in the browser window
[object TextField]
I am really at a loss as to what I can do to make it so you only have to click once for the link to download.
Thanks in advance,
D
View Replies !
View Related
Select Text File From Dropdown List, Content To Show In Swf Dynamic Text Field
I have a php page where there is a form with a dropdown list of all text files in my site. The name of the dropdown is $filename.
The action script in my swf is this:
loadVariablesNum("<?PHP echo $filename; ?>", 0);
but I get nothing. It displays correctly when I replace
<?PHP echo $filename; ?> with the actual value of $filename, for example:
loadVariablesNum("ui_websites.txt", 0);
Any ideas what I'm doing wrong?
View Replies !
View Related
You Choose 3
Here's my problem. Hope someone can point me in the right direction.
Explaination:
- I have 10 objects.
- When I click on the object it goes into 1 of 3 spots
- When all 3 Spots are filled you are done.
Problem:
- What is the easiest way to have each object go into an open spot until no spots are left without over writing a spot with another object.
Possible Solutions:
-I've tried writing an array for the 10 objects and setting the 3 spots to false but can't figuire out how to make them true once they are pulled in.
-Any suggestions would help
Thanks in advance
View Replies !
View Related
[F8] MCL...which One To Choose
I'm having trouble with my first full screen project.The full screen part is working. What I can't figure out:
1) My MCL is dynamic and centered...but the the AS in the external swf's is for the most part, AS1, not AS2. Therefore, practically nothing works.
PHP Code:
this.createEmptyMovieClip("externalContainer", 5);
footerLinks_mc.swapDepths(6);
var xListener:Object = new Object();
xListener.onLoadInit = function(target_mc:MovieClip) {
//position itself correctly
trace("INIT FIRED");
target_mc._x = (Stage.width / 2) - (target_mc._width / 2);
target_mc._y = (Stage.height / 2) - (target_mc._height / 2);
target_mc.onPress = function() {
trace("NAME: " + this._name);
//externalContainer.unloadMovie();
};
};
var xLoader:MovieClipLoader = new MovieClipLoader();
xLoader.addListener(xListener);
Is there a way to make the AS1 work within this environment? Or...
2) If I create a MCL, not dynamic, all of the AS1 codes work fine, but I can't get it to center on the full screen stage:
PHP Code:
loadMovie("mask.swf","MCL1");
ready._x = (Stage.width - ready._width)/2;
ready._y = (Stage.height - ready._height)/2;
Any suggestions???
Thanks.
View Replies !
View Related
List/Text Box
I'm looking forhelp, any suggestions appreciated. I'm working on a poetry site and would like to have a list of poems that could be scrolled through and when clicked on would open in a text box to the side of the list. I'm using Flash 5.
View Replies !
View Related
Choose Character
Hello everybody,
I'm working on a fla where you can choose your character (boy or girl) to navigate the site.
My initial idea was:
the user clicks on the boy or the girl
depending on what the user chose, the timeline lands on a certain frame and the movie clip on this frame calls in the image of either the boy or girl.
Howver is this the best way to do it?, or has someone out there got some amazing script that can make this happen better.
Please get back to me
K
View Replies !
View Related
Choose Ant Character
hi, first of all can anyone get on too were here forum?
okay my question i really need help on this code as i have been messing around with it for 3 weeks.
how do u go about making a mc that is selcetable? that is one of many attached to the stage.
i thought that on mouse up i could change the name? iam useing this code but nothing i try seams to work.
on (release) {
//_root.toolbox.gotoAndStop(2);
//game.currentchar.clip = this._parent;
//_root.char.clip = currentchar;
//var name = currentant;
antW.clip = game.clip.currentant;
//this._parent.movefuker = "currentchar";
}
onClipEvent (enterFrame) {
_root.moveplease();
}
this is on a key frame in the main timeline. the idea is to get that specific mc to go to frame 4 once i can do this then ill change it to suit the project.
function moveplease() {
//game.currentchar.clip._x = game.currentchar.clip.x+1;
//_root.char.clip.gotoAndStop(4);
_root.currentchar.clip.gotoAndStop(4);
}
cheers, help most needed
View Replies !
View Related
How To Choose Avatar
Hi All,
I am developing avatar chat engine .. and i would like the user to be able to choose his avatar .. the chat engine is reading the variables from a text file using PHP .. anybody can help !
View Replies !
View Related
Choose A Color
hello. I should I go about making one of those things that opens up where you have a curser and you drag it around, and it shows what color you have in hex. Like the color mixer in flash? Sorry if i'm not explaining good enough. tell me if I need to post a screenshot of what i'm talking about.
View Replies !
View Related
What Server To Choose...?
Hi,
I'd like to make a real time chat system to a webpage... with no rooms ... a simple instant messaging one... But I don't know what server to choose?! FMS is too expensive and eat a lot of server resources ... and I'd like a server who can have more than 1000 users... low cost and fast
thanks for your oppinions..
View Replies !
View Related
Choose The Best Camera
Hello,
I have so far been using the logitech pro 400. I have recently tried the logitech quickcam ultra vision.
Welle the video is not as expected.
Can anyone please tell me which is the best camera . I need to have a rather good resolution with no bandwidth limits.
Thanks for your advice.
View Replies !
View Related
To Choose A Xml Database...
Hi
For instance I got 3 buttons. And their instances names are button1, button2 and button3. And I have 3 different Xml files(databases). Their names are file1.xml , file2.xml , file3.xml. How can I develop a code to use as this,
when I press or release button1 , file1.xml become loaded.
same as button2 and button3...
Here is a code that I write but it is not working?
var x:XML = new XML();
x.ignoreWhite = true;
button1.onRelease=function(){
x.load("file1.xml");
}
button2.onPress=function(){
x.load("file2.xml");
}
button3.onPress=function(){
x.load("file3.xml");
}
View Replies !
View Related
Which School To Choose?
Hello, i am 21 years old student from Lithuania. After 16 monts i will graduate bachelours degree (am learning philosophy and business managment)
after graduation i would like to study visual arts, at the moment i am searching for school/university. am interesting in good quality and price proportion. Am learning individually with Flash, PhotoShop, After Effects, and Poser. In future i am going to learn with Maya. Am very interesting in animation. i have 16 months to find my future school so i hope you will help me to choose.
thank you....
Evaldas Cesnavicius :roll:
View Replies !
View Related
LIST Text In Dynamic Text Box
Hello
I have a dynamic text field with the variable name "tex". I have a button which says
on(rollOver) {
tex="testing";
}
And this works. Although how do I make a list of text appear so it looks like this
testing
testing
testing
testing
Any help would be great.
Thanks
Sandman9
View Replies !
View Related
LIST Text In Dynamic Text Box
Hello
I have a dynamic text field with the variable name "tex". I have a button which says
on(rollOver) {
tex="testing";
}
And this works. Although how do I make a list of text appear so it looks like this
testing
testing
testing
testing
Any help would be great.
Thanks
Sandman9
View Replies !
View Related
Mutliline Text In List Box
Hi All,
I have listBox component on the stage. Its width and height is same as you drag it from the components panel to Stage.
Some elements are added in this list box using code:
for(var k=0; k<12; k++)
{
item = "default value" + k
myListBox.addItem(item)
}
My problem is that this LB does not display the entire text from item number 10 (whose text is "default value10"). It only displays the partial text as "default".
I know this has happened because the text does not fit in single line.
So what's the solution to display multiline text in LB? I cant increase width of LB beyond certain limit on the stage.
Any help would be really appreciated.
Hoping for ur quick reply.
Regards,
Suhas
View Replies !
View Related
How To Add Text To UI Component - List Box
I am stumped as to how to add text to one of the UI Components the scrolling list box. I want to insert scrolling text not lists.
The actions frame of the list box movie clip references a movie clip (flistItem)
Do I drop the mc UI Component List Box onto the stage and then go to the mc and edit it putting text in one of the layers and call the text "flistitem."
View Replies !
View Related
Magnify Text List ?
I’d like to create a list of items that you can only scroll in the Y-Axis and have the scroll window magnify what ever is underneath it. I’m wondering what the action script would look like and how this would be done? I’ve attached a still to give you an idea of what I need to happen.
Your help is greatly appreciated.
Thanks
View Replies !
View Related
|