Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-01-2003, 06:33 PM   #1
carlosrapa
Registered User
 
Join Date: Dec 2003
Posts: 5
Default Alert Component X Y Position...

I have a button that loads an alert component... however it loads right were the button is... which is the very bottom right of the screen... does anyone know how to edit the XY position of the ALERT component??? i have tried all that i can... here is my current actionscript...


ActionScript Code:
this.order_verify_btn.onRelease = function() {     var o = _global.styles.Alert.message=new mx.styles.CSSStyleDeclaration();     o.fontSize = 11.5;     import mx.controls.Alert;     myClickhandler = function (evt) {         if (evt.detail == Alert.YES) {             var url20 = "javascript:tackupdate('"+Email+"','"+Contact+"')";             getURL(url20);             gotoAndStop("the_end");         }     };     Alert.show("If you click yes you will proceed however you will no long have the option to edit your cushion", "Warning", Alert.YES | Alert.NO, this, myClickhandler); };



Thanks,
Carlos
carlosrapa is offline   Reply With Quote
Old 12-02-2003, 03:20 AM   #2
Stimpson
Flash Safely!
 
Stimpson's Avatar
 
Join Date: Sep 2002
Location: Holland
Posts: 1,092
Default

Hey, welcome carlosrapa,

You can use move(x, y) for that, like this:

o.move(100, 200);
Stimpson is offline   Reply With Quote
Old 12-02-2003, 10:48 AM   #3
carlosrapa
Registered User
 
Join Date: Dec 2003
Posts: 5
Default

actually that didnt work for somereason... let me attach a file and maybe you can explain it to me...

Thanks,
Carlos
carlosrapa is offline   Reply With Quote
Old 12-02-2003, 10:56 AM   #4
carlosrapa
Registered User
 
Join Date: Dec 2003
Posts: 5
Default

ooops for got to attach the file...

Here you go its a zip though... cause it wouldnt let me attach it as a .fla...


Thanks a bunch for your help...
Carlos
Attached Files
File Type: zip alerttest.zip (115.4 KB, 290 views)
carlosrapa is offline   Reply With Quote
Old 12-02-2003, 02:12 PM   #5
Stimpson
Flash Safely!
 
Stimpson's Avatar
 
Join Date: Sep 2002
Location: Holland
Posts: 1,092
Default

Hey carlosrapa,

try this:

ActionScript Code:
var message=Alert.show("If you click yes you will proceed however you will no long have the option to edit your cushion", "Warning", Alert.YES | Alert.NO, this, myClickhandler); message.move(100, 100);

That should do it.
Stimpson is offline   Reply With Quote
Old 12-02-2003, 03:48 PM   #6
carlosrapa
Registered User
 
Join Date: Dec 2003
Posts: 5
Default

finally someone with an answer... i appreciate it... it seems like no one could answer it.. i have asked about 10 time at like 10 different places....

Thanks,
Carlos
carlosrapa is offline   Reply With Quote
Old 12-02-2003, 03:57 PM   #7
Stimpson
Flash Safely!
 
Stimpson's Avatar
 
Join Date: Sep 2002
Location: Holland
Posts: 1,092
Default

Ah yes, aint this forum great
Stimpson is offline   Reply With Quote
Old 12-02-2003, 04:03 PM   #8
carlosrapa
Registered User
 
Join Date: Dec 2003
Posts: 5
Smile

why yes it is...
carlosrapa is offline   Reply With Quote
Old 02-11-2007, 02:52 AM   #9
Atlahua
Fellowship of the Script
 
Join Date: Feb 2006
Location: México, Tenochtitlan
Posts: 15
Send a message via MSN to Atlahua Send a message via Skype™ to Atlahua
Default Awesome Help!!

Stimpson:

THANK YOU VERY MUCH!

REALLY REALLY USEFUL POST.

Atlahua is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:46 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.