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




Help Needed On My First Total AS Creation



hi people,

i need your help on finishing my first all actionscript flash file. the bits of AS i've used so far have been made possible thru many hours of trawling the net trying to get tutorials on how to achieve what i wanted, and so far so good.

now i'm stuck on the final part, and i'm really hoping someone here will be able to help me with this.

have a look at the attached fla (mx & mx 2k4 vers). basically it's a map of the uk (minus ireland) that's been divided up into regions. when the mouse goes over each region it increases in size (i can't remember for the life of me which website i got the AS from ) and changes colour (thanks to this wonderful site!). the final part i need help with is to display each regions text when the mouse moves over the region (ie. when the movie loads no text is displayed, but if you hover over any of the regions it will display that region's respective text). i hope this makes sense.

also, if anyone's got any comments on the way i've constructed the movie please let me know.

i'm pretty new to AS

thnx in advance!



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 04-02-2005, 09:10 PM


View Complete Forum Thread with Replies

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

Help Needed On My First Total AS Creation
hi people,

i need your help on finishing my first all actionscript flash file. the bits of AS i've used so far have been made possible thru many hours of trawling the net trying to get tutorials on how to achieve what i wanted, and so far so good.

now i'm stuck on the final part, and i'm really hoping someone here will be able to help me with this.

have a look at the attached fla (mx & mx 2k4 vers). basically it's a map of the uk (minus ireland) that's been divided up into regions. when the mouse goes over each region it increases in size (i can't remember for the life of me which website i got the AS from ) and changes colour (thanks to this wonderful site!). the final part i need help with is to display each regions text when the mouse moves over the region (ie. when the movie loads no text is displayed, but if you hover over any of the regions it will display that region's respective text). i hope this makes sense.

also, if anyone's got any comments on the way i've constructed the movie please let me know.

i'm pretty new to AS

thnx in advance!

Total Newbie Help Needed Please :)
Hi
I've just looked at Flash MX for the first time ever. I'm working through the lessons - on the illustrations lesson it says
'In the Work File file advance to page 2'
and I can't work out how to do that and can't find anything to tell me how. Very silly I know but I've never even seen this before.
Can anyone help me please?

Component Creation Assistance Needed
So have created this movie clip that has a couple of content loaders on it and a list box that serves to offer a selection of content that can be loaded. As a movie clip everything works fine the data updates as requested through an external class file and the use of arrays, etc. I haven't gotten into alot of detail here because the problem is that the minute i convert the movie clip into a component and export the swc file everything works Except for the list box.
All of the methods function as they should and all of the properties are accessable and update as they should as well. The only thing that just will not, no matter how i work it, work properly is the list box. All other active content, loaders, embeded movie clips, etc work fine. Very irritating to say the least... Is there an inclusion or something that i may need to make? The only inclusion i currently have is the actual class file for the component itself. I did not extend nor include any other classes.

Tips On A Calendar Creation Needed
This is my dilemna for event schedules.

Have a Excel file that has dates and locations. Is it possible to pull the data from that into a flash file. if not what would be the best way to do this.. I don't have any database capabilities also.

I have to show Dates and locations that are always changing. Currently I am using a dynamic textbox with the data from a html text file. This is very time consuming to say the least, since this is for an entire year. I would like to be able to make the change once and it populate in the various areas on my site..


Does anyone have any suggestion.

thanks

Help Needed On A Password/Chara Creation Feature
I am making a stickfigure fighin game (a new one, not my footer) and I want to make a "Create a Fighter Mode" I know how to generate the password for the different chara settings, but I don't know how to have that password chugged back in. Any help would be appreciated

Datagrid Calculate Column Total - Some Useful Stuff Here - Some Help Still Needed
Hi - hope someone can help with this datagrid issue - I think it's just a small bit of code I've got to tweak. Might be some useful information to someone here anyway.

I've got a datagrid populated by info from mysql via amfphp.

I've managed to create a column that multiplies the qty and price fields:


Code:
root.dgCart.addColumn(column2);

var column2 = new DataGridColumn();
column2.headerText = "sum";

column2.labelFunction = customLabelFunction2;
column2.columnName = 'sum';

function customLabelFunction2(item:Object):Number {
// if (item == undefined) return undefined;
var sumtotal = round2D(Number(item.item_price) * Number(item.qty));
return sumtotal;
}


//helps to make decimals
function round2D (nr){
var tmp = String(nr)
var pos = tmp.substr(tmp.indexOf(".")+1)
if(tmp.indexOf(".")==-1) return nr+".00" //no decimals
else if(pos.length==1) return nr+"0" //1 decimal
else return Math.round (Number(nr) * 100) / 100 //2 or more
}


Now I'd like to get a total of all the items in the 'sum' column - the following code works to add up the 'price' column but the same approach doesn't seem to work for the 'sum' column - perhaps because the figures are generated by a function?


Code:
function getTotal(){
var totalPrice = 0;
for(var i=0; i<root.dgCart.length; i++) totalPrice += Number(root.dgCart.getItemAt(i).item_price)
root.txttotal.htmlText = "<b>Total:</b> "+ round2D(totalPrice);
}


If anyone here could shed the light, I'd be sooooo greatful!

Buttons In Movie Clips, Linking To Other Scenes - Total Noob Help Needed :o(
Hi guys, big time Flash MX newbie here, and I am struggling.

I have a movie clip in scene10, which has a button, when this button is pressed, I would like it to go to another scene. I have searched this forum and found out that I need to use _root, and I have used the following on my button, to some limited success:


Code:
on (release) {
gotoAndPlay(_root.gotoAndPlay(1));
}


This takes me to my first scene in the flash movie, for example called scene1. However I do not want it to go to scene1, I need it to go to say, scene4.

Ive tried allsorts _root.gotoAndPlay("scene4",1) _root.scene4.gotoAndPlay etc etc but I cannot get it to work.

Can nayone help please?

many thanks.

How To Mix AS Element Creation And Direct Creation From Flash GUI
Hello,

i'm pretty new to flash but i have a decent level of c++, when i create a flash doc , i put evrything in a separated Main.as file
and i create all elements "programaticly" like:
attachMovie("TextArea", "m_text", 0);
m_text._x = 10;
m_text._y = 100;
m_text.setSize(400,200);
m_text._visible = false;
but this is very slow as i have manualy set all the coordinates of all elements , their size etc .
What i would love is to be able to :
drop a text area in some frame , resize it and make it nice set all its 'visual propreitys'
then when i attach the movie from my Main.as it inherit all visual propreitys.

I'm realy happy of my approch to put evrything in Main.as i want to avoid at any cost going and hiding
ActionScript all over fla frames, so i just need to solve this and my live will be c++ again :)

thanks
sorry if the message is not clear , i'm realy confused with flash "logic" .

Total Visits/total Sound Plays
How can I get a "total visits"type function but instead of recording the number of visits, it records the number of sounds streamed from that flash movie and makes it visible

Total Visits/total Sound Plays
How can I get a "total visits"type function but instead of recording the number of visits, it records the number of sounds streamed from that flash movie and makes it visible

Total Visits/ Total Sounds Played
How can I get a "total visits" type function that makes the number of times a page has been visited visible, but instead of recording the number of visits, it records the number of sounds streamed from that flash movie and makes it visible. (Not pages but externally loaded and streamed sound.)

tks
ken

Total Visits/total Plays
How can I get a "total visits"type function but instead of recording the number of visits, it records the number of sounds streamed from that flash movie and makes it visible

Total, Total Newbie Question
Um, i cant quite get my character, call him bob, to fall and walk, jump and turn around on a platfrom. this is the basis for all my games!

MC Creation
Hi,

I'm on a journey to make a website entirely made inside of one empty frame of actionscript. Very early I have hit a snag, I'm using AS2 by the way. I load info from an xml, inside the xml looks like this.

<xml>
<home></home>
<history></history>
<portfolio></portfolio>
<contact></contact>
</xml>

then my script on the first page looks like this:

var loader = new XML();
loader.ignoreWhite = true;
loader.onLoad = function(success) {
if (success) {
xml = loader.firstChild;
trace("success");
menue();
}
};
loader.load("data.xml");

//Control Variables
menueItemX = 0;

menuePadding = 10;
//Create Menu Container
var menucontain = _root.createEmptyMovieClip("menucontainer",this.ge tNextHighestDepth());
//Create menue
menue = function () {
for (i=0; i<xml.childNodes.length; i++){
//Create item container
var menue = menucontain.createEmptyMovieClip("item"+[i], this.getNextHighestDepth());
//Create textField in container and set properties
menue.createTextField("my_txt", 1, 0, 0, 0, 0);
menue.my_txt.autoSize = "center";
menue.my_txt.multiline = false;
menue.my_txt.wordWrap = true;
menue.my_txt.selectable = false;
//menue.my_txt.embedFonts = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFFFFFF;
my_fmt.size = 30;
my_fmt.bold = true;
//my_fmt.font = "Arial";
//Write text from xml into menue item
menue.my_txt.text = xml.childNodes[i].nodeName;
//Apply text formatting
menue.my_txt.setTextFormat(my_fmt);
menue._x = menueItemX;
menueItemX += menue.my_txt.textWidth+menuePadding;
trace(menue.my_txt.textWidth);
menue.my_txt._width = menue.my_txt.textWidth + 5;
menue.my_txt._height = menue.my_txt.textHeight;
//release actions of button
menue.onRelease = function(){
trace(this.my_txt.text);
}
//rollover actions of button
menue.onRollOver = function(){
this._alpha = 50;
}
menue.onRollOut = function(){
this._alpha = 100;
}
//trace
trace(xml.childNodes[i].nodeName);
}
};

It's pretty long and does a lot and worked fine until I wanted to make every created mc go inside a menucontain mc. What happens is only the last item of the xml gets written. if I try this code it works great:

var loader = new XML();
loader.ignoreWhite = true;
loader.onLoad = function(success) {
if (success) {
xml = loader.firstChild;
trace("success");
menue();
}
};
loader.load("data.xml");

//Control Variables
menueItemX = 0;

menuePadding = 10;

//Create menue
menue = function () {
for (i=0; i<xml.childNodes.length; i++){
//Create item container
var menue = this.createEmptyMovieClip("item"+[i], this.getNextHighestDepth());
//Create textField in container and set properties
menue.createTextField("my_txt", 1, 0, 0, 0, 0);
menue.my_txt.autoSize = "center";
menue.my_txt.multiline = false;
menue.my_txt.wordWrap = true;
menue.my_txt.selectable = false;
//menue.my_txt.embedFonts = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFFFFFF;
my_fmt.size = 30;
my_fmt.bold = true;
//my_fmt.font = "Arial";
//Write text from xml into menue item
menue.my_txt.text = xml.childNodes[i].nodeName;
//Apply text formatting
menue.my_txt.setTextFormat(my_fmt);
menue._x = menueItemX;
menueItemX += menue.my_txt.textWidth+menuePadding;
trace(menue.my_txt.textWidth);
menue.my_txt._width = menue.my_txt.textWidth + 5;
menue.my_txt._height = menue.my_txt.textHeight;
//release actions of button
menue.onRelease = function(){
trace(this.my_txt.text);
}
//rollover actions of button
menue.onRollOver = function(){
this._alpha = 50;
}
menue.onRollOut = function(){
this._alpha = 100;
}
//trace
trace(xml.childNodes[i].nodeName);
}
};

but then all the menu items created exist on the root, but I want them in another mc, to be able to change the position of the entire menu at any time... Can anyone offer me some guidance as to what I'm doing wrong?
Thanks so much for your help

Hello (I Have A ? On My Map Creation)
URL to the File

www.andrews.edu/~scottt/t_s_Flashmap.fla

I have a file here that I have produced, and while the people i am creating it for want it to be simple I want to see how i can make it more interesting(any advice?) I am going to be putting tooltips in too. The idea is a basic map of different housing locations.

My second issue is:

First I need for the two states to be buttons that go to the frames i specify but those dont work. I like the way it fades in and out (w/ the color) when you roll over it but i know there is an easier way to do this with actionscript instead of making all of these objects to confuse myself. (I am trying to teach myself after a terrible class that I took )

Second, In the beginning of the swf you will notice that the Indiana State blinks when it should be a simple fade in like the Michigan state. I know this is happening because of the actionscript that i have put on it, but i need it to go to the frame specified (which still doesnt work) Any help would be Greatly appretiated.

One more thing. I would like to learn how to start creating dynamic flash sites such as

examples

johnmayer.com

www.worldaccessmarketing.com/homepage.htm

Know of any learning material i can start with?

Thanks for your attn.

Total Nob
what does this mean:

stop();

???? any helop plerease

Getting NaN In Total
Can someone help. I have a quiz and have the vars listed as number, but if all anwers are incorrect it show NaN instead of 0.
Also, would this work better as array and how would code go?

thks







Attach Code

// add your textbox instance name
var totalUserScore:Number = Math.round((Number(chap1Correct)+ Number(chap2Correct)+ Number(chap3Correct)+ Number(chap4Correct)+ Number(chap5Correct)+ Number(chap6Correct)+ Number(chap7Correct)+ Number(chap8Correct)+ Number(chap9Correct)+ Number(chap10Correct)+ Number(chap11Correct)+ Number(chap12Correct)+ Number(chap13Correct)+ Number(chap14Correct)+ Number(chap15Correct)+ Number(chap16Correct)+ Number(chap17Correct)+ Number(chap18Correct)+ Number(chap19Correct)+ Number(chap20Correct)+ Number(chap21Correct)+ Number(chap22Correct)+ Number(chap23Correct)) / (Number(chap1Correct)+ Number(chap2Correct)+ Number(chap3Correct)+ Number(chap4Correct)+ Number(chap5Correct)+ Number(chap6Correct)+ Number(chap7Correct)+ Number(chap8Correct)+ Number(chap9Correct)+ Number(chap10Correct)+ Number(chap11Correct)+ Number(chap12Correct)+ Number(chap13Correct)+ Number(chap14Correct)+ Number(chap15Correct)+ Number(chap16Correct)+ Number(chap17Correct)+ Number(chap18Correct)+ Number(chap19Correct)+ Number(chap20Correct)+ Number(chap21Correct)+ Number(chap22Correct)+ Number(chap23Correct)+ Number(chap1Incorrect)+ Number(chap2Incorrect)+ Number(chap3Incorrect)+ Number(chap4Incorrect)+ Number(chap5Incorrect)+ Number(chap6Incorrect)+ Number(chap7Incorrect)+ Number(chap8Incorrect)+ Number(chap9Incorrect)+ Number(chap10Incorrect)+ Number(chap11Incorrect)+ Number(chap12Incorrect)+ Number(chap13Incorrect)+ Number(chap14Incorrect)+ Number(chap15Incorrect)+ Number(chap16Incorrect)+ Number(chap17Incorrect)+ Number(chap18Incorrect)+ Number(chap19Incorrect)+ Number(chap20Incorrect)+ Number(chap21Incorrect)+ Number(chap22Incorrect)+ Number(chap23Incorrect*1)) * 100);
trace (totalUserScore)+"%";
var totalUserScore = totalUserScore + "%";

Button Creation
Hello everyone,
i have a question about buttons i was hoping someone could help me, so hear goes :

In my web site, the link page, i only have the name of the web sites and there link, for example : i have http://www.billgoldberg.com and that's the link and the way it shows on my web site to Goldberg's official web site, and that's BORING!
so i thought of doing a button for each link that will show up in an Alpha effect in the exact same time line that all the other flash animation in that page appear, you can see them at my web site (www.goldberg--online.com) and just hit the Links Link.
now comes the button part, for each link i have i have taken an Title bar from the web sites and that is the button i want to do, i want it to appear from 0% Alpha Effect, to a 50%, and then when the mouse is over it, i want it to show a 100%, only when the mouse is over it.
everything works well, but the part where on mouse hovers over the button and it's suppose to show 100% of the button, it stays 50%.
but everything else works good.

.MXP File Creation
Hi there ,
i was learning the "Flash Components" from flashcomponents.net , i downloaded the .MXp file which registers in Extension Manager.

Is anyone there who can tell me how to create the .MXP file what is the logic behind using that and how to use it.......etc etc..

Thanks in advance.

Sai

Movieclip Creation [MX/OOP]
Ok I am going all out OOP.

Lets suppose I have the following code

PHP Code:




_global.haba = new mcTester();
_global.uulala = new mcTester();

function mcTester() {
    this.mc = createEmptyMovieClip("dest", ++this.mcdepth);
    trace("this: " + this + "this.mc: " + this.mc);
    trace("dest: " + dest);
    
    this.mc.mc2 = createEmptyMovieClip("dest2", ++this.mcdepth);
    }







After running I only have 2 movieclips, dest and dest2 instead of
4. What I want is haba.dest and haba.dest2 & uulala.dest and
uulala.dest2.

How?

FMX Object Creation?
Ok so after a while of fiddling with FMX I am ready to go all out
object oriented.

However it seems that the way I that I thought would work, doesn't.
I dont know if this is the Flash 5 way or something:

PHP Code:



function DemoObjectConstructor() {
    this = new Object();

    this.demoState = "Demoing"; //property

//function IOW method definition
    this.showDemo = function() {
     trace("demoState: " + this.demoState);
    }
}




This, however, doesn't seem to be working - depending on the
circumstances the method cannot be called! Any clue why?
(IOW, saying 'myDemoInstance.showDemo()' doesn't do anything at all!)

Ok, for the correct syntax/grammar, should it be done like this?
[no 'this = new Object()' in there]

PHP Code:



function DemoObjectConstructor() {

    this.demoState = "Demoing"; //property

//function IOW method definition
    this.showDemo = function() {
     trace("demoState: " + this.demoState);
    }
}

A Flash Creation?
Thank you much for any help, comment.
What program was used to create the top part of this page?
http://onlinecounseling.lbcc.edu/cou...selinghome.cfm
What is used to make the images change and fade in and out?
What program is used to show the upper right-hand mask, with the motion effect in background?
Thank you for your help.

Screensaver Creation
Is it possible to make a full-function screensaver directly from a Flash MX file (Be it FLA, SWF, or EXE) or do I need another program for that? Is there a free one that is good enough?

Banner Ad Creation In Mx
Im fairly new to flash, but have been using it for a bit now. Ive created some banner ads using flash mx, but im not sure how to make that whole movie, as it appears in a browser, a link to another site. Do i use some action scripting to do this. Ive tried using the get url command but as soon as the browser loads it goes to a blank web page. Do i need to put in a mouse release event in, if so what is the scripting to do this?
Any help much appreciated!

Typeface Creation
Hi.
Does anyone out there know of a cheap, but reliable Font Creation applicatin for Mac? I need to make a quick typeface, but don't relly want to spend $500 on macromedias fontographer.

a shareware (or even better freeware) app would be perfect.

Cheers

Website Creation
Howdy all-

New to flash...obviously

Flash 5 version in use here, not enough cash yet for MX

I was wondering if anyone had some pointers on creating a website completely in flash. I've seen some pretty impressive sites from the board, which has inspired me.

Some questions:

- How do you handle links? (should each link be a link to another .swf, or is that all contained in flash, making one huge .swf)

- I don't want to have a huge .swf file obviously for the poor souls that have dial-up, optimization is key, and I'm looking for insight into this.

What are the best files (image-wise) to import into Flash? (png, gif, jpg, etc.)?

Are there any starter tutorials for website creation in general?

Anything you can add aside from my questions is certainly appreciated.

Thanks,
hankhill

Screensaver Creation
Possibly a stupid question, but here goes...

Does anyone know of a free screensaver creation tool to use with Flash MX?

Gradient Creation?
How do I create a new gradient to use (for fill)?

Symbol Creation
If i want to copy a symbol X times from code [somethin' like snow] and configure each property of each symbol individually what should I do? Please include example code or swf

Dynamic Bar Creation
I am trying to create a movie clip (mc_A) that will build a horizontal bar (also a movie clip 1 pixel wide we will call mc_A.mc_B) beginning from where I dropped mc_A (mc_A._x) on the stage to the right end of the stage.

I drop the movie clip mc_A_i (instance) on the stage and use the following code on mc_B.

mc_B._x = _parent.mc_A_i._x;
mc_B._width = Math.abs(1024 - _parent.mc_A_i._x);

A trace shows mc_B._x as being set to it's parent movie clip mc_A._x, but it doesn't place the starting point of the horizontal bar where I would expect it to go when I test the movie.

I also have a problem when I set the _width of a movie clip to a number (1024). I run a trace on the next line of code for the width and it isn't the same.

Any ideas?

Don

Flash CD-Rom Creation
I need to make a simple CD-Rom. I know that this can be done using flash MX. Any suggestions on finding doccumentation on how to do this???
Thanks for your suggestions.

Nav-Bar Creation Question
Is it possible to create a nav bar like the one on http://www.nixonnow.com/za/NNS?PAGE=HOME
?

If so could someone guide me in the right direction?? I've gotten all the buttons made, but cant figure out how to make the sub menus (i.e. mens watches etc) stay without making them part of the hit area for the parent button (i.e. product)

gracias!

Nav-Bar Creation Question
Is it possible to create a nav bar like the one on http://www.nixonnow.com/za/NNS?PAGE=HOME
?

If so could someone guide me in the right direction?? I've gotten all the buttons made, but cant figure out how to make the sub menus (i.e. mens watches etc) stay without making them part of the hit area for the parent button (i.e. product)

gracias!

Site Creation
Hello all i am new to this board and i have a few questions.

I Am pretty decent in template creating and i wanna take it to the next level and add some flash the kind of things i am wondering how to do are flash banners with a menu which i am guessing is added with the banner, kind of like this site http://www.teknicks.com/

I am very interested in how that is done i was wondering if there is a tutorial on this i cannot seem to find any.

I Am guessing its a template created in photoshop etc and the flash is added in with a a HTML editor.

Then having to code the flash buttons to open up in a frame, if someone could help me out that would be great.

Thanks in advanced

Dynamic Creation Of MC's
Alright, as my other post was getting no replies to this issue (as it was buried under my other questions) I have decided to seperate it out for clarity.

This portion of my code is supposed to generate a new movieclip, draw in it, and then repeat.


PHP Code:



_root.createEmptyMovieClip ("line", 1);
["line"+d] = line;
["line"+d].lineStyle (3, 0x000000, 100);
_root["line"+d].onEnterFrame = function ()
{
    if (_root.i > 0)
    {
        if (_root.incrementx <= _root.targetx)
        {
            ["line"+d].moveTo (_root.tempx, _root.tempy);
            trace (_root.incrementx);
            ["line"+d].lineTo (_root.incrementx, _root.incrementy);
            _root.incrementx++;
            _root.incrementy++;
            _root.i--;
        }
    }
    else
    {
        _root.d++;
        _root.tempx = _root.incrementx;
        _root.tempy = _root.incrementy;
        _root.incrementx = 0;
        pickTarget ();
    }
};




The issue I'm having is with using the ["line"+d]. Generally this works, but in this instance it is giving me an error. Can anyone help with this? Thank you.

Is .exe Creation Possible In Flash?
Hi there,

What I'm looking to do is a sales presentation with customisable features. The user (salesman) needs to choose certain txt files and jpegs from his local machine, and use these to populate a prebuilt presentation. Ideally this would run as an exe file, and then output another exe file that has all the customisable parameters specified for successful running of the presentation from any machine.

Is this possible from within Flash, either independently or using a third party utility? I am an intermediate actionscript programmer/designer, so any hints or demos would be much appreciated.

I hope this makes sense, and if you have any questions then please post em.

Thanks very much for your time.

Mr P

[F8] Background Creation
hi

I'm wondering if someone could help me here. I'm rather new with flash. And I'm trying to create a animation background with flash. But not just coloring it with flat colors, but with a bit of texture and with some gradient. Is there any tutorial or anyone know how it is to be done in flash?

Smoke Creation
Hi all of you,

I was wondering if someone could help me with the creation of smoke in adobe flash 8. I have been searching the internet for good tutorials on this but can find any.

The kind of smoke I would be look for would be like this showing on this site www.trydrugs.net

I would appreciate any help at all, even if its give me a link to a good tutorial

Thanks for reading this , have a nice day

Chris

Creation Date
I'm looking for a way to copy protect a flash projector on a USB-stick.

This could be easy. On startup, read the creation date of the current projector and compare it with some hardcoded date. If this is OK, go ahead. I don't see any security issues in here.

I've been googling for ages but with FileReference it doesn't work the way I like it.

Is it really impossible to protect a file based on the creation date?

Dynamic Creation
Hi all;

Stupid question I guess:
I'm trying to create dynamic text objects in a loop. Is it possible to add an expression into the creation process?(AS3)


PHP Code:



for(var i:Number = 0; i<3; i++){
var myText:TextField = new TextField(); //<< I want to create 3 text fields like : myText[i]
}




Thanks for you help

Menu Creation
Hi I want to create a cool catch y menu
to put in my website how do i make it
Initially there should be a bar with menu written and as soon as the mouse hovers it it should fall open into Home, About me, Pictures, Contactme and Guest book..
Plz reply

Help Regarding Creation Of Menu
Hello all,

I'm working on a flash site and I'm a bit stuck due to my lack of expertese in actionscripting, so I am hoping that you guys can help me.

The site is pretty simple, devided into 6 sections in total, and the navigation is layed out as 6 sections in a graphical timeline.
So, 6 movieclips for the buttons and 1 movieclip for the content.


The buttons (button 01) now have the following code:


Code:
on (releaseOutside, rollOut) {
gotoAndPlay("01_rollOut");
}
on (rollOver) {
gotoAndPlay("01_rollOver");
}

on (press) {
gotoAndPlay("01_current");
}

on (press) {
_root.content.gotoAndPlay("part_01");
}

Now, what I would like is for the button to stay in the "press" state after I click it, and also trigger this state when the specific part of the "content" movieclip is played.

Any ideas how I can achieve this?





Cheers,

Simen

Below are two images of the menu:

Object Creation?
Ive been working with flash for about 40 days, and ive been surfing forums, tutorials and all that special stuff trying to find a straight forward guide on making objects spawn in your game... I am aware of duplicateMovieclip, but i want to learn how to create projectiles out of nowhere, and spawn movieclips with code... whenever i look up "object creation with actionscript 2.0" all i get is making classes and that doesnt really seam helpful to me.

Please can someone help me understand how to create objects and projectiles.

Dynamic Creation
Hi,
I am newly learning the flex builder 3.0. I have an issue while dynamic creation and reading of data from the components (textinput, combobox etc.).
The logic which I implemented for dynamic creation of the components is as below:


public function dynamic2():void{
var i:int;
for(i=1;i<=n;i++){

var vBox:VBox=new VBox();


var hBox:HBox = new HBox();

var tip1:TextInput=new TextInput();
tip1.text=”hai”;
var combobox:ComboBox=new ComboBox();
combobox.dataProvider=datatypes1;
//Add components to hbox
hBox.addChild(tip1);
hBox.addChild(combobox);
//Add hbox to vbox
vBox.addChild(hBox);
//Add vbox to tile
//Here maintile is Static tile and we are adding dynamic components to it
maintile.addChild(vBox);
}
i=0;
}

In the for loop ‘n’ value is entered by the user based on that value we need to load the dynamic components. I am able generate the components, but the problem is we are not able to read the data from components(textinput and combobox) because we are not able to differentiate the components if multiple times the for loop is repeated.

Is there any concept where we can generate array of components
For example:
This syntax is existing in flex for array variable creation
Var arr:Array=new Array(5);

Do we have any concept like the above to create array of components?
Like wise var tip:TextInput=new TextInput(5);

Or suggest any solution for reading of dynamic values and identify those components separately?

Thanks in advance
Nagaraju

Font Creation ?
Does anyone have any clue if such a program as a 'font creator' exists..?
And if not how you go about creating one yourself ??

I have looked many times on google for creation programs and all i find is bizarre abstract links to ifinate loops of font sites never actually getting any info on font creation.

I may be being thick of course, this has been known...

But i am at a loss as to how to do it as i would like to design some fonts myself, assuming it isnt some herculian task that is


Cheers for any help

DVD Menu Creation
I have read places that you can create DVD menu's in Flash, if you have external programs to convert them to the proper format. Does anyone know how to go about doing this?
I wish to create a professional looking DVD menu.
Does anyone know of a tutorial to learn how to do this in Flash? I have Director MX, would this be a proper program to convert a menu created in Flash to a DVD format? And what Actionscript would I need to apply to the buttons to make them easily navigated through on a DVD?

Thanks for your time.

Personaliza FLV Creation
Hallo all

How can i modify/personalize my FLV creation? Ive to insert a simple logo in my videos....

Any suggestion?
Thank all

Menu Creation? How?
hey- i have a intermediate level of understanding of actionscript and always wanting to get more. so my question is can someone point me in the direction of how this menu system is actually animating itself in?
http://www.scion.com/
If you take a look it will animate in from different directions depending on which side you move from. I know it is probably created from xml or database driven content-- i just would like to know how it is being animated and appearing in a stagard way and so easily without glitches. is it the use of setInterval or another way? please direct me to learn more on this effect. thanks in advance for your time.

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