FRadioButton Label Displayed In A Dynamic Text Box?
Howdy,
I'm trying to send the selected FRadioButton Label to a Dynamic Text box with a change handler. I've done all it says in the online help with no results.
function onWidthChange(TLWidth) {
WChoice = TLWidth.getLabel();
WBoxText = WChoice;
};
TLWidth is the name of the FRadioGroup & WBoxText is the name of the dynamic text box. Is the mistake a simple syntax error or a fundamental error in logic?
You guys explain it better anyway.
Thanks for any help.
Radmo =]
FlashKit > Flash Help > Flash General Help
Posted on: 06-30-2003, 06:50 PM
View Complete Forum Thread with Replies
Sponsored Links:
FRadioButton Label Displayed In A Dynamic Text Box?
Howdy,
I'm trying to send the selected FRadioButton Label to a Dynamic Text box with a change handler. I've done all it says in the online help with no results.
function onWidthChange(TLWidth) {
WChoice = TLWidth.getLabel();
WBoxText = WChoice;
};
TLWidth is the name of the FRadioGroup & WBoxText is the name of the dynamic text box. Is the mistake a simple syntax error or a fundamental error in logic?
You guys explain it better anyway.
Thanks for any help.
Radmo =]
View Replies !
View Related
Display FRadioButton Label In Dynamic Text Box
I have an FRadioGroup and a dynamic text box on the same timeline. I've placed this script on frame 1 of that timeline , the name of the radiogroup is TLWidth, the name of the textbox is WBox, the name I put in the var field in the properties panel for WBox is WBoxText. Using Flash help they implied I needed to store the label in a variable then make the variable = to the textbox var name. something like this;
function onWidthChange(TLWidth) {
WChoice = TLWidth.getLabel();
WBoxText = WChoice;
};
Since then I've changed it to this;
function onWidthChange(TLWidth) {
WBoxText = TLWidth.getLabel();
};
but still nothing shows up in the text box.
What am I missing?
any help would be appreciated.
Radmo =|
View Replies !
View Related
Display FRadioButton Label In Dynamic Text Box
I have an FRadioGroup and a dynamic text box on the same timeline. I've placed this script on frame 1 of that timeline , the name of the radiogroup is TLWidth, the name of the textbox is WBox, the name I put in the var field in the properties panel for WBox is WBoxText. Using Flash help they implied I needed to store the label in a variable then make the variable = to the textbox var name. something like this;
function onWidthChange(TLWidth) {
WChoice = TLWidth.getLabel();
WBoxText = WChoice;
};
Since then I've changed it to this;
function onWidthChange(TLWidth) {
WBoxText = TLWidth.getLabel();
};
Another tactic was to drop the var WBoxText and just use the following;
function onWidthChange(TLWidth) {
WBox.text = TLWidth.getLabel();
};
but still nothing shows up in the text box.
What am I missing?
any help would be appreciated.
Radmo =|
View Replies !
View Related
Images Displayed In A Dynamic Text Box
Hello
I have created a text box that accepts HTML code. In the linked text file, I have created a variable that holds the following string:
txtVAR = <img border="0" src="welcome.gif">&
unfortunatly , the image did not appear in the text box? is there any solution to this problem ? please help.
Thankx
View Replies !
View Related
Dynamic Text Not Displayed Corrected
Hi All, Ive been really suck on this problem and have failed to find an answer.
Basically my problem is that my text is loaded dynamically from a text file. however this is 3movieclips deep. The text will display fine if I "test scene" however if i "test movie" no text is shown, i believe its something to do with my target however still have not found out the correct command....
Scene1 -> "Holder" -> "Main_about"
Then inside my "Main_about" i have actionscript with the following code:
Code:
loadVariables("http://asmithphotography.co.uk/asmit...aphy_about.txt", "_root");
This is then displayed in the dynamic text field...
Please would someone help! I think the answer is really simple but i just cant figure it out! Please Please Please
You can download the Fla here.... http://www.asmithphotography.co.uk/D...Text_v2sd4.fla
View Replies !
View Related
Dynamic Text Not Displayed Corrected
Hi All, Ive been really suck on this problem and have failed to find an answer.
Basically my problem is that my text is loaded dynamically from a text file. however this is 3movieclips deep. The text will display fine if I "test scene" however if i "test movie" no text is shown, i believe its something to do with my target however still have not found out the correct command....
Scene1 -> "Holder" -> "Main_about"
Then inside my "Main_about" i have actionscript with the following code:
Code:
loadVariables("http://asmithphotography.co.uk/asmit...aphy_about.txt", "_root");
This is then displayed in the dynamic text field...
Please would someone help! I think the answer is really simple but i just cant figure it out! Please Please Please
You can download the Fla here.... http://www.asmithphotography.co.uk/D...Text_v2sd4.fla
View Replies !
View Related
How Can I Get The With Of A Dynamic Text Label
i have made a menu with buttons i set a label that commes from my mysql db. so i do not know the with of the textlabel to set the with of my button.
because the buttons come on one horizontal line i need to know the with of the text.
i counted te chars and miltiply it with lets say 5px per char, but an "i" has less width then an "k" so it doesn't work.
do you know how i can get the with of an dynmic textfield its text?
many thx
View Replies !
View Related
Dynamic Text Field With A Label
Hi,
I am trying to create a input type text field with a label. The label number increments everytime an input text box is created by a button.
somebody help me with code please. I get the input OK but the label will not appear. I am a newbie to actionscript.
----
var t=0
t++
_root.createTextField("txt1",2,25,25,10,10);
txt1.text = "Label " + t (//this is used as a Label...is this correct)
txt1.autoSize = true
txt1.type = "input" (// I assume this will work as text input)
-----
View Replies !
View Related
Set The Text Label Of A Component Dynamic?
Hi all,
Trying to set the text label parameter of a component dynamicly.
Name of my component "btnApply
Tried with this code so far
PHP Code:
lang = "EN";
if(_root.lang == "EN") {
btnApply.label = "Submit";
btnApply.label.text = "Submit 2";
}
But this doesn't work.
Any ideas
View Replies !
View Related
Dynamic Text Vs. Label Component
I cannot seem to be able to set the "text" property of the Label component during the constructor of the "DocumentClass". Even though tracing "myLabel.text" at the constructor shows the correct text, when the swf file is finally loaded the myLabel.text property is back to it's default value. It's only after a DisplayObject.Event has been called (whose event handler also sets the myLabel.text property) that myLabel.text is properly displayed.
Just as a comparison, I added a "Text Tool" dynamic text box during design and modify it during the constructor and that gets properly displayed after the file has finished loading.
Is that done on purpose or is it just a bug?
View Replies !
View Related
Dynamic Text = Frame Label?
i'm a total noob with action script stuff.
i've searched all over for an "idiot's guide" or something like that.
i can't find answers for the simplest problems anywhere.
here's what i'm looking for.
try not to laugh too hard..
i'm making an art gallery/slide show thingy.
each image has it's own frame and each frame is labeled with the image's title.
the text field is part of a button.
highlighting the button is supposed to display the title.
so i want a dynamic text field to display the current frame's label.
simple, yet beyond my knowledge of flash.
View Replies !
View Related
Set The Text Label Of A Component Dynamic?
Hi all,
Trying to set the text label parameter of a component dynamicly.
Name of my component "btnApply
Tried with this code so far
PHP Code:
lang = "EN";
if(_root.lang == "EN") {
btnApply.label = "Submit";
btnApply.label.text = "Submit 2";
}
But this doesn't work.
Any ideas
View Replies !
View Related
Dynamic Text To Link To Frame/label
I am doing a faq page.
I have the questions in the dynamic text box on the left.
When a question is clicked, I would like the answer to appear in the right box.
This is what I need to do.
I need to be able to have (or part of) the dynamic text clickable. Either on its own or with an invisible button. So that I can then link the click to a frame or lable.
How can I make dynamic text do this?
Thanks
Trev
View Replies !
View Related
Referencing A Frame Label With Dynamic Text
Hi All,
I'm trying to reference a frame label which incredments by 1 every time it goes through a for loop. I don't know the correct syntax to reference the frame label when it needs to be part hand coded and part dynamic. i.e.:
gotoAndPlay('video'+i);
FULL CODE HERE:
Code:
for(l=0; l <= 11; l++){
_root["vid"+l].onRelease = function(){
_root.vid_container.gotoAndPlay['video'+l];
}
}
Hope you can help,
Cheers,
Gareth.
View Replies !
View Related
Dynamic Text & Link To Label In Flashmovie
Hi,
Problem I have:
I have a dynamic textbox. Some words in there I want to link to a label/frame in the same flashmovie instead of an url. Is this possible?
I tried to replace them by buttons and placed them on top of the dynamic text, to simulate the same, but that is not very pro i think so. Certainly not the way to do it, coz I experienced location problems.
thx
Shivl
View Replies !
View Related
LINK Dynamic Text To A Frame Label?¬¬ HELP
Hey guys!
is there a way to link text, not to an URLl, but to a frame label?
i want to attatch :
on (release) {
_parent._parent.gotoAndStop("frame_label");
}
to a word in a scrollable dynamic text field without making it a button. (And you cant scroll buttons in a dyn text feild anyway...)
Cos if i make it a button, i have to go through it a zillion times. (i want to link quite a few words)
this is a good start:
http://www.flashperfection.com/tutor...MX--73823.html
but again, i want to link frame label, not URL
is there a way to do this (you know, just like html...)
View Replies !
View Related
Dynamic Text & Link To Label In Flashmovie
Hi,
Problem I have:
I have a dynamic textbox. Some words in there I want to link to a label/frame in the same flashmovie instead of an url. Is this possible?
I tried to replace them by buttons and placed them on top of the dynamic text, to simulate the same, but that is not very pro i think so. Certainly not the way to do it, coz I experienced location problems.
thx
Shivl
View Replies !
View Related
Linking To A Frame/label From Dynamic Text.
Is it possible to have a link from within a dynamic text field to another frame/label within the main flash file?
The project I have calls an external .txt file into the flash movie and applies a css. I know how to add html url links etc. to this file but need to be able to link to other sections of the flash movie.
I have read a few posts in different forums and the answer seems to be in the use of "asfunctions". The samples I have seen all use this method from text that is dynamically generated via action script within flash. I have tried to apply these methods in the external html text file with no luck.
Can anyone point me in the right direction for some advice or better still, samples.
Thanks in advance.
Paul
View Replies !
View Related
Problem With How Dynamic Loaded Text Is Displayed When Loaded...
Hello!
Ive been struggeling all day with this!
I found a code in this forum on how to scroll and load a .txt in a dynamic textfield in flash 2004 (thx alot timothye )
This all works, but the problem is that I cannot get it to display some text bold. the
HTML Code:
<b></b>
does not work... why?! I did the same thing in flash MX and here it works just fine!
any help will be most welcome!
I'll post the flash for u to have a look at!
thx!
View Replies !
View Related
FRadioButton
Hello All,
I have created a Flash project that involves dynamically generated instances of the FRadioButton component. I have various groups of Radio Buttons. The obstacle that I am running into is that I would like to be able to toggle the Radio Button if the same one is pressed more than once.
I have an idea of how to do it but I'm not sure if I can dynamically apply some actionscript code to the instance of the Radio Button. Is that possible?
View Replies !
View Related
Text Displayed Once One Ends
Ok, I'm doing a band site for my friend and I have a news box posted on one side. I'm building it to have an admin area (using asp and an access database) so the band and myself can log in to change posts on the main page as needed without uploading the database everytime.
The problem is this: is there a way to get flash to detect when one post ends and another begins? I want them to appear with only one line between them.
i.e. the first post takes two lines, the second takes three and the third takes two. I want it to detect where the first box will end and start the second say, 10 pixels below. That way there's an even space between the first, second, and third posts.
I hope someone understands all this. Thanks in advance
View Replies !
View Related
What Can't Be Displayed From A Text File?
Hi,
I am using actionscript to load random quotes from a text file into a dynamic text box. Essentially this works fine - I press the button and a random quote is pulled from the text file. However, occasionally a little box with a question-mark in it will appear along with the text when I play the swf. I assume this means that somethings within the text file are not recognised. Generally these are "..." "'s" "'v" "-" although this doesn't occur in every case which is why I am confused.
Does anybody know why this occurs in some cases and not others?
Also, out of curiosity, is there a way to put an extra 'return space' into the quotes without messing up the code? like right now they
appear
like
this
but I was wondering if they could
appear
like
this
because some of them are fairly long and it gets slightly confusing sometimes, in terms of readability.
Anyway, I've uploaded the text file - any help would be really appreciated - been trying to get this quote page sorted for days ;p
(if it helps the actionscript I used is below - but I'm fairly sure that's working fine now).
Quote:
ranQuote = new LoadVars();
ranQuote.onLoad = function(success) {
if (success) {
RanNum = Math.ceil(Math.random()*620);
ran = ranQuote["quote"+RanNum];
quote_txt.text = ran;
}
else {
quote_txt.text = "Sorry, the quotes appear to have been eaten by a giraffe, please try again later ^^";
}
}
ranQuote.load("quotes.txt");
stop();
View Replies !
View Related
D. Text Not Being Displayed When Using LoadMovie
The problem:
Dynamic text is not displayed in an swf that is loaded, using loadMovie, into a movieClip located on the stage. The trace statements say that the data has been loaded, but it is not being displayed. The text actually appears when the swf is loaded into the root level, but not when it is loaded into a movieClip. The movie that is loaded in, using loadMovie, handles all the loading of the data into textfields within itself, thus there should be no problem with paths since the movie has been provn to work on its own. Does anyone have any idea why the text is not being displayed once loaded into the movieClip and/or know how to remedy it?
Thanks,
Michelle
View Replies !
View Related
Making Displayed XML Text A Hyperlink
I can read my XML file great, but id like to make one of my diplayed fields a hyperlink.
Ive scoured the net to find how to do it with not much luck.
ive enabled my dynamic text box to allow html, which in theory is nice, but i cant see how this will work because as soon as you enter any html tages into the XML, the XML throws its toys out of the pram and wont work.
SO. im confused. again. lol
Any ideas gang?
View Replies !
View Related
URL Text To Be Displayed In Flash Dynamicly
Hey all, you know when you have a search engine like google and their is text you can display at the end of the url and whatever you change it too will search for how would i do similar to this but have it display in a flash dynamic text box
http://www.google.co.uk/search?hl=en...G=Search&meta=
View Replies !
View Related
Mcs And Its Associated Text To Be Displayed With No Repetion And With Time
hi there all
i have 10 movieclips
2 mcs should be displayed each day(total 5 days for 10 mcs) on 10 am and 3 pm randomly
On the next day again new two mcs should be displayed and those mcs which has been already been displayed should not be repeated
i have the timer.zip (for time) and repeater.zip(for no repetion) files which are correct
pls chek someone to merge them together so that above thing can be achieved
here is the attached code
timer.zip
mytext.txt contains this content
&text1=test1
&text2=test2
&text3=test3
&text4=test4
&text5=test5
ActionScript Code:
textFile = new LoadVars()
textFile.onLoad = function(){
txt1 = this.text1;
txt2 = this.text2;
txt3 = this.text3;
txt4 = this.text4;
txt5 = this.text5;
};
textFile.load("myText.txt");
this.onEnterFrame=function() {
var time = new Date();
var hours = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
if(hours == 1){ // 1AM
mc1.gotoAndStop(2);
TextHolder.text = txt1;
mc5.gotoAndStop(1);
}
if(hours == 6){ // 2AM
mc2.gotoAndStop(2);
TextHolder.text = txt2;
mc1.gotoAndStop(1);
}
if(hours == 10){ // 3AM
mc3.gotoAndStop(2);
TextHolder.text = txt3;
mc2.gotoAndStop(1);
}
if(hours == 15){ // 4AM
mc4.gotoAndStop(2);
TextHolder.text = txt4;
mc3.gotoAndStop(1);
}
if(hours == 16){ // 5AM
mc5.gotoAndStop(2);
TextHolder.text = txt5;
mc4.gotoAndStop(1);
}
};
repeater.zip
ActionScript Code:
Array.prototype.shuffle=function(){
for(i=0;i<this.length;i++){
var tmp=this[i];
var randomNum=random(this.length);
this[i]=this[randomNum];
this[randomNum]=tmp;
}
}
var myInterval:Number;
var count:Number = 0;
var maxCount:Number = 4;
var examples:Array = new Array("text1.txt", "text2.txt", "text3.txt", "text4.txt", "text5.txt");
var mcs:Array = new Array("mc1","mc2","mc3","mc4","mc5");
var arr:Array = new Array(1,2,3,4,5);
arr.shuffle();
thisText = new LoadVars();
//thisText.load("example1.txt");
thisText.onLoad = function(success)
{
if (success) {
TextHolder.text = thisText.counts;
}
};
function mytimer() {
eval("mc"+ran).gotoAndStop(1);
ran = arr[count];
count++;
if(count == 5){
clearInterval(myInterval);
}
thisText.load("text"+ran+".txt");
eval("mc"+ran).gotoAndStop(2);
}
if(myInterval != null) {
clearInterval(myInterval);
}
myInterval = setInterval(this, "mytimer", 2000, examples[count], mcs[count]);
View Replies !
View Related
Not Getting Bold Text Frm XML Displayed In Flash
I have a strange problem. I have my xml document which have something like this:
<myTxt>The text displayed should be <B>bold</B>.</myTxt>
Basically i want acertain part of XML text to be displayed as bold in flash but the result i am getting in flash is
The text displayed should be <B>bold</B>.
What am i doning wrong. Plz help.
Moreover tags like BR (break) are working this way but any tag which has a closing tag like <B>, <I> are not.
View Replies !
View Related
FRadioButton Display Troubles...
Hello !
Fisrt, excuse me for my poor english.
I'm french and i'm not fluent with shakespeare's language !
I have some display troubles with FRadioButton.
When i check one of a group, the selected change his display : i can't see the bullet...
Is anyone have a solution for my trouble ?
I have test my swf both on Mac and Windows with flash player 7.
View Replies !
View Related
Loading The Text That Is Displayed On The Stage From Actionscript?
Hi,
Currently I have some symbols on the stage, which have text in them, what I want to do is to load what is in the symbol from actionscript, or to be able to type it into the Actions panel. So can anyone help or direct me to info of how to load text rather than typing it out on the stage?
eventually i want to be able to load the text from a database, but for now, i am trying to hard code this.
thanks in advance for your replies and help,
Simmy
View Replies !
View Related
Text Is Randomly Displayed In Movie Clip
I have created a button with a tooltip on rollover. The tooltip is a static textbox that contains text. When the site is published, the text displays with some characters missing. For example:
"Financial Services" displays as "Financial erices"
"Match Reports Guide" displays as "atch eorts uide"
I'm using Verdana size 8. Suggestions?
View Replies !
View Related
[FCS3] Javascript Array Displayed In Text Box
Hello,
I have a nice little Javascript that displays the date and line of text beneath it.
It works great in a regular html page but now I am upgrading my page to flash but still
would like and still would like to use this script (since I pretty much the whole year
filled in, one line of text for each day). I tried to load it in a dynamic text box by
geturl but I think I had the wrong actionscript.
Here is an example of my javascript:
<SCRIPT LANGUAGE="JavaScript">
dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
now = new Date
Jan = new Array
Jan[1] = "Place Quote Here"
Jan[2] = "Place Quote Here"
Jan[3] = "Place Quote Here"
Jan[4] = "Place Quote Here"
Jan[5] = "Place Quote Here"
Jan[6] = "Place Quote Here"
Jan[7] = "Place Quote Here"
Etc...through all 12 months, then
document.write("<Font color=#660000>")
document.write("<center><B>" + monName[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear() + "</B></center>" )
document.write("<Font size=1>")
if (now.getMonth() == 0) document.write("<center>" + Jan[now.getDate()] + "</center>")
if (now.getMonth() == 1) document.write("<center>" + Feb[now.getDate()] + "</center>")
if (now.getMonth() == 2) document.write("<center>" + Mar[now.getDate()] + "</center>")
if (now.getMonth() == 3) document.write("<center>" + Apr[now.getDate()] + "</center>")
if (now.getMonth() == 4) document.write("<center>" + May[now.getDate()] + "</center>")
if (now.getMonth() == 5) document.write("<center>" + Jun[now.getDate()] + "</center>")
if (now.getMonth() == 6) document.write("<center>" + Jul[now.getDate()] + "</center>")
if (now.getMonth() == 7) document.write("<center>" + Aug[now.getDate()] + "</center>")
if (now.getMonth() == 8) document.write("<center>" + Sep[now.getDate()] + "</center>")
if (now.getMonth() == 9) document.write("<center>" + Oct[now.getDate()] + "</center>")
if (now.getMonth() == 10) document.write("<center>" + Nov[now.getDate()] + "</center>")
if (now.getMonth() == 11) document.write("<center>" + Dec[now.getDate()] + "</center>")
</script>
Thank you so much for your help!
f-i
View Replies !
View Related
Changing The Text Displayed In Media Controller Component
Hi
If you have seen the media controller component (mx 2004), you know that while it's playing it shows some text that says either "STREAMING" or "PAUSED".
I would like to customize this text, but I don't seem to get it.
First I tried duplicating and customizing MediaComponents.fla, the file which contains the skins for the component, but there I can only change the skins, not the text it's showing.
Then I found MediaController.as, which contains all the actionscript for the component, including:
private function createDefaultStrings():Void
{
this._strings = new Object();
this._strings.paused = "PAUSED";
this._strings.streaming = "STREAMING";
}
However, although I change that text to my needs, I doesn't show when I test.
I'm sure there must be a way to change it, but I ignore it...
Any AS guru there knows how to do it?
View Replies !
View Related
XML Driven List Selection, Displayed In A Text Area
I am pretty sure this one isn't too difficult, but XML drives me crazy, so I figured I would ask here before I pull my hair out trying to do this. I want to have an XML file that contains data such as minutes from meetings. I want the dates of the meetings to be displayed in a list in Flash. I want to be able to select a date from this list, and have the meeting minutes displayed in a text area component, or text box, or something. Once all this is set up, I need to be able to just update the xml file with additional meeting minutes, and not have to alter the fla file anymore. This all could be done within the XML file, or have the XML load an exteranl txt file if that is possible, either one is fine. Thank you for any response!
View Replies !
View Related
FRadioButton Problem - How To Get Data From A Button Group?
Hi Flash Gurus!
I imagine that this will be an easy one for anyone who is experienced using the Flash UI Components. I have distilled the problem down to this:
I have two dynamically-created radio buttons, which should both belong to the group called "testGroup". First of all, that's not working, even though I have used the "setGroupName" function on both radio buttons. I.e., clicking one radio button does not unselect the other radio button in the same group, as it should.
My second problem is that both radio buttons have been set with _x = 5, but they always seem to appear slighly offset from each other.
My third problem is that I cannot seem to retrieve the selected data associated with the button group. While I suppose I could loop through every radio button instance and check to see if it's on or off, I would rather just call the getValue() or getSelectedItem() method of the entire group to see what has been selected. If you run the movie using the link on *****.com (below), you'll notice that when you click on the bottom button twice in succession, the data shows up in the field, but it does not show up when clicked once, and it does not show up when clicking just the first button.
I'm starting to believe that this may be a bug in my Flash Authoring Environment because of how unusual this behavior seems. I'm using 6.0.25 with the UI Components that came with it.
Here are the relevant files:
http://www.*****.com/RadioButtonTest.html
http://www.*****.com/RadioButtonTest.fla
Here is the exact code that I currently have in the first frame of _root:
var target = _root;
var groupName = "testGroup";
// first radio button
target.attachMovie( "FRadioButtonSymbol", "test1", 0 );
var myRadioButton = target.test;
myRadioButton.setGroupName( groupName );
myRadioButton.setData( "first" );
myRadioButton.setLabel( "" );
myRadioButton._x = 5;
myRadioButton._y = 20;
// second radio button
target.attachMovie( "FRadioButtonSymbol", "test2", 1 );
var myRadioButton2 = target.test2;
myRadioButton2.setGroupName( groupName );
myRadioButton2.setData( "second" );
myRadioButton2.setLabel( "" );
myRadioButton2._x = 5;
myRadioButton2._y = 50;
// create a text field to hold the currently selected data
target.createTextField( "showData", 2, 5, 80, 100, 20 );
target.showData.type = "dynamic";
target.showData.border = true;
/** Show the user the value of the radio button that they clicked. */
target.onMouseUp = function()
{
var buttonGroup = eval( groupName );
this.showData.text = "value: " + buttonGroup.getValue();
}
View Replies !
View Related
Stripping Illegal HTML From Form Inputs To Be Displayed In FMX Dyn Text Box
HI guys,
Need some suggestions.
Ive had a CF developer build a backend for a small flash site for me which stores copy (in HTML) and a URL for a display image.
Now, my client has been copying/pasting content from Word directly into this rich text box, and naturally putting all the crappy word html css and formatting tags in, which obviously break when flash renders the text as HTML.
Just wondering of anyone knew of a CF plugin, or any other suggestions anyone would have to strip the input feild of any word HTML?
Ive been searching all morning and cant find much.
Any suggestions would be helpful.
Thanks.
View Replies !
View Related
Dynamic Label
I've inherited a movie dynamically updates whenever a text file changes. The only problem is the movie constantly loops, creating the possibility of a DOS on my webserver and adding 10's of thousands of entries to my log file.
The code follows. Appreciate any input.
Thanks
Kirk
// ============================================
// PURPOSE
// The purpose of this script is to display the current
// FPCON status in the topbar navigation. When the
// status changes, the playhead will stop on the timeline
// that represents the current status and the
// navigation bar will cause a "light" to flash yellow if
// status is Exercise, red if status is Real World, and
// a solid green light if status is normal.
// ============================================
// VARIABLES and DEFINITIONS
// 1. fpcon_status.txt: contains the text words for the
// current status. Alpha, Bravo, Charlie, Delta. If the
// status is Exercise, then two spaces follow the
// status. If it's Real World, then it is spelled out as
// ALPHA REAL WORLD, etc.
// .
// 2. txtStatus is a text variable located in the
// movie clip called "statusDisplay"
// .
// 3. TellTarget= the Movie Clip object is the target.
// the script is telling the target to go the frame
// labeled "normal" "alpha" etc, depending on the
// status of fpcon_status.txt
// .
// 4. RW=Real World
// .
// 5. EX= Exercise
// ==============================================
// BEGIN SCRIPT
// ==============================================
// load the text file that sets the fpcon status
// ---------------------------------------------------------------------------------------------
onClipEvent (load) {
loadVariables ("fpcon_status.txt", "");
}
onClipEvent (enterFrame) {
loadVariables ("fpcon_status.txt", "");
}
// ---------------------------------------------------------------------------------------------
// direct the playhead to the correct frame label
// ---------------------------------------------------------------------------------------------
// NORMAL
// ---------------------------------------------------------------------------------------------
onClipEvent (data) {
if (txtStatus.substr(35, 6) == "NORMAL") {
tellTarget (_root) {
gotoAndStop ("STATUS", "normal");
}
}
// ---------------------------------------------------------------------------------------------
// ALPHA EXERCISE
// ---------------------------------------------------------------------------------------------
if (txtStatus.substr(35, 7) == "ALPHA ") {
tellTarget (_root) {
gotoAndStop ("alphaEX");
}
}
// ---------------------------------------------------------------------------------------------
// ALPHA REAL WORLD
// ---------------------------------------------------------------------------------------------
if (txtStatus.substr(35, 16) == "ALPHA REAL WORLD") {
tellTarget (_root) {
gotoAndStop ("alphaRW");
}
}
// ---------------------------------------------------------------------------------------------
// BRAVO EXERCISE
// ---------------------------------------------------------------------------------------------
if (txtStatus.substr(35, 7) == "BRAVO ") {
tellTarget (_root) {
gotoAndStop ("bravoEX");
}
}
// ---------------------------------------------------------------------------------------------
// BRAVO REAL WORLD
// ---------------------------------------------------------------------------------------------
if (txtStatus.substr(35, 16) == "BRAVO REAL WORLD") {
tellTarget (_root) {
gotoAndStop ("bravoRW");
}
}
// ---------------------------------------------------------------------------------------------
// CHARLIE EXERCISE
// ---------------------------------------------------------------------------------------------
if (txtStatus.substr(35, 9) == "CHARLIE ") {
tellTarget (_root) {
gotoAndStop ("charlieEX");
}
}
// ---------------------------------------------------------------------------------------------
// CHARLIE REAL WORLD
// ---------------------------------------------------------------------------------------------
if (txtStatus.substr(35, 18) == "CHARLIE REAL WORLD") {
tellTarget (_root) {
gotoAndStop ("charlieRW");
}
}
// ---------------------------------------------------------------------------------------------
// DELTA EXERCISE
// ---------------------------------------------------------------------------------------------
if (txtStatus.substr(35, 7) == "DELTA ") {
tellTarget (_root) {
gotoAndStop ("deltaEX");
}
}
// ---------------------------------------------------------------------------------------------
// DELTA REAL WORLD
// ---------------------------------------------------------------------------------------------
if (txtStatus.substr(35, 16) == "DELTA REAL WORLD") {
tellTarget (_root) {
gotoAndStop ("deltaRW");
}
}
}
View Replies !
View Related
Dynamic Label
Hi,
Is there a way to create a dynamic label in similar fashion as you create a dynamic text field? Or do I need to place label object into the library and attach that to the stage when ever I need it?
Thanks
View Replies !
View Related
Dynamic Label
I am trying to access a frame via a dynamic frame label.
I have set a variable to a bttn (on (rollOver)). With this variable, I want on (release) to go to a frame label called brick01, brick02, brick03, etc... This is the code, but it doesn't work.
function letGo() {
help = "brick"+br; //br being the variable name
trace(help);//brings up brick01, brick02, brick03, etc...
gotoAndStop(help);//this doesn't work
}
Any suggestions?
Thanks in advance.
View Replies !
View Related
Dynamic Name For A Frame Label?
Hiya chappies
Does anyone know if it is possible to dynamically name a Frame label in flash?
For example, can a variable on the timeline be used as a frame label?
If so, could someone point me in the right directions for how to do this.
Cheersies.
View Replies !
View Related
Dynamic Font For Label
Does anyone know if you can change the font in a LABEL that is populated dynamically?
I know it works in a text field but I don't see any docs on doing it with a label. For this instance I really need to use a label. Thanks!
View Replies !
View Related
Dynamic Button Label/name
I am trying to save some time when it comes to producing a bunch of buttons that are the same in style but are just labled differently. My idea is that I create the button inside a MC on the stage and use duplicateMovieClip to dup it as many times as I need. Then, I will access the the dynamic text field inside the button and name the button that way.
Duplication is working but naming is not. HELP PLEASE!!!!!
Here is my code.
Be kind, I am a Flash newbie:
//Function that duplicates the button
dup = function () {
x = 1;
MaxButton = 5;
while (x<MaxButton) {
duplicateMovieClip(button_mc, "button"+x+"_mc", x);
_root["button"+x+"_mc"]._x = _root["button"+x+"_mc"]._x+100*x;
x++;
}
};
//Calling the duplicate Function
dup();
//Naming the buttons and passing the name into the dynamic text field inside button(x)_mc.
//Text Field is titled newName. BUT IT DOESN"T WORK!!!
button0_mc.newName = "Button 0";
button1_mc.newName = "Button 1";
button2_mc.newName = "Button 2";
button3_mc.newName = "Button 3";
button4_mc.newName = "Button 4";
//Checking to see if naming convention of button(x)_mc worked. And it does
button1_mc.onRelease = function() {
button1_mc.newName = "Button 1";
trace("hello");
};
PLease help!
View Replies !
View Related
Dynamic Button Label/name
I am trying to save some time when it comes to producing a bunch of buttons that are the same in style but are just labled differently. My idea is that I create the button inside a MC on the stage and use duplicateMovieClip to dup it as many times as I need. Then, I will access the the dynamic text field inside the button and name the button that way.
Duplication is working but naming is not. HELP PLEASE!!!!!
Here is my code.
Be kind, I am a Flash newbie:
//Function that duplicates the button
dup = function () {
x = 1;
MaxButton = 5;
while (x<MaxButton) {
duplicateMovieClip(button_mc, "button"+x+"_mc", x);
_root["button"+x+"_mc"]._x = _root["button"+x+"_mc"]._x+100*x;
x++;
}
};
//Calling the duplicate Function
dup();
//Naming the buttons and passing the name into the dynamic text field inside button(x)_mc.
//Text Field is titled newName. BUT IT DOESN"T WORK!!!
button0_mc.newName = "Button 0";
button1_mc.newName = "Button 1";
button2_mc.newName = "Button 2";
button3_mc.newName = "Button 3";
button4_mc.newName = "Button 4";
//Checking to see if naming convention of button(x)_mc worked. And it does
button1_mc.onRelease = function() {
button1_mc.newName = "Button 1";
trace("hello");
};
PLease help!
View Replies !
View Related
Dynamic Name For A Frame Label?
Hiya chappies
Does anyone know if it is possible to dynamically name a Frame label in flash?
For example, can a variable on the timeline be used as a frame label?
If so, could someone point me in the right directions for how to do this.
Cheersies.
View Replies !
View Related
How To Set Dynamic Label To Bold Programmatically
Guys
I have one dynamic label control in my flash application. I have set the font weight to bold during design time. But due to some reason it does not show my bold when I assign text to the dynamic label.
I belive it might show bold if I assign font weight to bold when I assign text to it during run-time.
Does anyone has idea of how to make dynamic label control to bold during run-time.
View Replies !
View Related
Referencing Dynamic Frame Label
Well, I'm just having a stupid problem. I can't seem to call a frame label unless I type the entire name in the gotoAndPlay field.
I have frame labels FrameSec1, FrameSec2, FrameSec3, etc. I call a init function for each section passing that number, in the end I want to go to that frame
gotoAndPlay("FrameSec" + thisSecNum);
This doesn't work!
If I type gotoAndPlay("FrameSec1") it's fine, but...
Any ideas what I'm doing wrong?
Publishing as Flash 7 using AS 2.0
View Replies !
View Related
|