Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Creating Components... Dynamic Text



I'm learning to create components so I've started with
what 'should' be easy. A simple label component that is
really just a dynamic text box.

I can't seem to get the textbox to dynamically
resize via live preview and letters get cropped off.
But the component auto-resizes fine when the movie is tested.

Also I can't seem to figure out a way for user's to set
an embedded font for the textbox. I want them to be able to
do this all through the properties interface.

The MM tutorial had a font list in it's UI interface but
it doesn't show any fonts imported to the Library. Arrg...

Suggestions ?



FlashKit > Flash Help > Flash MX
Posted on: 08-21-2003, 05:43 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Dynamic Text And Components
This is probably a stupid questions, but I cannot figure it out. I am trying to build a component becuase this is something I am going to be using over and over agian, and I want to be able to chagne the values easily.
I have a movie clip, that when rolls over I make a another movieclip visible, and on rollout it is invisible. The trouble I am having is in the dynamic text that is inside the movieclip that gets turned visible and invisible. I define a variable name to a dynamic text box, and register that variable name in the component properties box, but when I test it I get:
_LEVEL0.INSTANCE.DETAILS.WHERE

not the value that I put into the parameters of the component, what am I doing wrong.

Dynamic Text Box & Flash Text Box Components
Hi,

I'm having trouble getting a scrolling text box created with Flash components to dynamically pull the text from an external .txt file. I can get a normal text box to pull the info no problem, but I can the the components text box to.

Any suggestions?

[F8] Scrolling Dynamic Text Through Code (no Components)
Where can I find help on creating scrolling text without using flash's built in components or masks and tweens. in searching the net, it appears 80% of the tutorials deal with using components (bad) or tweening movieclips. My text is coming in from xml. this is what I have so far, just not able to come up with the solution for the draggable section.

• dynamic textbox
• buttons
• drag bar

button code

PHP Code:



// scroll with buttons:
scrollDown_btn.onPress = function(){
    if (theField_txt.scroll < theField_txt.maxscroll){theField_txt.scroll++;}
    
}

scrollUp_btn.onPress = function(){
    if (theField_txt.scroll > 1){theField_txt.scroll--;}
}




key listener code for arrow keys:

PHP Code:



// use arrow keys to scroll
var keyListener = new Object();
keyListener.onKeyDown = function() {
    var keyCode = Key.getCode();
    if (keyCode == Key.DOWN) {
        theField_txt.scroll++;
    }
    else if (keyCode == Key.UP) {
        theField_txt.scroll--;
    }
}
Key.addListener(keyListener);




now the part I can't seem to get the slider:

PHP Code:



dragLock_left   = sliderBar_mc._width;
dragLock_top    = sliderBar_mc._y;
dragLock_right  = (sliderBar_mc._x + sliderBar_mc._width);
dragLock_bottom = (sliderBar_mc._y + sliderBar_mc._height);

sliderDrag_mc.onPress = function(){
    sliderDrag_mc.startDrag(false, 630, dragLock_top, dragLock_right, dragLock_bottom);
}
sliderDrag_mc.onRelease = sliderDrag_mc.onReleaseOutside =  function(){stopDrag();}




Ive got the slider to "lock" into position just need to figure out the math to get it to move the text in proportion to the amount of space on the slider, if that makes sense

any direction on this would be great.


IMS

Creating Dynamic Text Fields Within Dynamic Mc
Im using this xml "data.xml":

HTML Code:
<XML>
<salesreps>
<rep>
<firstname value="Jon"/>
<lastname value="Doe"/>
<phone value="(555)999-9999"/>
<email value="jondoe@yahoo.com"/>
<description value="Description for Jon Doe."/>
<photo value="../LandAm/images/wes.bmp"/>
</rep>
<rep>
<firstname value="Jane"/>
<lastname value="Doe"/>
<phone value="(555)555-5555"/>
<email value="janedoe@yahoo.com"/>
<description value="Description for Jane Doe."/>
<photo value="../LandAm/images/robin.jpg"/>
</rep>
<rep>
<firstname value="adfkljasdfl;kj"/>
<lastname value="l;kajglaskdj"/>
<phone value="kdfjgls;dkjg"/>
<email value="dfgkljsdlg;"/>
<description value="kjdgfl;asdkgnl;sakdnglkj"/>
<photo value="../LandAm/images/nophoto.jpg"/>
</rep>
</salesreps>
</XML>
I want to generate a mc for each rep with 6 text fields containg the 6 values for eash rep. So for this xml there would be 3 mc's with 6 text fields in each. This is one of my first times really diving in to xml parsing in Flash.

I just need a push in the right direction. Thank you for you time!

Creating Dynamic Tooltip For Dynamic Text
I've been working on a proof of concept and have run into a stumper. What I am trying to do is add tooltips dynamically to dynamic text. Here is what I have so far, http://www.hallmedia.com/client/chop/tooltip.swf

Type in some text including the magic word "dolor" and hit the orange button. Flash will highlight the first instance of dolor wherever it might be in your text. Groovy.

Now I am trying to figure out a way to get the coordinates of the first and last character so I can attach a movie clip covering that area that will invoke a tooltip popup upon rollover. Any ideas?

Dynamic Text Creating A Hyperlink In A Text Field
I have a text field on the stage name 'text', I set in a keyframe, text="<a href=http://flash.com>Flash</a>";, I select 'render text as html' for 'text' field. However, upon execution, it hides the html and shows the word 'Flash', but doesn't enable it as a hyperlink.

I'm aware of how to make static text a hyperlink, but how do you do it dynamically without using buttons?

I'm using Flash MX, but I believe it applies to 5 as well.

[CS3] Creating A PDF With Dynamic Text
Thank you for your interest.

I need to know if there is a way to have a button ( lets name it "View as PDF") when clicked it will grab the information of the dynamic text in my flash movie and create a PDF on the fly to be downloaded.

In short, have a button, when clicked, dynamic text is pulled from the timeframe/movie then produces a PDF that will download.

Creating Dynamic Text?
Someone had showed me a button they created and when a user clicks on it a small dialog box appears with text. She was wondering if it is possible to make the content within the dialog boxes dynamic where based on some value it prints a different message. I was figuring that an actionscript would have to be written. However, there are 35 different combinations so I am thinking that would be a alot of conditional statements. Any suggestions?

Thanks

Text For A Dynamic Text Box, Creating New Line
i have a var that i'm assigning text to and this text is displayed in a dynamic text box.  The text is two paragraphs, so how would i break the text to start on a new line, like a <p></p> tags in html ?

Thanks!

Creating A Dynamic Text Field
I am on chapter 1, starting from page 36 in Introduction to Flash MX (PDF format). Everything went fine until I got to page 39, "Use the loadVariables action to load text". It states the loadVariables action includes a parameter to specify the path to the variable text. this text is in a file named "copy.txt" within my Tutorials/
FlashIntro/Assets folder.

It then tells me to add a new layer named "Actions", then open the "Actions" panel. In the Actions toolbox it states to choose >Browser/Network, then double-click "loadVariables. In the URL text box it tells me to type the path to the text file: ../assets/copy.txt, then it tells me to save the movie, then choose Control > Test movie.

The movie is running just fine, but the text does not show, I get an error box and I can only assume it is because of the text part.

My question is: Has anyone gone through the tutorial and was able to do chapter 1, pages 36 through 40 without any hitch? If so, what "URL" path did you input in the "URL" text box?

Creating Hyperlinks In A Dynamic Text Box
Hello there,

I am stuck trying to create a hyperlink in a dynamic text box. The text box's data is loaded from a separate text file. I've tried setting the box to read HTML, but that didn't seem to do any good. What I want to be able to do is list the name of a website & allow the user to click this, & then for the website to open in a new browser window. I thought if I added this in the text file I'm loading, it might work:

"A HREF="http://www.site.com" target="_blank">Title</A"

But it didn't, & nothing shows in the text box at all. If anyone could give me some pointers they would be much appreciated. Thanks very much & have a good day

Michael.

PS Sorry about the somewhat mashed up HTML, I'm not sure how to display the line of code here without it actually working!

Creating Dynamic Text With 0% Alpha
Hi,

Is it possible to create a textfield and set the alpha transparency to 0?

I am using the following right now:

myformat = new TextFormat();
myformat.color = 0x90ACB7;
myformat.size = 14;
myformat.font = "Arial";
myformat.bold = true;


_root.createTextField("t",1,140,180,200,50);
t._alpha = 0;
t.text="Hello world";
t.setTextFormat(myformat);

But the text still appears at 100% alpha.

Help Creating Dynamic Text Fields
I have a remote function that creates a list of names. I then want to display those names in my movie clip. I have the remote portion working fine, but since I do not know ahead of time the number of names returned, I have to dynamically create textfields. Here is the code I have so far:


Code:
function onSuccess(re:ResultEvent){
//create format for the text
var fmt:TextFormat = new TextFormat();
fmt.font = "tahoma";
fmt.color = 0x59574a;
fmt.size = 9;
//set initial position for text
x = 100;
y = 235;
for(i = 0; i < re.result.length; i++){
//create uniqe fieldName
var fieldName:String = "txtField" + i;
//create new textfield
createTextField(fieldName, 1, x, y, 50, 25);
//set the text attribute
this[fieldName].text = re.result[i];
//debugging information
trace(fieldName + ":" + this[fieldName].text + "," + x + "," + y);
//apply text format
this[fieldName].setTextFormat(fmt);
//increase x for next time through
x += this[fieldName].textWidth + 5;
//only allow items on the first row.
if(i == 4){
y += 20;
x = 100;
}
}
}
My trace prints out the information that I would expect, however, only the last name is displaying on the movie clip (if I change my loop to only loop x times, the xth name is all that displays).

Am I missing something simple here?

Creating A Hyperlink Within AS2 Using Dynamic Text And Xml
Hi there,

I want to insert two hyperlinks to my AS2 flash site - one for my e-mail address, and the other for my domain name. I am using an xml file to import the e-mail address and the url.

As in my code, you can see that I am storing the xml data into _root.email and _root.website, and I am effectively displaying them on the webpage, (in dynamic text boxes email_txt.text and website_txt.text, respectfully), but how can I actually turn these into links?







Attach Code

function loadXML(loaded) {
if (loaded) {
_root.email = this.firstChild.childNodes[2].childNodes[5].firstChild.nodeValue;
_root.website = this.firstChild.childNodes[2].childNodes[6].firstChild.nodeValue;

email_txt.text = "Email: " + _root.email;
website_txt.text = "Website: " + _root.website;

} else {
trace("file not loaded!");
}
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("details.xml");

Creating Dynamic Scrollable Text
How do you create dynamic scrollable text?, even if I select scrollable I still don't get a scrolbar, so I have to select the text and drag it down.
So how do you get the bar in the text?

Creating Simple Dynamic Text With XML
Hello;

I have a search field that is part of my flash movie.

I have two words that will be dynamic (coldfusion).  Search and GO for diffrent languages.  What I would like to do is create an xml file that will be source of those two words so they can be changed dynamically from the XML page.

Any ideas?

Eric

Creating Dynamic Text Fields...
Hi there

I'm tearing my hair out trying to use actionscript to create dynamic text fields.

Here is some code:

_root.createTextField("location_txt", 3, 30, 20, 100, 100);
location_txt.embedFonts = true;
location_txt.text = _root.myLocation;
location_txt.background = false;
/*location_txt.autosize = "left";*/


location_fmt = new TextFormat();
location_fmt.font = "harmony";
location_fmt.size = "8";
location_fmt.color = 0x999999;

location_txt.setTextFormat(location_fmt);

If I trace the variable that I'm using, myLocation, it has a value so that is not the issue. I'm sure I've correctly exported the font OK: it is FFF Harmony, is in the Library and correctly linked as far as I can tell.

Any clues as to what I am missing would be greatly appreciated.

Regards


BongoMan

Creating A Hyperlink From Xml Into A Dynamic Text Box
Is there a way to create a link in xml that parses correctly in flash. I've trawled through so many forums an the only thing i find is CDATA and url encoding.
Somebody please tell me that there is a way.....
I'm trying to create a link in my xml document that the user is able to click on in the dynamic text box.

Creating Dynamic Input Text Fields
I would like the user to be able to enter a number in an input text box, click a button and see that many new input text boxes appear each with unique variable as well as instance names (ie - instance name = textboxinstance1 and variable name = textbox1)as well as neatly stacked from the top down.

I've done many experiments including duplicating movie clips with a text box in it, and duplicating an offstage input text field as well. I can make it work except for the variable names. I'm sure my code is very messy so I declined to post it.

Pleas help!!!

Creating Dynamic Text From A Notepad Docu?
Hi there.

I have a section of text in which I would like the contents pulled direclty from a text file. I need to know the following:

a) after creating the text file, where should i put it? e.g, in the smae folder, or do i have to direct flash to where it is in a different folder.

b) the scripting for the dynamic text field in the SWF to the textfile.

Thanks for any help!

Creating Dynamic Input Text Fields
I'm currently attempting to make a simple spreadsheet simulation in Flash. Heres my problem. Each input field will have to be created dynamically, as the amount of cells the spreadsheet has will be fully scalable. The bit I dont understand is how to create these input fields on the fly whilst giving each newly generated input field a new, unique variable assignment.

So for example. If I want to create a spreadsheet one cell high by three wide, and the first input field is called "cell_1" and has a variable value of "nCell_1", how do I create input field "cell_2" and "cell_3" with variable values of "nCell_2" and "nCell_3", dynamically?

I hope this makes some sense. Any help would be very much appreciated. Thanks.

Creating Dynamic Text Or Generating Jpeg
Hi

I am an old face from these boards who has been out of the Flash loop for a few years. Please excuse me if I am asking a very obvious question or if I’m lurking in the wrong section, however I would be very grateful if someone could direct me to an answer to my question.

I am looking for a feature in Flash called ‘Generator’, as I remember one of its uses was to either serve the user a swf file or a dynamically generate gif/jpeg file if their browser didn’t support flash. I wanted to bastardise this feature to dynamically serve jpegs with nicely anti-aliased text headlines by interfacing with a server based database that supplies the text of each headline.

I can’t find any info about Generator. Has it been phased out? Is this feature supported in any other Macromedia product, or can anyone tell me any other software that could do this?

Any help much appreciated.


Thanks.

Tom

Creating Scroll Buttons For Dynamic Text.
So, I started this project with extreamly miminal knowledge of flash. what I have so far can be found here Click Me I have the dynamic text loaded and stuff.. buttons work fine. but i have no idea how to make scroll buttons (Not so interested in the bar at this point) i found a tutorial on this site called "Make your own scroll bar in Flash MX" but i have no idea how to adapt it so my buttons load my dynamic text... this is probably real simple and i'm just an idiot. but if someone could please help i would be very appreciative. Thanks for your time

Dynamically Creating Dynamic Text Field
ok guys, I wasn't certain if this question should go here, or in the XML forum, but since i'm really not having problems w/ the XML part, i figure here would be the place to ask...

i'm creating a picture gallery, which is loaded from XML and can be of any length (so no set # of pics), and each pic has a caption, which is actually the name of the pic minus the .jpg...

each pic is loaded by using a duplicateMovieClip function to copy a blank, and then loadMovie to add the .jpg
What i want to do now is also put in a text caption, but i don't know how to dynamically create the text field via ActionScript.

Any general help would be greatly appreciated as i'm certain i can get it going once i'm pointed in the proper direction.

TIA.

Dynamic Text Creating And Targeting Problem
/* i searched the forum nearby one hour but can not find a solution. Sorry for the post if it is reasked.*/


i am creating text fields in a for loop. and giving them automatic instance names like

for(var i=0; i<entries.length; i++){
content_mc.createTextField("textTitle"+i,content_mc.getNextHighestDepth(),0,(textHeight*i) +10,textWidth,textHeight);
}

i have difficulties in targeting this texts seperately. i want to load text in them but dont know how to target them

// content_mc["textTitle"+i]

i tried this but can not achive the solution.

Creating A Link In A Dynamic Text Field.
Please forgive my noob question but how do I add a link to the following code?

I would like to add a link to the bolded, underlined text of "Heart and Stroke Foundation of Ontario"

myTextArea.htmlText = "As a key partner in the Heart and Stroke Foundation Centre for Stroke</A> Recovery, the <u><b>Heart and Stroke Foundation of Ontario</b></u> is working to lessen the burden of stroke, which currently affects more than 300,000 Canadians."

Thanks in advance.

Creating Dynamic Buttons And Text Fileds..
Im having some trouble creating buttons from an xml file ive loaded in...
What i need it to do is create a button (movieclip with a onRollOver funciton) for every item that is in the XML file, ive tried this in the For loop but i cant get it to work..

Also is it possible to duplicate a text field and populate this each time with a field from the xml file as im having some difficulties targeting the name of the duplicate field?! hope that makes sense, ive included my code below...

any ideas?!??



var arrImages:Array = new Array();
var info:Array = new Array();
var link:Array = new Array();
var buttonName:Array = new Array();
var panel:Array = new Array();

var numberLoaded = 0;
var totalNumber = 0;
var IMAGE_PATH = "gallery/";

gallery_xml = new XML();
gallery_xml.ignoreWhite = true;
gallery_xml.onLoad = function(success) {
if (success) {
//trace('homebanner.xml loaded. Contents are: '+this.toString());
createAdvert(gallery_xml);
}
};
gallery_xml.load('homebanner.xml');


// This is the function that will be called when
// our XML document is loaded succesfully
function createAdvert(xmlAd) {
// xmlAd is now a reference to the XML
// object where our information is stored


for (var n = 0; n<xmlAd.firstChild.childNodes.length; n++) {

arrImages[n] = xmlAd.firstChild.childNodes[n].firstChild.firstChild.nodeValue;
//image = xmlAd.firstChild.childNodes[n].firstChild.firstChild.nodeValue;
info[n] = xmlAd.firstChild.childNodes[n].firstChild.nextSibling.firstChild.nodeValue;
link[n] = xmlAd.firstChild.childNodes[n].firstChild.nextSibling.nextSibling.firstChild.nod eValue;
panel[n] = xmlAd.firstChild.childNodes[n].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild.nodeValue + n;
}


for (i=0; i<xmlAd.firstChild.childNodes.length; i++)
{
// load them into the containerMc
containerMc.imgHold.createEmptyMovieClip("imgHold" +i,containerMc.imgHold.getNextHighestDepth());
img_mc = containerMc.imgHold["imgHold"+i];
//load images in from array
img_mc.loadMovie(IMAGE_PATH + arrImages[i]);

//Set images up side by side
containerMc.imgHold["imgHold"+i]._x = containerMc.imgHold["imgHold"+(i-1)]._x + 350;

//Create Cross
containerMc.cross.attachMovie("cross", "cross"+i, containerMc.cross.getNextHighestDepth())
cross_mc = containerMc.cross["cross"+i];
containerMc.cross["cross"+i]._x = containerMc.cross["cross"+(i-1)]._x + 350;;

//Create Panel
containerMc.infoPanel.attachMovie("panel", "panel"+i, containerMc.infoPanel.getNextHighestDepth())
panel_mc = containerMc.infoPanel["panel"+i];
containerMc.infoPanel["panel"+i]._x = containerMc.infoPanel["panel"+(i-1)]._x + 350;
containerMc.infoPanel["panel"+i]._name = "panel" + i;
containerMc.infoPanel.panel[i].title = "test entry";

//trace("panel is " + panel[i] + " info is " + info[i])

//Create border line
containerMc.borderLine.attachMovie("border", "border"+i, containerMc.borderLine.getNextHighestDepth())
border_mc = containerMc.borderLine["border"+i];
containerMc.borderLine["border"+i]._x = containerMc.borderLine["border"+(i-1)]._x + 350;


//Create Button
containerMc.button.attachMovie("button", "button"+i, containerMc.button.getNextHighestDepth())
button_mc = containerMc.button["button"+i];
containerMc.button["button"+i]._x = containerMc.infoPanel["panel"+(i-1)]._x + 350;

trace(containerMc.button["button"+i]._x)
trace("button value is " + button_mc);

containerMc.button["button"+i]._name = "button_press" + i;
trace(button_mc._name);


}


}

Creating Scrollbar's For Dynamic Text Boxes
Hi there,

I've just implemented the tutorial on this page:

http://www.smartwebby.com/Flash/text_scrollers.asp

This example is great because it allows two buttons to be used to scroll a dynamic text box. It doesn't use the technique which most of the other tutorials of this nature use, which is to use a mask and move the text box up and down. Basically it's the perfect example of what I need, apart from the fact that it doesn't include instructions for how to implement the actual 'bar' element of the scrollbar.

Is there a way to try and fit a scrolling feature into this tutorials' example without it getting too over-complicated? My ActionScript is very poor, and so any help I get with this is greatly appreciated.


Thanks,

Dave

Creating Vertical Dynamic Text Field With AS
Hey!

I have a problem: I just can't make a vertical aligned Dynamic Text Field. When i use _rotation, dynamic text will dissappear.

Any suggestions to get vertically aligned dynamic text field?

Creating Dynamic Text Boxes At Runtime
Is there anyone out there that could hint me on the direction I need to go to create a dynamic text box at runtime? Developing for Flash Player 6, if anyone needs to know.

Any help would be appreciated.

Dynamic Text Field's Depth Creating A Problem
Hi All,

My application shows a large paragraph of text with some missing words that are replaced by text fields .
The user has to fill in the missing text and complete the paragraph. the application grabs the text dynamically from an external file.

I am using an object (function) to create this interface. The object splits the text into an Array (using: string.split(" ")) ,each item in the array is a word or character. Each item is being treated separately, first a new text field is created (dynamic TF if it's a word or input TF in case the item is a certain character) ,then the TF is located according to the location of the previous one, finaly the text is being inserted to the field. The whole thing works great:

code:

_root.createTextFiel(field,depth+1,50+textLengthPr ev,line,textLength,20);

as you can see I realized that I must raise the textField.depth variable by 1 each time I create a new text filed, if I wont do this the previous text field will not be seen.

This works great until I have to create over 50 text fields, for some reason Flash will accept only 50 fields per screen (correct me if I am wrong) . some of the paragraphs contain more then 50 words so this is a problem for me.

What can I do to solve this problem?

Thanks,
LeoBeer

Creating Dynamic Text (Introduction To Flash MX , PDF Format)
I am new to the Flash software and am having problems with "creating dynamic text", starting on page 36 to page 40. What the problem is that I went and loaded text to my movie using the "loadVariables" action. This action includes a parameter to specify the path to the variable text. The text is in a file named "copy.txt" within the "Introduction to Flash MX Tutorial". The path is: ../assets/copy.txt

What I did was to open the "Actions" panel, then chose Actions >Browser/Network, then double-clicked "loadVariables". The ActionScript is then added to the Script pane. Parameters for the action appear above the Script pane.

In the "URL" text box I typed the path to the text file as: ../assets/copy.txt per instructions on page 40 of the "Introdution to Flash MX" tutorial. When I saved the movie and clicked on test movie the movie ran as it should but the text did not appear, instead an output box with the following appeared: "Error opening URL "file:///C|/Program%20Files/Macromedia/Flash%20MX/Tutorials/assets/copy.txt". So what did I do wrong??

Problem Creating A Scrollable Dynamic Text Box With XML Content?
Hi,

I have linked my xml file to my dynamic text box but now the scrollbar will not work, has anyone any idea why this might be?

Cheers

Creating Dynamic Text Field For Flash CS3 In Illustrator CS3
I've created a series of buttons in an illustration and made them into movie clip symbols in Illustrator. I then created some text fields for the button labels and assigned them as dynamic text in the Flash Text panel in Illustrator.

When I import the illustration into Flash and test the movie, I get this error message:

TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@d18cef9 to flash.display.MovieClip.
at flash.display::Sprite/flash.display:Sprite::constructChildren()
at flash.display::Sprite$iinit()
at flash.display::MovieClip$iinit()
at menu2_fla::MainTimeline$iinit()

It seems like Flash is misinterpreting the text fields brought in from Illustrator as Movie Clips?

Flash 8 Creating Dynamic Text Field With Border
Hi
I am new to Action Script and trying to create a text field runtime as below.

var txtField = createTextField("aTextField", 1, 15, 200, 60, 21);
txtField.border = true.

What I am after is to have different border like a raised bevel border or lower bevel border and not a line border. Any help is much appreciated.

Many Thanks in advance.
Bhanu

Creating Form In AS3...Can't Assign Var Name To Dynamic Text Field?
In AS2 I would simply add a var name to a input text field from the property panel but when I try to do so in AS3 it's not supported. How do I assign a var name to input text using ActionScript 3? If anyone can answer this for me and/or point me to a thread/tutorial on creating an email form in AS3 I would greatly appreciate it.

Dynamic Text - Creating Movies In Multiple Languages
We have hundreds of Flash movies in Japanese. The movies can be quite complex, up to 1min long with 8 scenes.

Many of them are being translated now into English, German, French, Spanish, Chinese and Korean. So there will be 7 versions of each movie when done.

I want to know the best way to create a template so that it is very easy to swap in the translated text.

I am not so great at Flash, and I did not make the original movies. But I want to show the guy who makes the originals a technique to make it localisation easier. I'm looking for something easy so that I dont have to make the guy who creates the files do too much extra. Something like using symbols instead of text, and the symbols come from a text file etc would be good.

What do you recommend?

Creating Dynamic Movie Clips From Text File
Hi,
I need to create movie clips from values in a text file.
I have variables 'destination_list' and 'ship_list' and its values in a text file. I create individual movie clips for each value in the 'destination_listand 'ship_list'.

Now the problem is that, 'destination_list' had 9 values and first 7 is not displayed and 'ship_list' displays correctly. What would be the problem ?

Code is given below:

//******** Destination Code Starts Here ************
destination_mc._visible =true;
destination_array = destination_list.split(",");
destination_length = destination_array.length;
// set the initial y position of the clip
yposition = 40;
// begin looping
for (i=0; i<destination_length; i++) {
duplicateMovieClip (_root.destination_mc, "destination_mc" + i, i);
setProperty ("destination_mc" + i, _y, yposition);
//destination_Clip.destinationName = destination_array[0];
set ("destination_mc" + i + ".destinationName", destination_array[i]);
yposition = yposition+30;
// destination_mc._visible =true;
}

//******** Destination Code Ends Here ************

//ship_Clip._visible=0;
ship_array=ship_list.split(",");
ship_length=ship_array.length;
yposition = 45;
for (i=0; i<ship_length; i++) {
duplicateMovieClip (_root.ship_mc, "ship_mc" + i, i);
setProperty ("ship_mc" + i, _y, yposition);
//ship_Clip.shipName = ship_array[0];
set ("ship_mc" + i + ".shipName", ship_array[i]);
yposition = yposition+30;
}

Creating Custom Scrollbar's For Dynamic Text Boxes
Hi there,

I've just implemented the tutorial on this page:

http://www.smartwebby.com/Flash/text_scrollers.asp

This example is great because it allows two buttons to be used to scroll a dynamic text box. It doesn't use the technique which most of the other tutorials of this nature use, which is to use a mask and move the text box up and down. Basically it's the perfect example of what I need, apart from the fact that it doesn't include instructions for how to implement the actual 'bar' element of the scrollbar.

Is there a way to try and fit a scrolling feature into this tutorials' example without it getting too over-complicated? My ActionScript is very poor, and so any help I get with this is greatly appreciated.


Thanks,

Dave

Creating Pop-Ups Within Dynamic HTML Text Boxs (catchy Title No?)
I was hoping to pick on someones brains relating to...

On how to create pop-up windows with a set size from within a dynamic text box, which imports a HTML page?

My text box basically imports a html page with a list of links of past and present projects I've created @ gavmack.com

Cheers.

Creating Line Breaks With Dynamic Text Boxes Using HTML?
I have an array with a series of informational text lines. I would like to place them in a status dynamic text box listing which ones have been processed. To do this I need to make a dynamic text box with line breaks after each item in an array. Here is my script so far:

imageClips = new Array();
imageClips = ["WindowsInit.jpg","CTRLA.jpg"];


I then have a dynamic text box with html enabled called:
Status

In my action script I have entered the following code:

Status.text = "<br>" + 1imageClips[0] + "</br>" + "<br>" + imageClips[1] + "</br>";

I want the first line to read "WindowsInit.jpg" in the list, and then break to the next line reading "CTRLA.jpg"

Whenever I run the script it does not work. Can someone tell me how to properly insert line breaks into dynamic text boxes using arrays of text with a line break?

Thanks,
Sam

Creating New Components
Hi all,
I am new in actionscripting, can you tell me how to create new components ? Step by step will be more appreciate.

Creating Components
does anyone have any idea how to make my component work?

all it is is a simple function at the moment.

function test(){

url = "http://www.brandwoood.com"
return(url)
}

I want to make this as a componetent. a componetnt that can be loaded by any machine with flash via the extension manager .mxp file

any help would be gladly appreciated.

[F8] Creating Components
Aside from the tutorial on the Macromedia website, does anyone know of any good tutorials on creating your own components in Flash 8??

Creating Components
Hello everyone-

I have some questions I will address one of them right now for this is one that has
plagued me for sometime now.

I am trying to create a custom preloader. I have been able to get a preloader to work using the
components that Flash 8 has provider everyone. However, I would like to personalize it.

I have created a preloader and it works to some extent. My movie plays until everything is loaded
however, the pre loader will not tell the user how much has been loaded, or when it will be done.

I know I can use components and figured it might be easier to create a new component.
I know I can use skins but I am not sure if that is the best way to have my pre loader personalized with my own graphics.

Can I create my own skins?

Is there an easier way for me to create a preloader and use my own graphics?

Any help in the right direction would be greatly appreciated.

Here is my website www.moonartdesign.com

Creating Components
Within the components panel in flash 8, how do you give your new component an icon, instead of the 3 little box design that automatically resides as the default icon. Can I also create my own component icon from scratch and display it in my panel?

These 2 questions are more or less the same thing.

Thanks!

Creating Flv On Fms With Components
I would like use the video components for my flv. I get sound but no video. I have currently been using my own custom way to stream the video with replay button. but i would like to use the video components in flash so that there is a progress bar etc. How can i do this? Also to make things more complicated i am using a dynamic buffer and would like to carry on using this.
Thanks



























Edited: 06/18/2007 at 04:44:19 AM by ChimpyChomps

Creating Components, 2 Adv. Questions
Hi everyone,

I have two question on creating components with Flash MX:

1. Is it possible to run interactions of a component during working in Flash? It is possible with the given Checkbox: If you turn it to
"checked", it is displayed immidiatly while working on the fla.

2. The functions of my components are at the moment not before the second frame of the main movie available (that's logic). How can I make sure the component and it's classes and functions are available immediatly?

thanx a lot, greetings caist

Creating Components For Flash CS#
Hi, all;

I've read this article
http://www.adobe.com/devnet/flash/articles/creating_as3_components.html, and
it's quite helpful, but I'm wondering where I can find the documentation on
how to create components in the Help files. Searching on "components" in
the Help hasn't turned anything up for me.

Thanks;

Amy

Copyright © 2005-08 www.BigResource.com, All rights reserved