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




Image Keep Flying By The Site In Circular Action In Action Script



hi
all right are goes to try to talk in ingles:
how to do to create an effect in which for image keep flying by the site in circular action in action script
would you know the step-by-step?

Jeov@n



FlashKit > Flash Help > Flash ActionScript
Posted on: 04-26-2003, 04:35 PM


View Complete Forum Thread with Replies

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

Developing Wicked Site Stuck On Image Panning Action Script.
Hi friends. i'm stuck on some AS and i need someone's expertise.
Here's a link to the site: http://www.invisioncreative.ca/v04/index2.html
Click on the top portfolio button and a portfolio section will slide in (load ext swf.)
I've used the code from http://www.kirupa.com/developer/flas..._image_pan.htm
The problem is I need to specify where the left and right edges of my scrollable area is - right now it is scrolling with regards to X = 0 and Y = 0. and the scrolling is way off.

Here's the As from the portfolio scrolling movie: ( I've got the AS pasted on to a hot spot so it only works in that window - but the X and Y values are messed as you'll see)

on (rollOver) {
this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1);
};
function constrainedMove(target:MovieClip, speed:Number, dir:Number) {
var mousePercent:Number = _xmouse/Stage.width;
var mSpeed:Number;
if (dir == 1) {
mSpeed = 1-mousePercent;
} else {
mSpeed = mousePercent;
}
target.destX = Math.round(-((target._width-Stage.width)*mSpeed));
target.onEnterFrame = function() {
if (target._x == target.destX) {
delete target.onEnterFrame;
} else {
target._x += Math.ceil((target.destX-target._x)*(speed/100));
}
};
}
}
on (rollOut) {
this.onMouseMove = function() {
this.onMouseMove = false()
};
}


I totally appreciate any one who could point me in the right direction.
The Fla files are here: download portfolio.fla

http://www.invisioncreative.ca/source/

Circular Motion Using Action Script ?
i want to make a circular motion of a movie clip, should i use a for looop if yes then what would be the syntax of it.


Thanks,
Qaisar.

How To Make A Circular Motion By Using Action Script ?
Hello everyone,

There is a simple question but a bit confusing one for me.
I want to make a circular motion of any round or arbitrary shaped object by using action script. Should i use a for loop, and if i use it what will be the syntax of it?

Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Question: Where Is The OnRelease Action In The Action Folders
Action Script Question: where is the OnRelease action in the action folders

I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.

But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.

Any help would be much appreciated.

Action Script Replaycer, Action Script Viewer V.3,08 And URL Action Editor V.3
My friends! I urgently need the programs: Action script replaycer and URL action editor v.3 (or upgrade v.2 up to v.3).
In an exchange I can give you the programs: Action script viewer v.3,08, URL action editor v.2, SWF decompiler MX, SWF scanner v.2,63, SWF extractor, Action script obfuscator , Fla****! (deprotector), Vid2flash7t ( converter to format SWF), Fireworks (MX), Dreamweaver (MX), FreeHand (MX), Director (MX).
I shall be glad to send you any (or several) program in exchange for one or both programs which I need. And if you don't need its, send me please simply so.

My E-Mail: Flash_567@mail.ru
Flash_567@mail.ru

Action Script Help Site?
hey guys im really new 2 action script and so i wanted to know if there and any websites that are like guides for action script? where it like says that different scripts and their functions???

aight thnx alot cya

Action Script Site
Hi there

I recently was asked to maintain a site. Not realising that the whole site completely realise on action script.

The site is neat and i have manged to understand a few parts of the code but a lot of it is still way over my head as im very new to this.

It is built on a MVC framework which i have never come across before, but i understand that it is very easy to maintain as long as you know what your looking at.

I was wondering whether someone is interested in giving me a hand to understand this code. I think it could benefit most if anyone is willing


THanks,
Benn

Action Control MovieClip Site Like
hi,

i am not an expert in actionscript and i want to do a animation with (on rollover) active buttons in a frame (rectangle) like in this site :
http://www.silenceradio.org/silence.php

Thanks for your help.

Flash Action Script Site
hello every one,any budy tell me "Flash Action script site(basic,advance)."i want to learn action script.i m beginer in flash script so plz which site helpful.

thank you.

Action Script For The Efect On The Site
Can someone help me find the action script for the efect on the site www.chromazone-imaging.co.uk? Button going away from the mouse and stop at the same time as the mouse... Thanks!

How Can I Make A (site)hit Counter With Action Acr
Hi.
I was planning to use my Php hit counter on my Flash site. Turns out that my server isn´t ready for Php...So now I wonder how I would go about to make something like this with action script? How can one store data within Flash? The only dynamic content I have added so far gets lost after you leave the site, if you know what I mean!!
I only want one number to be added each time the main movie loads, shouldn´t be to hard, right? But I can´t figure out how...Please help.
Oh, and if you can help me, please write it in a way that I can easily understand. Cause I am...dumb.

BASIC Action Script Tutorials On This Site
right i really want to learn this action script but iom not sure what is basic anymore.....there is too much of it

will you direct me to a beginners guide to using actionscript on this site, or any others for that matter......i mean beginning as it will tell me what AS it is with a simple example

cheers

Site Relative Path In Get URL Action..Poss..?
Hello All,

is this possible, or, should I be doing something else..?

Is There An Exemplary Action Script Learning Site?
Can anyone please tell me where I can find a comprehensive site to learn about Actionscript? Besides Flashkit of course. I already know about the basics like tell target, load movie.. etc. But I was hoping to take my knowledge to another level and perhaps someday create a flash game from scratch.

To the experts of Actionscript in this forum, can you tell me how did you start to learn actionscript? Did you have prior programming experience cos I don't know a single thing about programming. Did you practise doing ready made tutorials here until you know how it flows? Cos I've borrowed books, did tutorials and still I have no idea about the difference between one function from the other ...

Please help...

Depressed Flareman

Good Site To Learn Action Script?
Hey, i wanna learn a lot of action scripting, where should i start?

Urgent Help Needed In Action Script For The Following Web Site
Hi,

Please help me to do the flash action scripts in the following web site.
Thank You so much.
Arshad

http://designashirt.com/design.asp

E-mail Action Script On A Flash Site
I've created a flash website and I am having trouble getting my site to connect to my e-mail. I used (mailto: ) then the e-mail address, but it keeps saying that the url doesn't exist. Can anyone help?

E-mail Action Script On A Flash Site
I've created a flash website and I am having trouble getting my site to connect to my e-mail. I used (mailto: ) then the e-mail address, but it keeps saying that the url doesn't exist. Can anyone help?

Frame Action To Call Tell Target (rather Than Button Action)?
I really need a frame to Tell Target a movie clip. For some reason, I can't get a Frame Action to work with Tell Target.

I have no problem applying the same Tell Target to a button, however. Am I missing something? Is Tell Target not meant for Frame Actions?

On(rollOver)action + On(release)action + Photo Transition
Okay, I'll try to describe what I want to do and probably just need help putting it together.

I have :

5 black & white photos -- all converted to MC's (bwimage1, bwimage2 etc)
5 color photos (same as b&w) -- all converted to MC's (image1,image2 etc)
5 buttons -- all converted to symbol-buttons (image1_btn, image2_btn etc)

I have the 5 buttons lined up vertically on the left side of the page. I have a spot on the right side of the page where I want the picture to be visible, the black&white version on (rollOver) and the color version on(release).

I know how to make just one of the photos appear on rollover or on release but I don't know how to change the photos from B&W to Color on the actions. I would like a transition between the photos from rollover to release (b&w to color) like a fade.

Any help is appreciated.

Assign Cursor Action To MovieClip Using OnRollOver Action?
Hi all

I have a cool component from FlashLoaded which lets me create brilliant 3d layouts with out much hassle. The componet uses the cursors to zoom in zoom out and pan left and right.

I dont want to have to put an explanation on the site, I would like to put some invisible mc's or buttons on the stage that when the user rolls over them with the mouse it triggers that action.

Is there a simple piece of code i can place on the buttons to make this happen?

Many thanks in advance

Greg

On(rollOver)action + On(release)action + Photo Transition
Okay, I'll try to describe what I want to do and probably just need help putting it together.

I have :

5 black & white photos -- all converted to MC's (bwimage1, bwimage2 etc)
5 color photos (same as b&w) -- all converted to MC's (image1,image2 etc)
5 buttons -- all converted to symbol-buttons (image1_btn, image2_btn etc)

I have the 5 buttons lined up vertically on the left side of the page. I have a spot on the right side of the page where I want the picture to be visible, the black&white version on (rollOver) and the color version on(release).

I know how to make just one of the photos appear on rollover or on release but I don't know how to change the photos from B&W to Color on the actions. I would like a transition between the photos from rollover to release (b&w to color) like a fade.

Any help is appreciated.

Using Action Script To Control Button For Music On Site?
Hi everyone...and thanks ahead of time for all your help!

I have music playing on my site, but I want to be able to use a button to mute and then start music again from the same button...depending on the viewers choice.

Right now I just have music playing and a button to stop all sounds.

Any help????

Thanks again!

Adding Action To Button Stops Other Action.
Flash MX.....

I have two frames, there resides on the stage a button with the instance name "blabla".

First frame actionscript is.....

blabla._y = blabla._y + 1;

Second frame actionscript is........

gotoAndPlay(1);

The button slides down the screen when published, that is the desired effect.

Problem..... as soon as I add any actionscript to the button, even just two comment slashes "//", the movement stops.

I have a feeling that there is some really basic concept that is flying over my head at the moment.

Action Script Doubt For Changing The Action
i had used two this code to stop the movie and to play the movie


on (press) {
kk.onPress = function() {
this.count++;
if (this.count%2) {
stop();
} else {
play();
}
};
}


kk = button instance name.


it is working but the only thing is that on the very first click there is no action taking place
and on the next click onwards it is working properly

help me out to over come this.

from
aristotle

Button Triigers Action Only If Other Action Has Been Performed.
I need to make a button call an action only if another specific action has already been performed.

Here's the scenario:

I've got four MC's, each set up as a button, placed on my main stage and given an instance name.

Each MC has a stop action in the first frame. When the button is clicked the MC will begin to play simply by using this code:

on (release) {play();

Once it's off the screen (or no longer behind a mask I should say), the MC stops at a frame labeled "down" with a simple stop action. A few frames later, I have a frame labeled "up" that when triggered, will cause the mc to start again and the button/graphic that is off the screen will come back on the stage.

This works fine using the code below:

on (release) {play();
_root.associates.gotoAndPlay("up");
_root.services.gotoAndPlay("up");
_root.portfolio.gotoAndPlay("up");
}

However, I dont want the button to trigger any of the gotoAndPlay actions UNLESS the specific button has already been clicked and is off the stage.

I guess the code I am looking for would be something like this:

if_root.associates =("down") then _root.associates.gotoAndPlay("up");

any ideas?

Thanks

Audio Action W/ An Image?
hey. well, i am kind of new to flash, but i have seen some a couple of other people do tihs, and i wanted to do it myself.

i have seen sig's, like on forums, that when you put your mouse over it, it plays music.. like a whole song. and that is what im trying to do.

now, i am good with fireworks and photoshop, so ive made a good image, and i have the song i want to use... but other than that, i have no sweet clue what to do. i have tried a few tutorials and also looked in the "how do i..." section and the help section of flash, but i cant figure out how to do it...

could someone please help me out? it would be much appreciated. thanks.

How To Hue An Image With Action Script
I have imported an image in flash. With in PS i can change hue to get an effects of changing colours. In flash i just try with advanced effect on a object, but this isnt what i want.

Is it possible to do that actionscript is changeing hue of an object. I would do thiis with setinterval, to change frequently priperies of object.
Other way is importing cca: 30 images prepared in PS but it would be hue swf file.

thx for help.
d.

Simple Action Scripting Question Check Out This GREAT Site :-))
Hello,

Can anyone recommend a tutorial link on how to animate the stars at this GREAT link?

http://www.creatgsee.com/lovelust/

Or if you know Action Scripting to do this, could u please email to susee@tm.net.my giving the basic steps to achieve this animation effect?

Thanks in advance,

Su Lin
http://www.geocities.com/sul24

Image Movement Thru Action Script
i would like to move series of images or one long image across or veritcally in the screen no by regualr animation but thru action scripting

can u help me in this

Action Script Center Image
Sorry If this seems silly but I am still learning.

I ahve created an interface that will act as a standalone app. It dynamically loads images into a image holder movieclip.

I have read how to center the clip using stage and clip width, but when I load my first clip I get height and width of 0, after i click a button to change the image I get the dimensions but not at first.

I have uploaded the file for you folks to look at.

Thanks for the help.

Dumps

Action Script - Load Image
I am trying to load an image into flash via flashvars and place it on the bottom layer.

I have a movie with 5 layers in it. The bottom most (layer 1) is the background image of the script, and layers 2-5 have animation occuring on them. Essentially, I just want the image loaded via the flashvars to load below the animation stuff.

I am successfully loading the image into the movie, but it is appearing on top of everything else. (Flash CS3). Here is my code:


Code:
var imgUrl:String = "pointing to my picture on development server";
if (_level0.imgURL != undefined) {
// If image was specified, overwrite default value.
imgUrl = _level0.imgURL;
}

this.createEmptyMovieClip("img_mc", 10);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip):Void {
target_mc._x = (Stage.width - target_mc._width) / 2;
target_mc._y = (Stage.height - target_mc._height) / 2;
}
mclListener.onLoadError = function(target_mc:MovieClip):Void {
//this shouldn't be used, but for testing purposes
//target_mc.createTextField("error_txt", 1, 0, 0, 100, 20);
//target_mc.error_txt.autoSize = "left";
//target_mc.error_txt.text = "Error downloading specified image;
" + target_mc._url;
}
var myMCL:MovieClipLoader = new MovieClipLoader();
myMCL.addListener(mclListener);
myMCL.loadClip(imgUrl, img_mc);
stop();
I found the code on Adobe's site... any suggestions?

Displaying Image To Go With Action Script
I have a flash quiz which displays 6 questions using actionscript, I want to display images to go with these questions though (They are different images for each question) how can this be done?

Thank you in advance

Action Script Image Rotation
Does anyone know of a good tutorial for using Action Script to fade one image out and fade another one in. An image rotator of sorts?

Thanks.

Someone Please Help Me On A MouseOver Action(image ThumbNail)
hi my name is Ayo i tried everything possible to be able apply the mouse Hover to the image thumbnail on the Kirupa.com but all to no avail... could someone please help me to fufil this...

ACT: 1. i want it to show me the name of the title of every image i mouseOver.
2. i want it to show me numbers instead of the pictures themselves....

Image Croping Using Action Script 2.0
Hi all,

I want to edit images in flash action script... That means user able to crop the current image in flash action script..... Any one have any source code or any reference urls.... please help me.... It's urgent for me....


Thanks,
vamsig.

Image Croping Using Action Script 2.0
Hi all,

I want to edit images in flash action script... That means user able to crop the current image in flash action script..... Any one have any source code or any reference urls.... please help me.... It's urgent for me....


Thanks,
vamsig.

Action Script And Image Clircle Rotation
whath action script and image circle rotation?
our
image flying?

Jeovan

Inserting Image In Scrolling Text Action
i am having problems inserting images into the flash scrolling scrit within my flash site. The text is put in on a page as a scrolling action like this

txt="To be successful with such diversity does not come without investment. Investment begins close to home and as with your business, ours begins with investment into people.";
txt+="We aim to attract and to retain the brightest and best individuals that understand our culture. All of our consultants are highly skilled individuals with a flair for people skills and the ability to analyse and gather important information. Coupled with unparalleled investment into specialist, selective advertising, access to more than 2 million registered professionals, we bridge the gap between companies and people.";
txt+="Our approach is heavily orientated towards quality and not volume. In many cases, both our client and candidate relationships have developed over years of helping each other and constantly adapting to market trends."; txt+="So for more information, or perhaps a detailed insight into a solution for you, don’t hesitate in contacting us today!";

I need to insert some images into this but not sure how to do it.

Please advise

How Do You Display An External Image Using Action Script?
Loader Instance Name:
my_preview

Action Script:
my_preview.height = 300;
my_preview.width = 227;
my_preview.move(0, 0);
my_preview.autoLoad = true;
my_preview.contentPath = previewImage;

Embed Tag:
<embed src="demo.swf?file=flashVideo.flv&previewImage=nop hoto.gif"></embed>

Having An Image Download From An Exe Within A Detailed Action Script
Hi,

I am working on a project that has most of the action script in place with one minor snag. When the user selects an image from a thumbnail from the bottom of the page, the image and text appear, but when you click to download the file, the action doesn't work.

The script in question:
on (press) {
fscommand ("Exec", "b-CIX-100-with-phone_Mar-07.EXE");
}
on (release) {
this._parent.pictureLoader.loadMovie ("BigImages/b-CIX-100-with-phone_Mar-07.png");
this._parent.chsen_movie.chosen.text = "CIX100 with phone — please click here to download image";
_root.loadimage = "JPGs-CIX-100-with-phone_Mar-07.jpg";
trace (_root.loadimage);
}

Any guidance would be helpful.

k.

Stop Action Not Workig For Image Hover
I am working on an interactive map. I want a thumbnail image to appear when someone hovers over the button. The thumbnail is a movie clip on the main timeline which moves into view with a stop action half way through. My intention was to write a MOUSE_OUT and direct the image off screen. When I mouse over the image comes into view as directed but instead of stoping at the stop action, it just dissappears. How can I tell the image to remain onscreen until the mouse is moved away.

Thanks!!

Jean







Attach Code

discoveryCenter.addEventListener(MouseEvent.MOUSE_OVER,discoveryClick);
function discoveryClick(event:MouseEvent):void
{
event.target.parent.parent.gotoAndPlay(6);
}

Little Luck With Bring To Front Scrolling Image Action
for over a month, i have been trying to work out this bring to front action as well but have had little luck with it, here is what i have so far...

http://www.oymdesign.com/back/portfront.htm

what i am trying to do is make it so when you click on a scrolling image it comes to the front on top of everything and stays larger and on top until you either click outside the image or click on another image


if i can't get this to work i would like to be able to click on one of the scrolling images and have it load a larger still version to the right side of the screen

Re Sizing Image With Action Script, Multiple Images
Hi all

Ho have a digital camera , i can make a mini movie, a squence of 8 pics , when I import them it ask "It appears that the image is a squence, do you want to import all of them" I say yes then it imports them as 8 keyframes, now I want to resize them with actionScript.

any takes

New Year New Problems (accessing Image Name With Action Script)
i have a lot of similar movie clips that are buttons the only difference is that each button has a different image inside (the image was placed in the clip from the library). what i want to be able to do is get at the image name by clicking the button. i just don't want to have to type out all the image names in the AS for every button.

Crop The Dyanmically Loaded Image Using Action Script
hi can anyone help me to crop the exact image through the flash action script. if anyone has smaple page please share with me ...Thanks

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