zenon905 Posted February 3, 2008 Share Posted February 3, 2008 Is it possible to add functions like confirm() or alert() to actionscripting? Link to comment Share on other sites More sharing options...
Synook Posted February 3, 2008 Share Posted February 3, 2008 No. Flash documents have no direct relation with the operating system, they go through the Flash Player. You could, however, create a function that draws a pseudo-message box on your Flash stage. Link to comment Share on other sites More sharing options...
zenon905 Posted February 3, 2008 Author Share Posted February 3, 2008 What is that? And any way to put confirm or alert like functions into flash? Link to comment Share on other sites More sharing options...
Synook Posted February 3, 2008 Share Posted February 3, 2008 You could, however, create a function that draws a pseudo-message box on your Flash stage.I.e. you could make the function draw a square in the center of your Flash document, then draw the function parameter's text inside that square, then draw another small square at the top-right of the box to which it sets an on(click) event which deletes / hides the box. Link to comment Share on other sites More sharing options...
justsomeguy Posted February 4, 2008 Share Posted February 4, 2008 And any way to put confirm or alert like functions into flash?Didn't you just ask that? Do you think the answer is going to change if you ask the same question twice?Create a movie clip where the first frame is empty. The second frame should have a box on it with a dynamic text field and a button. You can style the box however you want, put borders and shadows on it and make it look like a window. The movie clip should stop on frame 1. A function to show a message will gotoAndStop on frame 2 and write the message into the dynamic text box. The button will send the movie back to frame 1. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.