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




Need Advice...combobox Problem



Here is the scenario:

I have created a movie clip with a combobox in frame1. In frame2 I have a button listener within which I am trying to access the combobox value. The values seem to be available outside the button listener function, but give an undefined within the function itself.

One last thing. Is it better to write the listener functions behind the appropriate button(s)?

Any help would be greatly appreciated.

Thx
Shafiq

Here is my listing for the code on frame2.

import mx.controls.Button;
import mx.controls.ComboBox;

stop();
var Phone;
var Fax;
Phone = varPhone1 + varPhone2 + varPhone3;
Fax = varFax1 + varFax2 + varFax3;

//set up phone and fax fields
var emailStatus = 2;
strResult.text = "";
Address.text = "";
City.text = "";
State.text = "";
Zip.text = "";
Zip.restrict="0-9";
strResult.text = "";

trace ("Title.value = " + Title.value);//here the value of Title.value shows correctly say '2'

submitListener = new Object();
submitListener.click = function()
{
//validate email
if (varEmail.indexOf(" ") != -1 || varEmail.indexOf("@") == -1 ||
varEmail.indexOf(".") == -1 ||varEmail.length<6||
varEmail.lastIndexOf(".")<varEmail.indexOf("@"))
{
strResult.text = "Incorrect email address. Please go back and try again";
emailStatus = 2;
}
else {
strResult.text = "Correct email address!";
emailStatus = 1;
}

if(emailStatus == 1 && Address != "" && City != "" && Zip != "")
{
//code to submit data
var registerVar = new LoadVars();
registerVar.FirstName = varFirstName;
registerVar.LastName = varLastName;
registerVar.Company = varCompany;
registerVar.Email = varEmail;
registerVar.Phone = Phone;
registerVar.Fax = Fax;
registerVar.City = City.text;
registerVar.Zip = Zip.text;

// this is where I am having a problem. Seems like the values for the comboboxes "Title" and "State" are undefined. Even though they are appearing outside the listener function??

registerVar.Title = Title.value;
registerVar.State = State.Label;


trace("registerVar.Title = " + registerVar.Title); //undefined

trace("registerVar.FirstName = " + registerVar.FirstName);
trace("registerVar.Phone = " + registerVar.Phone);
trace("registerVar.Zip = " + registerVar.Zip);

trace("registerVar.State = " + State.label); //undefined

registerVar.sendAndLoad("/Register/register_process.php", registerVar, "POST");
registerVar.onLoad = function(success) {
if (success) {
strResult.text = this.strResult;
//checkLog2 = this.checkLog;
}
}
addOffice.enabled = true;
}//end if validation OK
};



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 05-07-2004, 11:27 PM


View Complete Forum Thread with Replies

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

Dual Combobox Advice
Hello All, I wonder if anybdy could help me greatly with some scrpit which will enable the following; ?

I would like to create two comboboxes and a GO button. The user should choose 1 selection from each drop down in the combobox and then press GO. The specific combination he chooses will determine which page he is then directed to. This will help condense my navigation a great deal, as I have a large number of combinations to choose from in each box. (around 10 in each).

Does anyone know of any script which could perform this function? Sadly the literature I have been reading just stops short of explaining it.

Any help or direction is appreciated,

Thanks
Andy

Need Advice...combobox Problem
Here is the scenario:

I have created a movie clip with a combobox in frame1. In frame2 I have a button listener within which I am trying to access the combobox value. The values seem to be available outside the button listener function, but give an undefined within the function itself.

One last thing. Is it better to write the listener functions behind the appropriate button(s)?

Any help would be greatly appreciated.

Thx
Shafiq

Here is my listing for the code on frame2.

import mx.controls.Button;
import mx.controls.ComboBox;

stop();
var Phone;
var Fax;
Phone = varPhone1 + varPhone2 + varPhone3;
Fax = varFax1 + varFax2 + varFax3;

//set up phone and fax fields
var emailStatus = 2;
strResult.text = "";
Address.text = "";
City.text = "";
State.text = "";
Zip.text = "";
Zip.restrict="0-9";
strResult.text = "";

trace ("Title.value = " + Title.value);//here the value of Title.value shows correctly say '2'

submitListener = new Object();
submitListener.click = function()
{
//validate email
if (varEmail.indexOf(" ") != -1 || varEmail.indexOf("@") == -1 ||
varEmail.indexOf(".") == -1 ||varEmail.length<6||
varEmail.lastIndexOf(".")<varEmail.indexOf("@"))
{
strResult.text = "Incorrect email address. Please go back and try again";
emailStatus = 2;
}
else {
strResult.text = "Correct email address!";
emailStatus = 1;
}

if(emailStatus == 1 && Address != "" && City != "" && Zip != "")
{
//code to submit data
var registerVar = new LoadVars();
registerVar.FirstName = varFirstName;
registerVar.LastName = varLastName;
registerVar.Company = varCompany;
registerVar.Email = varEmail;
registerVar.Phone = Phone;
registerVar.Fax = Fax;
registerVar.City = City.text;
registerVar.Zip = Zip.text;

// this is where I am having a problem. Seems like the values for the comboboxes "Title" and "State" are undefined. Even though they are appearing outside the listener function??

registerVar.Title = Title.value;
registerVar.State = State.Label;


trace("registerVar.Title = " + registerVar.Title); //undefined

trace("registerVar.FirstName = " + registerVar.FirstName);
trace("registerVar.Phone = " + registerVar.Phone);
trace("registerVar.Zip = " + registerVar.Zip);

trace("registerVar.State = " + State.label); //undefined

registerVar.sendAndLoad("/Register/register_process.php", registerVar, "POST");
registerVar.onLoad = function(success) {
if (success) {
strResult.text = this.strResult;
//checkLog2 = this.checkLog;
}
}
addOffice.enabled = true;
}//end if validation OK
};

Some Advice (actually A Lot Of Advice) On Navigating My Web Site
My web Site consists of 1 large flash movie that is being used as a template for the site as a whole. Different 'pages' in the site will consist of the same movie...different colour and content.
ie
Page1 = template/ red/ content A
Page2 = template/ blue/ content B etc etc

My problem is with navigation ( and not knowing enougth about flash )

Choice 1. use traditional hltm with frames. navigation buttons on the left frame call up the a url to load the new flash template.

Problem. Can the call command to load, the url, also navigate to a certain frame within the template?

Choice 2 Make the different pages into different scenes within the same movie.

2A Can the navigation buttons be in a different frame ( web page frame as opposed to a flash frame) and if they can how do I navigate
,or can I navigate as below

Button 1 = load url= www.blah/blah/blah gotoandplay= frame 40

2B the navigation button are in the main movie ( template ) how do I tell it to go to,

button1= go to scene2 frame 30 and play

Lastly!! If I go down the scenes route does flash load the whole movie before it starts playing, this would not be acceptable due to download times, or can it be made to;

1 Load the next scene when it is requested
even better
2 Be made to load the other scenes while the user is looking at the first scene

There will be a large bottle of whiskey ( if your old enougth) for any help that you can give me. Thanks

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.

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!

A Little Advice Please?
Hi,

I have a couple of very general questions and maybe one or two not so general questions.

I`ve recently downloaded the trial version of Flash 5, and I`m finding it all a bit much for me.
I have zero knowledge of HTML (is this going to be a major problem) Having used a drag and drop webdesign program called Trellix web for the last 3 years.
I understand how to insert HTML scripts into this program to activate certain things like counters and guestbooks etc. but my first question is...

1. Will it be essential for me to learn HTML and how to use a program like WSFTP before I can ever get to upload anything I create in Flash 5.
2. Any suggestions as to where to go for a "complete idiot`s guide to Flash" so i can actually understand the damn thing?
3. Will I be able to use the art programs I have (PSP7 , Adobe 6, Ulead 6 and 7, Cool3d, Animation shop, etc) to design my graphics and then convert them into Flash files that will become animated yet smaller in size for my web pages?
4. Are there any of you fine people out there who have the time to actually help me out as and when I get completely stuck on what I`m trying to do?

Many thanks for your help...and bear in mind that the trial is only 30 days, and I WONT be buying the full version if I cant understand how on earth it works...lol

Phil/Voyager

Need Some Advice From You
im in a little bit of a bad situation. some of you might have seen my posts from before. ive been learing this type of work for the past 4 years mostly on my own i just turned 20 and im not sure how to handle the work. i got this job with this start up skate company which is what ive always wanted.and basically im doing all the real work. its just me and the boss. its my first real job ive only done work for friends. but the problem is ive only been paid once and its suppose to be a perminent job. and im not sure what i should get as pay. also im working from home and thats no good its like never leaving your job and im a little bit addicted to the work. im not really that concerned with the money i saw it mostly as a learning experience. but for the amount of time ive put into this i should be paid somthing. should i have the guy set up some kind of written agreement or what? also i have all the artwork for the decks for printing so i have some advantage if he tries to screw me i really should just talk to him. but i just wanted to see what real professionals think i deserve.
ive been working since the end of april sorry about this but i have no one else to turn to for help im on my own so.

http://www.nvertsports.com
its not the best site but im working on it

What Do You Think? ANY ADVICE?
This is my first website using flash...

I was just wonder if it was a little over-kill or not?

http://www.hydrofog.com

lemme know if you have any suggestions... i'm very open to constructive criticism... i appreciate any advice.

Thank you

Ryan

Need A Little Pro Advice
Im currently workin on a personal flash site just to see how its workin.. but i showed it to a few friends and they say it takes awhile to load. I havent really been Using Flash for that long, and im not that good at at..yet.. but i was wondering if anybody give me some pointers on reducing the file size.. anything.. It's not even that big of a site yet.. and its takin a long time to load.. idunno whats up with it. any advice would be greatly appreciated

http://www.angelfire.com/tx5/imagine0/

Advice On Png's
hi..

okay does this make any difference to player performance.....

... a png file that is as big as the stage but only holds an eighth of stage of colour infomation the rest of the image is transparent..

or a cropped down image that just holds a small amount of transparent infomation and the rest of the colour infomation..

i have 10 of these that are fading in and out of each other...

will this cause serious player problems when i start to
do other things over the top?

---Need Advice---
Hey guys,
I've just downloaded the trial version of Flash MX.
Should I uninstall my Flash 5? Or just install MX?
How does it work?

Thanks.
Olga.

Need Advice
This is question regarding working with layers (I think) and flash 5.

I want to make a frame that has several buttons. when clicking on the button one word appears, when clicking on the another button another word appears.

My problem is that I have several frames and the words are shared among them all, so I don't want to make the appearing words for each frame seperetly.

Is there a way to call the appearing word, without leaving the frame I'm in - so that the image on the frame will stay?

I know it is kind of complicated and I hope I managed to explain what I want.

Thank you vary much.
Efrat.

Looking For Some Advice
Ok, writing a movie that can display schedules, there are 28 potential classes going on, rooms are numbered 101 through 212, I am bringing in the data for the schedules using loadvar from a text file, works great. here is my problem, if there is nothing in 102, I want 101 and 103 to show up in order, without the blank space where 102 should be. would I be better off making all of the dynamic text boxes and then sending the vars to it, or would it be better if I make the dynamic text boxes dynamic, so they are made on the fly? I think that is the way I want to do it, but I am having problems assigning a var to the dynamic text box in code. I can hard wire the vars on a dynamic text box but not with code, keep getting a ";" expected error. thanks in advance, and remember, I just need to know how I can assign the vars to a dynamic text box with code. or if I am even on the right track.
Thanks
Jeff

Need A Little Advice Please
Hello everyone,

First I must thank everyone for all there input on this board. It has really helped me out THANX!! =).

Okay now my question...

I put together a preloader for my site. Rather than putting it as a seperate scene, I placed it as a movie clip on the first frame of my main timeline.

I decided not to go the scene route, due to the fact that when I placed it as a seperate scene. Alot of my action scripting I had wrote did not work anymore. I beleive that this was due to a targeting issue. Rather than change all of my page I scrapped the scene all together.

My problem (or maybe its just flash) is that when I test my movie using the bandwidth profiler set to a 56k connection or less there is almost a 7 second delay before my preloader kicks in. You basically just sit there staring at a blank screen. I think this maybe confusing for users when they arrive.

Is there something I can do about this? I don`t want people leaving my site due to the fact that they think it doesn`t work...

thanks in advance..

Need Some Advice
I am a flash designer. I know very little action script. I want to be able to learn how to create internet apps and things of that sort. Can someone be so kind to recomend a book of my knowledge. Here is what I saw to be the most reasonable one. http://www.linuxcentral.com/catalog/...=JJ8Buw1CT7UA2
also
http://www.linuxcentral.com/catalog/...=JJ8Buw1CT7UA2
also
P.S. I do not know ASP, PHP, Or CGI. I can work with them but not write them.

I Need Advice
I thought I understood this but I guess I don't. I am working on a practice quiz and want to show a timer while students take the quiz. I have a getTimer on a movie clip on frame 5 and a getTimer on the try again button on frame 7. I am using an array to dynamically load jpegs and to load the questions and answers. Everything works fine except that when I use the try again button to reset the quiz my timer doesn't reset. The quiz has 20 questions. You can use the number keyboard (A = 1, B = 2, C = 3, D = 0)to quickly go to the end of the quiz. Can someone please take a look and give me suggestions. Flash is just a hobby for me so I am no expert. Of course the pics won't load from here.

Need Advice
I am developing a multimedia soft & Flash-part of it is mine.
Could you suggest me some other features that should be in
the Flash part of this soft
You can find it here
http://www.show-kit.com/preview.php

Thanks For Help All, But Need More/advice, Please
thats a doughnut for everyone who helped me so fast the other day, thank-you.

But, i have another problem and need some advice. I have a site for a client (musician) that is becomming "very big", actually they are being signed by, Canadian Rockers, Knickleback (still in the works).

I need to have some music on the site, how do i preload a mp3, or should i, or is there a better way, thanks again all.

P.S. If you got a set please check out the site and let me know what you think, good or bad, cheers. ( made with flash, html, javascript )

http://www.themarbleindex.com

I Need Advice
i need to spruce my sit up a bit..

Need Some Advice...
hi all!

is it possible to load a movieClip from the library into an empty movieClip on the main scene?

if yes, please tell me what action i should use for that.

thanks a lot

Any Advice? With My MC
Ok I just finished my first movie clip.... Could someone please download this file and let me know if I did it right? maybe i could of done it differently.....

Any advice is most welcome.

Any Advice ?
Hi my problem is probably really easy to solve but I can't find information anywhere on how to do it. I want to create a movie where by when you click on one menu option the content moves in and when you click another menu option the old content moves out before the new content moves in. thus creating a very flowing movie. Can anyone help? thankyou !

Need Advice...
i made a website for a small size company, they are asking for the fla file.. should i give to them the fla.file for free or should i ask for money and how much.. higher than what im charging them for the swf or lower? thanks!

Need Some Advice/help
Hi! Can you help me please I would like to know how these sites are made http://www.hostrocket.com http://www.dinix.com The presentations are really what I am looking at as I really like them so could some on please help me even if it is to advice me on how the general site is put to gether. thanx but yeh you have to admit there cool sites hey :lol:

Hmm.. I Really Need Some Advice Please
I am making a site that looks like a 3x5 inch index card on a tablecloth. The tablecloth is a the html background pattern. But I decided that for some of the site sections I want objects to appear that are outside the 3x5 card (such as a pen, or a coffee mug, whatever.)

I could make the flash stage bigger and put some of the background on the flash stage and try to make it align with the html background, that way i would have space to put objects outside the 3x5 card.... BUT i know the backgrounds wont align correctly for all viewers.

So can i just make the stage take up the whole viewing space and not have scroll bars appear for the cloth background, but only when the 3x5 card goes off the screen???

Advice Me Please
Hello!
I need some help here regarding my little flash development, here the case looks like this:

There are four boxes and one object, there is an interactivity which i completely dont know how to do. What i exactly want to do is when someone drag the object to all of these four boxes, object only go to the correct box where we defined to which one it should go. Lets make it more simple by numbering all of the four boxes and the object have to go inside the third object. So, if the user drag the object into 1st, 2nd and the 4rth object, it shows an error message but if the user drag the object into the 3rd box it shows welcome and move forward as we designed.
I know my english is not good, you people must be getting problems understanding my question. But i think every thing has been cleared. So, kindly advice me how can i do that or is there any same script stored in Flashkit somewhere, kindly help.


Thanks and await,
Amir

Help Or Advice PLEASE
Please take a look at the enclosed file.

It is a menu system for a website. It has some mouse trails that attach to the mouse. This is where the problem lies!.

Everything appears to work fine. But if you leave the file alone and do not move the mouse, after a certain time, you will see a LARGE version of the MC that attaches to the mouse appears on the screen and is rotating. What is going on?

PLEASE HELP

Lee

Advice Please X2
Hiya peeps!
I just made a clock in Flash 5 which has a special 'animation' evry hour; on the hour & i want 2 put it on my website. The only problem is, im quite dense when it comes to colours!

PROBLEM 01 ::
Could you please look @ my site:

http://www.terminalnet.co.uk

My clock will appear in the top right corner where it says 'Watch this space'.

I'm not too sure of wat colours 2 put for the hour, minute and second hand, also the clock face.
If i put it all as blue, then it may look 2 ordinary, and i want the clock 2 stand out, but if i put the colours different, the clock mite not 'fit in' with the page. Please help.

PROBLEM 02 ::
In a post i read about a week ago, it said about puttin the flash bg as transparent using html. After searching through posts, i could not find the one i was looking for .

Ne1 know how 2 make the flash movie 'transparent'??


Please help.

T-I-A


jag

A Little Advice Please..
I am building a Mp3 player for a website i am creating however i have a couple of questions...

I can import the track details from the database without trouble and load them into the player, however I wonder the best way to create the playlist. Should i place the tracks and their information into an array or is there a better object to use?

I am using a sound object to play the tracks, is it a good idea to create a new sound object for each track or should i reuse just one or two...which leads on to my next question..if i were to use 2 sound objects does anyone know how i can fade the two sounds together, a nice little function perhaps

SO far my code can be simplified to

code: //Create Sound for the MP3
mainS = new Sound();
//------------------------------
//Loads the track into the sound
setTrack = function (trackSource) {
mainS.loadSound(trackSource, true);
currentMP3 = "Song Has Loaded";
gotoAndPlay("Playing");
};

//------------------------------
//function for completed track
mainS.onSoundComplete = function() {
title = "Song complete";
gotoAndPlay("Paused");
};

//------------------------------
//Test Data
src = "d:/beats/sausagesong.mp3";
setTrack(src);

Need Some Advice On How To Do This...
I have a picture of the world, kinda like this:

http://www.maproom.psu.edu/graphics2/dcw/world-rmap.jpg

Except nicer-looking.

Anyways, what I want to do with it is to have each continent kind of "flash" randomly. Think of lightning in the sky (the sheet lightning). I just want to make each continent flash randomly.

I'm just not sure how to go about 'cutting' the continents so they're seperate symbols and stuff. Can anybody give me some advice to kick-start this little project?

Thanks!

Need Some Serious Advice On Where To Go With This.
Hey all,

I've been contracted to do something I've never done before. The concept is clear - it will be a Flash advertisement, and when you hover over it, a little survey appears. There will be about 5 radio buttons for people to select, and as they select the radio buttons I need the data to be posted to a server (no submit button, is this even possible without a submit button?

For exmple:

Your Age:
[] 15-25
[] 26-35
[] 35 and over

Your sex
[] Male
[] Female

So on and so forth..

So basically, when a person rolls over this ad, a little survey will popup with radio buttons for them to select. I have no idea how to:

1) Make it so the data is posted to a server without a submit button - is it possible? Or should I just have a submit button?

2) How would you assign an action to a radio button? Would I have to make the radio button have an invisible button over it to post the data?

3) Is there anything I'm missing?

Thanks a lot, I really appreicate it

-Zach

Need Some Advice
I have a site almost ready and I need a little help. www.tsigold.com
When you click on a pic of a tool on the right side it will take you a .php page I have created for now. But it will limit my needs for what I am about to do. I have started a new .swf page with a scymatic of the tool in black and white in this new movie that I am calling 72tt_1
I want to connect to my new movie now instead of the .php page. How do I do this?

I Need A Little Advice
i am having a problem with the text in a flash header. am just learning flash, the tutorials on this site have helped a bunch. the text fields are not working with my buttons even tho i've converted them to buttons and tried several other things. the site and the header i'm speaking of is here: www.deadly-alliance.net
the .fla is here: www.deadly-alliance.net/zoo/Logo.working.fla
thanks!

Advice/Help
Hi just in the middle of doing a site for a friend but wanted some advice on what to do with the logo and buttons.

Heres the site: http://www.townbarclub.com/dev/

He wants the centre part to be a simple mask of a picture (i've just put one in of the bar now.)

Im thinking i want the logo to have a shine effect or something...... but am a bit of a newbiw so it could be difficult.

As far as the buttons are concerned i just want them to change colour or summat?

Any advice would be great.

Need Advice
I need some advice. Im going to school to become a graphic designer and I wanna eventually go into Website Design. I have a school project coming up where I need to create a music video with some interesting animation. I decided to go with System Of a Down "Toxicity." I need some ideas for an interesting intro. Any ideas? I ran across this site and I'm trying to show my teacher that it works well with getting tips on how to do things. I would like to make a project out of things that he hasnt taught us in flash to show the power of this website. Thank you all for your time and any advice would help greatly.

Need Advice
Hello.

I am looking for some advice on how to accomplish this.
Attached is a fla file when viewing as a swf and rolling your mouse over button 1 text 1 and text 2 appears at the bottom. Is there a way to add another roll out at text 2 so more text rolls out at the side? (see jpg)

I did not create this file, I was just asked if I could edit it. I have basic knowledge of Flash.

If there is anything anyone could do to help me I would really appreciate it.

Jason

In Need Of Help And Advice.
Hi all,

Hope you can help me.

I have just had a request from a client to provide a still image of a menu that we have produced for print onto DVD so as it can be displayed on a plasma screen within the restaurant.

Can anyone point me in the right direction as to how to go about this?

Has anyone had any experience of anything like this before?

Thanks in advance.

In Need Of Help And Advice
Hi all,

Hope you can help me.

I have just had a request from a client to provide a still image of a menu that we have produced for print onto DVD so as it can be displayed on a plasma screen within the restaurant.

Can anyone point me in the right direction as to how to go about this?

Has anyone had any experience of anything like this before?

Thanks in advance.

[MX] Need Some Advice
Ok, so I am creating a simulation in which the user drags weights from a "reservoir" onto a pulley. I need to determine if they are on the right pulley, left pulley, or not on the pulley at all. Then I use that information to add the weights mass to the total left or total right mass.
I'm using hitTest to evaluate which pulley its on, but I can't figure out the best way to add or subtract the weight. I either end up in an infinate loop or it doesn't work.
So far I've got it so that it doesn't continually add the same weight over and over again if the weight stays on the pulley. What I need is a way to know if the weight has been taken off the pulley and then subtract its weight. I've attached my file if anyone wants to have a look at it.
Any help is much appreciated as I'm currently pulling my hair out over this.

[F8] Looking For Some Advice
I'm in the process of starting to build a flash movie (well, actually it's a website intro) and was hoping for some general advice on the best way to build it or set it up.

Should I be trying to acomplish as much as possible with as? For instance, I have 5 images that load at various points in the movie when a specific message comes on screen. Should I load those images with as? If so what is the best way to do that? one function on the first frame that then gets called from various frames? If it matters I will reaveal each image with a mask.

I also have a few text messages to display throughout the movie. Should I just animate those directly in the timeline?

Thanks in advance.

Please Advice Me...
i've started creating models within smift 3d, can anyone tell me or point me the right place which will show me how i can add 3d free rotation within flash to rotate the outputed files from swift.... i understand you can rotate the actual model only use the rendered images.

Looking For Advice
I am working on this project and I learned how to call things from the library and thought that was just the greatest thing. So I called everything right from the library thinking this was an efficient way to work but now I have this great big lag in the beginning of the site before the .swf loads. It appears all those linkage identifiers are loading before anything on the stage including the preloader. I have several solutions but am not sure which is really the best way to go if any:

1. deselect "export on first frame" for all the clips in the library that I am calling to the stage using action script and drag them to the stage but off to the side. then cal them as usual. This way they load with the movie behind the preloader but there is still a fairly long loading time. alternatively can I just use attachMovie on the preloader as well so it loads hopefully before the content? (Don't really know if this will work)

2. save the project as three separate projects and load external .swfs to the main movie - each with their own preloader. (this is the direction I am leaning as a way to control file size) but I don't want to do sloppy work and have heard along the way that this is not the ideal way to work so I guess I am asking what is the best way to handle this?

does anyone have any ideas on this?
Thanks,
-M

Some Advice Pls
Hi, i am new to flash mx. Can anyone out there recommed me any good tutorials on it. I doing a image marquee, it will be best if the tutorials cover topics on it

Thanks

Need Advice On The Best Way To.....
Hi guys,
I have a flash game where i have 4 colour boxes top of the screen and 4 colour boxes bottom of the screen. These are moved left and right via buttons. there will be a vertical area in the centre of the screen.
When, for example the top red and bottom red box are aligned over the centre and a button is pressed i need to check if they are the same colour box and return a positive value.

I have attached the file. I would be most grateful if you could advise the system i am using and help with my query.

cheers ta!

p.s I'm also struggling to get the buttons to disable whilst the tween is in motion.

I Need Advice: PHP And AS
Could someone please look at my AS code and PHP code? In spite of reading throught these threads, I'm still having issues. I'm new to PHP.

The issue is with a login.

My flash_login.php code is:
<?php
include('icanwrite-conf.php');

if($connection = @mysql_connect($host, $user, $pass)) {
if(@mysql_select_db($db, $connection)) {
$result = mysql_query("
SELECT *
FROM Users
WHERE chrUsername='" . $_REQUEST['username'] . "' AND chrPassword=MD5('" . $_REQUEST['userpass'] . "')
");
$num = mysql_num_rows($result);

if($num > 0) {
echo "checklog=1";
} else {
echo "checklog=2";
}
}
}
?>

I got this code from a flash-db.com tutorial.

My Flash code on the login button is:
on (release) {
if (username.text != 2) {
gotoAndPlay(2);
loadVariablesNum ("flash_login.php?username=" + username, 0);
}else {
Status.text = "Please enter a User Name";
}
}
And the loop on frame 2 and 3 is:
if (_root.checklog != 2) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
The problem is, if the user types anything in the username text field, they are allowed access.

Thanks for taking a look at this for me. There is a database created in MySQL. I didn't create it. Another developer did, but he doesn't know anything about Flash AS to help me out. Thanks.

Please Some Advice
hi..

i'm trying to do the following..

i want to do this area that when you rollover it it shows an animation for example.. when the mouse is over it shows like bubbles flowing up
si if you move the mouse all over the area it should show lot of bubbles

i know it must be something with masks or hit area.. for example.. giving the area a line that makes show the animation when the mouse is over...

well any help would be so great

thanks

Need Some Advice
Hi everyone,

I have to do this project, which involves a lot (or maybe not that much) of scripting. However, I'm pretty new to Flash and Actionscript, so I haven't gotten that far yet. I admit that I could probably learn everything I need from reading tutorials on the web, however, time is a factor, so I can't really afford to go mucking around for many hours. So I hope you guys/girls can give me some pointers, or direct me to relevant tutorials. (Or perhaps tell me I'm on the wrong path alltogether, and just animate the stuff (but I love to script ) ).

What needs to be done:
A white scene with black rectangles 'floating' around gently, these are about 300x170px. The screen needs to be filled with these rectangles, so that you only see some sparse white. At random, one or more rectangles will show a picture; there are 5 pictures, and they are to be shown in a certain order.

What I got so far:
I managed to draw the rectangles with 'createEmptyMovieClip'. I got a simple loop, which I run about 20 times, that creates MovieClips, then it draws a rectangle with a function, and then I place it somewhere randomly with the ._x and ._y properties. I also managed to fill the rectangles with 'attachBitmap', and to do some basic random movement with the 'onEnterFrame' event.

Problems/things to do:
Random movement of the squares is very jittery (was to be expected). Instead of coding smooth movement myself, I'm hoping to use the Tween class (or something like that). However, I haven't managed to get this to work.
I haven't figured out how to fade the pictures in and out (at random intervals, but that should be easy after figuring out how to fade).

The biggest thing for me is that I'm new to Flash, and lack the basic knowledge of building flash projects (working on it, tho). Hence, I'm also not quite sure how Actionscript interacts with the timeline, how to time events, etc. I have quite some experience with scripting (PHP and Javascript), so I'm confident about learning Actionscript, I just need some pointers

Any help is appreciated! Thanks.

Need Advice
i need to
onClipEvent (enterFrame){

do a series of tasks every 15 second, 4 times
}

How do I do this?

Advice
Hello,
Generally speaking when creating an entire flash website is it better to each link(or subject)a movie clip or an loadable swf. file or try and do most of it on one timeline with gotoandplay actions.
I have tried with loading swf. files but it takes too long the first time to load and I am not sure change this.
Thanks for any help.
anthonygatto

you can check out www.anthonygatto.com .

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