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




Code Problem....fast Help Appreciated



i got this code:


ActionScript Code:
effect.onEnterFrame = function() {    (success) ? effect.nextFrame() : effect.prevFrame();};button.onRollOver = function() {    success = true;};button.onRollOut = function() {    success = false;};button.onRelease = function() {    success = false;};


on a frame, for use on a button (obviously),
i want to make it so on release i have a gotoandplay function for frame 390, AS WELL as the success false action.

is there any way i can get this action into the above code? I tried several different ways, all come up with Error when its debugged.

Fast replies MUCH appreciated



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 11-05-2003, 10:54 AM


View Complete Forum Thread with Replies

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

Code Problem....fast Help Appreciated
i got this code:


ActionScript Code:
effect.onEnterFrame = function() {    (success) ? effect.nextFrame() : effect.prevFrame();};button.onRollOver = function() {    success = true;};button.onRollOut = function() {    success = false;};button.onRelease = function() {    success = false;};


on a frame, for use on a button (obviously),
i want to make it so on release i have a gotoandplay function for frame 390, AS WELL as the success false action.

is there any way i can get this action into the above code? I tried several different ways, all come up with Error when its debugged.

Fast replies MUCH appreciated

Script Help...Fast Help Is GREATLY Appreciated
Okay, so I have a project and me, being the smart person I am, left part of it til last minute. I believe this to be a pretty simple question so hopefully someone here can help me. I have a movie which loads others .swf's into it, a la the 5th frame consists of

loadMovieNum("swishwork.swf", Main);

I am having a problem however. The movie which is being loaded is too small...what I would like to do is create a script for the first frame which would have the same effect of going View>Zoom In once. Anyway to do this? Thanks!

Jeff

Preloader Code …….Help Appreciated
Hello,

Just joined in on this forum but I’d be really grateful if anyone can give me some advice on what I think is probably a basic code error. I’ve read a fair few posts of the last couple of days regarding preloaders, but I’ve not managed to find one that has solved the problem.

A brief background:

I’m using Flash MX, but I want the swf’s to run on flash 5 players.
I made a main movie, containing all the buttons, site navigation etc, which has it’s own pre-loader, on a separate scene which I constructed using this tutorial,
http://www.actionscript.org/tutorial...s/index2.shtml

This works fine!

Each button on the movie loads a separate swf into a container using the loadmovie command. There are 9 movies in total, and they load into the same container.

On the 9 separate swfs I have added the pre-loader as before. When testing these individually in flash each works fine, but when it’s up live the preloaders shows 100% immediately and stay there till the film has loaded.

I think it’s something to do with the preloader referencing the main film (which is already loaded), instead of itself. I have tried changing _root in the preloader script to _parent, and if I do the pre-loader just sticks at 0% instead!

This is the main preloader script I use for 9 swfs

total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("accessories", 199) {
gotoAndPlay("accessories", 1);
}

I think I lost the plot somewhere!
Anyone got any ideas?
Thanks

Is This Code Too Fast For Flash?
I have a stop watch app, and in there are 2 two frames i am having trouble with.

at frame 31, I have this code:

Now = Number((getTimer()-StartTime))+Number(SavedTime);

at frame 32, I have this code:

gotoAndPlay("Display Time");

and everything work fine, but if I move the code from 32 to 31 to have something like this:

Now = Number((getTimer()-StartTime))+Number(SavedTime);
gotoAndPlay("Display Time");

Then Flash will run into trouble, and ask me to abort the script.

Oh, one more thing. Here is the code from Display Time frame, and Get Time frame is the frame 31:

if (Number(Now)>1000) {
Minutes = int((substring(Now, 1, (length(Now)-3)))/60);
Seconds = int((substring(Now, 1, (length(Now)-3)))-(Minutes*60));
}
Centiseconds = int(substring(Now, (length(Now)-2), 2));
if (Number(Centiseconds)<10) {
Centiseconds = "0" add Centiseconds;
}
if (Number(Seconds)<10) {
Seconds = "0" add Seconds;
}
if (Number(Minutes)<10) {
Minutes = "0" add Minutes;
}
if (Number(int(Minutes))>59) {
call("Reset");
}
gotoAndPlay("Get Time");

[F8] How To Know How Fast A Code Runs
I want to know how much time each of my code takes to run. I googled and came across this tool called ASProf http://www.nochump.com/asprof/ but it seems to be for Flash MX only. Is it still usable for Flash 8? I need to find some way to find the bottlenecks in my Actionscript code. Thanks in advance.

Fast Help For Math Code Thanks
hey, I just started to get into flash code (before I was just doing animations and buttons) and I need to know what is the code, the symbol for an "exposant" (I dont know the work in english, but it's like: 2 exposant 2 = 4, 2 exposant 3 = 8, 2 exposant 4 = 16 etc. it's 2 multiplied himself 2 times, 2 multiplied himself 3 times etc.

I looked around on the net, on flash tutorial but I didn't found it.
I need this to calculate the mouse movement, with pythagore formula (hehe, maths are useful!)

I succeded to have a square which his alpha react with mouse mouvement (I know it sucks but it's my personnal achivement of the day )

thanks for your answer!

FAST ONE Code Does Not Work. 3 LINES
on (rollOver) {
setProperty(info, _x, this._x);
_level0.info.info_p = "+7 " + this._name;
}


what am i doing wrong? it wont set the x position of info MC to the x postition of "c" MC. Even if i change this._x to c._x. And, it does do the second part... so confused... plz help

Mouse Leaves Swf Too Fast - Code Breaks
Hey all, old problem in Flash that i've yet to find a great solution to...

PROBLEM: I have a playlist that slides over my video player when you mouse over the video screen. If you mouse away from the swf too fast the playlist doesn't slide away.. I've yet to find a method that always works.

So far I have a 20pixel margin around the video screen that when the mouse goes over the playlist hides.. I've looked into methods that allow for reading the mouse x/y when outside of the flash object which works very well, but it doesn't do much for me unless I can somehow read where on the page the swf loads (which i don't know as the site the swf is on is very modular and things can be moved around the page similar to Facebook)

This is a very common problem with Flash.. just wondering if anyone would like to share their approach to it.

Thaanks!

Is There A Fast Way To Access Commonly Used Snippets Of Code?
Like, I use

onClipEvent(load){this._alpha = 0;}

A lot.

And I always find myself writing it out...and it's a pain in the ***. I wish there was a way you could save commonly used snippets of code and just easily access them whenever.

Is there a way?

Thanks.

Is There A Way To Access Commonly Used Pieces Of Code? Fast?
Like, I use

onClipEvent(load){this._alpha = 0;}

A lot.

And I always find myself writing it out...and it's a pain in the ass. I wish there was a way you could save commonly used snippets of code and just easily access them whenever.

Is there a way?

Thanks.

How To Code A Script To Count Numbers In Order Fast
I wrote this PHP script that would count from 0 to the -72 to the 32nd power the lowest number known to man, anyway I want to write acionScript to do the same but count up form 0 to 30492342352423245465365376476586587584565368647565 47536537648647.................................... ..........


I know its very simple something like
with a dynamic text box displaying the number

i=0;i<100;i++

don't really know

SWF = Fast, EXE = Fast, HTML = Slow? Whats Going On?
Hello everyone,

Has anyone else ever had the problem where the *.swf will work fine, the published *.exe will work fine, but playing an *.swf file in an HTML file slows it down heaps? I have lots of example files to demonstrate and help explain this one...

Here is an example of one of my old super-super-simple games. I use this one because of its simplicity, there shouldn't be too much to slow it down, right? It is made in flash 6, but of course it plays in the flash 8 web player - which isn't usually a problem.

Here's the link to the executable file: www.dxinteractive.com/walkthestork/walkthestork3.exe

And heres the link to the HTML file:
www.dxinteractive.com/walkthestork

Play both and you'll see the executable runs perfectly, but the HTML runs slower than it should. Not only that, the "slowness" isnt uniform, so raising the frame rate to compensate on the HTML version doesn't work. I thought something must be slowing it down, so I took away the backdrop, then the scoring thing, then deleted all the code. I was eventually left with only one motion tween and it still ran about 60-70% of the speed it should. I tried changing the type of AS, the flash player version, the _quality, everything I could think of and it would not play at normal speed through an HTML.

I then deleted everything and drew some animated scribbles, and it still ran at about 3/4 speed. Play these two (flash 8 files) side by side and note the difference in speed:

Heres the slow HTML:
www.dxinteractive.com/testing/bigtest.html

And heres the regular-speed EXE:
www.dxinteractive.com/testing/big%20test.exe

Has anyone ever had this problem? Is it just my computer? How can it be fixed? The frame rate in reaction games is everything, and I would like them to run the speed they were intended to. Any help is greatly appreciated. In fact, this is such a big problem to me affecting sooo many games that if anyone solves this, they get their name in the credits on my webpage if they want

Button Code "on Release" Runs Too Fast That...
here is my code:

on (release) {
form.loadVariables("email.php", "POST");
gotoAndPlay(33); //here I want to go to this frame 'cause I have there the "sent" confirmation text
}

When I run this code, it displays the frame 33, but it does not send any variable to email.php .... however when I delete the command gotoAndPlay(33); it works perfectly.... it's only that, for sure it does not display the confirmation message... seems it runs too fast that it can't send the variables.... what is the best solution for this ???

thanx in advance,

Help Appreciated
I`d like to make a little app where you
enter your salary amount and days worked this month.
Then I`d like a second by second countdown of how much
money you make per second-
It should be interesting to watch as well as boost productivity... : )
any bright people want to assist me- Please help-thank you.

Any Help Will Be Appreciated
Hi,
I made a menu with one button and copied the button six times and gave different names to them.However I couldn't figure out how to link buttons to urls.Either it effects all the buttons or none of them.I know it's not good explanation but I can send the fla to those who are willing to help.
Thanks in advance.

A Lot Of Help Would Be Much Appreciated...
Quote:




I know this should be in 'Games', well it is. It's just you guys in the Actionscript forum are just so damned good (blatant brown-nosing) the I couldn't help but post it here too.




OK, before I start, I want you to know I'm not asking for someone to do all the work for me. I'd just like to be pointed in the right direction. Maybe some helpful tutorials? But if you feel the need, to 'really' help me out, then I won't complain.
OK, here it goes!

I would like to make a game where there's:
* a drumkit in the middle of the screen (easy enough)
* drums that fly across the middle of the screen (randomly)
* when the 'flying drums' fly over/across the drumkit area, I want the user to try and hit the drum, before it leaves the drumkit area again
* and if the user 'does' hit the drum, then I want the score to go up.

Graphics, I can do.
Scripting, me not so good, small brain have I.
Help?!

Seriously, thanx for any help.

Help Would Be Appreciated
mod - delete msg please

Any Help Is Appreciated
I am doing a project that has turned out to be more difficult than I thought. If anyone has any suggestions on the best way to accomplish this, I would greatly appreciate it.

I have 15 "post-it note" mc's that are layered one on top of another, so that only one is visible at a time. There are 3 "boards" and a "trash can" that these "post-it notes" can appear on.

The user selects either Accept or Trash on each post-it note. Hitting Accept causes a movie clip to appear on the a particular board that corrulates to that post-it note. These items appear in a list format on the board, with mc's that are of varying height and need to check for y-placement when the accept button is hit so that is placed below any other post-it note list items. On each of these list items, a remove button can remove the mc from the board and place a new mc in the trash.

The Trash button on the post-it note causes a movie clip to appear in the trash. When the trash can is clicked on, a listing of every post-it note mc placed in the trash appears. The user can hit a button to remove the item from the trash and will place a mc in its corrulating board.

When they are complete, the user hits select and variables are saved from each mc to a database that says where each mc is placed. This is for scoring measures and in case the user returns to flash movie and would like to make changes and the items will appear in the same spot as they had previously selected.

Here is the file that I've started. Before I realized the complexity of what I needed to do, I just had it switch the visibility on and off. I hadn't gotten the trash list completed yet, since that is where I found that the list for the trash wouldn't work in that way. The items listed on the board will be in varying lengths, but I don't have the content which is why they are listed as such.

Thanks in advance for any help that can be given.

A Little Help Would Be Appreciated
OH the Joys...

I'm new to flash in the biggest way but I do have some abilities...
I fake it well...I'm working on a sceen of a yard with a dog and other items in the yard...The main idea is that there is a hidden spring in the yard...with the commands on load stop, on load mouse down play, on load mouse up stop..

My idea is to have the dog walk around and when he steps on the spring (randomly I wish) and the button is hit and held down the dog with lock to the spring plate then fly up and thru the air off the spring....Not sure if it can even be done but I"m trying...

Any help would be appreciated....Peace and Thanks

Your Help Is Appreciated Please
Hi Everyone

I am new to Flash and have been reading up and studying the samples on this great site
I need your urgent help because i am starting to nuts!!!
I found the following pulldown menu on FlashKit

I am able to change the submenu items but I am ujnable to set the url
for each item
1) I dont know how to do track which submenu was clicked and
I would appreciate if anyone can write one or two lines of code for me so that I may apply it to the others

Thankyou in advance
Tourajman
tourajv @hotmail .com

Help Much Appreciated
Does anyone know how to have a photo gallery slideshow move left or right simply by hovering over it with the cursor and not having to click on a button??

Help Much Appreciated
I have this code on a frame:

stop();
loadMovie("newintro.swf", "placeholder1" );

When I test my Movie in Flash it works beautifully, but when
I upload to server... Nothing happens.
All of my other MCs load fine, just not this one. Any help will help,
I'm at my wits end.
VN

Help Much Appreciated
I have a button rollover/rollout event but have created two button with the same code, but now when I rollover one the other animates as well. Can someone take a look at the script and tell me why I'm retarded.
I've attached the fla. file.

Any Help Appreciated
hi everyone,

ive a movie clip called TextBox1 on a layer called Graphics.

I want to use this text box (hide it on click of a button) inside a movie clip on another layer.

How do I call (textbox1) considering its on a completely different layer outside of this movie clip.

a global function maybe?

Cheers

Greg

Any Help Would Be Appreciated...
hi guys i'm making an exe interactive with flash.
it will reach a point where it's required to load
a html page in full screen. is there anyway to do it?

Help Would Be Appreciated
Hello guys. I am new here so nice to meet you all. I need serious help with some flash animation. So if anyone don't mind, can I please add anyone their msn so that I could ask them privately? Thanks

Some Help Appreciated With AS
Hi, everyone!
i´m trying to enable/disable several buttons on a single click instead of writting...


on (press) {
btn_inicio.enabled= false
btn_1.enabled= true
btn_2.enabled= true
btn_3.enabled= true
btn_4.enabled= true
btn_i5.enabled= true

}

exist any way to make someting like this to simplify my code? ... to apply the same property change to several movies/buttons

on (press) {
btn_inicio.enabled= false
((btn_1) && (btn_2) && (btn_3) && (btn_4)&& (btn_5)).enabled=true
}
any help appreciated
thanks in advance !

[AS] Any Help Would Be Appreciated
I'm having problems with the scroll bar on my dynamic text field to work.

it works the 1st time you go to the "news" sections. but if you then go to another section and return the scrollbar is turned off...
can't find a way to get it to work, without making a crappy button scrollbar.
any help would be greatly appreciated

the fla. is here:

http://www.pilotemusique.com/pilote.fla

cheers.



mike

Any Help Appreciated
Ok, i have run into a problem. I havent been using AS very long, and this is the hardest thing i have done so far!

I have a little bar, and when you click on it, it uses the new mx.transitions and scrolls down, revealing a textbox. What i want it to do is, as soon as it as at the bottom, i want the user to be able to click the arrow again, and it scrolls back up! Any help appreciated. Here is the code i am currently using:

___________________

button_one.onRelease = function() {
button_one_down();
};

function button_one_down() {
easeType = mx.transitions.easing.None.easeIn;
var begin = 19.9;
var end = 270.0;
var time = .5;
var mc = button_one;
ballTween = new mx.transitions.Tween(mc, "_y", easeType, begin, end, time, true);
}

___________________

Help Would Be Greatly Appreciated...
Hey everyone, maybe you can help me out? I made a flash SWF (in Flash 4) and have include a large square area where I want to include a lot of text. Can I load an HTML page into this area so that the user can scroll up and down inside this area?

Or do I have to create a frames page and make separate SWF's around the frame I want to have in HTML? Can I control which page I want from the SWF (ie, can I put links in the SWF which will load various HTML pages in the specific frame?)

Or do you think I should just make separate movies in Flash and load them inside the main Flash file in the specific area?

Any suggestions would be greatly appreciated...

Complications... Help Appreciated
This is hard to explain, but I will do my best.

I have created a movie that runs in the middle of the screen when there is a mouseover on a button. I would like this movie to repeat as long as the mouseover is happening and this works fine until I add onmouseout or onmouseclick to the button in the main timeline. Once the timeline reaches it's stop point the movie attached to the button resets thus making a glitch in the already repeating movie. If I don't add any actionscripts to the button on the main timeline the movie keeps repeating perfectly on a mouseover.

I'm wondering if I have to use the onmouseover command in the script instead of attaching the movie to the button in the "over" frame, but i'm hoping for a less time consuming solution. Thanks for reading and any help on the situation would be greatly appreciated.

-Lance

Any Suggestion Is Appreciated
Hi,

I already have a flash file in my computer (stand alone) and I would like my flash file ONLY run in my machine. Should my flash program runs in another machine, I would expect the program just stops. Please give your suggestion if flash can do that, thanx !

Mouseover Help Appreciated
Probably an obvious answer but not being an expert I've probably overloked it.

I've created a mouseover on a selection of menu buttons on the right of my page that reveal text in the left side of the document. I don't want the text to reveal when the mouse is placed over it, only when placed over the menu button.

Can anybody help

Much appreciated

Any Help Greatly Appreciated
Hello,

Im having a big big problem using PrintJob to print in a presentation.And am pleading for anyhelp on this matter
(almost spent a whole week on this...ughhh )

My situation is quite unique as I have dynamic content on each frame.
I have found that the frame needs to be viewable to print it.
To acheive what I need i wrote a script that changes the page (all works fine) and then adds that page to the spooler (not so fine).

When all the pages have been visited pages are sent from the spooler to the printer (ideally!).

below is the script that sits in a movie clip on the main movie.

A thousand thankyous for any advice, tips or feedback.
Regards,
Cylon



//start print job
my_pj = new PrintJob();

//open dialogue box
my_pj.start();


function changePage() {

//_root.p_from is our starting page and _root.p_to is our last page
if (_root.p_from>_root.p_to) {

//interval stop
endRepeater();

//send pages from the
spooler to the printer
my_pj.send;

//clears print job
delete my_pj;

//return this clip to frame 1
gotoAndStop(1);

} else {
//add current page to spool
my_pj.addPage(0);

//increment from page
_root.p_from += 1;

//invokes function to instruct _level0 to advance frame
_parent.nav.updateFrame(1);
}
}
//repeat changePage function every 1 sec
repeater = setInterval(changePage, 1000);

//clears repeater interval
function endRepeater() {
clearInterval(repeater);
}
stop();

Function Help Would Be Appreciated
Hi.
I'm trying to figure out why this small code doesn't work and I've found it to no help looking in the flash actionscript dictionary, I must be doing something quite basic quite wrong.
I would be grateful for help.
Cheers
Jakob

What I want to happen is for all the global variables (popularity for example) to be run through the fixstat function. And when they've been run through the fixstat function, they should have been modified if they match they contained a value > 100 or < 1. But it seems I can't get it to work.

<Code>
fixstat = function(stat){
if(stat> 100){
stat = 100;
}
if(stat < 1){
stat = 1;
}
}

fixstat(_global.popularity);
fixstat(_global.dancing);
fixstat(_global.refinement);
</Code>

Help Would Greatly Be Appreciated.
Hello,

I not very good at flash at all and I need a very simple simple animation for a layout that I made. I would be willing to pay a small price.

To get an idea the layout is here at http://www.exilehost.com/exilehosting_layout.jpg.

Basically, I want the clouds to continuously go by smoothly behind the trees. I can provide a png file for the trees as well as the clouds for the background.

Please email me at Brandon@sindivision.net.

THANKS SO MUCH!!!

A Little Help Would Be GREATLY Appreciated
how do you get a url to open to a new browser window and still have the
site you are looking from still be up.(hope that makes sense) it's late and I'm dozin' fast. I thougt these computers were supposed to make our live easier. Thanks in advance. Peace.

Help Would Be Oober Appreciated
I am trying to make my nav bar have the same mouse following effect as this Website has http://www.bukwild.com/home.html. Please Help! Thank You!

NEW TO FLASH...Any Help Appreciated
I mostly know about Photoshop and I seen this cool animation on http://www.slide.com/pic_arrange that has a fireflies theme that would go perfect for a design I did for this girl. Instead of just using that site I would like to learn how to RECREATE IT, not just use that site.

Like I said I have NO flash experience and have been watching vid tuts since this morning and have learned the basic Turn A Square Into A Circle thing...Lets just say I thought that was the coolest thing ever lol.

Ok I have a psd file of a a frog on a beach during the day that I would like to fade to night, have fireflies come out and fly around for a minute, then frog blinks twice, sticks his tongue out, eats one and it glow in his stomach, while the other fireflies are still flying around but end up going to the top area and spell the girls name out...make sense?

Heres what Ive learned ..just cant figure out exactly how do it...

1) make a firefly into a movie clip of it just flying in place..maybe with a slight up & down motion
2) insert it and have it fade in and tween (think thats the right word in this case) from point A to B and finally fade off.

Im hoping the rest should fall into place since I should just make them follow a guided line and do whatever...BUT I just cant figure out how to make the first image fade to the next then on to the next one. If anyone could help I would really appreciate it. Or even suggest places that will. Everyone has to start somewhere when learning something new.

If yall would like yall could email me at Lil_Flac_3@Hotmail.com if its not too much trouble. Oh and didnt mean to write a novel, just tried being as detailed as I could lol. Thanks again

Assistance Would Be Much Appreciated
okay so here's the scoop. i am building a small website in flash mx for a friend of mine. they want a site very similar to this one.. http://www.liknon.com

now i have no problem here except for i recently read a tutorial (which was great by the way) on creating drop down menus in flash. it calls for me to have the button (on rollover) jump to another frame containing the drop down menu buttons. great, woohoo, everything is going well until i realize.. that the way i have designed the site is for each button (in the rest of the menu) to jump to a frame on the timeline for each page.

my problem is this.. when someone goes to roll over the button containing the drop down menu, it is going to jump to whichever frame contains the drop down menu - not the page (frame) they are looking at right then and there.

so what i'm wondering is if there is any way i can put all the pages for this site into their own separate movie clip, and have each button reference a different frame inside that movie clip with each page. following me so far?

i am pretty basic when it comes to my actionscript knowledge, but i know there's a way to do this, or so i think. if anyone understands my problem and would be gracious enough to help me i would greatly appreciate it. i have built the backbone of the site and all is well except for this one minor (MAJOR, actually) problem. I am cool with sending someone my fla. file to look at and see what I've done if they wish, just let me know.

thanks,

morgan

Script Help Appreciated
Okay here's the deal. I made a lovely flash document that has a map with several icons on it. The icons will be used to identify areas of concern on the map. I used start/stop drag to allow the user to drag the icons to the point where they need to go. But after they get all of the icons, where they need to go, I need for them to be able to return the map to me in a way that shows me where the icons are. I'm not picky about how this happens, but I'd like something a little more professional than telling them to click screen print and then paste the results into a document. For example is there a script that will allow me to make a screen print button? Anyone?

P.S. I'm a designer, not a programmer, so basic English is appreciated. Thanks.

SUB-SUB-MC LINKS? Help Appreciated.
I have a movie clip that has a getURL, but it is also in the another movie clip that stops.

Will someone please help me. I don't understand the links I've assigned aren't working. I have to get this done by Monday so all help is appreciated, because this is extremely URGENT!

If you could explain in greater detail, you will receive my deepest gratitude. =]

Here is the link to the .fla.
http://www.geocities.com/westleydang/Untitled-9.fla

Any Ideas Would Be Appreciated
Hello - Any general ideas on how to accomplish this? Here is the link to the test site - http://csgkc.com/jacksTestSite/color.asp When the user goes to (step 5 - not there yet) I want them to be able to type there name and model of the corvette in that same font. Any help would be appreciated! General ideas would be great - certain action scripts to use? I just need a starting point. Thanks in advance.

Scrollbar Help Appreciated
Hello everyone, this is my first post and was hoping for some advice.

I am fairly new to Flash, I have no idea about Actionscript, a part from stop();

I have designed a button that when you put your mouse over, it slides out using a motion tween to reveal a panel with thumbnail pictures. However, I need to make the panel scroll downwards to fit all of the pictures on. When I click on the pictures, I want it to take me to the relevant frame.

Please could someone point me in the right direction as to how I could do this, links anything!

Many thanks,

Helen

NEW TO FLASH...Any Help Appreciated
I mostly know about Photoshop and I seen this cool animation on http://www.slide.com/pic_arrange that has a fireflies theme that would go perfect for a design I did for this girl. Instead of just using that site I would like to learn how to make it MYSELF, not through a site.

Like I said I have NO flash experience and have been watching vid tuts since this morning and have learned the basic Turn A Square Into A Circle thing...Lets just say I thought that was the coolest thing ever lol.

Ok I have a psd file of a a frog on a beach during the day that I would like to fade to night, have fireflies come out and fly around for a minute, then frog blinks twice, sticks his tongue out, eats one and it glow in his stomach, while the other fireflies are still flying around but end up going to the top area and spell the girls name out...make sense?

Heres what Ive learned ..just cant figure out exactly how do it...

1) make a firefly into a movie clip of it just flying in place..maybe with a slight up & down motion
2) insert it and have it fade in and tween (think thats the right word in this case) from point A to B and finally fade off.

Im hoping the rest should fall into place since I should just make them follow a guided line and do whatever...BUT I just cant figure out how to make the first image fade to the next then on to the next one. If anyone could help I would really appreciate it. Or even suggest places that will. Everyone has to start somewhere when learning something new.

If yall would like yall could email me at Lil_Flac_3@Hotmail.com if its not too much trouble. Oh and didnt mean to write a novel, just tried being as detailed as I could lol. Thanks again

Some Feedback Would Be Appreciated.
Hi all,

I've finally published my first flash website at http://www.laurentobia.com. I'd really like some feedback on it.

A couple of things that i will still have to think about are the fact that it is ONLY player 9+ compatible so i need to find a way (Javascript or something) of checking that and i'm considering a preloader. I had made one but when the movie was run it didn't really work. It ignored some "go to and play" commmands on keyframes and didn't recognise any user interaction!? If you can think of any reason this might be happening please let me know.

But anyway, essentially it's finished and it works. Please remember when looking at it that the site is live so please don't try out the contact form because it works (thanks to kglad!) and mail will be sent to my client. And please use FP9 as i'm sure most of you use anyway!

Thanks for any feedback or constructive criticism you can give :)

Please Help, Game.any Help Appreciated
hi, i need help with a game i am creating. i need to make 2 different health bars for 2 different things, and (stupid question) to learn how to make a mask sort of like a cone of fire coming out of someones hands. that is an example by the way. please send me a reply/tutorial via e-mail at this address:maginationkid@hotmail.com thanx

or if you want, you can just post. that would be fine. thanx again

Your Work Is Appreciated
I found this site a couple of weeks ago and already I have made use of the invisible background, the snow and the countdown.
I am a amateur artist and I do struggle with coding but I am trying.
Thanks everyone!

Sevenoaks

For Loop Help Much Appreciated Please
Hi Guys!

Okay, the scenario is as follows. In the below code exert, I have attached a movie clip (square_mc) and made three duplicate instances of it. What I would like to happen is that when the user clicks on the delete_btn button component, it removes all of the duplicate instances. What I have done is extracted all the movie clips on stage and put them in an array called mc. Then in the event callback handler, a for loop iterates through all the movie clips in the mc array, and checks the ._name property of each clip. If ._name == "square_mc"+j, then it deletes that instance.

However, the problem is, the compiler doesn't seem to like the concatenation of j, which corresponds to the loop control variable in this expression. When I replace j with a number that corresponds to the instance, i.e. ._name = "square_mc"+0, then it works. Obviously, I don't want to have to hard code instance names, I want it to be dynamic. Is there any reason why the compiler doesn't like it when I concatenate j with the string???

Below is my code exert:


ActionScript Code:
this.attachMovie("square", "square_mc", 10);square_mc.duplicateMovieClip("square_mc"+0, 11,                                {_x:50});square_mc.duplicateMovieClip("square_mc"+1, 12,                                {_x:100});square_mc.duplicateMovieClip("square_mc"+2, 13,                                {_x:150});var mc:Array = new Array(); // Array holds the all the movieclips on stagevar index:Number = 0;         // Used for indexing mc Array// Loop through all movie clips on stagefor (var i in this) {    if (typeof (this[i]) == "movieclip") {        mc[index] = this[i];    }    index++;}var listener:Object = new Object; // Declare listener object for component event// Event callback handler function// Iterates through mc Array to extract square_mc instances// then removes/unloads them from stagelistener.click = function(evtObject:Object) {    for (var j=0; j<mc.length; j++) {        if (mc[j]._name == "square_mc"+j) {            mc[j].unloadMovie();        }    }}delete_btn.addEventListener("click", listener); // Register listener with component  


Any help would be greatly appreciated. I am completely puzzled as to why it just read the value for j.

Many thanks guys

TAJ

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