How to make a movie clip button into a url link?
Hello,
I'm kinda new to using Flash and am trying to edit a template for a friend of mine, the problem is I'm trying to add a url link to the buttons. I tried adding this action to the button
on(release){
getURL(http://www.yoururl.com.);
I saved as swf & got this error msg in the compiler errors: Symbol=but1,layer 4, frame=1 Mouse events are only for button instances
In the library I checked the properties of the button and its a movies clip, I'm not sure if it will make any difference if I change to button or graphic?
I would like to upload the fla and swf files but this forum doesn't seem to allow me to attach files to messages.
Does anyone know how to do this? Any help is greatly appreciated.
http://jaedenyoo.com
Unfortunately that doesn't seem to be the problem, I checked and
in my flash file its typed correctly.
Similar Messages
-
How to make my movie clip move slowly towards right after a few seconds?
Hi,
I have the following code which will bring my Banner_mc onto the middle of my Introduction page with some effects. Now, I want this movie clip to wait for a while and then move to right until it disappear with the same effects. How can I do that?
var BannerFadeTween:Tween=new Tween(Banner_mc, "alpha", Strong.easeOut, 0 , 1, 6, true);
var BannerRotateTween:Tween=new Tween(Banner_mc, "rotation", Strong.easeOut, 360 , 0, 6, true);
var BannerXTween:Tween=new Tween(Banner_mc, "x", Strong.easeOut, -300 , 500, 6, true);
var BannerYTween:Tween=new Tween(Banner_mc, "y", Strong.easeOut, -125 , 300, 6, true);
Thanks in advance for any help in this regard.Hi,
Thanks for the reply. I wnat to make one thing clear that I am using my project SWF file on computer which doesn't have any internet connection. The other thing I can't find link for downloading the plug-ins.
When I tried to download the file from the below link, I saw the following page:
http://www.greensock.com/club/
Please provide the download link for greensock TweenLite & TweenMax. Thanks. -
How to make separation between added buttons into a jToolBar?
Hi friends,
I have made a jToolBar (using NetBeans IDE 5.5) with several buttons, but i dont know how to make custom separation between those added buttons. I will appreciate it if anyboy give me some tips.
Thanks in advance,
Reza_mpI don't know about NetBeans but yeah U can add horizontal atruts and verticals struts between two components, i.e.
1.) add first component
2.) add horizontal or vertical struts(according to ur toolbar)
3.) add second component
4.) add add horizontal or vertical struts(according to ur toolbar)
this will definitely solve ur problem.
If it does, don't forget to pay ur points. -
How to make a movie clip follow the player
Ok I want to make spawn able enemies and when they get in like 5 pixles in range they start to follow the player they are moving and if they switch directions it will go to another frame that will make it look like they are running in that direction. How can this be acheived?
use Math.atan2() to find the angle between the player and enemy.
-
How to make a movie clip invisible depending on a value in another layer?
I am trying to make an "achievements" page for my game, where if the user has a high score greater than 100, then the achievement can be unlocked. I tried using a code like this, but it didn't seem to work!
function Check();
if(endscreen_mc.highscore_txt > 100)
medals.roachLock.visible = false;
else if(endscreen_mc.highscore_txt < 100)
medals.roachLock.visible = true;
else if(endscreen_mc.visible == 100)
medals.roachLock.visible = true;
The high score value is saved inside a shared object. What's wrong with my code, and what can I do to fix it?I tried doing this, but it's still not working..
function Check():void
if(Number(endscreen_mc.highscore_txt.text) > 100)
medals_mc.roachLock.visible = false;
medals_mc.medal_mc.visible = true;
else if(Number(endscreen_mc.highscore_txt.text) <= 100)
medals.roachLock.visible = true;
This is what's inside my endscreen layer
function showresults():void
Rchannel.stop();
// display current score
endscreen_mc.scoreR_txt.text = String(score);
// calculate, display and save (if necessary) a new highscore
var so:SharedObject = SharedObject.getLocal("alltimeHighScore");
if (!so.data.score || score > so.data.score)
endscreen_mc.highscore_txt.text = String(score);
so.data.score = score;
so.flush();
Check();
else
endscreen_mc.highscore_txt.text = String(so.data.score);
if(so.data.score==score)
endscreen_mc.score_txt.text = String(score);
endscreen_mc.highscore_txt.text = String(score); -
How to make a movie clip scroll with mouse position
Hello again. I asked a question about parallax scrolling and I think it was the wrong question. I am looking to control a website with similar controls as this example:
http://www.sectionseven.com/index2.html
I want to use this but also with both x and y axis. Any ideas as to where to find a tutorial as to where to do this? It should be fairly simple, but I am having trouble. Any help or code is greatly appreciated. Thanks!Yeah, I figured it out. simply change 0.04 to -0.04
addEventListener(Event.ENTER_FRAME,scrollmc1 );
function scrollmc1(event:Event):void
if(mc.x < 911 && (mouseX > 369)) {
mc.x += (mouseX - mc.x) * -0.04;
if(mc.x > 369 && (mouseX < 911)) {
mc.x += (mouseX - mc.x) * -0.04
Here is the actual code I used on my site:
stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
stage.align = StageAlign.TOP_LEFT;
function enterFrameHandler(e:Event):void
if((sliderWorkspace.x < 911 && (mouseX > 1100)) || (sliderWorkspace.x > 369 && (mouseX < 90))) {
var newLocation:Number = sliderWorkspace.x + ((mouseX - sliderWorkspace.x) * -0.04);
newLocation = Math.min(910, newLocation);
newLocation = Math.max(370, newLocation);
sliderWorkspace.x = newLocation;
Let me know if this works for you -
How do you make a movie clip face the mouse
How to you make a movie clip rotate so it's always facing the
mouse?thanks a lot! I got the code to work, I just modified it a
bit. -
Movie Clip Button - Action Script issues
This is a two part question:
1. I have my movie clip button, "mcAboutus" then inside my
movie clip I have 5 layers: actions, labels, text, animated
rollover("mcAboutusover"), animated rolloff("mcAboutusoff"). On the
labels layer I have _up, _over, _off. On the _up is the text layer,
on the _over is a movie clip of the animated
rollover("mcAboutusover") which is 90 frames, and I want to loop as
long as the mouse is over the text. And the _off has the
"mcAboutusoff" movie clip.
So I was able to have the rollover work, but when I roll off
the rollover animation continues on until the end of the animation.
I understand it has to do with the fact that it's a movie clip, but
how do I point it to go into the movie clip and read the animation
and that on the last frame of the animation I have a
"gotoAndPlay(1);" to have the animation continue looping as long as
it's in a rollover state?
here is the code I have for the _root:
this.mcAboutus.onRollOver = function() {
mcAboutus.gotoAndPlay(_over);
this.mcAboutus.onRollOut = function() {
mcAboutus.gotoAndPlay(_off);
The other problem I am having is that once the I have rolled
over the animation once, the button dies and won't let me rollover
it again?
Aside from the "stop();" action in the mcAboutus movie clip
symbol, I don't have any other actions, should I put items in the
different movie clips I have set up?
ALSO.... The reason that I have the main movie clip button,
and two movie clips residing in the mcBtn is I wanted light rays to
be glowing from the text, and I was having a hard time getting what
I wanted from Flash, so I created in After Effects and exported two
.SWF files. So those .SWF files are the _over and _off states in
the mcBtn. I am having a very hard time controlling those Movie
Clips within the main MC Button. Please, any help would be greatly
appreciated.quote:
Originally posted by:
kglad
mcAboutusover should be a movieclip that has your over
animation and it should have a stop() on its last frame. it should
be placed on your _over frame in mcAbousus' timeline. you should
then use:
Ok, so I have my main timeline, in it has my
mcAboutus>> then inside that I have three labels. _up which
has the static text then on frame 5 I have the _over which has the
keyframe for the mcAboutusover, this animation is 90 frames, then I
have on frame 10, the _off for the RollOut state, and I have a 10
frame animation on that one. I still can't get it to continue on
after the initial rollover, the button still dies down.
I am going to redo everything in a presentation timeline,
based on Total Training and see if that helps my problem out any,
and will get back to you tomorrow with more info. Thanks -
Hi, i am a bit of a newbie at AS & need some help applying it to a movie clip button
I have created a movie clip button but am stuck with the actionscript. I have created the rollover and rollout for this movie clip button but i want it to do 2 things after this i want it to go and stop on the first frame of a movieclip which has my content on it called portfoliogallery_mc (which is also the same instance name for it) when you then click the button i want it to go and play frame 11 of that movie clip portfolio gallery_mc.
Here is my current actionscript i HAVE Flash 8 on my comp that i am currently using.
Please note my actions are on a layer called actions and not on the movieclip button itself.
nxtimagetwo_mc (is the movie clip button/instance of mc)
THE CODE I HAVE USED
this.nxtimagetwo_mc.onRollOver = function() {
nxtimagetwo_mc.gotoAndPlay("_over");
this.nxtimagetwo_mc.onRollOut = function() {
nxtimagetwo_mc.gotoAndPlay("_out");
portfoliogallery_mc.gotoAndStop(1);
portfoliogallery_mc.gotoAndPlay(11);
currently it is playing to frame 11 not stopping at frame 1 and stops on frame 20 where i have a stop action. I also have a stop action on frame 1 of that movie clip.
What I want it to do is first stop at frame 1 of that movie clip and when the button is clicked again to go and play frame 11 of that same movie clip.
Basically what i want the mc button to do is 2 things automatically stop the mc for the first content and when button is clicked let the content fad out and play to where the next stop action is set to in the Movie Clip.
Nothing to with the above www.rsquareme.co.uk is my current portfolio website if you would like to check it out it is not fully complete yet.it doens't make sense to execute:
portfoliogallery_mc.gotoAndStop(1);
portfoliogallery_mc.gotoAndPlay(11);
only the 2nd line of code will be effected.
i know you want to control 2 movieclips. what are the instance names of the two movieclips and what do you want to occur in each of those movieclips.
or, do you want to control 1 movieclip and have it play a certain sequence of frames followed by another sequence of frames? -
Can anyone tell me how to make a video clip in color transition?
Can anyone tell me how to make a video clip in color transition like the opening of "Oh Brother where art though" ?
You know the scene at the start where it starts off Black and White then as we move down the timeline it transitions to a rusty brown gradually.
It's on the Apple site for FC Studio as a promo clip.how to do a keyframe trasition in the Color FX room
I realize that you can "add" keyframes to the timeline in COLORFX, but I don't believe they are always observed, and then they usually disappear in retrieved projects, and aren't persistent if you leave the room. To remember where they are... you might mark in a keyframe on those frames in another room as a pathfinder. The behaviour is consistent with a creature of the six-legged variety.
Method 1. If you are trying to taper the effect (any effect) in COLOR FX, the most linear approach is to render two versions of the clip; one "with", one "without" and do an opacity fade once you have returned them to Final Cut. This gives you the most control, flexibility, repeatability and consistency.
Method 2. You may attempt to keyframe the bleach bypass settings within the node itself -- the preset that comes with COLOR doesn't have any controls, but the Nattress plugin does.
Method 3. Set up a "blend" node with your bleach bypass feeding one of the inputs and leave the second input to default to the untreated video... keyframe a transition from "1.00000" to "0.00000" and that should work.
Note: the keyframe timeline markers will disappear from the timeline if you exit the clip, but the effect is likely to persist. At least that was what was happening a couple of minutes ago... for me, the effect and blend performed the transition just like it was previewing when rendered. This strategy is subject to being created and rendered "on the spot right now", and I advise making sure you have your renderqueue settings ready to go... load the clip from the COLORFX room using the Mac command bar at the top of the screen and render it right away. Don't try to save it for later. Just Do It.
An announcement went around about two weeks ago that Mr. Deakins' website was back up and running, so give him another try... poor guy has been swamped probably doing Dreamweaver maintenance... yeah, that must be it...
jPo -
hey, i'm pretty new to flash and i'm attempting to create a
site with different scenes representing different pages.
i have four movie clip buttons. One of these buttons should
link to the "about me" page, which so far only has another movie
clip with pictures. from the main page i'd like a user to be able
to click on the about me button/movieclip and the pictures should
appear.
i've been using the code:
on(release){
_root.gotoAndPlay("about_pictures")
however whenever i run the preview, nothing happens when i
click the button.
main timeline includes :
about me > pictures with a motion tween(pictures_about_mc)
> the movie clip of pictures(pictures_mc).
background
buttons
actions
any help would be appreciated. thank you in advance.If you are genuinely using scenes, then your gotoAndPlay()
call needs to include the scene name and the frame...
gotoAndPlay("about_pictures", 1)
and "about_pictures" needs to be the name you assigned to
that scene in the scenes panel.
Using scenes and the way you coded the button are both not
clean ways to code--things end up being hidden from plain site.
Instead of scenes, just use the one maintimeline. Instead of
on(release, etc) use myBtn.onRelease = function (){...} in the
actions layer.
Makes life so much easier in the long run, especially a year
from now when you're trying to change some code and can't find
where you hid it. -
How do I transfer movie clips from iPhoto to iPad?
How do I transfer movie clips from iphoto on my iMac, to my iPad?
You can use a USB flash drive & the camera connection kit.
Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov).
Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import.
Cheers, Tom -
Just learning...help on movie clip buttons
I've tried tons of tutorials and i cant seem to get my movie
clip button to work when i put the mouse over the button.
i have included a screen shot of my time line and code.
Layer 10 frame 1 is where all the script is.
"actions" layer has my "stop" codes in frames 1 and 20
time
line and code
Thanks for your help.ok if i change "home" to "this" in my code, do i also have to
change my instance name for my button layer from "home" to "this"
as well?
and how do I cast e.currentTarget as a movie clip?
sorry this is only my 3rd day playing around with Flash.
Thanks! -
How to make a completely transparent button in Flash Builder
I am making a mobile application, and I am wondering how to make a completely transparent button. I've tried using
<s:Button x="-5" y="0" width="410" height="1504"
skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Sun)"/>
But it still has one line on the side. I need a way to make it completely transparent.
Thanks,
8th grade studentTry this alpha="0.001"
Also add useHandCursor="true" and buttonMode="true" if you wish to have the hand cursor appear on hover.
example x="10" y="10" width="169" height="54" label="Button" alpha="0.001" useHandCursor="true" buttonMode="true"
HTH -
Cursor stops movie clip buttons
I have animated movie clips as buttons. When the animation
reaches the point where the cursor sits on the button it vanishes.
Here is the script I have on the main time line:
//news_mc is the instance name of my movie clip button
news_mc.addEventListener(MouseEvent.CLICK, newsPage);
news_mc.addEventListener(MouseEvent.MOUSE_OVER, newsRollOn);
news_mc.addEventListener(MouseEvent.MOUSE_OUT, newsRollOff);
news_mc.buttonMode = true;
function newsRollOn(event:MouseEvent):void {
news_mc.gotoAndPlay("in");
function newsRollOff(event:MouseEvent):void {
news_mc.gotoAndPlay("out");
function newsPage(event:MouseEvent):void {
gotoAndStop("news");
I know there is something about
news_mc.mask = ??? I'm not sure if I sure what part of the
mask I use. I have a layer that has the button background (instance
name - background) and then the 2 layers that form the animated
mask - the mask layer contains a copy of the button background
(instance name - background2) and then the animated later of the
mask contains a gradient that slides over the button (instance name
- masker).
What is happening?ROLL_OVER and ROLL_OUT rather than mouse_over and _out did
the trick!
Maybe you are looking for
-
Setting up my brand new MacBook Pro and it will not connect to the wifi network. Nothing wrong with the network which is happily working for my iPhone and iPad! Suggestions accepted for making this connection.
-
Using two different versions of Flash Player
While I realize that Flash Player is up to 10. something and a security update is available for it, one program I use over the net will not recognize anything over version 9x. It seems like that internet application has trouble with version numbers
-
How to solve Photoshop install errors ?
Can you help please ? This message was received when I tried to download and install Photoshop CS6, 64 bit system, Windows XP: Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example, ERROR: DF023, DW063 ... WARNI
-
Importing a few photos at a time from iPhoto
I have been using iPhoto and have almost filled my laptop's memory. I want to transfer my photos (because I have many shot in RAW) to Adobe Photshop Elements 10. How do I impost one event (from iPhoto) at a time to Photshop? I was unable to transf
-
Hi all, Scenario : Data warehouse environment Source DB is upgrading to Oracle 10g AL32UTF8 Data warehouse DB for now is Oracle 9i UTF8 ( i know should upgrade , that is in the works though till then have to continue on this platform ) ETL via Inform