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




Easy But Hard Problem



hey i got this problem i can't seem to get my head around

if you take a look at this example www.dune.be/test/test.html

you see a red square and a white ball in the corner of it

now the red square is a movieclip that resizes if you use the slidebar on the right

the white ball resizes with the red square because it is inside of the red square movieclip

pretty simple right

now i want the white ball to remain the same size while being inside of the red square.


so basicly :
i need the white ball to stay in the corner of the red square if you resize it , but the white ball has to remain the same size.

i hope anybody has a good head and can help me out with this one

u can download the file at www.dune.be/test/test.fla

thx



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-14-2002, 11:59 PM


View Complete Forum Thread with Replies

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

How Hard (or Easy) Would It Be To Do This?
http://www.kristinewickstrom.homeste...nelApplet.html

I am after something just like this in flash. I need to know if I will be able to learn how to script it or if it will be easier for me to find someone else to do it. I have special requirements and I am not sure if my skill level is up to scrats *gush*

basically it would be the same as the applet, but it would have the ability to use either metric or imperial measurements *user to choose*... and by entering the values the end product would be an illustration of a cage *done in flash*

is this a hard task? I no basically no actionscripting *blush* I am hopeless... any info though would be fantastic.

--Tiana

One Of Those Easy But Hard...
OK: a MC in the middle of the stage, -within the MC many frames.
I am trying to go to a different frame depending on where the mouse rolls on the stage, ie _x and _y mouse co-ords..

I don't want to use buttons, and I have tried onMouseMove, but that also failed to work! It's one of those DOH! thats how I do it ones...!

Easy For You Hard For Me
I want a button to fade out a mc programatically. I know I can do a mouseevent that tells the mc to play a movie that fades my mc. But I was tossing around a few ideas about doing it with actionscript.....dont laugh this is what I have working so far.

on (rollover) {
_root.shademan._alpha = 25;
}

on (rollout) {
_root.shademan._alpha = 100;
}

I have tried a few things but I cannot get this mc to fade out slowly.....Any help appreciated....

Easy One...hard For Me.
Okay,
I have a button that uses tell target to play a movie clip.
tell target (movie clip)
goto and play (1)
When pressed the target plays from frame 1 as it should..
When pressed again the target movie clip disappears,
It does not go to frame 1 and play.
If pressed one more time the target plays from frame 1.

It's kind of acting like an on/off toggle for the movie clip.

How can I have the target play from frame 1 every time the button is pressed?

Easy Or Hard ?
First of all Merry Christmas and a Happy New Year to all.

I am new to this forum, but it seems to be the best place to ask this question

I want to make the following "gadget" on my artsite in order to show different steps from a drawing from start to finish. I will try and explain how it should work and I hope someone could give me some hints in what direction I should go in order to make such a gadget. I am rather new to Flash and PHP so all tips, ideas, scripts etc. are really appriciated.

In a folder on my site I will have for instance 10 images representing steps from a finished image, from start to finish. The images would be called something like 01.jpg, 02.jpg, ..... 10.jpg.

Somewhere on my site Epoxy5 I will have a link called "Explore Image" and this should launch a page with the flash "gadget".

The gadget should pre-load the images from the mentioned folder and when that is done, the user should be presented with an "interface" showing the first step of the image (01.jpg) and below the image a horizontal slider/scroller that can be dragged to the right (in smooth steps). If the slider goes all to the right the image would be 10.jpg and between those smooth steps the gadget should be able to show the different images and make them change smooth with some sort of alpha/transparent transition.

Check this link for a visual guide to my question

Again I hope this makes sence, and all comments and ideas are truely appriciated.

Regards Thomas / Epoxy5

Easy Or Hard
Hi, thanks for lookign and any comments they are mcuh appreiciated

I have a queury about where to start. Would you recommend starting from AS1 and moving to AS2 then AS3 or should i go and learn AS3 straight away? Why am i confused/stuck? because my second question is: Is AS3 hard or do you need to be familiar with AS1/AS2?

This Could Be Easy ....or Hard I Guess..
i have a button and when you click it...
it loads a .swf into layer 10.
and at the end of the .swf it has a stop action.

..ok that part is simple..

and if you navigate to another part of the site...
the .swf is still loaded into level 10.

ok.... no problems.

what i want to know is there a code to put on the button

that looks to see if its already loaded..
not to load it again..but to play it ???

cause if it has to load it again
its more load time..ya know

A Really Easy Problem (hard For Me)
Hey guys (this is a newbie question) but in the scripts how do you get it to play a specific scene. I can only find how you play the NEXT scene in line, which is what i don't want.

Here is a picture of what i can do, but dont want to (hope that makes sense)

Thanks to anyone who can help, this is buggin me.



Also, what's a script to allow the user to hit a button and exit completely from the movie.

Thanks for anyone's help!!!

Flash To DVD: Easy Or Hard?
Folks -

We have been asked to author products in Flash and deliver them on DVDs, because the company's sales force is equipped with DVD players. Now, unfortunately, I have to ask some very general questions, because I'm completely ignorant of how to approach this problem:

Is QuickTime my only output 'Option'?
When I select 'QuickTime' as a publish setting, and the Flash Player is set to Player 6 - 8, I'm told to use the Flash 5 player. If I've selected the Flash 5 Player first I get no error message, but then I'm limited to a Flash 5 product. I can't remember what that is, exactly, but we know it doesn't include classes.

Is there any option that allows for Flash interactivity? (I can't imagine any, but I thought I'd ask...)

Would I need to convert QuickTime for DVD playback? If so, into what? Using what:Cleaner? FinalCutPro? DVD Studio Pro? Does this mean I need a Mac, or, if I persisted in using a PC, would I wish I'd gotten a Mac?

Doubtless there are a few hundred questions I can't even imagine.

If anyone can point me towards any answers at all, I'd be very grateful. I can't search "DVD" here; searching any form of "video" shows me only info on displaying video in Flash, not outputting Flash as video. Maybe that's because it's soooo easy...

Thanks again,
Dorothy

Easy One For You Guys, But Hard For Me Lol
hey guys does anyone now how to make a time countdown on one frame, and when you go the the finish screen, it will display how long you took to get there, eg im making a running game, i wanna put a timer on top, so when the race finishes it goes to another screen, i want to display the time here?????

Flash Easy Or Hard
Hello

Just wanted to know...

Does flash require a lot of action script knowledge or can you learn it as you go along?

Tanks..
For reading
contributing
and being patient

PLEASE READ EASY But Hard
here is my script, what i want to do is delay the script on this button by say 5 Seconds so it gives the computer time to load the image

on (press) {
if (_root.caliper.pad._height == 0) {
trace("no image");
} else if (_root.caliper.pad._height>=1) {
trace("image seen");
}
}

Maybe Easy Or Maybe Ooohh Really Hard
How to make this little rubic cube look-a-like

any pointers please post them...

Dupont

Hard (easy?) Preloader Question
Is there any way, within the the preloader, for the preloader to bring up which movies are currently loading. Instead of 10%->100% like normal boring preloaders, I want to have it saying loading 'widget MC', with a loading bar, and it'll continue through all the movie clips until all are loaded, and then go to the next scene where they are played. Is there an actionscript for this???

If not, should I call each MC into the preloader using the attachMovie(); command, and then use unloadMovie(); so that each MC is loaded, then unloaded, but not removed completely (if I used removeMovieClip that would happen), if I did things this way, I could maybe have text come up on the screen with the MC's name, which will stay there until the MC loads, but then things start getting complicated.

Sorry about the long explanation, but flash is not an easy thing to describe.

Thanx

Easy For You But Hard For Me, I Have Newbie Questions
I am working on my first couple of Flash sites and using MX. I need someone who is patient enough to answer a couple of newbie questions about how to hook up my e-mail links to talk me through using the getURL action to make the e-mail link work properly.
I know from my documentation to use the "mailto:" URL, but since I never have done this before I am uptight and need a click by click walk through if someone would be willing to take the time to go over it with me.
I have a test version of the site up at http://www.performancerealtyfl.com/ if you want to peek (click on the 'About Us' page), I want the four roll-over actions to send to the correct e-mail addresses. Do I just open the Actions window @ the bottom and type in "mailto:correctemail@rightplace.com"?, or do I need to hit the "GETURL" button or what?
This is the kind of thing I could sure use a knowledgable individuals input for so's I can do this right.
If you can help me you know I will appreciate you. I am very new to the flashkit forums (this is my first post) and I hope I have done it right and in the right place. I sure don't want to offend the moderators or whatever.
kind regards, mark pouncey

QTVR - How To Tell Flash How To GETURL. Easy For You. Hard For Me.
This should be so easy. I have a Quicktime VR file with an .AVI extension on it. That's how it was exported. If that is normal then nevermind. I basically want to tell a button in Flash to open up the file with Quicktime and not any other media player program. See what I mean? Easy right?

[F8] A Pile Of Questions. Some Easy Some Hard Mostly About Performance
Hi,

First of all i've have been searching for my answers one by one in all the threads but i'm finally lost and tired. So, sorry if questions are duplicated. I also opened my topic in this category cause my questions are mixed up.


All questions are about performance in common.

I have a main stage that is 1280*620 in size, embedded into HTML with windowless(transparent background), publish settings are Player 8 & AS 2.0, have a computer with 2.4 GHz, 1 GB RAM. Using Flash 8 Professional.

1) Very first thing, what are the optimal FPS values that are CPU friendly? Like multiples of 12 or what else?

2) Tween animation or AS driven animation for large sized MCs, bitmaps, vectors?

3) THE BIG QUESTION :
I've stepped into Flash & 3D world integration. But, obviously i'm not successful. I have 3 planes that spin, move, cameras moving around and so... but not a quite "BIG" animation. Only thing that locks me down and screws up the most is my stubbornness on using a motion blur fx which probably slows down the animation causing it to display choppy. Also how can i get rid of the background color when i import a SWF from swift to After Effects? I'm using Color Keying but that's not the best solution i assume? Is there a way to keep SWF's background transparent when importing into After Effects?? Or should i give up SWF kind of file exchange and use another format instead?

Here is my way of 3d integration to Flash;

I created my animation(3 separate rectangular planes on which later content will be displayed) with Swift 3D first, exported using Rasterize (SWF) with transparent back ---> imported in After Effects, attached Directional Blur(as Motion blur), did color keying to get rid of white background that AfterEffects attached after importing, exported as Macromedia SWF ---> Imported in Flash 8...

But tadaaa!!
This animation takes place in a loaded SWF(container) immediately after a large MC's scaling, and finally FPS drops and animation slows down 1/4... I know i'm forcing the cpu or RAM's capacities but how?? What causes this?

My question on this issue,
What is the ideal workflow, softwares to develop good quality animations in Flash? Which contains 3D, and some special effects and so...
I'm capabale of using Flash 8 Pro, Swift3D, Adobe After Effects....

4) I broke up big MC's(1000x350 in original size, and scaled by %120) content into vectors and tried to use
Code:
my_mc.cacheAsBitmap = true
but no luck... maybe i misunderstood the whole concept about that one...

5) Maybe my code is buggy or consuming too much system resource, do you pro's and gurus use a specific AS debugger or cleaner or optimizer? Or what do you advice someone who's not good with codes?

6) How to scale a MC to %120 by a trigger(button) with AS?

In theory and from view of visual design, i'm near to the end but those questions above avoid me having a neat, clean running layout as a total and final. So in this way or that way somehow i should review and correct some things.

I REALLY APPRECIATE ANYONE WHO WOULD ANSWER MY QUESTIONS... I need certain help on those issues. Though, i know most of the answers will be relative as my questions are and some really related to PROFESSIONALS.

THANK YOU SO MUCH.

So Easy It's Hard? Dynamic Text Confusion.
Hi all.

Please excuse my "neophytness" about this; I have a feeling I've been looking at this too long and it is an easy answer. I feel like I am missing a set. This may or maynot be a ActiveScript question, but I don't know.
Let me explain my situation.

I am updating an old template that was purchased (groan). The fla file has dymanic text boxes. I also have the swf file. And then I have another html doc that stands alone - This html doc allows me to changes the text variables in the swf doc.
Sounds great, huh?

But now I have made a few simple changes in the FLA doc (font, position, etc). Now when I re-publish it I get a SWF doc that doesn't reference the html doc that lets me change those variables.
Am I missing a step?
thx!

Couple Of Easy Questions That I Am Finding Very Hard..
i just need this one movie clip to play from frame 2 the first time the movie is run..i have tried using an OnEnterFrame action but it doesn't work and i don't know why..how does EnterFrame work? will i have to use a variable? it's so simple-there must be a way of doing this - am i insane?

i checked the Macromedia site and it says..to use this syntax..

myMovieClip.onEnterFrame = function () {
trace ("onEnterFrame called");
};

but when i use the left-hand column in the action script panel and add an OnEnterFrame thing i get this syntax..

onClipEvent (enterFrame) {
}

could someone explain to me what these 2 things are - how i do this thing and whether or not my sense of logic needs addressing..

i keep thinking i'm getting better at Flash then i just hit a brick wall again and again waiting for my disparate bits of knowledge to join up and allow me to solve things intuitively..

any help very helpful

New Brazillian Bikini Waxing Me Easy But Hard?
I want the corresponding .txt files to load into the dynamic text fields when each thumbnail is clicked. I have it set-up so the first thumbnai works perfectly. I can't figure out the actionscript to make different .txt files load when each thumbnail is clicked. I created a data folder that will contain each bikini description. The files are available for download at http://www.mm214.com/kthomas/actionscript There aren't many images, but enjoy the ones there are! I do.

Thanks for all the help guys, i'm still in the learning years of actionscript. It's nice to get projects that are easy on the eyes and thighs if you know what i mean.

Flash MX Video Support... Easy? Hard?
Before I go and spend a fortune on Flash MX and more cash on manuals can someone inform me how easy it is to play mpgs inside the flash movie as per this exapmle...

http://www.macromedia.com/software/flash/productinfo/features/mx/video_support_full.html

Cheers
Bruce.

[F8] HELP SLIDESHOW QUESTION: Easy One For You Geniuses... Hard For Stupid Me...
This one should be easy for you guys.

I'm using the slideshow template that comes with Flash 8. Can anybody explain to me what I have to do in order to have the slideshow begin playing automatically without having to have the user initiate it using the play button?

You guys rock!

Scrolling Slides - Newbie Making Easy Seem Hard?
Greetings,

I am trying to scroll 12 or so slides on a continuous loop. I would also like to create a button corresponding to each slide, such that if a user hovers over that button the corresponding slide will be displayed and stay until the user moves off the button. Finally, I would like the buttons to change color as their corresponding image is shown during the loop.

My plan was to use slides and slide transitions to scorll the images sequentially. The scrolling was to be controlled by actionscript in sequential frames of the root timeline which displayed a slide, paused for a specified period of time, then moved to the next frame which had similar code.

This did not work, possibly because the slide transition effects needed actual frames on the root timeline to operate in. When a spread the keyframes with the actionscript out, the delays worked fine. Go figure.

Anyhow, I got the desired scrolling effect down quite easily. My problem is with the buttons. The plan was to have the buttons move to a frame and play, which triggered the appropriate slide, then stop. On rollout a play() would be issued so the scrolling starts again. I couldn't manage it.

In the attached .fla you can see the desired scrolling, and my attemps at the button coding on buttons 1, 2 and 3. Button 1 simply pauses the scrolling on rollover and works fine. Buttons 2 and 3 attempt to switch the slides too, with varying degrees of success.

Is this a sound approach in general? Is there an easier way to achieve the same thing? If not, any code hints would be much appreciated!

Thanks!

A Quick Question Not Hard At All... In Fact, Incredibly Easy To Preform The Process..
Allright, I was wondering if anyone else had this happen to them or is it just me and my version of MX. When you double click on duplicate movie clip in your actions panel, I entered in the name, the new name, then the designated level of the new clip. I thought of adding parenthesies (blah). Flash didn't like that. In fact, it crashed when I typed in that one silly lil character (. Just wondering if it's me or does it happen to anyone else.

Wattsman

Btw, in case you decide to test this, I would suggest you save first. I didn't and I got burned.

How Do I Make A Fast And Easy Preloader Or A Hard Cool Looking Preloader
how do i make a preloader?? ive went thru many toutorials and they dont make sense to me i want a cool looking preloader if i can but if not!! a preloader that is jest flashing the words "loading" would be nice to know how to make....
im kinda new to flash MX and all Flash programs so could u explain verry well???

Newbie Question<(----- Easy For Your Brain It's Not A Hard Question Look E
Hi Flash Masters! I have a easy question that I'm stumped at. You see God hasn't given me a brain that is as uncooked as your so I was wondering if anyone can help this flashy. I'm makin a site all in flash and the size is 500 x 400 pixels. When I go and Test Movie everything is in the middle and you can see the whole thing. When I Preview Publish in Flash it is ok too. But when I go and Preview and Publish, the whole this is moved and it's on the upper right of the white screen. Plus half of the site is only showing too, only showing the default size. Can someone help with with this please?

Also, does anyone know how to make the site fill up the hole page on the browser, like any other site? My site right now is just showing at the 500 x 400. Should I make that bigger? Thanks anyone who helps; fill somone wit knowledge!

SUPER EASY / RETARDED EASY SetMask ?
Ok got a simple retarded question. I have 1 swf loading into a holder_mc and a mask_mc set with setMask but it is not working. There is nothing else to this but so help me it is not working and I know I have to be overlooking something simple but I am just not seeing it.

Heres the whopping 3 lines of code:
code: stop();
contentHolder_mc.loadMovie("home.swf");
contentHolder_mc.setMask(contentMask_mc);


Example attached.

thx

c

Easy Question, Hopefully Easy Answer...
How can i create a grid of 20 movieclips? I would like to have 4 columns and 5 rows.
Its going to be used for a drag and drop game. any help would be REALLY appreciated!!

This Could Be A Hard One
does anybody know if it is possable to change the HTML background colour (using hex, i.e. #445566) with flash button that is inside a *.swf. i do know that i can be done using javascript. so any ideas would be good

regards

steven

Can It Be No One Knows How To Do This? Is It That Hard?
my movie preloads but does not preload a external swf that gets loaded in a movie clip, so when it play from the web i have 10 seconds of a blank stage.
no one here seems to know the answer i've seen post for the same thing and they are never answered.
is this so complicated?

Is This Hard Or Something..?
how do you make a MC fade out gradually using action script.....?


Anyone?

Not Too Hard I Think:)
Hello!

This should be a quite simple question, i know how it should work but just dont know what actions to give it.

I have button, that when relased sets my backround to alpha 30.This button also loads an external swf.
Now i have total of 4 buttons with similar actions.
All the 4 buttons load a certain movie and set my backround to alpha 30 when relased and on rollover these buttons set my backround back to alpha 100.
I want each button to check if the movie that it loads when relased is already loaded and if so than dont set my backround back to alpha 100.
it should be something like this:
if (mymovie, mylevel) loaded dont set backround`s alpha to 100 and if not than set backround to alpha 30.

Hope someone understood me and knows how to do this.

THX
--------------------------------------------------------
EOF

Is This REALLY That Hard?
Can someone please tell me how to set a variable so that my movie clip will respond when I say if a="1" then go to frame "page2" else if a="2" go to frame "page3" etc. etc.

I just want a button to set the variable to a=1 or 2 or whatever so that the movie clip will respond to what variable was set.. This can't be that hard??


Katie

Exactly How Hard Is It?
Hi, I have been using SWISH for quite some time now, and dont really like the way that it has no way of synchronizing music. Its quite annoying, because the timing is different in my movies on every computer i watch it on.

I was wondering, HOW HARD IS FLASH to actually learn, and how fast can you pick it up?

thanks,

Will

Not Hard
I have a text field and a submit button ...I need to send it to my email address on server."

http://www.productentertainment.com/...mmail.pl....??
my email is product@productentertainment.com

How do I set this up?......AND NO I have not found a tutorial on how to do this......

Thanks guys

A Hard One
since flash mx can load images from out the movie from any specified path (url, folder)

i´m wondering how to use banner ad code inside my movies (ad code asp or any other like typical banner ad code)

i saw some people make such peoplecall.com in it's application, anybody can tell me how i could make it?.
I know this is almost guru's question...

hope any guru by there have a good day and explain me.
please be gentle...

i can exchange with graphics work for u if need exchange for the help
blanka, the monster of the cookies

How Hard Would This Be To Do?
I'm currently workin on a website for my clan, and I do understand flash pretty well. I want to make a admin system I guess you could call it, like a place where my clan members could log in and change there info and post news. How hard would it be to do somthing like that in flash?

Right now i'm using dynamic text fields and text files to display information. So I understand how to do that but I really don't know what would be involved in makeing an interface for them to use. Even if there is a tutorial on this I would really appreciate it.

Thanks Alot
Elite311

How Hard Is This?
Hi all,

I'm new to the Flash scene and have experience only with Swish.

How hard would it be to do something like the following:

http://www.eskedahl.se/

with the side swipe revealing the text and the bouncy side boxes?

Thanks in advance!

-niyogi

A Hard One
Ok this is a hard one! I have 3 inputfields named;

-title
-first name
-lastname

Is it possible to combine these three fields into one dynamic textfield

For example when some one files in this;
-Mr.
-Andre
-Kreft

And then the uotput looks like this
Mr Andre Kreft

Possible or impossible??????

Ok This One Might Be Hard...
OK - I have 52 movie clips and I want to RANDOMLY display one of these once my flash reaches a certain part of a movie clip... so basicly... EVERY TIME MY MOVIE GETS TO SAY FRAME 5 IT DISPLAYS A MOVIE CLIP (1.SWF-52.SWF)


HARD ENOUGH LOL

-THANKS

This Can't Be That Hard? Is It?
I'm trying to make a perpetually scrolling background.

Basically, I have a background image of randomly scattered boxes that I want to float, from left to right, across the background. Obviously I can just tween the background image but then once it runs out there's a jump and/or a blank space while it jumps to the beginning of the animation/movie clip. How can I make this seemless? Is there a way to make it look like the boxes keep floating by without leaving a jump or a space?

I'm open to any suggestions...it doesn't have to be with a single image...I'll do it however it can be done.

Thanks!
Clint

Man This Is Hard
Okay I know this is not really a Flash question but I didn't know where else to go and I thought since you guys at Flash Kit are such cool people you could help me out with this.

This is like hangman a bit but trust me I am not doing this for fun:

The symbols 1, 2, 3, .... 9, 0 which make up numbers:
_ _ _ _ _ _ ( 6 letters )

Changes one or more terms to other terms, e.g addition:
_ _ _ _ _ _ _ _ _ ( 9 letters )

Spread out, e.g 35 = 3 x 10 = 5 x 1
E _ _ _ _ _ _ _

3 + 6 < 12 is a number what?
_ _ _ _ _ _ _ _

Thanx for any help you guys can give me, remember this is really important, well to me it is anyway. Thanx.

Maybe To Hard To Do ?
Well, now I am really stuck here. I want to develop a game for kids where they can learn som math. I was thinking of a game like the one at:
http://www.flasharcade.com/game.cgi?additup

When there is no numbers left that can be added to get the target-sum, the game ends. I don't know how to check this. I'm sure there is a simple algorithm that can check this. Or maybe if you guys can tell me some sort of a pseudocode it would be great. I think I can manage the actionscripting if I know the logic of doing this.


metaman

Hard One
Hi,

Need a hand with the old magazine flip book. I've edited this code from actionscript.org so far. Now I wanted to add a function that autoflips the page when a certain button is clicked. I tried using a new function autoflip, then using the PageRatio>0 to tell the page to flip. It doesnt seem to work however. .fla at www.infinitydesigns.co.uk/pageflip.zip

Thanks for any help

How Hard Is This?
I am looking for a point in the right direction...

I want to create a simple "Virtual Makeover" app. where my visitors can upload a pic of there face into a .swf and then have pics of different moustaches, hair ets to be dragged onto the face.

Very much like the old Mr Potato Heads that we have probably all seen.

I would imagine that PHP or ASP would be needed for the upload part which just uploads into a simple .swf

Any pointers? I can create PHP upload files and I can make simple flash files.

Any help would be greatly appreciated.

Looking Too Hard ...
ok, I'm new to this stuff. I'm just trying to understand the construction of a site in Flash. I have an index file with 2 layers, an actions and background. I have a movie with three buttons inside that call movies when clicked and are loaded into an empty movie on the background layer. And I have an initial welcome movie load in the begining. Here's the problem.

When I test it the welcome movie barges in and kicks EVERYTHING out except itself. It's like I never even made that navigation movie with buttons. I'm trying to get the buttons to load a movie into the empty movie on the background but it's just loading on top of everything. Can someone help before I jab a spoon in my eye. Thanks.

-B

Looking For Some Help...should'nt Be Hard
Hello Flash enthusiasts. Looking for the code to stop a movie on mouse rollover and continue moving when mouse rolls off. Also, what is the best method to have a button display a photo when mouse rolls over button? Thanks flash gods...and goddesses!

Looking For Some Help...should'nt Be Hard
Hello Flash world. I am looking for the code to make a movie stop playing on mouse rollover and continue when mouse rolls off. Also what is the best method to have a button (when rolledover) display a picture? The picture would be invisible until rolled over. Thanks

Ok, This Is A Hard One
I was making this game. where blocks fall and you try to get the biggest groups of them greater than three.

The way it works is this is a bunch of variables that represent a grid.
The vars are labled like X5Y5 for the 5th across and the 5th up.

There is also a grid of mc's that are labled like

BX5Y5 fot the 5th across and the 5th up.
Depending on the vars grid these change colors to match the grid of variables.

This all work fine, the problem is I cant develop a method for the click. I want it so when you click a mc it checks if there is other colors around it, and if there is atleast 3 in a row it will delete all of the squares that are its color, and ar conected to the block you clicked in some way (except dioganaly)

The vars in the variable grid are letters like g for green or b for blue.

Here is the code I tryed to make:




PHP Code:



function click(ex, ey) {
    to = 1;
    theco = _root["X"+ex+"Y"+ey];
    if (_root["X"+ex+"Y"+(ey+1)] == theco) {
        up = true;
        to++;
    }
    if (_root["X"+ex+"Y"+(ey-1)] == theco) {
        down = true;
        to++;
    }
    if (_root["X"+(ex-1)+"Y"+ey] == theco) {
        left = true;
        to++;
    }
    if (_root["X"+(ex+1)+"Y"+ey] == theco) {
        right = true;
        to++;
    }
    //make sure at least 3 squares are touching
    if (to>=3) {
        _root["X"+ex+"Y"+ey] = "blank";
        if (up == true) {
            calc(ex, (ey+1));
        }
        if (down == true) {
            calc(ex, (ey-1));
        }
        if (left == true) {
            calc((ex-1), ey);
        }
        if (right == true) {
            calc((ex+1), ey);
        }
    }
    up = false;
    down = false;
    left = false;
    right = false;
}
function calc(ex, ey) {
    to = 1;
    theco = _root["X"+ex+"Y"+ey];
    if (_root["X"+ex+"Y"+(ey+1)] == theco) {
        up = true;
        to++;
    }
    if (_root["X"+ex+"Y"+(ey-1)] == theco) {
        down = true;
        to++;
    }
    if (_root["X"+(ex-1)+"Y"+ey] == theco) {
        left = true;
        to++;
    }
    if (_root["X"+(ex+1)+"Y"+ey] == theco) {
        right = true;
        to++;
    }
    //make sure at least 3 squares are touching
    _root["X"+ex+"Y"+ey] = "blank";
    if (up == true) {
    }
    if (down == true) {
    }
    if (left == true) {
    }
    if (right == true) {
    }
    up = false;
    down = false;
    left = false;
    right = false;
}

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