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








Dialog Scene That Reacts To Clicks


Hi,

I'm very new to ActionScript and use Flash MX version 6.0. I've been searching the web for hours for help, but couldn't find an answer.

I want to create a movie in which two persons talk to each other. There is no sound, there are just speech bubbles that appear after each other. I had no problem doing this with simple keyframes.

Now as everybody has a different reading speed I want to give the user the possibility to click (either a button, or just on the screen) and get the next bubble displayed. Like in dialog scenes in games.

From what I read so far it might be a good idea to make movieclips or scenes out of my single dialog parts. I just don't what which is better and what to do with it then.

Any help is very welcome.

Thanks
Sandra




ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 09-25-2008, 09:34 AM


View Complete Forum Thread with Replies

Sponsored Links:

Handling Double Clicks And Mis-clicks In AS3
Hi

I am making point n clicked based game. From time to time my moving objects stop and I assume this is happening due to me not handling double mouse clicks and mouse mis clicks. I would like to know how I can handle double click and mis clicks in AS3.

Thanks

P.S. To get a better understanding of what I mean, play my game at:

http://freelancer.987mb.com/download/fla/Gool/Gool.html

Its still under development.

View Replies !    View Related
HitTest Reacts To MC's And Graphics, WHY?
I have an item which I want to be able to be activated on press, so long as the mouse is not on a movieclip. Problem is , my hitTest function registers graphics and movieclips the same. I have attached my script. Please Help! checkMc comes back true for both graphics and movieclips. How can I get around this???

the code below is located on frame 1 (main timeline)
-------------------------------------------------
//Clickable areas function
function menuPop(){
if (hitTest(_xmouse,_ymouse,1)){
_root.checkMc = true;
_root.within =1;
}else{
_root.checkMc = false;
_root.within = 0;
}
}

View Replies !    View Related
Animation That Reacts To Sound?
is it possible to do this with flash?

I was thinking it would be cool to have my site intro just be my logo bumping to some music.

I guess you could try and just sync the movements with the BPM, but that would be a pain in the ass.

Thanks.

-D

View Replies !    View Related
Orbiting Text That Reacts To Mouse
What I'm looking for is an example or tutorial on how to create an orbit of different text fields that react to the mouse on(rollOver) so that which ever text field you put your mouse on, moves to the front of the orbit. My searches only bring up how to orbit individual characters of a word, but I want multiple words orbiting a sphere. I've seen it done before, and I'm pretty sure it was on Flash Kit, if anyone can point me in the right direction, that would be greatly appreciated.

I'll keep trying the forum search which is timing out for me right now.

Thank you in advnace.

View Replies !    View Related
Flash Header Which Reacts To Page Url
Hi all,

I recently started re-developing my site and first off decided to do it full flash, however now after doing some more research I've found that this will cause a lot of problems when it comes to SEO, so now the design is going to be changed to a mix of flash and php.

My question is.. the original flash had an onRollover function and a onRelease function set up for buttons home, services, portfolio and contact and changed their properties depending on which button was clicked and also disables the selected button, is there any way of telling flash where it is via url and performing the same action rather than it re-loading default values every time a new page is click.

Im sure there has to be a quick way around this but cant seem to find anything anywhere.

Any advice would be much appreciated.

Thanks,
Mark.

View Replies !    View Related
Visual Effects Which Reacts To Sound
Hi.

I have a client who wants some sort of visual effect (perhaps like in iTunes) to react to the audio of an MP3, in this case a spoken word radio advert. Does anyone know if you can do such a thing in Flash?

Many thanks.

Gary.

View Replies !    View Related
Flash Reacts To Audio Played
Hi all,

I just saw a cool movie clip that was created. The artist did it flash.

He got alot of letters to move in motion to the music that was playing in the backgorund. I am very interested to learn this, but i have no idea where or what to search for. Pls help, if anyone knows what i should be looking for.

Thank you

View Replies !    View Related
Loading A External In A Parent Which Is In A MC Which Reacts To A Button...
Me again

www.lynx.ch/hw/menu.html

Reacting to the buttons its an MC. If you click Portofolio and get there you will see that a external swf its playing. But this is loading in the moment the main file its opened. What I want to achieve is that the external file loads just in the moment the portofolio button its pushed. The same for the other sections. When I push the links button another external file it is loaded.

the script to which the buttons react is

ButtonPortofolio.onRelease = function() {

FrontMC.easeMe(348, undefined, 10);

backMC.easeme(400, undefined, 15);
If anybody has an advise, please let me know

Thanks

View Replies !    View Related
[F8] Creating A Button That Reacts Differently Based On Time
I am trying to get a button to react differently based on the amount of time it is held down. Meaning if I press and release the button it will, let’s say, got to a certain frame. But if I press and hold the button for 10 seconds it will bring you to a different frame, or start an animation. I’m still very new to flash and I am not having any luck finding an example like this in any of the books I have. Any help or guidance would be greatly appreciated.

View Replies !    View Related
[F8] Creating A Button That Reacts Differently Based On Time
I am trying to get a button to react differently based on the amount of time it is held down. Meaning if I press and release the button it will, let’s say, got to a certain frame. But if I press and hold the button for 10 seconds it will bring you to a different frame, or start an animation. I’m still very new to flash and I am not having any luck finding an example like this in any of the books I have. Any help or guidance would be greatly appreciated.

View Replies !    View Related
Event Type Reacts On Textbox Inside A Movieclip
Hi.
Ive got a problem where i have an event listener to check if i click on a movieclip. Inside that movieclip there is a textbox. so when i click on that textbox it takes the instance of the textbox instead of the movieclip.

My problem is thawt i want it to react to the movieclip even if the textbox was clicked. I know this can be done but ive just forgotten how :P hope you understand my problem

Forsan

View Replies !    View Related
Custom Cursor That Reacts To Mouse Interactive Zones,
I have a custom cursor, so I have lost the pointer icon changing to a hand icon when it is over a symbol with mouse interactivity.

So I am trying to think of ways of getting the custom cursor react as such.

Is there a property that represents when the mouse is over an interactive symbol?

Otherwise, every single interactive symbol will need to detect mouseOvers and change the Cursor_MC. I am really hoping to avoid this as I have many many mouse-interactive symbols and hunting them out will be painful.

View Replies !    View Related
Function Reacts Differently If Value Passed In As Variable And Not Hard Coded
Ok, i have a function that is moving a mc in a spiral.

Here is the code:


Code:
//rotz(dot, 300, 300, .1, 1.004);
rotz(dot, origin_1_x, origin_1_y, .1, 1.004);

function rotz(who,cx,cy,spd,exp){
trace("first x "+who._x);
trace("cx "+cx);
dx = (who._x -cx) * exp;
dy = (who._y -cy) * exp;
trace("dy "+dy);
trace("equation " +(cx+((Math.cos(spd) * dx -(Math.sin(spd) * dy)))));
who._x = cx+((Math.cos(spd) * dx -(Math.sin(spd) * dy)));
who._y = cy+((Math.sin(spd) * dx +(Math.cos(spd) * dy)));
trace("second x "+who._x);
}



right now i have origin_1_x set to 300, so it should act the same as if i had 300 hardcoded (which is currently commented out).

When I hard code 300 in there it works great. but since i will let the user decide what the origin will be, i want to pass a variable instead.

currently, when i hardcode 300 in this is my trace output:

first x 246.95
cx 300
dy -66.3644
equation 253.629273943845
second x 253.6

However, when i pass the variable instead, this is my output

first x 246.95
cx 300
dy -66.3644
equation 300-46.3707260561545
second x 246.95

x gets passed in just fine (as cx is 300), however, the assignment of changing the value of who._x doesn't work at all. and the equation brings back a different result...

anyone else encounter something like this before?

any ideas?

thanks
ty

View Replies !    View Related
Is There A Way To Do Something If The User Right-clicks And Clicks "forward"?
i have a game that im submitting somewhere. and i dont want anyone cheating by right-clicking and going forward. i know you can disable the menu, but for some reason once it is submitted, the window in which it is viewed in puts the menu back..and i have no control to edit the html in it...so, is there anyway to fix this? or , is there anyway to do a certain action when "forward" is clicked? thanks.

View Replies !    View Related
[scroll] Scroll That Reacts To The Mouse Wheel
Hy guys,

Do you know how can I make a scrollable text that reacts to the mouse wheel. Here you can see an example: link here

Look at the news section, or at the about us section.

The majority oh the text scrollers on the web didn't react at the mouse wheel. I found this site and I was surprised when I found that I can scroll with my mouse wheel.

Hope some one knows how they do that.

Thx.

View Replies !    View Related
TEXT Button ONLY Reacts On Hovering Over TEXT
Hey guys..
I have a menu with different links (music, graphics etc..)
But the buttons are just plain text, that I converted into movie clips.
The thing is, when you hover over the text, it's only when you touch the actual letters, that the actionscript responds.

For an example; the white space inside an e doesn't respond to the actions.

How do I fix this?

Thank you so much!

View Replies !    View Related
FF Reacts Weird With "www"
So I'm building this site: http://www.steamitclean.com/catalog

For some odd reason when you view the site in FF at this address:
http://www.steamitclean.com/catalog/
the Flash navigation disappears.

but when you view it a this address:
http://steamitclean.com/catalog/
it shows up. I'm using the swf object to embed the code. It was setup with the original flash code but I changed it hoping it would fix the problem but I got no luck.

Everything works perfect in IE for both "http://" & "http://www".

Anyone experienced anything like this ever?

View Replies !    View Related
Print Without Dialog Box?
I am wondering if anyone know if I can make a print button and have it print just the frame I am on and NOT pop up the print dialog box? I just want to click the button and have it print my current frame.

Please help if you can
Thanks
Chad

View Replies !    View Related
Download Dialog Box
I want to link a button in my flash movie to a file for download. The user hits the button to open the download dialog and can duly download a word document from my site.

Any help would be muchos appreciated

Ciao

Luigi

View Replies !    View Related
File Dialog Box
Dear All,

Is it possible to do a file dialog box in flash? For example, I have a button called "Browse", when I clicked on it, I want it to pop out a Dialog Box that show the files in the system for user to choose(something like a Window's File Dialog box). Any help is appreciated.

Thankz

View Replies !    View Related
Save As... Dialog Box
hi, i'm linking a pdf file to a button in my movie, but instead of the pdf loading in a new window, i want the user to be able to save it, equivalent to right clicking and "save target as.." with an html link. does anyone know how to do this?

View Replies !    View Related
Transparent Dialog Box
Iv been looking all over in the movies / tutorials and cant find what I am looking for.

I wanted my site to have the same background and on mouse release of the download button for example, have that page just open up a slightly transparent dialog box with transparent scroll bar and links / text / graphics etc in it.

I found a .fla with one thats kind of sloppy but when you click downloads it opens up but then when you click members it opens the members page on top of the downloads (and you can still see the downloads page behind it.

I'd rather just find a new .fla to see how its made unless someone here is kind enough to teach me.

View Replies !    View Related
Dialog Boxes
Is there anyway to have a Windows Confirm Box Pop Up with out using JavaScript?

This is What I'm Using:

on (press) {
getURL ("javascript:confirm('Do You Want To Quit?')");
}

Is there anyway to get around the javascript and have the flash play create a box like the one above?

Thank You,

Josh

View Replies !    View Related
Save As Dialog
Hi everybody.
I'm a beginner in Flash and I'm trying to make a Projector that works like a picture gallery.
What I need is that the user is able to save a picture on from the CD to his computer. I've seen several press CD's that were made in flash and have that option (The user clicks on the Save button in the movie, and the Save As dialog for the selectd picture appears).
Now, I've succeded in doing it with a .bat file and fscommand. But, by doing that I have to make a .bat file for every picture and the DOS prompt window appears every time I call the command.
Is there another way of calling a Save As dialog? I assume there is because on other CD's there are no .bat files and they still have the Save As dialog option.

Pleas help. Thank You.

P.S. I'm using Macromedia Flash MX.

View Replies !    View Related
How To Get The Save As Dialog Box?
I have to create links on my page to have the option to save Autocad files.

What code do i put on my link????

Help is appreciated!!!

Thanks!!

View Replies !    View Related
Getting The HTTPS Dialog
hello guys! i was wondering if anyone of you know how to get the settings dialog with the HTTPS box that says i am entering a secure connection or so?....and yep i am loading some php script from an HTTPS connection

thanx in advance

View Replies !    View Related
[F8] Dialog Box In ActionScript 3
I'm not having much luck figuring out how do create a dialog box in ActionScript 3. I'm working in an AS3 project (there's no Flex being used) and I'm trying to create a simple dialog box.

I've added the framework.swc to the library path and can now see/access the PopUpManager, TitleWindow, etc. but I can't get anything to show up on screen. Every tutorial I find online for using these classes in AS3 are centered around Flex. Can anyone tell me how to create a simple dialog or point me to a good tutorial or book? I would greatly appreciate it.

View Replies !    View Related
Selection Dialog Box
I am writing in AS 2.0 and need a dialog box.

I originally wanted to add radiobuttons to an alert, and realised that was a no-go.

I the messed around with the window component for a while, but I can't seem to add components to the window either dynamically or otherwise. All I can do with the window is load an external swf.

Is there an obvious way to prompt a user for a choice (of 8 in this case)?

View Replies !    View Related
[CS3] How To Create A Dialog Box?
Can anyone help me? I am working in Flash CS3 using AS3and would like to create a dialog box which will appear if a user clicks the "done" button without having started a task. I have tried a Google search on this, but no luck.

View Replies !    View Related
Modal Dialog In As3?
I have a game I'm working on where I need to prompt the user for a yes/no answer. I need a modal dialog! Minimally, it should let me prompt the user for a yes/no answer. It also prevents interaction with any component or movie on the screen behind it. Ideally, it would let me specify a few different buttons.

In a perfect world, it would also be easy to use and stylable.

Can anyone recommend a good script for this?

View Replies !    View Related
Alert Dialog?
So I'm working on a project in Actionscript 3.0 using Flash CS3. I've come to a point where I'd really like to just quickly and easily give the user a confirmation box. In actionscript 2.0 I could do this using the Alert class in mx.controls. However it seems no similar control exists in actionscript 3.0, and any amount of googling just leads me to actionscript 2.0 references or flex references.

View Replies !    View Related
Dialog Box Questions
I have a dialog box type object that displays fine and hides when I hit the button, but my problem is that I don't want to add an event listener for the dialog click. Instead, there is a function waiting on the answer for the yes or no. I notice AS2 has sleep(), which I could have used here. It looks like it is gone. Is there an equivalent way to keep delaying until the dialog is clicked?

Many thanks for any input!

View Replies !    View Related
Customizable Dialog Box
I'm a new user and I'm trying to create a simple flash dialog box.
I have a button that, when clicked, opens a confirm message box (a movieclip I realised). The possible answers are "Ok" and "Cancel". If "Ok" an action is performed. In both cases the dialog box is closed.

The problem is that I don't know how to get from the calling script the option selected in the dialog box:

Button script:
on (release) {
// Call the function for the confirmation
_root.request("Delete item?");
}

Function:
function request(message) {
// Attach the dialog box and name it curRequestWin
_root.attachMovie("requestWin", "curRequestWin", 100);
// Set the text
curRequestWin.testo.text = messaggio;
// Close dialog box
curRequestWin.removeMovieClip();
// Returns the choice
return(_root.requestResult);
}

Button OK in the dialog box:
on (release) {
_root.requestResult = "ok";
}


Well, the function returns nothing, I think because the scripts are asyncronous and the return instruction is performed before the user can click OK.

I'd like a simple solution like a messagebox in VB but I couldn't find anything


Thanks in advance

View Replies !    View Related
Print Dialog
How can I get rid of the windows printdialog? I'm using FlashMX2004, when I print a movieclip the windows printdialog appears. I do not want this to happen, I want the print to be sillent. No dialog for the user.

Can somebody help me?? If it's not possible with actionscript, is it perhaps possible with third-party software, or maybe a change in the windows registry?

Thanks in advance

View Replies !    View Related
Dialog Box In Flash...?
hi all,

i m called a 'confirm' dialog box on a button click:


ActionScript Code:
confirmValue="false";

btn.onRelease = function() {
fscommand("confirm", "do u want to continue?");
fscommand("getConfirmStatus");
if(confirmValue=="true") {
getURL("javascript:alert('true returned')");
} else {
getURL("javascript:alert('false returned')");
}
};


in the html file i wrote an Do_FSCommand() function that fires a confirm box and sets the flash variable using SetVariable() funrion of flash object....


well, It gives a confirm box....but....before selecting ok or cancel it gives alert box with 'false returned' meg...

the flash code doesnt hangs up until i select confirmation.....


does any one have sol'n for this problem..plz help me...

n thnx in advance...


regards,

sushil

View Replies !    View Related
Printing Without Dialog Box
I would like to print from the .swf without seeing a regular OS print dialog box. Is there anyway around this? I am currently using the print command with bframe.

View Replies !    View Related
Print Dialog Box
I want to print an item without the dialog box, just have it automatically
print. Does anyone know how to do this? I am using Flash 8 Professional.

Thanks.

Dave

View Replies !    View Related
Adding A Dialog
hi. i have a problem. im trying to make a flash video for a school project. the audio file is however already recorded. so i add the audio (4 minutes) to a layer in flash, and i start drawing. but then i realize, that when trying to play the movie, to check as im trying to synchronize audio with video, i realize that the audio file starts playing only if i play the movie from the first square, and it doesnt stop if i just stop the movie, it keeps going, which is really annoying as i then have to listen to the whole 4 minute thing again and again.

how do i stop this from happening? how can i start and stop the audio with the movie, and being able to play the audio from any frame?

please help me.

View Replies !    View Related
Adding A Dialog
hi. i have a problem. im trying to make a flash video for a school project. the audio file is however already recorded. so i add the audio (4 minutes) to a layer in flash, and i start drawing. but then i realize, that when trying to play the movie, to check as im trying to synchronize audio with video, i realize that the audio file starts playing only if i play the movie from the first square, and it doesnt stop if i just stop the movie, it keeps going, which is really annoying as i then have to listen to the whole 4 minute thing again and again.

how do i stop this from happening? how can i start and stop the audio with the movie, and being able to play the audio from any frame?

please help me.

View Replies !    View Related
SaveAs Dialog Box
Hello all,
How can i open Saveas dialog box in flash, if i want to save dymanic textfield text in a file.
Please help me
thanks in advance

View Replies !    View Related
Modal Dialog In AS3?
I have a game I'm working on where I need to prompt the user for a yes/no answer. I need a modal dialog! Minimally, it should let me prompt the user for a yes/no answer. Ideally, it would let me specify a few different buttons.

In a perfect world, it would also be easy to use and stylable.

Can anyone recommend a good script for this?

View Replies !    View Related
Save As Dialog Box
Hello everyone. Thanks in advance for any help.

Is there any way in flash using actionscript to open up the Save As dialog box when a user clicks on an image?

Thanks

View Replies !    View Related
Browse Dialog Box
I'm creating an online mp3 player for a TAFE project, but i want the users to be able to play mp3 files from their own computer. So I'm wondering if theres a way to open a browse dialog box or something so the user can open their files.

Thanks,
Brendan Smith

View Replies !    View Related
Save As . . . Dialog Box
Is there a way so that when a user clicks on a link, instead of opening that file in a program the user can save it to their computer? Just like a "Save As . . ." dialog box.

Thanx!

View Replies !    View Related
Print Without Dialog Box?
I'm making a kiosk flash app that needs to have the print dialog box removed...or at least shown and then removed, when the user clicks to print.

Can this be done natively within Flash (I suspect not) or by using Zinc or another flash .exe creator?

Thanks...

View Replies !    View Related
Save As Dialog Box
Hello everyone. Thanks in advance for any help.

Is there any way in flash using actionscript to open up the Save As dialog box when a user clicks on an image?

Thanks

View Replies !    View Related
MouseOver Pop Up Dialog
Olah!

I have always wondered how do peeps build the pop-up messages that appear when you mouseOver a button, and then follow the mouse when moved?

The easiest example I can think of is Ultrashock's Home Page. Just mouse over any of the topics and you will see what I mean.

I've looked everywhere for help with this, but my apologies if this topic has been asked before.

Thanks everyone!
Go Eagles!

jay

View Replies !    View Related
Rollover Dialog Box
... like the one produced by rolling over a "hot topic" on Ultrashocks home page. Any good tutorials on this effect?

View Replies !    View Related
Open Dialog
i want to make a file uploader in flash, how do i get an opendialog box from flash, so that a user can browse for a file
thanks

View Replies !    View Related
Upload Dialog?
I wanted to ask if anybody knows a workaround or any solution to implement an upload dialog like the html upload dialog?
perhaps someone knows a solution.

thx in advance,
alex

View Replies !    View Related
Save As Dialog Box
Flesh web save as dialog box?
I have a flesh web site.On my server I have MP3 and Video Clips.I like to make when some one click on icon ( for example down arrow) to open message where user will be able to download file where he wants or to open directly with programs.
I like to tell me and to hellp me how to make it on flash.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved