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




Real Stupid, Simple Question



how do i make an object that is a movie clip rotate 360 so that it will playback in a smooth rotation loop. i apologize for asking such a dumb question but i suck at flash



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 11-20-2003, 04:07 AM


View Complete Forum Thread with Replies

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

Real Stupid, Simple Question
how do i make an object that is a movie clip rotate 360 so that it will playback in a smooth rotation loop. i apologize for asking such a dumb question but i suck at flash

Real Stupid Question.
I'm trying to recreate something very similar to this...

http://www.concordebuddy.com/barry/

It's an html page. But I am used to flash and am not as versed in dreamweaver, illustrator, and photoshop.

How would you go about recreating this page? It's just some simple masking, and arranging of images and text, with some other layout elements.

I need advice.. Thanks.

Real Stupid Question.
I'm trying to recreate something very similar to this...

http://www.concordebuddy.com/barry/

It's an html page. But I am used to flash and am not as versed in dreamweaver, illustrator, and photoshop.

How would you go about recreating this page? It's just some simple masking, and arranging of images and text, with some other layout elements.

I need advice.. Thanks.

Real Simple :(
When I have a variable _root.testvar = "mainMC";

and i want a mc with instance name mainMC to play, then why can't I just say _root.testvar.gotoAndPlay(1);

It's got nothing to do with the paths to the _root.
everyting is in the main timeline.

?????

A Real Simple One.
Hello all,

I've been out of it for a while so I forgot this one. I know if I want to address the main timeline I use _root, but what if I just want to go up one level. How do I do that again?

thanks

Real Simple Question.
Greetings.

I am building a flash page: http://www.dynactix.com.

So far everything is smooth, but I have one question. If you enter the site you'll see a banner swing out that points out where the navigational links are to avoid any confusion for the user. I am just learning to script decisions so you may be able to answer this with even little actionscript knowledge.

I want the banner to remain on screen until the user moves his mouse over the area that contains the links, then disappear forever. Should I add a mouseover command to every link clip, or build a whole new invisible button over the whole area that reacts to a mouseover?

Then finally, how can I tell it to remain off-screen?

Should I have the mouse over goto a new frame with no banner or invis button? hmmmmm....

Any input would be greatly appreciated.

Thanks!!!!

Real Simple Question
i need some help!

try to imagine this> i have a circular bubble MC, and i want it to expand in size when the cursor is hovering over it, and minimize back to original size when i take the cursor off,

my solution so far has been to make an MC thats the bubble graphic (just one frame) to act as a sort of button, lets call this clip "mc_button". and i put that within another mc ("bubble_container") and i have two tweens, one going from the smallest size, to largest, and one going from largest, to smallest, within "bubble_container" each tween uses the mc_button clip to change size. how can i set it up so as soon as i take the cursor off of "mc_button" it will go to the other tween and the equivalent frame there, to make it start shrinking again? i just need some action script, and maybe a tip if im going about this all wrong.

SLIDEBAR: This Is Probably Real Simple But........
I've created a verticle slidebar. I want the user to be able to change it's position by either clicking and dragging or by inputing a number and pressing enter.

I've already figure out how to get the user input'd number stored to a variable in flash. But how do I set the "_y" value of my slidbar equal to that variable to make the slidebar go to that position automatically?

Once again I call on the SLIDEBAR GURUs. Thanks.

-----SWIFTBYNATURE-----

A Real Simple One But Has Me Stumped
I have my webpage set up on one layer as it is only to pages,
each page is a frame, however when I publish it in html the frames try to play like an animation, and loop how can I stop them from doing this

I know this is simple but I can't figure it out
P.S I am using flash 8

Simple CMS For Real-Estate?
I've browsed these forums alot and many people have asked about the best CMS solution for their project. Alot of people recommend integrating flash into a Joomla template, but I don't need to give the client that much control.

I'm building a simple real-estate website and I just need the client to be able to add/remove new properties with a price and short description. No changing the menu items or anything like that.

Basically, something that could work like this almost: http://www.cartoonsmart.com/dynamic_...filename=swiss
But with price, location, and short description too.

Anyone done anything like this before?

Real Simple Problem...
i just need to have a way to know what frame i'm in, through action script. i'm making a little timer, and i want to be able to post the frame number to a text box withotu having a keyframe every frame...

Real Simple Question..
I have this code

n = 1;
schedule_mc.team0.text = team[n];

Basically, I want team0 to be what n is. So if n = 1... it will say

n = 1;
schedule_mc.team1.text = team[1];

n = 2;
schedule_mc.team2.text = team[2];


and etc... basically so I can use the number to select part of the XML and put it where I want.. now how do I do the n in the movie clip path like that... On a whim I tried...

eval("schedule_mc.team" + n + ".text") = team[n];

But that's clearly wrong.

Real Simple Issue.... Scenes
ok my only issue is to switch to a specified frame on a specified scene. I was lead to belive that if i typed:

gotoAndPlay("scene 2",2); or gotoAndPlay("scene 2","frame 2");

that i would be taken to the second frame of scene 2, seems logical right?
when i compile and run i test to see if i will be taken to frame "2" in the second scene, but nope im taken to frame "1". ignoring the ,2 that i put in, no output errors or anything.

im sure its just simple syntax... but at this point im oblivious, please help

Real Simple Question About Linking
I have a real simple question. The problem I'm having is I've build a movie clip that shows off my resume, I would like to have a button that takes the user out of the move clip and back to the start of the flash site in the scene time line when they click on it:

The name of the main scene is:

zade_aghabi_site

the name of the symbol that I'm trying to link from is:

resume_symbol

Thx for the help.

JT

Real Simple (if You've Worked With Flash B4)
I'm sure this will be laughably simple for the pros out there...

I'm working in Flash MX 2004. All I want to do is have a key press (the alt or tab key) result in the swf skipping to an assigned frame. I want to assign the script to either the initial frame or a movie clip.


//edit is there an ascii code for the alt key or a way I can specify it in the following code?


Code:
myListener = new Object();
myListener.onKeyDown = function(){
if(Key.getCode() == 32){
gotoAndPlay(490);
}
}
Key.addListener(myListener);
...and also how do I stop this code from working in subsequent frames or is there better code I should be using?

Help.

Real Simple Trig Question
if i have the angle from centre, and i have the distance from centre, how can i plot x and y, i know i need to use trigonometry, but school was some time ago now!!


cheers

Real Simple Flashvars Question
Hi everyone!

Please bear with me as I have slim to no knowledge of flash and am trying to learn it to improve my website (the closest i've been to flash authoring in the past is Swish...).

I'm trying to do a very simple flash script that enables me to load in an integer passed through a php script using flash vars.

Now the problem is that although I know that this is about 3 lines of code (to create the variable, load it in and display it), but when i've tried coding it I get exceptions along the lines of 'nested' and 'root' (I cant renember the exact error message as I deleted the script shortly afterwards).

Hopefully I've given enough information for a flash guru to give me a hand.

Thanks in advance!

Real Simple Newbie Question
When I place some codes in a keyframe, these codes are showing on all the following frames up till the next keyframe with codes. My question is , does Flash execute codes only in the keyframe or it execute whatever is in the frame regardless whether its a keyframe or not?

TIA

Real Simple Newbie Question
When I place some codes in a keyframe, these codes are showing on all the following frames up till the next keyframe with codes. My question is , does Flash execute codes only in the keyframe or it execute whatever is in the frame regardless whether its a keyframe or not?

TIA

Real Simple Flash Booklet
Hi, I have been stuck the past 2 days on how to make a real simple flash booklet like this site:

http://artpartner.com/

if you click photography>and a name.. you should see the booklet


can anyone help me? or briefly explain how its done?


thanks!

Real Simple I Think- Embedding Movie Question
hi guys,
ive made a flash animation which I want to put in my flash website,
ive experted it as a quicktime movie, then re-imported it into my web design... now my only question is, what do i need to do to make this movie (which is on the first page that opens up when entering my domain) not play right away, but instead press on it for example, to make it play

thank you!

Real Simple Image Rotator/dafe In/out
I'm looking for a really simple image rotator/slideshow that will cycle through my images one at a time and fade in/out between.

eg

show image 1 for 5 secs, fade out, fade in image 2 and show for 5 secs (in place of 1st, same size), and continue in loop... Preferabley images/size set via xml as i don't have flash!!

I found one, but the size is 80k, and i'm looking for something smaller. It does has loads of settings that i don't require like music/captions/etc...

TIA

Real Simple Question About Linking Buttons In A Scene
I have a real simple question. The problem I'm having is I've build a movie clip that shows off my resume, I would like to have a button that takes the user out of the move clip and back to the start of the flash site in the scene time line when they click on it:

The name of the main scene is:

zade_aghabi_site

the name of the symbol that I'm trying to link from is:

resume_symbol

Thx for the help.

JT

Probably Stupid And Simple
can anyone help!!!! i have put this out more than a few times. but my question is....??? I have a simple movie clip. but if you double click on the clip to go in an edit the clip, there are numbers 1 thru 7 as text buttons, an on and an off button, and a volume slider. though i haven't been able to get the volume slider to work inside the movie clip the other buttons do. so the question is how can i select the buttons without having to go in and edit the movie clip.

the reason i have this simple rectancle with simple buttons turned into a movie clip is because i want to be able to access the movie clip from a button and on roll off it disappear, which it does..

how can i get this to work

So Simple It's Stupid
I've been kicking myself for a couple hours now trying to figure out this problem. I've done it before a hundred times, but this one is just not working. I have a button with the code

Code:
on (rollOver) {
gotoAndPlay("test");
}

Probelm is, when I rollover the button it doesn't take me to the correct spot on the timeline, instead it takes me an entirely different scene altogether. I have nothting that points to that scene and nothing else is named "test". Basicly I'm creating a menu that you rollover and it goes to another frame to bring up menu items. For some reason though it will not go to that frame label. Any help would be awesome.

Should Be Stupid Simple
but maybe I'm just stupid

I have project with 5 nav button objects at the top of the screen and each is to point to a movie static movie clip. How would I(using actionscript properly,) have each movie clip fade out before going to the movie clip called by the button? So in essence I want every mc to fade in, be viewed as long as the user wants until they click a button, have that mc fade out and the selected scene fade in? I've tried several approaches but none seem to work quite the way I need them to. Is this not a pretty simple functionality.

Thanks for the help in advance.

Stupid And Simple :q:
how do i get text to show up in a dynamic text box when you click a button? I give it an instance name and stuff but the text never shows up! and it dont work as a mc either...


this is the code:

Code:
on (release){
phrase1 = "Jump Over The";
phrase2 = "Moon";
sampleText = phrase1.contact(userEntry, phrase2);
}

Real Simple - Show/hide MC When A User Clicks A Button
hi- real simple...

i just want to make a button that when a user clicks it it either hides or shows a MC. here is my code, but it doesn't work:

on (release) {
if (_root.grid._visible == false) {
setProperty ("_root.grid", _visible, "1");
}
if (_root.grid._visible == true) {
setProperty ("_root.grid", _visible, "0");
}
}

can anyone tell me what i did wrong? thanks!

Simple, Stupid Question...
ok, here is this question that makes me really ashamed I have to ask. How can I get my Flash MX movie to resize to the screen resolution of the computer viewing my website.
any and all scripting help is appreciated.
I tried using the following in a method I was trying to program but, needless to say, it didn't work. Could someone give me an example of how best to do this and maybe explain then what the following CAN do?

System.capabilities.screenResolution.x
System.capabilities.screenResolution.y

Thanks so much!

me

Very Stupid And Simple Question
to make the simplest preloader you make a motion tween then i don't remember the action script i need to the movie load

Stupid Simple Question [+]
I need this "if" statement to also check if the variable section==programs before it "loadsMovie" etc... where can I insert that without screwing it all up? I'm not sure how to set it up so it checks the value of 2 things before going on...

onClipEvent (enterFrame) {
if (Math.abs(_root.menu._y)<469) {
loadMovie("programs/overview.swf", "_root.mcholder");
setProperty("_root.mcholder", _x, 0);
setProperty("_root.mcholder", _y, 0);
}
}


thanks for any help...
Schimke

Simple Swf, Stupid Problem?
Ok, I am still somewhat new to flash and I am working on a very simple flash animation for my mothers work web page. I have ceated the animation and it works perfectly in flash but when I publish the file only one part of the animation will work. I have two graphics that are words the alpha fade in from the top and the bottom but when I publish it these text boxes do not appear. Any suggestions?

Really Simple Stupid Question
is there any way to keep the library window permanantly open (even when you close and re-open flash) because it's always closed when flash opens.

Simple Stupid Question
ok so i declare a variable as x and i know its working due to some dymanic text test

so i click the button and

on (release) {
x = "25";
}
on (release) {
play();
}


it plays and then it comes to another frame. In this frame i want it to jump to the frame with the value of x

what should my code look like on the "jumping frame"

gotoAndPlay(???????????????????????????????);

Very Simple (almost Stupid) Question....
Quick question... how do you make a "mailto:" link in flash? I've tried:
getURL("mailto:blahblahblah"); //(on a button)
And it just won't work! Why?!?!?! Is there a different way to do it? I see it all the time on "all-flash" websites! HOW?!?!

Stupid Simple Question
Stupid Question,

How can I keep a button highlighted when it is pressed and it goes to the scene selected (so the user knows exactly where they are).

It's in the button properties somewhere, but for the life of me i can't work it out... it must be a monday... oh no wait its wednesday here....lol


Christopher Mitchell

I Have To Be Missing Something Stupid And Simple
So did the "Floating Background" tutorial on this site by Amen KAMALELDINE. All my code is for the most part exactly the same as his. I wanted to take modify it though to make each of the floating balls buttons that when pressed will go to the keyframe "pic1". The balls are movie clips which I nested a button inside of. On the button instance I put the action script

on (press) {
gotoAndPlay ("pic1")
}

When I play the movie everything runs fine except for the button function. This has to be something really stupid. What am I doing wrong?

Simple Stupid Question
i know this is easy and you'll be able to laugh at me..after you help me...please?


so all i need to code is a picture coming from the bottom of the page up when mouse is over a link and then out of the screen when the mouse is off the link


its simple i know.

please help me!?

thank you

*Jenny

SIMPLE & STUPID QUESTION
sorry guys.. i know this is a really stupid question and that probably a lot of persons already asked it.. but im desperated and i have to deliver to my client the job and i have not clue of [ HOW COULD I MAKE THE BROWSER AVOID SENDIND THE MESSAGE "CLICK TO ACTIVITE THE CONTROLER" FOR THE FLASH SECTION ON MY SITE...]

I HOPE SOMEONE CAN HELP ME OUT WITH THIS REALLY SOON!

IM REALLY DESPERATED!

CYA AND THNX

Nub Needs Help - Stupid Simple Question
Hi!

Totally new here and a newbie to Flash...

I need some help...

How do I name my buttons... for example... if you mouse over a button for a sec... there would be a tiny popup that says the name (ex: About Me, Contact, etc..) of the button... I know in Dreamweaver you simply type the name you want in the alt field but not sure how to do it in Flash.

Any help would be greatly appreciated. Thanks in advance!

PiGGiEE

Hellp Its Very Simple And A Stupid Question
How do u put the flash movie inthis board ???????

prateek

Arrays Simple But One Stupid Question
ok here is the code in my first frame, but for some reason, i seem to get a trace back of undefined. Why is that? I would like to basically be able to be able to pull the size of the array at anypoint in time. What am i doing wrong?


Code:
var binary_array=new Array();
var displayer;
binary_array.push(0);
binary_array.push(1);
binary_array.push(0);
binary_array.push(1);
trace(binary_array.lenght);

Simple Mail Form For Stupid (<-me)
Hey! I've tried all I could, but I need advise on how to create a simple mail form with flash and php. I know there's a number of tutorials for this in the web, but none that I've tried work. Here's what I do.

On the send button of the form I've put:

on (release) {
if (subject eq "" or message eq "" or name eq "" or from eq "") {
kontrolle.gotoAndStop(2);
} else {
loadVariablesNum("mail.php3", 0 , "POST");
gotoAndStop("Ausgabe");
}
}

//As can be seen I've created four text fields with the variable names above (subject, message, name and from) "kontrolle" is a 2 frame mc in wich I've put a note to fill out all fields, if one of them is blank. "Ausgabe" is the frame in the main timeline that says "Data send, thanks" etc.

//In the first frame of the main timeline I've cleared all the variables with:

stop();
name="";
from="";
subject="";
message="";

//I then created the following script using word:

<?php
mail("my@domain.de", $name, $subject, $message, "From: PHPMailer
Reply-To: $from
X-Mailer: PHP/" . phpversion());
?>

//(yes, my@domain.de is replaced with my email adress in the actual script ) I saved this as text only, named it mail.php3 and dropped it into the same folder as the .swf on the server.

Now, it all seems to work - I get to the "thank you" frame when pressing send, get to the reminder frame when a field is blank, except... I don't receive any data! The server I'm using is a large provider and does support php. What am I missing?

Sorry for the long post!

Simple Coding Problem But Im Stupid
Im trying to get a mc's visibility to be true/false but i with a lot of mcs i want to define the name of the mc through a variable...

Ive tried this code by putting the instance name of the mc directly into the code and it works.... im just missing something here. Please help.


Code:
stop();
maskee.setMask(mask1);
subName = "multiMenu"; //define var and initial value

_root.subName._visible = false; //set initial state... not working



function mainOver() {
_root.mask1.gotoAndPlay(22);
_root.flareRight.gotoAndStop(1);
_root.flareLeft.gotoAndPlay(2);
_root.subName._visible = false; //this is where nothing happens
}
function mainOut() {
_root.mask1.gotoAndStop(21);
_root.flareRight.gotoAndStop(21);
_root.flareLeft.gotoAndStop(1);
}

_root.multiBut.onRollOver = function() {
_root.subName = "multiMenu";
mainOver();
};
_root.outBut.onRollOver = function() {
mainOut();
};

[F8] Stupid And Very Simple Issue With RANDOM/URL
I have a simple issue related to RANDOM linking ...

For example when the movie reaches a certain frame I wish it would go to a random page on my website ( let's say I have 10 different ones ). So I wish it goes to 1/index.html or 2/index.html .... 10/index.html ( where the digits are folder names of course )

The action I have on the frame is :


Code:
rnd = random(10);
getURL ([rnd]/index.html, "_self")


And of course if doesn't work cause I'm a bit of an idiot and have no clue how to write down correctly but I'm sure you guys can realize what I want. It's very simple, just I don't know how to do it.

Many thanks.

Stupid (and Probably Simple) Array Question
Ok, here's my code, with the key parts in red:


Code:
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(ok) {
if (ok) {
CreateDeals();
} else {
trace("Error: XML Not Loaded");
}
};

var myArrayName = new Array();
myArrayName[0] = "TEST";
myArrayName[1] = "Test2";
myArrayName[2] = "Test3";
myArrayName[3] = "Test4";
myArrayName[4] = "Test5";

function CreateDeals() {
allData = myXML.firstChild.childNodes;
for (i=0; i<allData.length; i++) {

myArrayName[0].DEAL1.Title1.text=allData[0].attributes.title;

..... etc....
I then have a "title" field which is populated from an XML file. I have that part working --- for example, if I change:

myArrayName[0].DEAL1.Title1.text=allData[0].attributes.title;

to

TEST.DEAL1.Title1.text=allData[0].attributes.title;

Then it properly populates "title" with the text from the XML. So the problem is with the array.

If myArrayName[0] = "TEST"; then why won't the above work? I'm sure I'm missing something obvious, but I can't seem to figure it out. Thanks!

Very Simple (and Stupid) AS Button Question
Ok, i have two movie clips in the _root timeline, thumbs_mc (which contains thumbnail images) and info_mc (which contains larger images and stats corresponding to the thumbs). It's basically a photo gallery effect but I'm having troubles getting the two movie clips to communicate. This is the basic code i have in the Actions Layer Frame 1 on the _root timeline:

thumbs_mc.connie_btn.onRelease = function() {
_root.info_mc.gotoAndStop("Connie");
};

Whenever I test the movie, these buttons do absolutely nothing... So what am i doing wrong?

P.S. Sorry for posting such a basic question....

Stupid Simple Action Not Working
This is like flash basics and its not working for me I dont know why and ive done this command before anyway im trying to make my button tell a mc to goto the butthead frame

this.buttheadbtn.onPress = function() {
_root.clear.gotoAndPlay(butthead);
}

Stupid Simple Preloader Won't Behave
Ok this is dead easy i'm sure but I'm stuck!
I have an external swf that is loaded into the main movie. It has a preloder. The movie has two scenes - Preloader and Scene 1. When I test it localy and use "simulate Loading" it all works fine. But once online it won't work.
Check out the photo section here:

aaronsmyth.com

I think it's getting stuck between the scenes. When you click on the photo section the first time it doesn't work. Click on another section and then back to photos it works fine.

heres the code for the preloader:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*322;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndStop("Scene 1", 1);
}

any ideas?

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