ActionScript 2.0 :: XML Return Hangs Flash Movie Play Head?
Jan 17, 2007
anyone can offer me a way of housing an XML return in a seperate object, so that the flash movie in question doesn't hang around waiting for the feed to come back.The problem is we have an asp app which is returning the status of about 1000 citrix terminals at once.... while this only takes 10-15 seconds to return, any kind of animated loader i build into the movie, stops playing while flash holds on the XML return, as the http response status never responds dead, but says "waiting" instead.Any kind of way of adding the XML load script as an object listener maybe...?
View 3 Replies
Similar Posts:
Nov 2, 2010
I would like play head of a movie clip to return to a certain frame of that clip so a MC inside it would loop. I now have: stop(); as the action.
View 2 Replies
Jun 27, 2007
The movie clip is called "theScene" and I have it created on Frame 60 of a movie clip when a button triggers the playhead to jump and stop at Frame 60. However, upon leaving that frame, it will not disappear, so I want to unload it upon leaving that frame.I put in the following code across all frames of the movie clip in its own layer:
Code:
if (this._currentframe !=60)
{
[code]....
View 3 Replies
Jun 23, 2009
I have a movie clip that loads and when it is done playing it has a close button that unloads the movie clip... I want to add code to this button that moves the play head to frame 20 of my main timline using actionScript 3.0
View 10 Replies
Jan 6, 2011
how would you play the next 5 frames if the space bar was clicked and then stop the playhead?
View 4 Replies
Feb 28, 2006
find out where the play head is?
I'm trying to do something like this
Code:
if(_root.movie.currentPlayHeadPosition == 1) doSomething();
Its been a long time since I last did any flash, can anyone jog my memory on how to get the current frame?
View 1 Replies
Dec 10, 2003
how will be actionScript for waiting the play head in a frame for 5 second ?
View 5 Replies
Jun 23, 2009
I am using flash CS4 and ActionScript 3.0 i have a movie clip on stage that i have close when the user hits a button how to i also tell the maine time line to go to a frame when this button in the Movie clip is pressed?
View 2 Replies
Dec 29, 2007
I make a flash movie. I want to create a progress bar with custom play head that when we drag it, the swf file will adjust appropriate position, similar to the progress bar in comman media players. My main swf file has about 2000 frames
View 2 Replies
Mar 23, 2005
I'm trying to make this script work in which two things should happen onRlease of a movie clip. The "transition" plays but frame 18 doesn't..even though the path is right. I even tried frame label even that doesn't work.I must be doing something wrong, maybe you can detect from this script. The script is on the clip itself.[code]
View 7 Replies
Mar 24, 2009
would like flash to trace something when the play head goes over a frame label named "test" I would also like to have the code placed on the first key frame. I realize that the easiest way out would be to place the trace statement on the frame with the label on it but I'm trying to run this with a listener.
PHP Code:
stage.addEventListener(Event.ENTER_FRAME, checkFrame,false,0,true);
function checkFrame(event:Event):void
[code]....
View 2 Replies
Nov 8, 2010
I am trying to acomplish a very simple task with AS 3 with no results. I have a simple time line with a stop button. All I want to do is to stop the play head wherever the viewer clicks the button, and then to start again from there when the button is clicked again.
View 4 Replies
Jan 29, 2004
I have a slide show that's about 800k and I'm trying to add a preloader. I tried 6 different preloaders today including a smart clip I downloaded from Macromedia. It seems that when I add a stop action after the preloader this hangs the entire movie. I've uploaded a working example of the slideshow without a preloader and a link to the fla of my NON-working attempt to apply the smart clip preloader here I think I'm just putting the stop action in the wrong place but I can't figure it out..
View 11 Replies
Dec 10, 2009
jumping from from scene to scene once the play head reaches the end in AS3? Scenes do not play one after another like they used to. Below is some code I found that works with errors, however I'm not using a MC like the code displays "mc1". Not really sure on how the MC fits in? import flash.display.Scene; var scene:Scene = mc1.currentScene;trace(scene.name + ": " + scene.numFrames + " frames");
View 4 Replies
Apr 25, 2010
I'm trying to play some sounds in my flash project through action script. However for some reason in my code the call to Sound.play takes from 40ms to over 100ms in extreme cases, which is obviously more than enough to be very noticeable whenever a sound is played. This happens every time a sound is played, not just when that sound is first played, so I dont think its because the Sound object is still loading data or anything like that...
At the start I have this to load the sound:
class MyClass
{
[Embed(source='data/test_snd.mp3')] private var TestSound:Class;
private var testSound:Sound;//flash.media.Sound
[Code].....
This as far as I can tell is following the same process as other Flash programs I found, however none of them seem to have this problem. Is there something that I've missed that would cause the play() method to be so slow?
View 1 Replies
Jan 31, 2003
I have a short Flash movie I made in Flash CS4. I figured out how to make the movie stop at the end so it won't loop forever, and I have a Replay button that appears and restarts the movie. But my directives have changed and I now need to know how to make the movie -- when it ends -- automatically go to and stop on frame 22 of the movie and also have that Replay button then appear when it does stop on frame 22. (Frame 1 through 22 is a gradual fade-in to the first scene, that's why I don't want the replay button to appear on frame 1).
View 3 Replies
Dec 11, 2009
I have a short Flash movie I made in Flash CS4. I figured out how to make the movie stop at the end so it won't loop forever, and I have a Replay button that appears and restarts the movie. But my directives have changed and I now need to know how to make the movie -- when it ends -- automatically go to and stop on frame 22 of the movie and also have that Replay button then appear when it does stop on frame 22. (Frame 1 through 22 is a gradual fade-in to the first scene, that's why I don't want the replay button to appear on frame 1).
View 5 Replies
Oct 8, 2010
I have a xml file with size of 550kb. when I load it in the simplest way flash player hangs, while it is loading, than it runs normally here is the code
var loader:URLLoader = new URLLoader();var req:URLRequest = new URLRequest();
but.addEventListener(MouseEvent.CLICK, onClick);
function onClick(e:MouseEvent):void{ loader.addEventListener(Event.COMPLETE, onXmlLoad) loader.load(req);}
function onXmlLoad(e:Event):void{ trace(e.target.data)}
View 7 Replies
Mar 21, 2010
ive created an animation sequence in flash but for some reason everytime i drag across frame 426 it hangs and i see the rainbow circle thing. the animation includes graphic symbols of charecters. im pretty sure it has to do with a certan symbol that has a lot of keyframes on motion tweens. is there anything i can do to clean it up?
View 6 Replies
Jun 24, 2011
I have a flash program in a web page that tries to post a picture to a web page. When the user clicks a button the web browser starts to navigate to the new page then seems to hang (I can see it starts to go to the page by reading the transferring data from message in Firefox status bar)
This also seems to work in debug version but not the exported version.
Flash code:
var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
var jpgURLRequest:URLRequest = new URLRequest("http://myurl.com
[Code]....
View 1 Replies
Jun 26, 2009
I have made custom mouse cursor (movie clip) everything works fine, default cursor is hidden, mc is following pointer, problem is- when flash is inactive custom cursor hangs in upper left corner of flash, I want to make it dissapear untill the moment you enter flash file. That would work like this: I am opening my web page, flash is loaded but custom cursor is hidden, I am moving my mouse into zone of flash -custom cursor appears on screen and follows mouse pointer.
View 5 Replies
Sep 23, 2009
in this code:
Code:
function loadGarmentImage()
{
if (garFile["gar" + sGar + "NumMasks"] > 2)[code].........
View 0 Replies
Apr 6, 2009
I am using a while() loop which does its job as soon as I fetch CDATA content from XML. The while() loop basically contains text conversions using replaceText()... Depending on the number of user defined XML nodes, the while loop executes. I see that the flash application hangs for 3 or 4 seconds when this execution happens.
View 6 Replies
Jun 25, 2009
Ctr+return wont play my animation. Instead it just stays on the first frame. It used to play but all of a sudden it just stopped.
View 4 Replies
Apr 10, 2009
how to go about this: I'm building an animation on the home page of a site that I think people shouldn't have to watch more than once. So, if they've already been on the home page and now they've clicked back to it a second time, I'd like to have the animation not play through again. Is this a good case for a cookie? Maybe I could set a flashVar that reads in the header or referring page, and if it's =="same domain" don't play animation?
View 2 Replies
Nov 23, 2009
Im using mxmlc to compile as3 on ubuntu linux. I've donwloaded flex4_b2_100509, just to use the most recent stuff...so Im typing 'mxmlc file.as' but it just hangs on me... it doesnt return anything. I checked running processes ('ps -e') and its showing both mxmlc and java as running, which tells me the compiler started. after a while the shell reports a 'segmentation fault'l.
View 1 Replies
Apr 20, 2009
I have just a play and pause button on a website I'm creating for a client that streams one mp3 song. It works great with the code below, but the problem is that when it reaches the end, it doesn't loop back to the beginning. I would like for the user to be able to press the play button at the end to hear the song again, or include another button that rewinds back to the beginning.
Code:
this.createEmptyMovieClip("sound_mc", 10);
music = new Sound(sound_mc);
music.loadSound("[URL]", true);
music.start();
active_button = "play";
[Code] .....
View 1 Replies
Dec 18, 2011
By far the weirdest thing I've ever seen. On some machines (!) IE (!!) attempts to load an SWF file via HEAD request instead of GET. This happens only when the page is running in Facebook IFRAME application - when running solo works fine. Naturally, on FF and Chrome everything works just fine. The SWF is embedded using jSWFObject. There's no visible common feature to the machines which experience this problem - laptops, desktops, XP, Vista, 7.
View 1 Replies
Jun 18, 2010
I have a stop play button but it freezes play as opposed to what I require which is returning cursor to frame 1 to then await the next button click when an animation would play again.I currently have code for the button as :-
on (release) {stopMovies(this);function stopMovies(mov:MovieClip) {for (movs in mov) {if (typeof (mov[movs]) == "movieclip") {mov[movs].stop();stopMovies(mov[movs]);}}}}
View 3 Replies
Jan 31, 2012
Ihave this code
mo_mc.onPress = function() {
if (status == 0) {
mo_mc.gotoAndStop("on");
} else {
[Code]....
I have tuggle button as movie clip (play/pause one button)
now the missing is when the sound end and you are in of postion
no responce for the new click and no sound
View 2 Replies