Movie with waiting message

  • makhan
  • Novice
  • Novice
  • makhan
  • Posts: 31

Post 3+ Months Ago

Hi

I want to open up a movie which displays an image, than want to show a movie that shows please wait and finally another movie with different image.

Can someone please help me with the code here.
  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

http://tutorialvid.com/viewvideo/611/Mo ... onscripter
  • makhan
  • Novice
  • Novice
  • makhan
  • Posts: 31

Post 3+ Months Ago

Thanks man, to be more specific. I first sends some values to php for processing, while its processing I want to display some message like please wait..or processing. Than when the processing is done I want to open another movie.
  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

if you are using loadvars & sendAndLoad ...

i.e
Code: [ Select ]
function display() {
var sender = new LoadVars() ;
var rcv = new LoadVars();

sender.someVariable = yourVariable ;

sender.SendAndLoad("xyz.com/yourscript.php",rcv,"POST");
Dynamic_txt.text = " Please wait processing ... " ;
//or you can attach your moviclip animation like processing from library
_root.attachMovie("processing","processing",_root.getNextHighestDepth());

rcv.onLoad = function() {
_root.removeMovieClip("processing");
Dynamic_txt.text = " Loaded";

// your image function

}
  1. function display() {
  2. var sender = new LoadVars() ;
  3. var rcv = new LoadVars();
  4. sender.someVariable = yourVariable ;
  5. sender.SendAndLoad("xyz.com/yourscript.php",rcv,"POST");
  6. Dynamic_txt.text = " Please wait processing ... " ;
  7. //or you can attach your moviclip animation like processing from library
  8. _root.attachMovie("processing","processing",_root.getNextHighestDepth());
  9. rcv.onLoad = function() {
  10. _root.removeMovieClip("processing");
  11. Dynamic_txt.text = " Loaded";
  12. // your image function
  13. }
  • makhan
  • Novice
  • Novice
  • makhan
  • Posts: 31

Post 3+ Months Ago

Thanks man, I have this code. Can you please point me where should I modify so that a swf file with the "processing " message starts as soon as I send the values to the php file and when its done I load another image into my movie


var linePoints:Array = new Array();

createEmptyMovieClip("Line", _root.getNextHighestDepth());
Line.duplicateMovieClip("Image", Line.getDepth() - 1);
Image.loadMovie("newimage.jpg");
Line.lineStyle(1,0x000000,100);

function recordPoint() {
//this records the current mouse position in the linePoints array
// and returns a single element which is an array of the two coordinates
//for the drawing command
return(linePoints[linePoints.push([_xmouse,_ymouse])-1])

}
//I have avoided double checks of the _xmouse and _ymouse
//properties between the recording and the drawing commands
//to avoid a potential difference between them if the mouse
//is moving quickly
//that's why I used moveTo.apply etc below.
//may not be important

onMouseDown = function ()
{
Line.moveTo.apply(Line,recordPoint());
onMouseMove = function ()
{ Line.lineTo.apply(Line,recordPoint());}
}
var myLV:LoadVars = new LoadVars();
var myReplyLV:LoadVars = new LoadVars();
myReplyLV.onLoad = function(success) {
trace('reply received')
for (var serverReply in this) {
trace("")
trace(serverReply+"="+this[serverReply])
}

};
onMouseUp=function()
{
onMouseMove=null;
trace("linepoints array:"+linePoints.join("|"));
//you will see the above trace output provides coordinates as csv pairs and each
//coordinate pair separated by a pipe ('|') character - you can change this
//this may not the best place to do this, but is an example


myLV.linePoints=linePoints.join("|");
//send only:
//myLV.send("http://localhost/test/linepoints.php","_blank","POST"); //could be GET perhaps
//I thought POST didn't work from the flash ide...only from a browser
//but this seems to work regardless:
myLV.send("http://localhost:8080/linepoints.php","_blank","POST");




}

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 6 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.