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




This Should Be Easy To Answer..please Help Me



Ive done this alot of times before but at the moment im stuck.

I got my main stage.
On that stage I have a movieclip named navigation
In that movieclip I have a button.
When clicked I want the mainmovie to goto another scene.

So on the button in the movieclip navigation i write this:

PHP Code:



on (release) {
gotoAndPlay("imstuck", 1);
}






That didnt work, so how about


PHP Code:



on (release) {
_root.gotoAndPlay("imstuck", 1);
}






Nope, that didnt work either.
Am I loosing my mind or is this incorrect?
If I put this code on a button placed on the mainstage it works.

Please help me out, Im going crazy over this.



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-15-2005, 08:08 PM


View Complete Forum Thread with Replies

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

Easy Question, Hopefully Easy Answer...
How can i create a grid of 20 movieclips? I would like to have 4 columns and 5 rows.
Its going to be used for a drag and drop game. any help would be REALLY appreciated!!

Easy To Answer I Think.. =P
I just have 1 scene who contain 150 frames.

The scene construction = frames 1 to 100
The scene deconstruction = frames 100 to 150

All the content for user interactivity is on the frame 100 (where i have a STOP action).

We also have a button on this frame named "Quit" and when the user click on this button, a MC is called and
ask to the user if he really want to quit.. "are u sure u want to quit ?"

I want this button to begin to play the timeline on frame 101 for the interface deconstruction, but if i tell
this button to play when onreleased, he want to play the next frame on the QuitMC, but i want him to play the frame 101 of the main timeline....

I know it's probably simple, but u know when u dont know a thing... =P

plz help.. and thanks..

FSm

Need An Easy Answer
I'm having a problem with a sound file. When I watch the swf on my computer, the file loads up just fine. However, when I try to watch it online, there is no sound. I think it may be because it's not anywhere in my swf file! The actual mp3 is in a folder on my HD with my fla file, but it's not actually in the fla. I just put this action in a placeholder:

onClipEvent(load) {
loadMovie ("voice.mp3", "this.placeholder");
mySound = new Sound();
mySound.loadSound("voice.mp3", true);
}

So when I test the movie on my computer the sound is there, but when it's online, it isn't. Am I wrong in thinking this is the reason? Whether I'm right or wrong, how can I fix it so they sound can be heard by online viewers? Thanks

- David

Easy Answer
easy question i have a fla that when the movie finishes id like it to load a html page do i just put the action on the last frame? and which action should i use?

thanks AF-1

Should Be Easy To Answer...Hopefully
Okay, I made two sites. A personal one (that is a swf file), and a professional one (that is also another swf file). I have one main intro swf file that links them together. You can either click on one button to go to the personal site, or the other button to go to the professional site.

Okay, I would like the buttons in the main swf file, when clicked on, to play the swf respective to that button. I would like it to be the same window (not like opening up another window). The personal site and professional site have their own preloaders and what not. So, for example, when the "ENTER" button on the main swf file to go to the professional site is clicked, the window automatically goes straight to the preloader of the professional site.

Gosh I hope I didn't make that sound confusing.

Any help would be appreciated. I attached the main file.

Help.... Maybe There Is An Easy Answer
I have a movie with 5 text input boxes and I have used code with currentfocus to determine which text box is selected, but how to I target that selected text box to send text only to it and not the other ones until they are selected

Easy To Answer
Problem:
The user will drag a MC onto the "set" and can drag multiple of the same MC and need to beable to check hitTest(IT CAN(Yes I said CAN) be an innacurate "box" hitTest)

Please Help

## Should Be Easy To Answer
ok, I have a list box.. I am trying to make it, on selection of an item, load the data of that selection into a movie clip.

Example.

listItem 1 = cards/trans_1.jpg
listLabel 1 = Transportation Image 1

When I select label 1, I want it to load "cards/trans_1.jpg" into a movieclip called loadCardMain.

When I trace the data, I get the correct label, but the data is (object Object)


Here is my code.. please see if you find anything wrong with it.

_________________________________________________

cardListener = new Object();
cardListener.change = function(eventObj)
{
var eventSource = eventObj.target;

var theSelectedCard = eventSource.selectedItem;
var theSelectedCardLabel = theSelectedCard.label;

loadMovie(theSelectedCard,"this.loadCardMain");
trace ( "You selected "+theSelectedCardLabel+".");
trace ( "You selected "+theSelectedCard+".");
}
cardList.addEventListener ("change", cardListener);

________________________________________________

Easy One For You To Answer..hopefully?
hi guys and girls.

i was wondering if anyone could point me in the direction of how to achieve the "pop up animation" in this game..

http://www.bbc.co.uk/skillswise/word...ons/game.shtml

during the game, when you click on either the a,b or c. you get a "pop up" that appears above the background..its not a proper "pop up" as in the javascript ones.

its something id like to achieve....can anyone help?

id be really greatful for any help..

thanks

Probably An Easy Answer...
OK... I'm working on an animated flash deal for the top of my site that I'm getting to roll out, but I need to figure out how to only have a certain part of the audio play on the first visit.

www.theprepsite.com is the shell and is up right now... the promo audio behind it will get on people's nerve if every time they hit the home page, it played. Is there a way to have a cookie get dropped that will be able to tell the flash system NOT to play a certain part of the audio if it's already been played beforehand?

I guess what I'm looking for is a play this, drop a cookie, don't play it upon return deal???

Thanks!

Robert
www.theworldwideradionetwork.com
"The Only FREE Voiceover and Production Exchange On The Net"

Probably An Easy Answer...?
Ok, so I've used and become pretty good with PHP lately, so I decided to tinker with Flash. I'm using Flash MX and am having some troubles.

Specifically, I have an input called "search_for" in a flash form that I want to pass to my php file called "view_info.php". I've got it working except, the script spits out a bunch of junk I don't want ,(in purple text) below:

view_info.php?search=search&search_for=?FrameLoad=100&submitForm=%5Btype+Function%5D&sear ch%5Ffor=45124

What I want is:

view_info.php?search=search&search_for=45124

Or some way to send info to my php script...

here's my AS code, I tried the blocked out send and load way too, but it didn't work at all, (nothing happened), please help?


PHP Code:



submitForm = function () {
    getUrl("http://www.mysite.com/public/view_info.php?search=search&search_for="+search_for.txt, "_self","POST");
    //proofLVs = new LoadVars 
    //proofLVs.search_for =  search_for;
    //proofLVs.sendAndLoad("http://hiccup.no-ip.com/public/view_info.php", proofLVs, "GET");


This Should Be Easy To Answer
If I have on a button

on (release) {
_root.square.gotoAndPlay(1);
if (girl.girl2._currentframe == 1) {
girl.girl2.gotoAndPlay(2);
girl.girl2.te = "Business Information";
} else {
if (girl.girl2._currentframe == 24) {
girl.girl2.gotoAndPlay(25);
girl.girl2.te = "Business Information";
}
}

But I want a new sentance (Enter) after Buisness so it reads

"Business
Information";

How would I write the Enter into the code

Thanks

Should Be Easy Answer Please Help
I got the embed script stuff fixed, but i cant seem to get my flash file aligned to the center of the page now, please tell me what and where i need to add to get the file centered on the webpage

Easy Answer?
I dragged a checkbox component onto my stage, gave it a unique instance name, and labeled it. To accomodate the width of the label text, I ensured that the component properties had a width set to 450 and a height of 22.

However, when I test the movie, what -was- a nice small checkbox on the stage becomes of an enormous size. I'm referring to the actual (maybe 10 x 10px) box the checkmark goes in -- it seems more like 100 x 100px when I test the movie.

What am I doing wrong?

Thanks,
kentara


There's Probably An EASY Answer...
Hi guys:

I'm new to Flash.
I've made a button. When I save it and publish it, the entire background of the button appear on the page as well.

How do I save JUST the button?

An example is here:
www.delaneyassoc.com/main1.html

Thanks for your help :)

Probably Easy Answer - But Pls Read All...
i'm trying this forum room in hopes of getting the answer i need. i don't mean to sound like a smart a-- but please read this carefully before you answer it. i do appreciate any help.

i use flash 4. i'm trying to make a presentation in flash similar to what you would do in power point, where the show is presented live and the presenter would tap enter to advance to the next "slide."

so far i have 2 scenes. on scene #1, i have a button that when you hit ENTER, it takes you to scene #2. after i export the movie as a .swf file and also an .exe file, i close flash, then click on the .exe file.

but when it opens up, it keeps looping between scenes 1 and 2. obviously this is not what i want. when i open it up, i want it to just be on scene 1, then i hit ENTER and it will go scene 2. the only way for me to make it work is to go up to the top of the window and uncheck the LOOP option to stop it. but there has to be a better way than this.

is this an action-script problem or what? before publishing the movie, i uncheck the loop option but it still does it.

thank you for your help.

A Really Easy Question That Anyone Can Answer :(
how do you put flash on your website? :X

Really EASY Question... Just Need An Answer. ;-)
Okay... So far I went into Photoshop and made a cool background. Then I made the same background but took out a piece of it. Essentially I want that one piece to fade out in my Flash movie. But since it's in Photoshop, I've got all these layers and filters happening... Anyway, I want the two pictures to fade from one to another and I'm assuming that's the "Tweening" part? I'm not sure. I think I've read everything about tweening and tried all the options for it... This has got to be real easy to do... just need help starting out with it.

Thanks for the replys... hopefully! :P

Quick And Probably Easy Answer
What is the equivalent of GoTo and Play; for objects. I want to click button1 and have movie1 goto frame 10 and play. The standard goto seems to only allow manipulation of the movie the button is in. Thanks!

Easy One, But Need Answer Sooon
I created a flash movie but I want it to stick on the last frame instead of going away. I have looping set to false, but at the end of the movie, it seems to just disapear. I want the last frame to stay visible... I am using Flash MX. I have done this in the past, but for some reason cannot remember. Please if anyone knows how to do this i need to have this project completed by the days end. THanks a million!

Probably Super Easy To Answer
I'm an actionscript expert but I'm not certain I know how to do this simple task.
How can you make flash and/or html be able to output a txt document or some other text file type that can be loaded into flash for use in textboxes. It's for a friend who want's to edit his site without going through all the opening of flash and re-exporting and uploading ect., and who's server don't gots no PHP.
I know of gets and puts and forms and junk, but I don't know exactly how to use them.
Much thanks in advance to any that respond.

Easy Question, But I Need An Answer Please
If i create a preloader, should i make it a SEPPERATE scene and have it jump to my 1st scene? or should i just make it within my first scene, but in the first few frames?

Ex.
If i create a preloader, and the first scene that i want the viewer to view is called "ABOUT" after the preloader is done loading, should i make sepperate scenes for the "PRELOADER" scene and the "ABOUT" scene? or should the preloader be within the "ABOUT" scene?

does this make sense???

I Bet This Is A Really Easy Question To Answer....
but i am just clueless to see how this works, if anyone can help me i would be grateful.

I am making a kiosk in Flash MX, but i cant seem to fathem out how the "loadmovie" function works (see here; http://www.cbtcafe.com/flash/loadmovie/loadmovie.html)..i cant find one for MX.

I am only able to understand using the scenes in flash at the moment. For example if i was to make 3 buttons. one for resume, one for portfolio and one for contact. Do i need to make THREE SEPARATE .fla files for these...how do i load them into the movie in the right place?

2 Hopefully Easy Questions To Answer
My first question is about loading movie clips. What i have is one main movieclip, and on top of that i want the new content movieclip. But i don't want it to replace the background. How would you go about that? With levels? I'm not sure on how to do levels if that is the way that is best to go about it.

The other question is i have a rollover menu, that slides in. On the rollOut of the slid out part i want it to gotoAndPlay("Menu_down"), but for some reason its not working, and i've been trying to figure it out for quite sometime now. Thanks in advance!!

-Corey-

[CS3]Possibly Easy Answer
Hello,

I'm working on a flash project, it's a network map that shows connectivity to the world through some action script and masking to different countries.

The one thing that I'm having problems with is being able to clear the line connecting from one country to another by clicking a different country, but instead when you click one country and another both movie clips stay stopped (as stated in my action script)

Here's a link to my document to get an example of what I'm talking about.

http://vpls.net/networkmap.html

Help A Newbie.. EASY TO ANSWER-
Hello all, you must answer me in MAJOR LAYMEN TERMS-

I have a flash website that needs updating- There is a looping background of pictures fading in and out, after the last picture: it starts again from the beginning. The problem is, a client wanted a sound file playing with an on/off button- It plays automatically when the page loads, the PROBLEM is that after the looping BG starts the second loop, the BG audio starts again! (Whether it’s playing or NOT) - Tell me if I am not telling you this correctly or not.

I'm Desperate!!!!!!! .. please ..

Joe-

Please Help: An Easy Answer For The Mods Hopefully
Please see the attached SWF that was taken from this site somewhere. I cannot find this again, to print off the tutorial, can somebody please help.

Many Thanks.

Easy Question But Need To Be Sure Its The Right Answer
Hello guys and girls,

For my site...I have 4 buttons on the homepage. Each button leads to a scene that is very similar the only difference is that the text changes and an image changes location.

My question is on preventing a huge file because the scene itself requires 5 larger pictures.

If i re-use the same pictures but in different frames within the SAME scene will each picture even though used 4 or more times only have to load once?

And further if their the same pictures but in different scenes will they require more than one load?

----

Now i have to clarify though. Each scene is a series of 5 pictures scrolling left in order to make a movement effect, with the text that comes up being different each time, and the item that is doing the moving is the one changeing locations. does this change anything?

Thank you very much for the help.

Tyler

Please Help: An Easy Answer For The Mods Hopefully
Please see the attached SWF that was taken from this site somewhere. I cannot find this again, to print off the tutorial, can somebody please help.

Many Thanks.

Could Someone PLEASE Help Me With This, Should Be Real Easy To Answer
I'm sorry if this has been answered before, I looked around at previous posts and didn't see it anywhere. I'm curious if anyone knows of a Flash tutorial explains how to make a image based menu/fader that has buttons to navigate each image and when you click an image it's a link to somewhere on a website. An example of what i'm talking about can be found here:

http://www.gamespot.com (The thing with the Go Now! button on it)
http://www.nvidia.com/page/home.html ( The thing with 1 2 3 on it )

Scripting A Button... Easy Answer?
I have dynamically-generated movie clips named "0" thru "5" (via "duplicateMovieClip"). Inside each is a button. I want to script any of these internal buttons to be able to reference the specific clip in which it resides. I assume there is a very simple answer to my question. My guess: Would the reference simply be ("") or (this)? Many thanks.

VERY Newby, But Probably Easy To Answer Question
I'm at the very beginning of understanding the basics of 3d Flash Animator. I wanted to start with, what I thought would be, a very simple exercise: making a movie that shows a 3d text coming from behind you, passing you, and (almost) disappear in the distance in front of you. In other words: a simple movement of an object along one line passing the 'camera' position (which is far from difficult to create in '3D Studio Max' for example). I have no idea however how to place/move the 3d text towards/from the camera position at keyframe 1 in the first place...

If not a straight answer to this question, are there any tutorials that can show me the way?

Thx :-)

People Here Answer Only Easy Questions
I am trying to print two pages. My .swf file size is 45kb. Everything prints ok, but the size of the printing document is 2.4mb. My computer hangs. I am printing just text. I have tried all workarounds, but nothing seems to work. Is there anyway I can make the printing file size smaller?

Someone tackle this problem.

E-mail Please Answer Easy Question
Hi
i dont have time to test my movie online, but can anyone tell me if making a link to an email address is the same as making one to a webpage... like this

getURL("some1@something.com")

is that right??

thank you

Moving MCs Around Using Actionscript (easy To Answer)
I don't motion tween stuff around much as I think it's a bit annoying. But I need to move an MC (with 100 easing if possible) using actionscript; from youe could say 'currentpos' to 'anotherpos'. Doesn't matter what currentpos is, the MC will be dragged all over the place, what matters is getting to where it needs to be. Also need actionscript to move it in and out so it gets bigger/smaller.

It's amazing, the gaps in my Flash knowledge. I'm glad no-one on this board knows I'm secretly Rob Cohn of SC Web Design.

Easy Question That Needs An Answer Fast
I've got a small problem. I've been building (and learning how to create) a Flash site. But when I preview or publish it, all the scenes in my movie just flip by every second. I'd like each scene to load at a stopped position, and not play to the next scene. There's probably an easy way to do that...but I'm not sure what it is.

Let me know if I need to be more clear.

Thanks

A Super Easy Question That I Can't Answer
Of course I am sure everyone and a monkey can remember this... everyone but me. *shake my head*

What is the actionscript to load and external .txt file into a dynamic text box on the stage... and does the text file need any special characters at the beginning?

If You Know Actionscript You Could Answer My Easy Question
I have made a mp3 player that loads external mp3's. I need to make it buffer for dailup connection though. I am not fluent in action script yet so maybe you can help.

Action Script needed=
getting if percentLoaded (variable)= 25% of the song loaded to goto and Play frame (43)

Here is the script that it is in:::

function loadFile() {
if (sound_1 instanceof Sound) {
}
_root.createEmptyMovieClip("holder", 1);
sound_1 = new Sound(holder);
vol = 100;
sound_1.setVolume(vol);
sound_1.onLoad = function(success) {
if (success) {
sound_1.stop();
} else {
clearInterval(checkProgress);
}
};
sound_1.onSoundComplete = function() {
loadStatus.text = "";
loadFile();
playing = true;
paused = false;
stopped = false;
dummy = 0;
sound_1Position = 0;
};
var loadUrl = checkField();
fileURL.text = loadUrl;
sound_1.loadSound(loadUrl, false);
progressBar._xscale = 0;
loadStatus.text = "loading streaming audio.";
checkProgress = setInterval(checkLoad, 50);
}
function checkLoad() {
var obj = sound_1;
var tBytes = obj.getBytesTotal();
var lBytes = obj.getBytesLoaded();
var percentLoaded = (lBytes/tBytes)*100;
progressBar._xscale = percentLoaded;
if (lBytes>=tBytes) {
clearInterval(checkProgress);
}
}
function removeSound() {
sound_1.stop();
delete sound_1;
holder.removeMovieClip();
loadStatus.text = "";
fileURL.text = "";
Selection.setFocus(fileURL);
}
function checkField() {
if (fileURL.text != "") {
return fileURL.text;
if (this.precentLoaded=25) {
gotoAndPlay(43);
}
} else {
if (songList.length == 0) {
initSongList();
}
return songList.shift();
}
}

thank you for your time
Patrick

Kind Of Complex But Probably Easy To Answer...
I have a barney style menu se up. My problem is getting it to load the text and other areas of the website. each button has the script to make the menu roll but when i add a get variable to load some text or goto scene x it goes spastic and nothing works. Help?

Sooo Easy I'll Get An Answer In Seconds (AND)
This is an easy one... but only when you know how.

What operator do I use for {AND}?

eg:

Code:
if (myButt == "good" {AND} myFace == "good" {AND} myBeep == "good") ...
Cheers,
-Luke

I Know This Is An Easy Answer What Is The Code To Download A PDF?
What's the code if you want somebody to be able to download a PDF? I have the memory of a 80 year old!... thanks

Very New User, Probably Super Easy Answer...
Ok so I have my main 'stage' set up.

I have 1 movie clip (some wheels turning) for which I use twice on the stage.

I then have another one that is the car body with the wheels cut out.

In order it goes Stage | Car | Wheel 1 | Wheel 2

Edit: [I did think of putting the car in front of the wheels and cutting the wheel white space out from the car and using PNG Transparency, can I do that??]

When I test it I get the square white background of the wheel movie spinning round also.

Now I figured I would but I have absolutely no idea how to get rid of it, I've hunted around for the solution looking for various transparency settings but it appears that if I use things like Alpha it changes the transparency of the entire clip when all I want to get rid of is the background white.

So help please!

Thanks in advance.

Saroeb
Flashing Noob

Easy Question To Answer, Your Opinion.
Hello,

I am working on something which calls up text. I have tried a few text formats, and I noticed they work pretty much the same. I was wonder what other people's experiences have been with calling up text.

Which text formats do you use, suggest using, and why?

For me, I see a regular .txt file is sufficient enough, but one downside is that it won't carry over (or at least it won't for me) other languages like Chinese, Japanese, Korean, Arabic, etc...

Target Two Clips - Easy Answer
I am trying to load the same randomly chosen image into two separate clips.

_root.BaseImageMC1.loadMovie("BGimage"+(random(4)+ 1)+".jpg");
_root.BaseImageMC2.loadMovie("BGimage"+(random(4)+ 1)+".jpg");

Of course, this code often chooses two different images. Dang it all, I can't figger how to get the same one in both.

Can someone show me how to set a variable and apply it to both MCs?

Thanks much!!
sumsum

This Will Be Easy To Answer -- Brush Tool
Hi ...

I was just wondering how to change the size of the brush tip in flash. I've looked around and can't figure it out.

Thanks.

ROUND 2: Easy Answer For Someone Who Knows Flash
I posted this earlier and got the responce below but it doesn't work with Flash 4.0. I need another answer. 4.0 Requires you use the actionscript editor and does not let you manually put in code as far as i can tell. Can anyone help?
__________________________________________
OK... I have a movie clip with keyframes back to back... 6-10 of them; all with STOP actions. (Movie Clip 1)

On each of the keyframes I have a movie clip that must play through. (Clip 2 , 3, 4, etc..) On the last frame of each clip I want the action to tell "Movie 1" to play the next frame. TellTarget blah blah. I just can't remember.

I know you have to use something like _parent or _root.
HELP!!!!

Jake

_________responce______________

Hiya.

You need to name the instances of the movie clips so you can use them in code
the one containing the keyframes with movies in, lets say thats called "mov1"

Put this code at the end of each MC

_root.mov1.play();

____________________________________________
/ it's close but i need more

Jake

Easy Question (I Just Can't Find The Answer)
I know I've seen this posted somewhere online, but I can't remember where or what it said about it. I just switched to AS3 and I don't recall getting this error before, then again who knows.

Anyway, why can't I load numbers in a dynamic text box from an XML document? I am loading an icon and when you hover over it you see a "tooltip" that is supposed to say "3D Work". However, it only comes out as "D Work" and the XML says "3D Work" ?

How can I fix this?

Thanks!

$5 For The First Answer - Easy Question / FLA Attached
So, I got a friend of mine to help me create a simple little popup. If you can answer my question..feel free to use it for whatever you might need.

Anyway.. I'm a total Flash noob. I can't, for the life of me, figure out where the actionscript for the button is. I need to change path that the button is linking to and have looked everywhere.

At the moment, it's linking to file:////whatevernetworkcraphere

I'll PayPal $5 to the first person that answers.. if it's quick. I'm workin' against the clock!

Anyone? Anyone?

Thanks!

Easy Question... Can't Find Answer...
Hi fellow flash gurus... (I don't include myself in this group, but I'm trying to get there..!! )

I've got a quick question: What happens when/if someone visits a site I've done, with Flash Player 7 AS2, and this person has FP5, or FP6 AS1, etc, etc...

It's hard to test since I've only got one PC, and I don't have faith (due to past problems..) in uninstalling a newer version to install an older one, vice versa, and so on....

Will they be redirected to MacroMedia site, to install the required version, or will they simply watch an empty page, since they can't read the content, or will they see my site, but with some functionality not working..???

Many thanks..

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