Message Box Problems Help Needed Please
Im an using the messagebox component from the UI Components Set II and am struggling to find the answer to what i thought would be simple
Ive created my messagebox and have two buttons, a cancel and an ok. when they click cancel i just want the box to close and when they click ok i want them to be sent to frame 62.
it is automatically setup to close the box and also ive worked out how to send them to frame 62. by changing the close handler, but it then does the same for the cancel button.
how to i have the two buttons perform two different actions?
thanks
FlashKit > Flash Help > Flash MX
Posted on: 06-10-2004, 09:54 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help Needed In Spooling Of Ticker Message.
I currently have a ticker developed in Flash 4 which must relay a particular message in thirty seconds. Although the timing is correct, becuase the information is spooled one character at a time it is making the script difficult to read.
Could someone help with the code that is needed to spool the information appropriate to the word length, as opposed to each letter, as I think this would make reading easier?
e.g. Current:123456789. . . New: 1(first block) 2( second block) . . .
___________Online re. . . . . . . . Online______recruiter . . .
(_=spaces)
This can be played at http://www.vrec.co.uk/text.html and the code for this is found in same location at http://www.vrec.co.uk/text.fla
Please supply a price.
P.S. Could this code also remain in Flash 4 as I don't have the any other version to use.
Many Thanks
Flash Upload "...running Slow..." Message When Not Needed
Hi guys,
In my CMS I used a multi file upload system built with AS2. Something strange is going on though. When I use it for uploading, I always get the message:
"A flash script is causing you computer to get slow! Would you like to abort it?"
But when I loot at my processor usage, nothing is going wrong. So I click on don't abord every time this message popups up. At the end the file is nicely uploaded to the server and nothing went wrong.
What could cause this message to pop up every time? And what could I do about it? Is there a way to suppress those messages?
Few details:
- In both Safari a FireFox the messages appear
- Messages appear with small (±100K) and big (±100MB) files
- System is built with Ruby on Rails and flash
Please Help Me With This Message
Hi all
everytime I used to practise some data base with flash
or any other this message stack in my screen
Error opening URL "file:///C|/Documents%20and%20Settings/admin/Desktop/highscores/asp%5Fhighscores/scorekeeper.asp?anticache=981"
can someone guide me to the right way to solve this
or maybe there's something I should install in my PC ?
Message Box
...please! How do i change the message box' Title text appearance?? I've got this piece of code from a tutorial from this Site but it seems to be not working...
globalStyleFormat.FMessageBoxTitleText = new TextFormat( "Arial Bold", 15, 0xffffff);
globalStyleFormat.applyChanges();
Any ideas?!
Natsurfer
Message Box Help
hello,
I have a message box with the instance name of "Aboutbox"
and set it to not show at the start. What i want is when
you click on a button it shows the box. Does anyone know
the button code for this?
Thanks for viewing this post, William T
Message Box
HI There
Can any body help me with message box display?? Is it available in Flash. I actually want a button to display an alert when clicked on it. On clicking on the particular link, the link will be displayed in a text box using the loadVariables & once the text is displayed, I want this message box to pop up with a message which i assign to be displayed.
Hope i am not too confusing
Thanx in Advance
Regards
Bhaskee
Message Pop Ups
Hi!
I am trying to create a driving style game/portfolio site and am having a bit of trouble with one part of it...
The way I want it to work is - when you drive the car into a driveway/parking lot, I want a message to pop up without the user having to click anything.
Any ideas?
[F8] Message Box?
I have a dynamic msgbox and made it into a moviclip.
I want the msgbox to have some text i want displaying in it when the wrong object is clicked on screen, but also when the user clicks on an object (e.g. button) that has already been clicked. - that is one scenario.
The msg needs to display some warning text that hopefully i will be able to control what the msg is.
Any ideas what the actionscript code might be? Please help me. Thank you
Message Box
How can you create a message/shout box with a login and password, and have a tab on it to click on to enter login and message so it can be added onto the site with a date? (I want it to be that you go on the site log in and post teh message rather than keep updating the .swf.)
I tried looking for one but none have a login form. :/
I want just like this one but with a log in when you hit the tab and have a date(and time) after you post it: http://www.kirupa.com/web/xml_guestbook.htm
Anyone Get This Message?
When I go to save my document it says that the document has failed to save. So I go to save as and rename my document and save it as a different name and I save it, but during the save process a window comes up saying.
"Media "nobutton" has been damaged. Recomend you delete it."
Anyone have any ideas on how to fix this or do something about it. My project is due tomorrow and it has failed to save 3 times. And if I click ok when the new window comes up then when you go back into it the button or MC or graphic doesn't have it's actionscript on it anymore. Thank you to anyone who helps me you are a life saver.
How I Can Put A Message ?
How i can put a message for each preview image ???
for example...
(dir of the images)
galleryDir="images";
(Load the images)
phpArray = new Array("j1.JPG","j2.JPG","j3.JPG","j4.JPG","j5.JPG" ,"j6.JPG","j7.JPG","j8.JPG","j9.JPG","j10.JPG","j1 1.JPG","j12.JPG");
(load the txt)
phpArraytxt=new Array("hi1","hi2","hi3","hi4","hi5","hi6","hi7","hi8","hi9","hi10","hi11","hi12");
for(i=0;i<phpArray.length;i++)
phpArrayTxt[i]= ? ;
"i" is the var of the each image... but i dont know how put it text....
Some Help ???
NaN Message Help
Hi everyone,
I'm fairly new to Flash and I apologise in advance if what about to ask is either silly or obvious (or both!)..
I want to create a simple Flash calculator but I am having problems with VERY basic numeric expressions.
At the moment (please see attached .zip file containing .swf and .fla) I just have two text boxes and a button. One text box takes a number from the user and when they press the button, it outputs that number multiplied by 2 in the second text box.
BUT no matter what I do, I ALWAYS get "NaN" as the output for the second text box. My ActionScript for the .swf is as follows:
Code:
enter_btn.onRelease = function() {
outputNum = inputNum * 2;
};
var inputNum:Number = 0;
var outputNum:Number = 0;
Any help would be very welcome!
Many thanks,
Nuky1982.
Message For Swampi
Hi Swampi,
generally, I am in the Newbies forum.
Hobbi told me to aks you directly my problem.
I don't want to spam, so you can see my post below:
Actionscript for Mc, please!
Thanks.
Message Board
Can you help me? I need a message board tutorials or someone who knows how to do it.
Message Board
Does anyone know where i can find an open movie of a message board or forum in flash...
Thanks
Message Boards
I want a message board on my site. Is there an easy way to build one in Flash and use Action Scripts to run the backend.
I have experimented with CGI and ASP but I don't know enough to effectively control the formatting of pages returned or where the data is stord once a message is "posted".
If anyone out there has ever built one with Flash before and can give me some advice on the construction as well as how the data collected is handled I would really appreciate it.
Message Board
I really want to add a flash message board to my site but I have absofreakinlutely no flippin idea how to do it. I have a site that allows php and I do have cgi access but no clue on how to do it. I've looked at all the free message boards out there and none of them are what i'm looking for. I really want one that's on my fave bands official site but i'm not sure asp extentions will work with it.
Can anybody Please help me?
Thanks in advance.
Anita
Error Message
Hello,
This really has nothing to do with action scripts but anyhow..
I have a flash .swf embeded ina piece of HTML and it appears fine when I use Netscape. It seems to go ok with IE but when I go to close the browser I get an error message that pops up on the screen.... heres a link to what it looks like
http://www.stormpages.com/jms88/error.gif
I can only get rid of the error by doing an end task, if I click ok it just minimizes the error box.
Has anyone ever seen this before?? Any ideas??
Thanks,
JMS88
Message Board?
Do you know where I can I find a free message board?
and btw, which is better a pre-made one, like alxtool.com
or opensource ones?
Message Box For Flash
How do I make a Message Box/Forum type thing (don't really know a technical name for it) w/ Flash? I know there's a way...something to do with the fscommand, but I don't know exactly how to use it. Help...please?
A Message In A Bottle...
I went on a great site http://www.requiemforadream.com I was wondering whether anyone knew how they did this interactivity on their homepage, and whether there was a tutorial for this on flashkit
Message For Madwolfzx....
Madwolfzx,
Your tutorial is exactly what what I've been looking for for the longest time. I want to thank you for posting it and for saving me from the mental anguish that my client has inflicted upon me.
I do have one very important question to ask you, if you don't mind. I'm not sure if this is possible to manipulate, but is there a way to move "back" and "forward" within a projector file? Just like in a web browser? I mean... without hard coding it in Flash?
I have this project and it's very content heavy. The client want the user to have the ability to call upon a link anywhere within the player file (mind you.. The user clicked about 7 different areas to get to this specific destination) and then have the user hit the "back" button and it should take them back to where he/she left off... (without clicking 7 different areas.) Can this be done?
Your help is greatly appreciated,
Thank You,
Damaris
Message Board
how do you set up the login/password on your site?? can you set this up with a message board and if so how?? thanks for any imput.
Form Message Box
How can I make a message box come up if all of the form fields aren't filled out. I don't want to have to jump to another scene. How can this be so difficult?
Message Board
I am trying to create a message board in Flash, one that would pretty much work like a guest book. It would ideally work off a text file writing and reading to it as people visited the site and left messages.
I don't want to use a database, i know that is the common answer. I don't even know if it is possible. I have looked around to find something similar in the flash movie files but can;t seem to find anyting close. Maybe i am just looking for something which is known or called something totally different.
Any help or ideas on how to do something like this would be greatly Appreciated.
Thanks,
Dave
Message...............massage?
I'm trying to create a message board on my site. Can that be done in flash, or should I do it in PERL or something else?
A Message Board?
i wonna make a message board in flash.
i know that u can make guest books....so does anyone know of a tutorial somewhere?
tahnks!!
Time & Message Box
how to display time in flash5 & also a message box with the matching message such as if time is 12:00 in the afternoon then message says "good Afternoon"....plz .help me
Script Message
Hi all,
My first real venture into flash has thrown back an error message that reads 'the script in
this movie is causing flash player to run slowly. If continue it may cause
computer to be unresponsive'. It's a short promo for a band with audio and and a few links, nothing to crazy. Does anyone have any ideas how I can solve this, it would be much appreciated.
Cheers.
Message To Appear Only When They Don't Have Flash
I would like to know how to have a message appear on the screen only if a person doesn't have the latest version of the Flash Player downloaded.
It would say:
You need the Flash plugin to proceed. Click here to go to Macromedia's download for Flash.
Message Box Component
I am having the most difficult time...
I am using the Message Box component and I need to move the Message Text and the "OK" button down (_y position). However, there are so many levels that when moving the label symbol it shifts everything.
Here is the code:
#initclip 1
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function() {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fpb_states", "fpbState_mc", 1);
this.attachMovie("FLabelSymbol", "fLabel_mc", 2);
this.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
this.btnState = false;
this.setClickHandler(this.clickHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.label != undefined) {
this.setLabel(this.label);
}
// ACCESSIBILITY DEFINED ::: _accImpl object defined in base class :::
this.ROLE_SYSTEM_PUSHBUTTON = 0x2b;
this.STATE_SYSTEM_PRESSED = 0x00000008;
this.EVENT_OBJECT_STATECHANGE = 0x800a;
this.EVENT_OBJECT_NAMECHANGE = 0x800c;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function(w, h) {
var hit = this.fpb_hitArea_mc;
this.hitArea = hit;
hit._visible = false;
hit._width = w;
hit._height = (arguments.length>1) ? h : hit._height;
};
FPushButtonClass.prototype.setSize = function(w, h) {
w = (w<6) ? 6 : w;
if (arguments.length>1) {
if (h<6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
this.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function() {
var label = this.fLabel_mc;
var h = this.height;
var w = this.width-2;
var b = 1;
// frame border width
this.fLabel_mc.setSize(w-(b*4));
label._x = (b*3);
// padding value;
label._y = (h/2-label._height/2);
};
FPushButtonClass.prototype.getLabel = function() {
return (this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function(label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
// ACCESSIBILITY EVENT
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function() {
return (this.enabled);
};
FPushButtonClass.prototype.setEnabled = function(enable) {
if (enable || enable == undefined) {
this.gotoFrame(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.gotoFrame(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function() {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = (sTbl.textAlign.value == undefined) ? txtS.align="center" : undefined;
txtS.leftMargin = (sTbl.textLeftMargin.value == undefined) ? txtS.leftMargin=1 : undefined;
txtS.rightMargin = (sTbl.textRightMargin.value == undefined) ? txtS.rightMargin=1 : undefined;
if (this.fLabel_mc._height>this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textS tyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function() {
var b = 1;
// border width of frame;
var x1 = 0;
var y1 = 0;
var x2 = this.width;
var y2 = this.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[(this.fpbState_mc._currentframe)-1];
var mc = "frame";
for (var i = 0; i<6; i++) {
x1 += ((i)%2)*b;
y1 += ((i)%2)*b;
x2 -= ((i+1)%2)*b;
y2 -= ((i+1)%2)*b;
var w = Math.abs(x1-x2)+2*b;
var h = Math.abs(y1-y2)+2*b;
this.fpbState_mc[frame][mc+i]._width = w;
this.fpbState_mc[frame][mc+i]._height = h;
this.fpbState_mc[frame][mc+i]._x = x1-b;
this.fpbState_mc[frame][mc+i]._y = y1-b;
}
};
FPushButtonClass.prototype.setClickHandler = function(chng, obj) {
this.handlerObj = (arguments.length<2) ? this._parent : obj;
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function() {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.initContentPos = function(mc) {
this.incrVal = 1;
// DISTANCE TEXT SHIFTS DOWN AND RIGHT ::mr::
this.initx = this[mc]._x-(this.getBtnState())*this.incrVal;
this.inity = this[mc]._y-(this.getBtnState())*this.incrVal;
this.togx = this.initx+this.incrVal;
this.togy = this.inity+this.incrVal;
};
FPushButtonClass.prototype.setBtnState = function(state) {
this.btnState = state;
if (state) {
this.fLabel_mc._x = this.togx;
this.fLabel_mc._y = this.togy;
} else {
this.fLabel_mc._x = this.initx;
this.fLabel_mc._y = this.inity;
}
};
FPushButtonClass.prototype.getBtnState = function() {
return this.btnState;
};
FPushButtonClass.prototype.myOnSetFocus = function() {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function() {
this.pressFocus();
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
this.setBtnState(true);
// ACCESSIBILITY EVENT
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function() {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
this.setBtnState(false);
// ACCESSIBILITY EVENT
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function() {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function() {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function() {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function() {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function() {
this.setBtnState(true);
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function() {
if (Key.getCode() == Key.SPACE && this.pressOnce == undefined) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function() {
if (Key.getCode() == Key.SPACE) {
this.onRelease();
this.pressOnce = undefined;
}
};
// START ACCESSIBILITY METHODS
FPushButtonClass.prototype.get_accRole = function(childId) {
return this.master.ROLE_SYSTEM_PUSHBUTTON;
};
FPushButtonClass.prototype.get_accName = function(childId) {
return this.master.getLabel();
};
FPushButtonClass.prototype.get_accState = function(childId) {
if (this.pressOnce) {
return this.master.STATE_SYSTEM_PRESSED;
} else {
return this.master.STATE_SYSTEM_DEFAULT;
}
};
FPushButtonClass.prototype.get_accDefaultAction = function(childId) {
return "Press";
};
FPushButtonClass.prototype.accDoDefaultAction = function(childId) {
this.master.onPress();
this.master.onRelease();
};
// END ACCESSIBILITY METHODS
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
How Do I Make A Message Box?
I want to create a messagebox that has either a Yes/No option or a Ok option. I have created a movieclip called mbox that has the tite,text, and 3 buttons... yes no and ok.
depending on the parameters i pass to the function, it displays the corresponding values.
now, i want to be able to wait for the user to click on either button, so that my function can return a value.
here's my message box function:
function msgBox(boxTitle,boxText,val)
{
mbox._visible=true;//This never even happens
mbox.boxText=boxText; // unless the while statement
mbox.title=boxTitle; // is removed (further down)
_root.is_returned=false;
//set the value to indicate that somethin has been pressed
// (ie... yes / no / ok)
switch(val)
{
case 1:
{
mbox.ok_but._visible=true;
mbox.y_but._visible=false;
mbox.n_but._visible=false;
break;
}
case 2:
{
mbox.ok_but._visible=false;
mbox.y_but._visible=true;
mbox.n_but._visible=true;
break;
}
}
// This is where i have to wait for the mbox movie to return something
while(_root.is_returned==false); // <-- loop until true
//always get hung here.
// When i click ok or yes or no... i expect it to change the value of
// is_returned. but that never happens. somehow the box doesnt
// display if this statement is used. if i remove it
// the box gets displayed. I guess its a delay?
mbox._visible=false; //Hide it again
return return_value; //return the value of button pressed
}
I am attaching a small fla (Flash MX) that uses this messagebox. remove the comments from the while statement, and it crashes.
Thanks!
Message Board Like This One
I have a question. I would like to add as a feature on my site a Message board as in the one we are using.
Can anyone first of all point me to a tutorial or explain how I can go about doing this?
Also I only want this Message board to be available to people who log into my site. I would like to know how to integrate this feature in it.
Will I need a DB and what kind?
As always you guys are the BOMB.................. If it was not for you.
Error Message
After some time playing an interactive movie I've created my computer shoots this message:
"A script in this movie is causing Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"
When I click yes, all the movie goes crazy.
What have I done!????! is it dangerous for the pc?
Message Board
hey all, i need to know where i can find a fla for a sort of message board, where people post short messages asking questions...ect. like the one at www.theory7.com, or www.fakepilot.com. thanks.
: : : Revealing A Message : : :
help is needed....
Im wanting to create a valentines message which gets revealed by falling hearts.
Falling from top to bottom the hearts should leave a trail on the message as it passes.
Also random hearts falling across the x axis..
Hope someone can point me in the right direction
Cheers in advance
: : : Revealing A Message : : :
help is needed....
Im wanting to create a valentines message which gets revealed by falling hearts.
Falling from top to bottom the hearts should leave a trail on the message as it passes.
Also random hearts falling across the x axis..
Hope someone can point me in the right direction
Cheers in advance
Message Board
www.dazedace.com/forum go sign up and post there ITs got a Flash sectioin.. im trying to make it a big board like here
Message Board Help
why does my message board not work when i load it into a target on another swf movie? works fine when i load the message board only. thanks in advance!
Message Board
this really isnt relevent to flash but... does anybody know where i can find find some sort of tutorial to build a fully fuctional thread message board?? any help would be greaty appreciated. thanks.
Message Board 2k
A friend of mine wanted me to take a swing at building him a message board. Found tons of tuts on PHP board creation, and got all kinds of excited, only to ftp into his site and grab a log file and see IIS5 across the top... Now I can't seem to find ANY tuts on making one running anything in 2k. The host he's with has 2k and linux options, and I'm pretty close to telling him to switch, but just out of curiosity, any know what I could use to make a good message board in a 2k environment, or where a tut would be?
Thanks-
Message Boards?
can anyone tell me how i might go about getting a message board on my website,...similar to this one
Message Board
Can you help?
I am trying to produce a basic message board/forum in Flash and I am having some trouble.
Does anyone know of any good tutorails or ways to produce this in Flash??
Any help would be grand!
Jemes
Message Board
Hi, not really a flash question but i'm sure someone here can help. I want to find out about message boards, i'd like to be able to have one on my web site and know as much as possible about them. Are there bolt on ones that can be downloaded or am I gonna have to code it on my own?
Any help/tutorials/urls greatly appreciated
Message Board
can anyone direct me into a tutorial on how to make a message board in flash. thanks so much
Error Message Help
I have this code in Flash MX
on (rollOver) {
50ds.play();
}
on (rollOut) {
50ds.play(2);
}
Here is the error message I get:
Scene=Scene 1, Layer=Top, Frame=10: Line 2: ';' expected
50ds.play();
Scene=Scene 1, Layer=Top, Frame=10: Line 5: ';' expected
50ds.play(2);
What is the problem? There is a ; there!
I am trying to make a simple button the starts a mc clip on rollover and unloads it on rollout. There are actually 2 buttons for 2 different mcs.
Thanks
|