Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gotoandplay(mc) when onclick() 1

Status
Not open for further replies.

josel

Programmer
Oct 16, 2001
716
US
I have seen several flash movies that hoovering over or clicking on the movie scene triggers what I would say is a MC.

I have a simple fireworks like MC which I would like to play if visitor cliks on movie scene (web site page). Besides just playing the MC, it would be nice to use the cliked point as the epicenter for the MC.

I am very new to Flash but I am guessing that this is done with ActionScript. Any thoughs?

Thank you all in advance!

Regards;


josel If you have the knowledge, consult and educate those who need it! - Jose Lerebours
 
Josel--

You could do it like this.. Its hard to tell if this is exactly what you are looking for but if it's not it should at least open a few doors for you and point you in the right direction.

Have a button that is the size of the entire stage.
Have a movie clip with your fireworks animation. On the first frame of that movie clip, have a stop with no animation. On frame 2, start your animation. Make the instance name of this movie "fireworks".

On the button actions, put this:

on(press){
fireworks._x=_xmouse;
fireworks._y=_ymouse;
fireworks.play();
}

If you want to make it possible for multiple firework movieclips to be playing at the same time (if they click again before the animation is done) put this:

on(press){
x++;
duplicateMovieClip("fireworks", "fireworks" add x, x+100);
MC=eval("fireworks" add x);
MC._x=_xmouse;
MC._y=_ymouse;
MC.play();
}

That might not be perfect but its off the top of my head.

Hope this helps.
-Nukoi
I know my stuff.. Hire me.
 
Hey Nukoi!

You are right on target. Just one problem, while I can perfectly understand what you say, I can't figure out how to apply it 8-(

I chose a session of the movie to define a button. I can't use the entire scene as I have some buttons with URL actions.

This is what I did:
1) Defined rectangle with transparent color
2) converted rectangle to symbol (buttom) - named it overlay
3) right click on button and chose action
4) within basic action, chose go to
5) GOT STUCK HERE!

Cannot figure out how to type in all the information you provided. I get single line on dialog box which appears to restrict input.

Is there a script editor I can open instead? Are the above steps correct?

Thank you for your help!

Regards;

josel If you have the knowledge, consult and educate those who need it! - Jose Lerebours
 
When the Object actions window is opened, check the top-right arrow menu, and select Expert Mode. You'll then be able to type whatever you feel like typing. Switch back to Normal mode, before closing the window... Flash won't let you do it, if you have syntax errors!
Sort of a syntax checker!

Regards,
new.gif
 
Thanks for getting that one for me Oldnewbie =) I just got home.. Did you make out alright Josel? -Nukoi
I know my stuff.. Hire me.
 
Haha This is off topic, but is there any chance that you know how to detect whether a users browser is 40-bit vs 128-bit encryption capable? I know that this isnt the place to post it but no one seems to know.. -Nukoi
I know my stuff.. Hire me.
 
Nope! At one point, my web bank utility, told me I had to upgrade to the 128-bit encryption if I wanted continued access to the service. I complied!

Did find this... For what it's worth!

Date: Wed, 1 Dec 1999 16:09:26 -0600
From: Aylard James J <[PRIVACY PROTECTION]>
Subject: Detection of 128-bit Encryption

I know that the question of how to detect a browser's encryption
strength came up a couple of weeks ago. I'm not sure whether the asker ever
got a satisfactory answer. Well, in looking for an entirely unrelated piece
of information, I stumbled across a Web Men Talking article on MSDN that
addresses essentially this same question:


The short answer for IE is that you can't (at least with IE4, since
that's all the article addresses). Netscape browsers do report encryption
strength in their headers, but this is not fail-safe. A browser that lacks
128-bit encryption on a site that requires it will generate a 403.5 error.
The article recommends creating a unique 403.5 error page in IIS that will
redirect the encryption-challenged user. As far as I know, though, this will
only allow a redirect because of a 128-bit encryption failure, and not
because of a 56-bit encryption failure -- but I don't know that for certain.

hth,
James Aylard
Equilon Enterprises LLC
[PRIVACY PROTECTION]


Regards,
new.gif
 
Thanks alot Oldnewbie!.. I was able to do it with Netscape already, but this gives me a starting point for IE.. Again.. Many thanks. -Nukoi
I know my stuff.. Hire me.
 
Hey guys, how's it going?

I walked away and picked up a book (FLASH book). Found a couple of nice tutorials on pull down menus and such ...

As per the subject at hand, I will try tomorrow and report back to you ... I've been up since 5:00 AM and I can bearly keep my forhead from my desk :cool:

You know, I like the idea of &quot;entering the expert mode&quot; ... As I read it, a big smile covered my face (spark, spark; here goes my ego!).

Good night y'all!

Regards;

josel
If you have the knowledge, consult and educate those who need it! - Jose Lerebours
 
Ok.. First thing tomorrow morning, I am calling Royal Banks IT department and begging them to tell me how to do it =)
You are a huge help man.
-Nukoi
I know my stuff.. Hire me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top