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




[Flash 8.0] OnClipEvent(mouseDown) Movie/link Trouble



Hello, I'm working on an interactive map of the united states in which each state is a button inside a movie clip. The states get larger and move up in depth when you go over them then shrink back down when you mouseout. All of this (finally) is working right. I wanted it to work so that when you clicked on a state it sent you to a seperate page for that specific state.... Here is where I met my new problem. The code I'm using is: onClipEvent(mouseDown){getURL("http://blahblah/arizona/index.php");} with a seperate link for each movie clip on the stage of course. Now, when I test this in Flash it opens up an explorer window for every single state when I click on one. When I put the swf on a website and use it, each state I click on links me to California for some reason. I'm sure it's just the syntax and then way I'm setting this up but I don't know of a better way to do it without having to redo tons of my actionscript for each state. If anyone knows a quick solution or a better approach I would appreciate it!



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-30-2006, 06:10 PM


View Complete Forum Thread with Replies

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

OnClipEvent (mouseDown) ?
I want this action to occur only when the mouse cursor is over the movieclip, but yet, it occurs where ever you have the mouse cursor ... whats the deal?


onClipEvent (mouseDown) {
}

[MX] OnClipEvent(mouseDown)
I have 1 layer with 1 Frame
in that frame there are 8 different movie clips on top of a bmp
what I'm trying to get is that when the user clicks on one of the clips it runs that clip only

onClipEvent(mouseDown){
gotoAndPlay(1);
}

this is what I have on the actionscript for each instance
the problem is that regardless of where you click on the screen (even on the bmp) it loads all of the movie clips from the beginning instead of just the one that you've clicked on.
Is there any way to fix this?
Thanks heaps in advance

OnClipEvent(mouseDown) Calls All?
Okay, here's the scoop. I'm helping a friend build a flash site to house a LOT of information that is categorized by a person's name. Basically, Flash loads the first 60 names from a text file, and displays them each in their own button on the screen. Then, the user can click "next" to view the next 60 names, etc...

Now, to be able to keep myself from going mad with 60 different functions (for each button), I've automated a lot of the process. I've used "attachMovie" to load a pre-set button instance (with a Dynamic Text Field) onto the movie, and it is assigned the same name as the person who's name occupies the button. But here's where the problem arrises. To be able to communicate to the Dynamic Text fields, I had to keep all of the used instances (and their parts) behaving as Movies, so that I could name them, and later call them. I am using onClipEvent(mouseDown) to query the clicked instance for it's own name, and to send that to a pre-defined function to load the information on that person. But for some reason (unbeknownst to me) the (mouseUp) seems to be a universal call to ALL of the instanced buttons, so my function keeps receiving the first name loaded, regardless of which button I click. After adding debuggin tidbits, I am seeing that ALL of the buttons are having their (mouseUp) commands executed no matter when or where I click.

I can't make it a Button (that would be too easy) because then I lose the Heiarchy to send the name to the Dynamic Text. And Movies don't support any onMouseEvent parameters.

Does anyone know of a workaround, or am I simply approaching this from the wrong direction?

Thanks to all of the geniuses who have guided me here before, and probably will again!

OnClipEvent (mousedown) - Just Over Movieclip
Hi,
I have a draggable movieclip (created by placing a button with an on press startDrag in the mc) which has an onClipEvent (mouseup). heres a sample

onClipEvent (mouseUp) {
if (_root.clipA.hitTest(_root.clipB) && _root.myvar == "empty") {
_root.myvar = "full";
setProperty("_root.clipA", _x, "35.6");
setProperty("_root.clipB", _y, "284.6");
stopDrag();

I have several other movieclips with similar script. The problem is that when the mouseup occurs, nomatter where in the movie, it executes the script in all the movieclips with the onClipEvent (mouseup).
I want the onClipEvent(mouseup)script only to run when the mousedown occurs over the movieclip with the script in it.
Do I somehow how to use an 'if (hitTest( _root._xmouse, _root._ymouse, true));

Hope I've explained that OK.
P.S. I'm using Flash MX, but I want any script to work with flash player 5 if possible. Thanks.

OnClipEvent (mousedown) + Hit Area?
Hi there,
I have a mc acting as button on stage. The cursor changes only while over the button, but the whole stage is sensitive and acts as trigger if clicked.

Why does the mc act so weird?
Is there a way to assign a "hit area" to a mc?

Thanks!

P.S: did a search on the forum before posting - learned new tghings, but not what I´m looking for...

OnClipEvent(anykeypress+Mousedown)?
How can I limit a mousedown event to only if mouse is clicked as another key is pressed?

Fore example I have code inside onclipevent but I want the code to execute ONLY if the mouse is clicked on an area while Ctrl key is prsessed.

onClipEvent (mouseDown) {
[code]
}

There has to be an easy way to do this.

Experts please help.

OnClipEvent (mouseDown) Problem
I have a button (like up or down scroll button) that when clicked moves movie clip (scroller) for 20 pixels on _y, and scroller is than moving content movie clip respectfuly.
It is working fine, but if I click up or down button realy fast it moves scroller but scroller doesnt move content movie clip...
I've tried updateAfterEvent but it doesnt work...
Please help

OnClipEvent(mouseDown) Problem
Hello,

I'm working on an interactive map of the united states in which each state is a button inside a movie clip. The states get larger and move up in depth when you go over them then shrink back down when you mouseout. All of this (finally) is working right.

I wanted it to work so that when you clicked on a state it sent you to a seperate page for that specific state.... Here is where I met my new problem. The code I'm using is:

onClipEvent(mouseDown){
getURL("http://blahblah/arizona/index.php");
}

with a seperate link for each movie clip on the stage of course. Now, when I test this in Flash it opens up an explorer window for every single state when I click on one.

When I put the swf on a website and use it, each state I click on links me whichever state's page I clicked on first.

I'm sure it's just the syntax and then way I'm setting this up but I don't know of a better way to do it without having to redo tons of my actionscript for each state. If anyone knows a quick solution or a better approach I would appreciate it!

OnClipEvent(mouseDown) Problem
Hi guys..

i have this code, but it doesnt work... my movieclip name is process_mc


ActionScript Code:
onClipEvent(mouseDown){
startDrag(this);
}

It's just not working and i wonder why.. thanks to all who are willing to help..

Random Method + OnClipEvent (mouseDown)
hi there ;-)
i'm just trying to learn some asctionscripting, and find the flash dictionary a bit too unexplanatory (is that the opposite of explanatory????) (i'm also learning English as you can see ;-) ;-)

I want my MC to move randomly around the stage when pressed.
my scipt is :
onClipEvent (load) {
random(200);
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse,_root._ymouse,true)) {
this._x = Math.random();
this._y = Math.random();
}
}

but it's not doing what i want it to do ;-)
help me

Is 'onClipEvent (mouseDown) GetURL' Shared?
Hi,

Can anybody help me? I am having a bit of a struggle with the 'onClipEvent (mouseDown) getURL' tag.

I have two movie clips that are acting as buttons (I can't use actual buttons for other reasons) and they sit in the same spot of the timeline. The mousedown:getURL value is different for each one (lets say one is going to google and the other is going to lycos). However, flash seems to choose one url (google) and uses that value for both targets. I have put the movie clips onto different layers, I have given them different instance names, but its still happening. Is there a rule that makes flash treat all movie clips in the same area on the timeline as the same? I am a little baffled!

Zoom OnClipEvent (mouseDown) Issue
Please can anyone with advanced knowledge of Actionscript please help me with my code (shown below) in respect to a requirement for zooming?

I'm creating a flash animation in which I'd like to 'zoom' in and out of a movie clip when the mouse is held. I only want to zoom into the movieclip if the mouse is being held down and if released the movie should zoom back out.

I'm using someone else's code (shown below) which gives me the ability to zoom into a point where the cursor is clicked. If the mouse is clicked a second time it returns back to original resolution. The code uses onClipEvent (mouseDown) rather than this.hitTest to ensure the zoom goes to the area the cursor is positioned.

Is it possible to adapt this code so rather than just zooming to a set magnification and stopping, it zooms only if the mouse is held down, and returns to original resolution on the mouse is released?

The .fla for the code I am using is at:
http://www.flashkit.com/movies/Effec...6578/index.php

many thanks in advance..



actions assigned to cursor:

*/note:
"zoom_this" is the instance name for the movie being zoomed.)*/


onClipEvent (mouseDown) {
if (i>0) {
return;
}

zoom = true;
dir == 1 ? (dir=-1) : (dir=1);
if (dir == 1) {
pt = {x:_root.zoom_this._xmouse, y:_root.zoom_this._ymouse};
}

onClipEvent (enterFrame) {
if (!zoom) {
return;
}
_root.zoom_this._xscale += dir*i*100/8;
_root.zoom_this._yscale += dir*i*100/8;
var pt2 = {x:pt.x, y:pt.y};
_root.zoom_this.localToGlobal(pt2);
_root.zoom_this._x -= (pt2.x-pt.x);
_root.zoom_this._y -= (pt2.y-pt.y);
i++;
if (i == 10) {
zoom = false;
i = 0;
}
}


Thanks
xstasis

OnClipEvent (MouseDown) Vs Input Text
Hi everyone, I got a question about oncleipevent(mousedown) and input text field, I got the action in a mc that when mouse down it moves to somewhere, i got a input text field, but I click on the input text field that mc moves, is any way to disable the mouse down actions when I'm typing? THX everyone¬!

Zoom OnClipEvent (mouseDown) Issue
Can anyone with advanced knowlege of Actionscript please help me with my code (shown belown) in respect to a requirement for zooming?

I'm creating a flash animation in which I's like to 'zoom' in and out of a movie clip when the mouse is held. I only want to zoom into the movieclip if the mouse is being held down and if released the movie should zoom back out.

I'm using someone else's code (shown below) which gives me the ability to zoom into a point where the cursor is clicked. If the mouse is clicked a second time it returns back to original resolution. The code uses onClipEvent (mouseDown) rather than this.hitTest to ensure the zoom goes to the area the cursor is positioned.

Is it possible to adapt this code so rather than just zooming to a set magnification and stopping, it zooms only if the mouse is held down, and retuns to original resolution on the mouse is released?

The .fla for the code I am using is at:
http://www.flashkit.com/movies/Effec...6578/index.php

many thanks in advance..



actions assigned to cursor:

*/note:
"zoom_this" is the instance name for the movie being zoomed.)*/


onClipEvent (mouseDown) {
if (i>0) {
return;
}

zoom = true;
dir == 1 ? (dir=-1) : (dir=1);
if (dir == 1) {
pt = {x:_root.zoom_this._xmouse, y:_root.zoom_this._ymouse};
}

onClipEvent (enterFrame) {
if (!zoom) {
return;
}
_root.zoom_this._xscale += dir*i*100/8;
_root.zoom_this._yscale += dir*i*100/8;
var pt2 = {xt.x, yt.y};
_root.zoom_this.localToGlobal(pt2);
_root.zoom_this._x -= (pt2.x-pt.x);
_root.zoom_this._y -= (pt2.y-pt.y);
i++;
if (i == 10) {
zoom = false;
i = 0;
}
}


Thanks
xstasis

Zoom OnClipEvent (mouseDown) Issue
Please can anyone with advanced knowledge of Actionscript please help me with my code (shown below) in respect to a requirement for zooming?

I'm creating a flash animation in which I'd like to 'zoom' in and out of a movie clip when the mouse is held. I only want to zoom into the movieclip if the mouse is being held down and if released the movie should zoom back out.

I'm using someone else's code (shown below) which gives me the ability to zoom into a point where the cursor is clicked. If the mouse is clicked a second time it returns back to original resolution. The code uses onClipEvent (mouseDown) rather than this.hitTest to ensure the zoom goes to the area the cursor is positioned.

Is it possible to adapt this code so rather than just zooming to a set magnification and stopping, it zooms only if the mouse is held down, and returns to original resolution on the mouse is released?

The .fla for the code I am using is at:

http://www.flashkit.com/movies/Effec...6578/index.php

many thanks in advance..

actions assigned to cursor:



*/note: "zoom_this" is the instance name for the movie being zoomed.)*/

onClipEvent (mouseDown) {

if (i>0) {

return;

}

zoom = true;

dir == 1 ? (dir=-1) : (dir=1);

if (dir == 1) {

pt = {x:_root.zoom_this._xmouse, y:_root.zoom_this._ymouse};

}

onClipEvent (enterFrame) {

if (!zoom) {

return;

}

_root.zoom_this._xscale += dir*i*100/8;

_root.zoom_this._yscale += dir*i*100/8;

var pt2 = {x:pt.x, y:pt.y};

_root.zoom_this.localToGlobal(pt2);

_root.zoom_this._x -= (pt2.x-pt.x);

_root.zoom_this._y -= (pt2.y-pt.y);

i++;

if (i == 10) {

zoom = false;

i = 0;

}

}





Thanks

xstasis

OnClipEvent(mouseDown) { _root.poop.gotoAndPlay(12); } I Need To Add Something
hey umm i am making a game so where you waak something with a mallet it squashes, but right now when i clikc anywhere on the screen it squashes where i want so when i acualy click on the mole!

So i want it so when u clikc the moles head he will squash, but currently it's when i click anywhere on the screen.

Please tell me the little thing i need to do to fix it

Code For OnClipEvent (mouseDown)/ Whack-A-mole
onClipEvent (mouseDown) {

//get the location of the click

x = _root._xmouse;
y = _root._ymouse;

//loop through all 18 rats to see who was clicked

for (i=0;i<18;i++) {

//only look for clips that are doing the popup animation

if (_root["rat "+i].currentFrame > 9) {

//see if this one was clicked

if (_root["rat "+i].hitTest(x,y,false)) {

//have the clip play hit animation

_root["rat "+i].gotoAndPlay("hit");

//increase the score and show it

score++;
_root.showScore = score + "/" + numRats;
}
}
}
}



This is all of the code that I have in the game..... Am I missing something?

Whenever I use this code and I run the movie, nothing happens to my "rat" movie clips and they just keep animating through their sequence. Also, I get the following error...

"A script in the movie is causing flash player to run slowly. If it continues it could cause your computer to unrespond. Do you want to abort the script?"

Can anyone help me???

OnClipEvent (mouseDown) { _root.gotoandplay (2); } Using This On The Main Timeline
can anyone help im trying to control the main timeline by having someone click on a movie clip - I want to have many instances of the clip and apply different actions to the different instances - I tried whats shown below (in the main time line) but it doesn't work (instead the whole movie becomes a button! - wherever I click it goes to the second frame)

onClipEvent (mouseDown) {
_root.gotoAndPlay (2);
}

can anyone help me please?

OnClipEvent (mouseDown) { _root.gotoandplay (2); } Using This On The Main Timeline
can anyone help im trying to control the main timeline by having someone click on a movie clip - I want to have many instances of the clip and apply different actions to the different instances - I tried whats shown below (in the main time line) but it doesn't work (instead the whole movie becomes a button! - wherever I click it goes to the second frame)

onClipEvent (mouseDown) {
_root.gotoAndPlay (2);
}

can anyone help me please?

onClipEvent (mouseDown) { _root.gotoandplay (2); } using this on the main timeline

Trouble With OnClipEvent And Time In Flash
Hello,

I have been playing with flash for a few months now and seem to get stuck on a few things

first of all how do i restrict an event to be triggered on a MC only when the user presses the mouse down but also he is at that moment over the movie clip. Is there a simple solution?
right now the event takes place but the event is triggered even if the click is outside the MC

also I was wondering how i can control time in flash

say i have an object and I want to move that object around the screen.
at the same time i have a function that does something else (play an animation or something

right now
i use getTimer to get the flash clock and then base myself on that to move the object every 1 second
with .y .x properties of the MC

the result is a very choppy movie

is there anything i can do to prevent this

is flash multi-threaded by the way?

how do all these games i see on the net run so smooth?


thanks in advance

bsw

OnClipEvent Trouble
this script resizes and moves the image to front
The script animation works fine but the last button i click on stays on the screen. for example if i change frames or even if i change sceans the last button with the script i click on will follow me through my site.

how can i fix this proble? please help... . . .
if theres a dif way let me know

this script resizes and moves the image to front

this is how the clip is set up

scean5
frame30
properties/ movie clip
instance name/ skull
action =
onClipEvent (load) {
xlen = 100;
ylen = 100;
xscale = _xscale;
yscale = _yscale;
}
onClipEvent (enterFrame) {
x = (x+(xlen-xscale)*0.50)/1.50;
y = (y+(ylen-yscale)*0.50)/1.50;
xscale += x;
yscale += y;
_xscale = xscale;
_yscale = yscale;
}

double click movie clip
properties/ button
total frames = 1
on (rollOver) {
xlen = 170;
ylen = 170;
}
on (release) {
getURL("ArtGallery\pages\MVC-004X.htm", "_blank");
}
on (rollOut) {
xlen = 100;
ylen = 100;
}
on (press, release, dragOver, dragOut, rollOver) {
x = 0;
x = x+22;
_root.skull.swapDepths(x);
}

double click button
properties/ movie clip
total frames = 4
layers = 2
top/ audio on over and down states
bottum/ static movie clips on all 4 frames

OnClipEvent Trouble
When I unload a movie clip (child) that is contained in another movie clip (parent), I want parent to jump to another frame of itself. I have loaded child using loadMovie (into an instance called movietest), and I am trying to use onClipEvent(unload) to trigger parent to go to another frame. the onClipEvent actionscript is contained in the MC instance movietest.

Trouble W/ My OnClipEvent
I'm trying to make a button that is a movieclip load an SWF. On the movieclip I have:

onClipEvent (load) {
url = "testing.swf";
placement = "_root.DisplayArea";
scale = 0;

In the movieclip there's a button with this:

on (release) {
loadmovie(url, placement);



Yet somehow i'm getting 3 errors. What's wrong?! please help, thanks

OnClipEvent Trouble
Hi I am having some trouble with actionscript can anyone see any problems with this code:

tryAgain_mc.onClipEvent (enterFrame) {
this._visible = false;
}




I want the tryAgain_mc movie clip to disappear when the movie loads and reappear later (onClipEvent load also does not work)

I keep getting this error

**Error** Scene=Scene 1, layer=actions, frame=1:Line 118: Expected a field name after '.' operator.
tryAgain_mc[nm].onClipEvent (enterFrame) {

Total ActionScript Errors: 1 Reported Errors: 1


Any help is wanted im pulling my hair out over this

OnClipEvent Trouble.
Hi everyone. I have a file1.swf loaded into an emty mc on a file2swf. on that file1.swf i have a mouse follow. But I want the mc that follows the mouse just to appear on the file1.swf. Is this possible? File1.swf is just a "window" on the fil2.swf

OnClipEvent Handler Trouble ^^;
Version: Flash MX 2004 Profesional

While following a tutorial, http://www.purephotoshop.com/article/115 , I've gotten stuck with the same issue on three seperate peices of code. (See Below)

**Error** Scene=Scene 1, layer=Fly, frame=1:Line 1: Statement must appear within on/onClipEvent handler
code: function Fly(x, y){

**Error** Scene=Scene 1, layer=Fly, frame=1:Line 6: Statement must appear within on/onClipEvent handler
code: Fly.prototype.init = function(){

**Error** Scene=Scene 1, layer=Fly, frame=1:Line 44: Statement must appear within on/onClipEvent handler
code: for(a = 0; a<= 10; a++){

Any help or infomation will be greatly appreciated, I'm still a little new to flash and i need all the help I can get. ^^;

Also, i'm very interested in what an "onClipEvent Handler" is. I haven't been able to find anything about it in MX help files. ;-;

*goes to look again xD*

Easing Menu > OnClipEvent Trouble..
Thanks to this tutorial I was able to come up with a pretty cool sub menu system, but I wanted to take it a step further.. I was trying to add a menu marker (blue line with arrow in sample) that slides from side to side to mark which sub menu the user was viewing. The problem is that I can either get the sub nav to scroll OR I can get the marker to work but not both at the same time. How can I combine the code so that they both work?

You can see a sample here and download source files here.

Thanks for your help!

Flash Button Link Trouble
Hello everyone...It's another great day to have problems instead of six feet under with none, right. Any way, it's my first time to create a flash button for one of my projects. The test worked great as it changed colors when I moused over it and clicked. But, when it came time to linking it to a page in the site it crashed the site and gave me this message.

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: ')' or ',' expected
getURL(http://www.howtofundmybusiness.com/index1.php);

Total ActionScript Errors: 1 Reported Errors: 1

Has anyone else had this problem or have I created a new goof ? I actually got the instructions on how to create the button action from "http://www.kirupa.com/developer/flash5/buttonlink.htm". I am deprived of sleep, can someone hit me over the head with the answer please.

big THANKS!

Trouble With Link On Flash Button?
I am trying to create a simple <a href=> link around a Flash button object on one of my pages. The curson changes to the "hand" icon and the correct link appears in the Web browser status bar, but clicking does nothing?

I am new to using Flash in my Web pages, so is there some special trick to wrapping a link around them? Here is my code:
Code:

<a href='http://www.classjuggler.com/cj/pub/signup.php'>
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' width='170' height='45' id='intro_ani'>
<param name='movie' value='SimpleButton.swf'>
<param name='quality' value='high'>
<param name='bgcolor' value='#FFFFFF'>
<embed src='SimpleButton.swf' quality='high' bgcolor='#FFFFFF' width='170' height='45' name='intro_ani' align='' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>
</embed>
</object>
</a>

No Movie Clip Control For Mousedown.
I have a button, it's a still graphic.

When I roll over the button I jump on the timeline to a movie clip with 33 frames. If I stay hovered over the clip the clip will continue looping.

I want to press, or mousedown on the Movie Clip and Jump to another frame down the timeline, a different button.

I've tryed several methods, I don't have movie clip control, all that seems to happen is that I can make the movie stop but not jump ahead, I label the frame, no good, I send it to the frame number, no good.

Can, anybody HELP ME??

Jnkyrd

On Mousedown Movie Clip Frames
Alright so Ive made a movie clip with 2 frames in it and I would like to be able to go to the second frame of the clip using the _root.onMouseDown function but I cant seem to figure it out any help is appreciated and I shall attach an example similar to what im working with thanks.

Link To A Specific Frame Of A Flash Movie From An HTML Link
How do I link to a specific frame of a Flash movie from an HTML link?

Embeded Flash CS3 For Mousedown
I have a CS3 picture scroller on my homepage and I want to make it clickable to take the user to my portfolio page. Is there any way to do this without having the class files? There are no AS files for this app. Thank you.

Repeat While MouseDown In Flash 5
Hello,

I need a repeat while mouseDown in flash 5! Can it be done?!

Thanks,
Jorge Rego

Trouble With A Link
I have a flash splash that give the user a choice of 2 sites to enter. I want it to only run once and stop and the end. I have 2 transparent rectangles that I converted to symbols that have the click event to redirect the page. They work fine while the flash is running, but when it gets to the last frame where I have stop(); the links don't work. I then tried to add another frame just to put in a gottoAndPlay(80); thinking that the stop was killing my script. But, that does the same thin. The links work while the flash is running, but when it gets to the end, they are no longer links. WTF

[F8] Trouble Making Link
I am builing a flash web site, i have a movie clip acting like a preloader in the beggining of the scene, the movie clip works ok, but when i try to go to the start of the site using a button it won't work... im pretty sure that im doing it right look at this: on (release) {gotoAndStop("Scene 1", "start");
}
It should be a simple thing, but when i hit the button nothing happens, if i put gotoAndPlay instead it just start again the preloader...

Any Ideas? Thanks in advance!

Trouble Opening Another Flash Movie From Within A Movie.
What I want: I would like to be able to click a button and then have another swf file open in the same window or fill the screen of the existing movie.

What I've Tried: I've tried an assortment of loadmovie codes and such. something like this.
on (release) {

loadMovie("U:SmytJerewebProject TEACHCorkboardhelp.swf", blankmovie);
}

I've tried just opening it, and like in the example above, having a black movie on the screen for it to load into, niether works though.

anyone know how I would go about loading that movie by clicking a button?

thanks, jeremy

Still Having Trouble Adding Link To Swf File
Hey There,

I'm still having difficulty adding a hyperlink to an swf file... i tried adding the 'get url' action into the graphic itself, even changed it into a movie behavior- but for some reason when i go to 'basic actions', and scroll down to the 'on mouse event' or 'on clip event', they aren't highlighted- so i can't choose them.

so- essentially. i want the animation to loop, but i only want the url link to open if someone clicks on the animation. the animations i want to become hyperlinks are at the bottom of this page: http://www.lynnguppy.com/johnnyfish.htm

? any more help ? i know i'm probably missing something simple. but i guess that's why i'm a newbie.

thanks for your kind indulgence, lynn

Unusual Trouble With HtmlText And Link
Hi! This should be an easy task, but somehow it's not..

I'm currently working on http://mayorgordon.net/mayorgordon.swf

and using htmlText in several textareas.

As you can see in the "latest news"-box, the text is both selectable and the link clickable.

However, in the News-section of the main menu, the text is selectable(you just don't see it because of the text/background colors), but the link is not clickable(same news-element,same html-code).

This text was loaded with a loadVars symbol and treated with textFormat options. I Tried using the textformat.link, and that worked. I also tried placing another textfield in the same movieclip, but with a static link. that also worked. So it's just this loaded htmlText - link that doesn't.

The only thing I can think of is that the latter of the two news elements container lies deeper within the swf. than the first.

Anyone? anything?

-thomas

Drop Down Menu Link Trouble
i have made a dropdown menu for a keyframewebsite ( i think this is what it is called)it is created within a movie symbol like the one in {this} tutorial-the trouble is i cant get it to link to the main scene timeline with the "gotoAndStop" operator i can only get it to link within the movieclip symbol timeline. want the links in the dropdown to link to the pages in the maintimeline (keyframes)
any help would be greatly appreciated

ps unfortunatly i cannot upload the file as it is too big, and the server wont accept .rar files

HELP HitTest Doesn't Work When OnClipEvent(load) But OnClipEvent(enterFrame)?
Somehow it works for my embedded xml links (coz of using hitTesting) but some of the actions don't run.
Is there anyway to resolve this ?? Coz I want to have clickable xml links embedded within flash. Along with other effects that run at the same time.
I realised that I can only use onClipEvent(enterFrame) instead of onClipevent(load) to trigger the actions. But why is this so???

Hope I'm making sense here...

PS: I tried using only on(rollOver) and on(rollOut), simple button to trigger all the actions and they did. But I can't use buttons as there are xml links embedded within.



ActionScript Code:
onClipEvent(enterFrame){
   if (this.hitTest(_root._xmouse, _root._ymouse, true)){
    _root.button01_mc.gotoAndStop("over");
    _root.image01bg.setMask(_root.blindOpen02);
    _root.blindOpen01.gotoAndPlay(1);
    _root.image01bg.tween("_x",10,0.75,"easeOutExpo"); 
    _root.lines_mc.alphaTo(100,0.25,"easeOutExpo");
   }else{
     _root.button01_mc.gotoAndStop("up");
    _root.image01bg.setMask(_root.blindClose01);
    _root.blindClose01.gotoAndPlay(1);
    _root.image01bg.tween("_x",760,0.75,"easeOutExpo");
    _root.lines_mc.alphaTo(0,0.25,"easeOutExpo");
       }

Trouble With Adding Buttons That Link To Other Scenes...? (PLEASE HELP)
Greetings...

I have put in the following code, to link to various scenes in my movie...
================================================
For example:

on (press, release) {
gotoAndPlay("Scene 6", 1);
}
================================================

Now, I place these actionscripts on the images that I converted to Flash Buttons and the following error comes up...

================================================
Example:

Scene=Scene 2, Layer=Presentations, Frame=485: Line 1: Mouse events are permitted only for button instances
on (press, release) {
================================================

When I play my movie, the "Buttons" that I created do act like real buttons (my mouse changes on MouseOver) but when I click them, nothing happens...

Why would this happen? I have other buttons in my movie, on other pages that link just fine and I used the same code... Why isn't it working now?


Thanks!!!
Dan

Trouble Making An Internal Link For My Button
Hi, everyone.
I am having some troubles using this flash component that i downloaded from "http://flashcomponents.net/". The component is called "fading image button" and it allows ones to create a fading external link on a given image.

The component definitions are:
Name--------------Variable---------Value------Type
border color--------tcolor----------#999999----color
border thickness----thickness-------1-----------list
image(jpeg)--------myjpeg---------------------string
url link-------------myURL----------------------string
start opacity-------startioacity-----60%--------list
end opacity--------endopacity------0%---------list
tint color-----------tintcolor-------#000000-----color
fade speed--------fadespeed--------2----------list

My problem is that i don't know how to turn it to an internal link targeting to a specific iframe on the page.
Would someone please help me with this? This is really important to me.
Thank you so much!

Trouble With Loading A Relative Link In An Other Frame
i created a full menu with 7 buttons,
each button should open a new html page in the frame UNDER the frame where the flash menu is loaded.

i thought the command should be:
on (release) {
getURL("pages/home.htm", "kirupa");
}

but nothing happens
if i change the url name into a http://blablabla/pages/home.htm
it works fine, but if i use this relative link it won't work,
anybody an idea?

Trouble With Loading A Relative Link In An Other Frame
i created a full menu with 7 buttons,
each button should open a new html page in the frame UNDER the frame where the flash menu is loaded.

i thought the command should be:
on (release) {
getURL("pages/home.htm", "kirupa");
}

but nothing happens
if i change the url name into a http://blablabla/pages/home.htm
it works fine, but if i use this relative link it won't work,
anybody an idea?

Movie-object-trouble [Flash MX]
Hello scripters!!

I have an controller-object instance that tells an movie-object to
goto and play from certain frame on. I'd like the movie-object to
tell the controller once it has finished playing the movie. How can
the controller tell when movie has finished playing?

I want to show several variations of the same animation in random
sequence.. So I have an controller and several movies.. But I cannot
get the movies that make up the animation to 'return calls' to the
controller
Is there another approach?

Heres what I came up with:

Controller works fine. It simply calls the movie-objects methods,
and movie-object then does 'gotoAndPlay(label)' the movie. Works. But.
I tried calling the controllers methods from the movie's ending frame,
like this:

trace("Movie " + movieID + " finished");
controller_inst.playingFinished(movieID);
stop();

(I can see from debugger that this line is executed but nothing
happens. I tried several variations like adding _level0. etc,
nothing happens.)

A little schematic to clarify the issue further:

1.
[CNTRLR] --calls--> movieInstance.playThis(movieID)

2.
movieInstance plays back the specified movie

3.
In the last frame of the movie:
[movieInstace] --calls--> controller_inst.playingFinished(movieID);
This is supposed to restart this sequence, but for some reason
controller seems to ignore the method calls from the movieInstance.

Any help or comments appreciated,

Yani

Trouble With Movie Clip (Flash 4)
Scenario: I have a movie clip I am inserting into my main movie. Now, in my movie clip, I have an action script that I want to GoTo frames of the timeline within the movie clip and not affect the frames in the actual main movie.

Whats happening is that my movie clip script is affecting the frames of actual main movie and not staying within my movie clip.

How can I keep my movie clip action script to only affect timeline within movie clip?

Thanks!

Having Trouble Loading Up Flash Movie...
Hey guys... i'm having trouble loading up this flash movie/webpage that i've made.

The issue i think has to do with preloading (which i don't understand... although I did make a preloader... already attached to the beginning of my flash file).

I've attached the necessary files to run this... the problem is.. sometimes when i run this through Flash MX it works and runs fine in test... and then sometimes when on a server it works.. and other times it doesn't.

The rollovers fail to load and work... and sometimes the animation in the middle just doesn't load. (It seems liek these things happen at random moments).

I'd appreciate anybody's help!

Thanks in advance!

Have Trouble Creating A Flash Movie
Im new to using abode flash but im figuring it out. I took over another persons postion that would edit videos and post them on our website. I have edited in adobe preiemer pro and i have encoded the file now im just missing the flash export movie file so i can make it play on our website can anyone help me please. The other movies have a flash file that is 36K no matter what option i pick when i export the file it crates a 50K size file and will not play on the web. Im also not sure what skin to put as i can get access to the guy who did it orginally.

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