Fonts And Combobox (MX)
Hi, I found that whenever you put a combobox on the stage, the swf file increases by 8kb for each combobox. I am trying to reduce that by disabling the embedfon type, since I am using a standard font.
I found this line which I believe states that the font is embeded. ------------------------------------------------------- FLabelClass.prototype.setLabel = function(label) {
var val = this.hostComponent.styleTable.embedFonts.value; if (val!=undefined) { this.labelField.embedFonts = val; } this.labelField.setNewTextFormat(this.textStyle); this.labelField.text = label; this.labelField._height = this.labelField.textHeight + 2; } ------------------------------------------------ What must I change so that the font isnt embedded anymore?
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-26-2002, 01:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
ComboBox, Fonts
Is it possible to have a comboBox that has differing fonts for each item?
I simply want a to make a comboBox which lists the available fonts on the computer and displays each of those fonts, in their own font, if you know what I mean.
I know you can set a differing font for each column of a list, but I don't see a method to set a font for each row.
Surly there must be a way to access the textbox in each cell, and modify its html contents.
Changing Fonts From ComboBox
Here's what I want to do.
I have a variable called _root.button that contains the name of my button.
I'd like to allow the user to change the font used.
I have a combobox that grabs all the available fonts and this code in the same frame:
// Check for fonts on computer
arr = TextField.getFontList();
for (i in arr) {
trace(arr[i]);
fontList.addItemAt(0, arr[i], arr[i]);
}
How do I set it up so _root.button's font changes to whatever the user selects?
Thanks for any assistance...I'll keep researching.
ComboBox Displaying Fonts
Hello,
Here's what I want to do. I am creating a drawing pad application that has the option to add text in MX 2004Pro. I would like for the user to be able to select the font they would like to use from a comboBox. The question, is there a way to have the fonts show up, in the comboBox, displaying how the font really looks?
I hope this makes sense.
Thanks for any help.
xcaliber
ComboBox, Multiple Fonts
Hey,
I'm trying to make a comboBox which is populated with all available fonts on a system, and each font is rendered in it's own font.
You can apply different styles to different columns of a list, but not each row.
Any ideas about how I'd go about this?
Someone suggested writing my own cellRenderer class but I'm not sure how to go about that.
ComboBox Displaying Fonts
Hello,
Here's what I want to do. I am creating a drawing pad application that has the option to add text in MX 2004Pro. I would like for the user to be able to select the font they would like to use from a comboBox. The question, is there a way to have the fonts show up, in the comboBox, displaying how the font really looks?
I hope this makes sense.
Thanks for any help.
xcaliber
[CS3] Embed Fonts In ComboBox
Using AS2/ V2ComboBox component I had a font menu (a combo-box w/ a list of fonts by name).
Each font showed up in its font by setting the font and embed for each text item in the dropdown list like so:
ActionScript Code:
private function _setFontMenuFonts( menu:ComboBox ):void {
for (var i in menu.dropdown.listContent) {
var tf:TextFormat = menu.dropdown.listContent[i].cell.getTextFormat();
tf.font = menu.dropdown.listContent[i].cell.text;
menu.dropdown.listContent[i].cell.embedFonts = true;
menu.dropdown.listContent[i].cell.setTextFormat(tf);
}
}
Now, using the AS3/CS3 ComboBox component it isn't giving me access to 'listContent' ... and I can't seem to find it inside 'dropdown'
How do I accomplish this same task now?
[CS3|AS2]Desperately Trying To Embed Fonts Into My ComboBox
Hi.
After adding a new font to the library, exporting it for ActionScript, and assigning it to a combo box thisly:
PHP Code:
myComboInstance.setStyle("fontFamily", "FFF Dreamer");
- I tried the following methods to embed it, which haven’t worked:
PHP Code:
myComboInstance.setStyle("embedFonts", "true"); //-no worky
_global.styles.ComboBox.setStyle("embedFonts","true"); //-no worky
this.myComboInstance.embedFonts=true; //-no worky
The only thing that I’ve managed so far is embedding the selected item font, but NOT the drop-down list font by doing the following:
PHP Code:
stateCombo.textField.setStyle("embedFonts", "true");
Now, how do I make it so that the font is embedded fully into the combo box?
I went on to also try the following, but with no luck.
PHP Code:
myComboInstance.setStyle("embedFonts", "true"); //-no worky
myComboInstance.dropdown.setStyle("embedFonts", "true"); //-no worky
If someone could enlighten me on this and put a stop to my syntax guesswork that’d be awesome.
Thank you.
[FMX]Right Code To Embed Fonts For ComboBox
Can somebody pleasehelp me with the right code to embed fonts for a ComboBox. I am using a pixel font (FFF Business) The code for the ComboBox is:
ActionScript Code:
Style = new FStyleFormat();
Style.textFont = "FFF Executive";
Style.textSize = 8;
and I tried:
ActionScript Code:
Style.embedFonts = true;
to embed the font, but that wasn't working. I also tried it with a globalStyleFormat:
ActionScript Code:
globalStyleFormat.embedFonts = true;
but that wasn't working either. Is there somebody who can help me with this?
Thanks in advance
ComboBox Doesn't Use ComboBox Assets
I've been customizing some components, and discovered that the ComboBox doesn't actually use the ComboBox Assets, but instead uses the ScrollBar Assets. I need to have a slightly different design for the ComboBox down button. Does anyone know how to make the ComboBox use it's own assets, perhaps by editting the ComboBox.as or ComboBase.as file?
Thanks.
Small Fonts That Anti-alias Gracefully (NOT Pixel Fonts Though..)
Yo. Anyone know any good fonts that work in small sizes (8 pointsish) that dont go yucky THAT ARENT PIXEL FONTS? know pixel fonts are good, but im looking for a smoother look. a good example is (suprise suprise) 2advanced.com..... the fonts used for links are luverly...... Anyone?
ComboBox Problem, Displays A "text Box Like" Object Instead Of A ComboBox
Hello friends,
A friend of mine is having a tough time getting a ComboBox integrated into an existing flash movie, to work right.
Here's the story so far.....
The ComboBox when tried out in a sample new file works absolutely fine, but when the same thing (see code below) is added to
an existing movie (which has a preloader in Scene 1) does not work at all. Instead, it displays a "text-box-like" object in place of a
ComboBox...
Code:
form = new Object();
form.change = function (evt){
trace(evt.target.selectedItem.label);
}
comboBox.addEventListener("change", form);
Now, is there a possibility that because a preloader exists in the movie, the ComboBox does not work, not sure on this reasoning!
If someone could help out here, I'd really appreciate it!
[Fonts] Pixel Fonts Are Closing Gaps..
Hi there,
I've got a weird and irritating problem. I have a font, supernatural_10_02, which I use in a site. This is a pixelfont, so I'm taking special actions to make sure the fonts look non-antialiased. This works fine, the text looks very nice. Untill I export the movie, then the gaps in letters are being closed for some strange reason.
To ******** things, I've uploaded two examples. First an example of how the font looks on the Flash MX Working stage:
Then an example of how this same text looks when I export the movie:
What is going wrong? And what am I doing wrong.. Is there anything I can do to prevent those letters from closing? Please help!
I'm using Flash MX 6.0 on Windows XP
Ps: I've tried to export the movie on a Macintosh, the letters on that mac did not close?! Really weird..
Flash Fonts And Server Side Fonts
Hi,
I'm creating an application where users upload their images with flash and edit them. We are placing text over the images, and we allow the users to choose the fonts in which they write them.
The co-ordinates are saved to the application database and the server side code dynamically writes the text on top of the images.
I know in order for the server side application to write in the selected font it must be installed in the server. I am wondering what my limitations on fonts that appear in flash are ?
How can I increase the number of fonts that will function on both the flash application and the server side application? The application is being developed in as 2.0, but could be moved to 3.0 if this helps.
Thanks very much for any assistance!
mike123
Pixel Fonts Becoming System Default Fonts?
Hello, when I try to use some of the pixel fonts I have downloaded some of then turn into 'system default fonts' as if by magic and then fail to work, the ones that work like the FFF fonts don't turn into 'system default fonts'. Is there any way to stop my fonts becoming system default fonts, and would this ensure they dont muck up?
attached is a pic to show you what i mean.
Pixel Fonts Becoming System Default Fonts?
Hello, when I try to use some of the pixel fonts I have downloaded some of then turn into 'system default fonts' as if by magic and then fail to work, the ones that work like the FFF fonts don't turn into 'system default fonts'. Is there any way to stop my fonts becoming system default fonts, and would this ensure they dont muck up?
attached is a pic to show you what i mean.
Question About Using Non-system Fonts And Blurry Fonts
i'm using some miniml(vector-based?) fonts in my movie. how should i set my text options in order for the client to see the fonts and what would be optimal settings to avoid blur(right now they are placed on whole number increments and seem ok). thanks =)
Pixel Fonts / Bitmap Fonts
There are hundreds of pixelfonts out there, just check http://www.dafont.com/en/bitmap.php for example, but most of them don't seem to work with Flash!?
So far, after installing loads of them and trying them out I have only found the Kroeger, Hooge and Standard fonts from miniml.com and one called "Fixed_v01" to work...
I was wondering what pixelfonts you guys have tried? I would love to find a really small pixelfont like silkscreen that works with flash.
Register Fonts With System Fonts?
if you use
Code:
p_systemFonts = Font.enumerateFonts(true);
that will give you an array of all the system fonts, as font objects in each index of the array.
so p_systemFonts[0] might give you [Font Arial] or something like that
I need to register the font so that it can be used in my text fields.
This works great with Font Class objects i make in the library. let's say in the library i have a font object called "Rockwell"
then i'd use
Code:
import Rockwell;
Font.registerFont(Rockwell);
works great. i just need to do the same thing with a system font...
this issue is that when you use Font.enumerateFonts(true), it gives you an array of Font Objects not classes.
registerFont is looking for class for the argument.
is there a way for me to get an array of the system fonts as classs, not font objects... or to get a class from the font object...
thanks in advance!
Fonts In IDE Do Not Match Up With Windows Fonts
Maybe I am just crazy or I do not know something that is quite basic but I am having a tough time matching up fonts for designing my stage. I've created a stage, added a textfield with the text "TEST" and set the font to Arial - 24 pt - Bold. I then open up Notepad, type the word "TEST" and set the font to Arial - 24 pt - Bold.
For some reason the text is much smaller than it is in Notepad. Any ideas why this is happening? I'm sure that it is something obvious I am missing.
Device Fonts Vs. Embedded Fonts
Hi there!
I have a little X-File I'm trying to figure out here. Any hints would be appreciated.
I have six SWFs. All of them have the same exact design. However, each of them has a different amount of text using an embedded font. The first one has about 3,500 characters (with spaces). The second one has aproximately 6,000 characters (with spaces). The third one has 14,000 characters, more or less.
The fourth SWF is just the first one, but using a device font instead. The fifth one is the second SWF with a device font, and the same goes for the sixth one.
All six SFWs can be scrolled down.
I've taken times. I've measured the time taken to scroll down the entire text in each SWF. All tests have been run down under Windows XP and with version 9 of Flash Player, and a 'high' value of the quality parameter.
I have read in the Flash documentation that device fonts are managed faster by Flash Player, as they don't use any anti-alias settings and its renderization lays down on the OS' font technology. Let me introduce the results:
First SWF (deviced one) has taken an average time of 0 min 59 s, 71
Fourth SWF (embedded one) has taken an average time of 1 min 12 s, 04
As guessed, it seems that device fonts are a little bit lighter than embedded fonts.
Second SWF (deviced one) has taken an average time of 1 min 36 s, 04
Fifth SWF (embedded one) has taken an average time of 1 min 52 s, 64
In this set of tests, we can appreciate a similar behaviour. But, pay attention...
Third SWF (deviced one) has taken an average time of 5 min 50 s, 81
Sixth SWF (embedded one) has taken an average time of 3 min 52 s, 60
Funny, isn't it? This set of tests just drives me nuts. One would think that results may be swapped, but, no matter how many times I try it, it always goes the same way.
Has anyone observed this behaviour before? Is there any known bottleneck in the underlying Windows Font Technology? Does it make any sense at all?
Thanks in advance!
Edited: 04/26/2007 at 02:40:15 AM by josermae
Embed Fonts When Fonts Are Called In XML
Does anyone know how to embed a font in AS3 when there is no dynamic textField in the actionscript because the font is called from an xml file? It's part of a menu. I embedded the font in the component as well as added it to my library and exported it for actionscript. I think it's all good there.
The xml file uses:
<textFormat>
<font>Univers Condensed</font>
<size>15</size>
<bold>true</bold>
<color>0xFFFFFF</color>
<align>right</align>
<leading>0</leading>
<rightMargin>20</rightMargin>
</textFormat>
The Univers Condensed font isn't showing on the menu on a computer that doesn't have Univers installed. The menu component I'm using is Jumpeye's accordion tree menu. I was able to do it on the AS2 version, but not the AS3 version. Any tutorial I can find for embedding fonts in AS3 says to use the dynamic textFiled in the actionscript, but in this case I don't have that. Any thoughts would be appreciated!
Fonts Fonts, I Just Don't Know These Things
Can someone explain what kind of fonts i need to use in my dynamic text field so when i preview my movie they would look same as static text.
If you could give some info on it, cause my preloader does not look very charming with these ugly fonts.
Thank you!
How Can I Use Fonts Other Than Device Fonts? Help
Hi guys.
I tried opening my Suitcase first (to load fonts to the system) and opening Flash MX (6.0), but it's not letting me use any other fonts than its device fonts (_serif, _typewriter, etc)
tried restarting the computer. didn't work.
can anybody help me?
thanks!! !!! !!!!!
Laura
Fonts - Want To Use 2 Different Fonts, But It's Not Working
Please help! I can’t get a font to stick when other people are viewing my site from their computers.
I have one phrase that I want to be in an Old English or Lincoln (which is what I have on my machine) font every time it appears. (Needless to say, the rest of the text on the website is in a different font.) To others, this phrase appears in the same font as the rest of the website, but I want it to stand out in its own font.
In some cases, this phrase appears on a button, as static text.
In other cases, this phrase appears in the body of a large block of text which is dynamic and has a scrollbar attached to it.
In a third case, it is dynamic text that is linked to another webpage.
I’ve read a little bit about device fonts and I’m getting a warning message about not being able to create outlines for some of the fonts.
Please advise me on how to rectify this problem.
Thank you!
BAD FONTS NAUGHTY FONTS
I am having a headache with some clips which contain text. Please see the following... http://www.virtualentourage.com/www/main.htm
I have selected the text so it is aliased for readability and still it looks awful when exported and viewed on a PC. I am a mac opereator and it appears fine on my machine when I look on the PC it looks really grubby (Might be screen res since I have 23 apple display). I am fairly new to Flash 8 so is there something I havent done correctly? Please help!
Using Fonts That Are Not Device Fonts...
Hai,
I have a SWF file(SWF only not FLA) with the textfield given a font that is not available in my system(fonts are embedded to that field). Is it possible to make use of that SWF file and get the same font in my Flash document.
Tell me how I could do this without downloading that font in my system.
Thanks
[FONTS] Pixel Fonts
hi all!
I just want to know where can i find free pixel fonts to download
i already downloaded the fontsforflash.com fonts... but i want more than that!
thanks who help me!
Fonts, Mostly Pixel Fonts
Hi,
I don't know about you, but every time I'm doing a webpage, or a project, or anything in flash, I'm having trouble with fonts.
I'm not much of a funky text lover, most of my things have pixel fonts inside.
Now, i know some things like:
if the textfield is located in a movieclip,
make sure its not resized ,
it should be 100%
and that the MC should be on even pixel cordinates
set the text to anti-alias for animation
left aligned
size 8 or multiple of 8.only
if it's inside a graph symbol, anti-alias for readability, bitmap alias according to case.
test it, works fine. yeah?!, but just on your comp.
see it from somewhere else, looks crappy.all blured and everything.
My own solution for small text fields(logos, titles..etc) is to import a .png that i've allready created in photoshop, with the text i want. this way i am sure nothing's gonna' happen. how about 'big stories'?
What do you guys do to make the text nice and clear?
if you'll say: make it dynamic, generate it through the actionscript, even XML, i'm goin' to shoot myself. 'cause i'm not an actionscripter, and i recon a lot of people are like me.
Why Do Embedded Fonts Blur When Non-embedded Fonts Dont?
If someone could offer a suggestion here I'd be much obliged. I'm trying to build a web site using pixel fonts but since very few people have this particular font, I'm trying to embed the font. The problem is that when I don't embed it looks perfectly sharp, but as soon as I embed it blurs them (as if it tries to anti-alias a pixel font.. which I don't want it to do)... any ideas?
Using Fonts In Flash - Serif / Sans Serif? Best Fonts To Use?
Hi guys -
Some questions about fonts here.
I'm having a problem - I design my sites first in Photoshop then I do the relevant parts up in Flash. Sometimes, when I put a font in Flash - it doesn't render it as cleanly as I have it in Photoshop.
Some fonts to give examples by name that I use a lot are - Old Sans Black and Kartika
Is there some guide when using fonts in flash? Like any specific ones I should look to use more - for headers and also for content text?
It's really bugging me
Missing Fonts, Is It Possible To Insert Missing Fonts To Flash?
Hi,
I have a problem. I use some fonts on my flash site and everything works fine on my computer. But when I open the same site on another computer where the fonts are missing, it replace the fonts with common ones.
Is there any solution how I can attach this fonts to flash site?
Possible Bug With ComboBox
I'm having a problem with a ComboBox component.
I need to check periodically the value of the currently selectedItem on a ComboBox. So what I'm doing is on an enterFrame event of the movieclip that contains the ComboBox, trigering a function that reads that selectedItem. My problem is that when I run the swf movie, sometimes I am able to make a selection on the ComboBox (using the mouse, not programmaticaly) and sometimes not. So far I haven't been able to find a pattern of when this thing works and when it doesn't.
So I was wandering if any of you have found a similar problem, or have any idea what may be cousing it?
Combobox
Hi people,
I'm working on a web-site using both Flash MX and HTML... it's been going really well until just now.. i've become stumped! I've used Flash 5 for about a year so i do know some of what i say... well heres the problem:
I've introduced a Combobox into a gallery i'm producing, the idea was to be able to navigate my way through the different sections of pictures with a point and click on the drop down menu... i need it then to load a new scene, how do you tell the combobox to load another part of the movie (gallery)??
I hope this all makes sense because as i read it back it's starting to seem a little stupid!
Any help would be super so please post a reply.. even if it's to tell me that i can't do this
Jon
P.s. unfortunatly i have a deadline of a week for this gallery so please.. any ideas??
Combobox Help...
Hello Everyone...
I am trying to work on dynamic loading combobox(s) from text files. I guess, this is my first question...is it possible to load combobox dynamically?
Next question/problem:
I want to have multiple comboboxes on one "page" but lets say that the first combobox is always the same, nothing will change with that. But with the option(s) in the first combobox, that will depict what will be in the second combobox, and then the second combobox will depict what is in the third combobox, and so forth and so on. And then in the end, I would like to be able to have a button to send off an email to myself when people fill out the "survey." Is it possible to send the email without having to have a email client setup on the computer that the "survey" is being viewed at. The email would contain the selected information in the comboboxes.
And one more thing. If it is possible to be able to attach a file to the "survey"
Thank you for the help,
Josh
ComboBox
I have a panel and in it I have a combobox which I am loading from a text file, and till now, everything is working fine. Even when the user changes the option, everything is working since I am loading the correct file to go with the selection. However, what I do not know, is, when the user closes the panel and opens it again, how can I get the last selection the user chose? For example if the User selected Option 3, and closes this panel, then opens it again, I want Option 3 to appear first and the other optons after it.
Is it possible?
THanks for your help and time
Combobox
Hello All,
I am new to flash MX, and not too familiar with action scripting. I have a query that many of you will be able to type out on seconds, for this reason I ask you to do so so i can learn from your example.
Simply... :P
I want to create a ComboBox which has around 5 options and a data list of the same amount. When a user selects one of the options I would like it to jump to the next frame, or next scene in the movie.
How would the actionscript look for this? I have given it my best shot but keep getting errors. I have set up the combobox, if someone could show me how the onclipevents should be set out and the variable and functions etc I would really appreciate it.
Also if anyone knows any good tutorials on combobox's etc that would be a help.
Thanks a lot
f#
Combobox
Flash 5.
I'm trying to set up a movie, in which a user can convert various bits of data.
The scene consists of 4 areas.
Area1 = an input box ("number") which is the value the user wishes to convert.
Area2 = type of conversion. This is a combobox ("type") which lists various types of coversion (for exapmple weight, height etc etc) The selection made in this section has a direct result of what is displyed in Area3.
Area3 = two comboboxes ("to" and "from") each listing various scales depending on the choice made in Area2. (for example if the user chooses weight in Area2, the to and from boxes list Kg, g, oz, lb, etc but if they choose length in Area2. the to and from boxes list m, cm, ft, in, etc) The "from" combobox is what the "number" is being converted from, and the "to" combobox is what the "number" is converted to.
Area4 = the result of the equation.
Question 1: How do I create comboboxes that can list choices (which I assume are provided from an array)?
Question 2: How do I link the combobox in Area2 to the items (arrays) listed in Area3?
Thanks for your time. I hope I have explained what I want to do clearly enough :-)
Combobox
Hello everyone,
I wanted to know how the combo box works.
I tried to find out but its not easy as there is no info around on how to make it work
I want to make some email addresses in the combo box so that when you choose 1 it will be inserted in a textbox with a variable to send this to the php code so that it processes the mail to the persons email that you choosed from the combo box.
How can I do that?
I hope there is someone willing to help me
Thanks in advance,
Sky
Combobox
how do i get the value of a combobox item?
(i want the value of the item displayed in the combobox..)
Combobox And Asp
hi all,
...sorry form my bad english
i have a movie with only a frame.
in this frame i have a combo box , onchangehandler i get the selected value and use that to query a database trow an asp's page.
this page return at the same movie at the same frame(1°) the resultdset, but if i re-change the value selected in the combobox , the result doesn't change: i have to change another time the combo and then it works .
These is the code (actionscript for frame 1):
categoria.setChangeHandler("filtracategorie");
function filtracategorie(){
immagini="";
categoriaid=categoria.getSelectedItem().data;
if (categoriaid !=""){
loadVariables("appoggioimmagini.asp?categoriaid="+ _level0.categoriaid,this);
immagini=new Array();
for (k=0; k<this.conta; k++) {
n=k+1;
immagini[k]=this["percorso"+n];
}
i=this.conta;
x=0;
x1=0;
y1=0;
_root.attachMovie("_box","_mcbox",0);
k=0;
while(x<i){
x=x+1;
_root._mcbox.createEmptyMovieClip("temp"+x,x);
_root._mcbox["temp"+x]._x = 1+x1*64;
_root._mcbox["temp"+x]._y = 1+k*70;
_root._mcbox["temp"+x].loadMovie("images/"+immagini[x-1]);
_root._mcbox["temp"+x].onPress=function(){
}
x1++;
if (x1>=3) {
k++;
x1 = 0;
}
//}
}
_root.pannello.setScrollContent(_root._mcbox);
_root.pannello.refreshPane();
}
}
could anybody tell me where i'm going wrong?
thank you
federica
milan
Tab Out Of A ComboBox?
I started using components recently and have run into a bit of a snag.
I am using an array to addItems to my comboBox which is great. I set up the tab order just like I always have but I cannot seem to tab out of the comboBox once I have tabbed into it.
Is this normal?
are there workarounds for this?
ComboBox
I am trying to use the flash component 'ComboBox', but can't figure out how to apply the actions to text it the drop down. I have tried reading the help files but fail to make any sence of them. Could anyone please help me?
I want to be able to load up a new movie after I click on any of the subjects within my drop down.
Many thanks,
Chappers UK - beginner!
Combobox
I am trying to use a combobox to navigate through a series of frames i.e choice "A" go to frame 6 and stop choice "B" got to frame 7 and stop. I am not able to make this work. Also when I go to test the movie the combobox is not desplaying anything until you click on the box, then you can see all of the choices but when the box is closewd it is blank......
Can anyone help
Thank you
Anthony
TAB Key And ComboBox
Hi,
I have a flash movie with several TextEdit fields and two combo boxes. I want the user to be able to navigate through the fields using the tab key, but when I tab into one of the combo boxes, the cursor gets "stuck". I can shift-tab backwards out of the combo box, but if I hit tab the focus stays on the combo box..
Any ideas?
Thanks
Rich
ComboBox Help
I have wrote a small flash... well kinda a flash mastermind named nevel did almost all of the work...
I would basically like to know how to take information from a ComboBox named sybol 5 instance cell_size.... and use it in an if statement... because right before my attachmovie item... I would like to write an if statement telling the program which movie to place on the screen... so if the user selects item 4 it will display my symbol that show a 4 other than a 3 and so on.... can anyone help?? if .fla is need for better understanding I can email it or post it on a site.... here is some of the code too...
www.techyhelp.com/flashattempt/boxgrid.fla
on (release) {
// set the position that you want to be on the stage here
x_stage_pos = 15;
y_stage_pos = 80;
//
// calculates the total number of boxes in the grid
total_boxes = xboxes*yboxes;
//
// set these values to equal the values of your box width and height(if you want gaps between the boxes make the values slightly bigger than th actual boxes width and height)
box_width = 45;
box_height = 45;
//
ypos = 0;
multiplier = 1;
//
// loop to dynamically create the boxes in the rack
for (i=1, j=0; i<=total_boxes; i++, j++) {
// attach box graphic movie clip from the library.
attachMovie("box", "box_" add i, i);
//
// set the box's x position
setProperty("box_" add i, _x, box_width*j+x_stage_pos);
//
// set the box's y position
setProperty("box_" add i, _y, ypos+y_stage_pos);
//
// check if row has been filled, if so increase the ypos value to start generating box's on the next row down
if (i == (xboxes*multiplier)) {
j = -1;
ypos = box_height*multiplier;
multiplier++;
}
//
}
//
}
ComboBox
Can anyone please talk me through using one of these, as i need to have a list of names of people and then when you press on a name it loads a movieClip.
XML To Combobox
Hi there!
Can anyone tell me how to read data from an XML doc into a combobox or lisbox?
thanks!
|