ActionScript 3.0 :: Can't Unload FLV Called To Timeline Loop

Jun 5, 2010

So I tried to use quicktime but flash CS4 no longer accepts it. All day yesterday I've been working with a .flv version (which doesn't look nearly as good) and tried to directly import it but got an error ("no such file exists") even when it's right next to the other files.

With the Wizard I tried both picking the local file and assigning the URL of the file previously uploaded to my site.So i then tried to use actionscript to load it into the actions layer on the frame at the beginning of the "game" scene which after hours of fiddling finally worked.

I just want it to loop until someone clicks to go to another section but now what happens is the video and sound from the .flv keep playing even after you click on another button to navigate away from this scene.

I tried online to find a way to unload the .flv but none of them worked - went thru pages of google searches but the suggested coding did not prevent the .flv from unloading.

var vid:Video = new Video(480, 320);
vid.x=231;
vid.y=457;

[code]....

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Can't Unload FLV Called To Timeline Loop Using Navigation

Jun 6, 2010

I'm working on a flash music site [URL] and am trying  to integrate a 480x320 .flv into a frame loop in the "game" section of the main movie.
 
I first tried loading a .swf version of the same file but I couldn't get it to unload (video and audio) and it really slowed down the performance of the main movie.
 
That was Thursday.
 
So I tried to use quicktime but flash CS4 no longer accepts it. 
 
All day yesterday I've been working with a .flv version (which doesn't look nearly as good) and tried to directly import it but got an error ("no such file exists") even when it's right next to the other files.
 
With the Wizard I tried both picking the local file and assigning the URL of the file previously uploaded to my site.
 
So i then tried to use actionscript to load it into the actions layer on the frame at the beginning of the "game" scene which after hours of fiddling finally worked.
 
Here's the current problem:

I just want it to loop until someone clicks to go to another section but now what happens is the video and sound from the .flv keep playing even after you click on another button to navigate away from this scene.
 
I tried online to find a way to unload the .flv but none of them worked - went thru pages of google searches but the suggested coding did not prevent the .flv from unloading.
 
here's my code which is in the actions layer at the beginning of the  "game" scene:
 
var vid:Video = new Video(480, 320);
vid.x=231;
vid.y=457;
addChild(vid);

[Code].....
 
It is very frustrating that Adobe makes it incredibly difficult for an intermediate user to do such a basic thing - load a swf or flv into an fla and have it play, then stop playing when someone navigates away.

View 4 Replies

ActionScript 3.0 :: CS4 - Can't Unload FLV Called To Timeline

Jun 5, 2010

I'm working on a flash music site ([URL]) and am trying to integrate a 480x320 .flv into a frame loop in the "game" section of the main movie. I first tried loading a .swf version of the same file but I couldn't get the file to unload and it really slowed down the performance of the main movie. That was Thursday. So I tried to use quicktime but flash CS4 no longer accepts it. All day yesterday I've been working with a .flv version (which doesn't look nearly as good) and tried to directly import it but got an error ("no such file exists") even when it's right next to the other files. With the Wizard I tried both picking the local file and assigning the URL of the file previously uploaded to my site.

So i then tried to use actionscript to load it into the actions layer on the frame at the beginning of the "game" scene which after hours of fiddling finally worked. Here's the current problem: I just want it to loop until someone clicks to go to another section but now what happens is the video and sound from the .flv keep playing even after you click on another button to navigate away from this scene. I tried online to find a way to unload the .flv but none of them worked - wen thru pages and pages of google searches but the suggested coding did not prevent the .flv from unloading.

[Code],,,,

View 21 Replies

ActionScript 3.0 :: Classes Called Secondss To The Timeline?

Jul 25, 2011

I am trying to recieve a variable from one of my classes called secondss to the timeline.I did this using MovieClip(root).secondss = secondss; in the class.I wanted it for giving the user a different reward when finsihing the game in different amount of times.I also created a var "TotalScore" which equals gameScore + reward.

And now when I run it and finish the game I see that there's a 0 in the textfield of TotalScore and I get this output error repeatedly :TypeError: Error #1009: Cannot access a property or method of a null object reference.  at EasyGame/clockTime()[C:UsersAdiDesktopGamesMatch GameMatching GameEasyGame.as:178]  at EasyGame/showTime()[C:UsersAdiDesktopGamesMatch GameMatching GameEasyGame.as:173]

View 9 Replies

MovieClip Called Target_mc On The Main Timeline?

Sep 18, 2007

I have a movieClip called target_mc on the main timeline... Inside that movieClip, I have four frame animation where there are aim1_mc and aim2_mc on each frame...I also have a for loop that hides aim1_mc on all the frames... It works fine on the first loop, but I see the aim1_mc of the frame 1 from the second loop...

ActionScript Code:
this.target_mc.onEnterFrame = function ()
{

[code]......

View 7 Replies

ActionScript 2.0 :: Function In Timeline Called Fom Button?

Feb 2, 2007

as im just starting out.for example i have a graphic i need to rewined (instead of tween backwards)when the button is clicked it calls this function in timeline

mc_on_stage.onEnterFrame = function() {
if (rewind == true) {
prevFrame();

[code].....

View 3 Replies

IDE :: Add Listener To Main Timeline That Listens For MC To Be Called

Feb 6, 2009

On my main timeline I have an empty MC that my external swf's get loaded into once a user makes his selection from the menu.I would like to tween the load in and load out of these swfs.What is the best way to go about this?Should I add a Listener to the main timeline that listens for my MC to be called? I guess the real hangup here for me is understanding how to initiate the tween on load in and load out.

View 1 Replies

ActionScript 1/2 :: Unload Movie On A Different Timeline?

Feb 26, 2010

I have a main SWF that loads in an external SWF(2) which has a button that when clicked loads in another external SWF(3). (we'll call them SWF 2 and 3) what I was finding was when I clicked the button on the external SWF (2), when SWF (3) loaded in the contents of the main SWF and SWF (2) were still visible . However I managed to remove the contents of SWF(2) by doing unload movie easily as they run on the same timeline...the problem is I don't know how to unload movie on the main SWF when SWF(3) is being fired because it doesn't run on the same timeline as the main SWF. Surely it is somehow accessible since it is visible in the background ...even if they aren't on the same timeline? how would i get the movie to unload in the main SWF?

View 19 Replies

ActionScript 3.0 :: Unload Loader And Continue On Timeline?

Apr 28, 2009

I have used the loader class to play an external .swf file. When it is finished I need to stop it and continue to the next frame in the timeline of the original movie. I can load it and unload it, but how to I unload it after it has played and continue to frame 2 of the timeline?
 
var myLoader:Loader = new Loader();myLoader.x = 150;myLoader.y = 75;
myLoader.load(new URLRequest("movie.swf"));addChild(myLoader);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete) ; 
function onComplete(e:Event):void{    myLoader.unload(); this.gotoAndPlay(2);}
 
With this code, it skips the loaded movie and goes straight to frame 2.

View 6 Replies

ActionScript 2.0 :: Load/unload Movie-goto Next Frame On Timeline?

Dec 6, 2007

I have a main flash file that I load various external swf files into. On the first frame of the timeline, there is an intro swf loaded that basically welcoming the viewer to the site. What I want to do is have this load, play and unload and then go to frame two of the timeline where the main home section of the flash site is located.One my first frame on the timeline I have:loadMovieNum("/IntroMovie.swf",1);stop();n the external IntroMovie, I have unloadMovie (1); so the movie will play and then unload itself. What I can't figure out is how to get the timeline to go to the next frame once this movie is finished playing and has unloadedIf I don't put the stop in there, it simply skips this movie and goes to the next frame on the timeline and loads the home movie swf file.Is there a way to use some sort of if statement, that if the movie is unloaded, goto the next frame, sort of like this:if(code to verify if movie is unloaded);gotoAndStop(2);

View 4 Replies

ActionScript 3.0 :: Function In Main Loop Called MoveShip That Moves The Player's Ship If Some Buttons Are Pressed?

Aug 1, 2010

I'm developing a game, here is a screenshot:I have a function in my main loop called moveShip that moves the player's ship if some buttons are pressed. The trouble is, some commands began to break it recently, such as removeChild(debriefingScreen), and I have no idea why. Also, firing (spawning bullet movie clips) restores the moveShip functionality 0_

View 2 Replies

ActionScript 3.0 :: AddChild For Loop - Display Items On The Stage Nested Inside A Movieclip Called MainItem

Mar 31, 2011

I have a MovieClip called item with the same linkage set and my first task is to display 10 of these items on the stage nested inside a movieclip called MainItem. I have dragged MainItem to the stage and have the following for loop:

[Code]....

View 5 Replies

ActionScript 2.0 :: Movie Clip On The Main Timeline Called "map," W/ Tons Of Nested Clips?

Oct 10, 2006

I have a movie clip on the main timeline called "map," w/ tons of nested clips. On an actions layer on the Main Timeline I have the following:

map.nestedClip.onRollOver = function() {
this._alpha = 50;
};

the rollover event fires, but the alpha reduction does not. I replaced the alpha = 50, with a trace statement, and was successful, plus I get the hand when I roll over the movie clip, so I know that the event is registering. However, when I place the same code directly on the instance, it works fine. I thought the only difference between placing code on the timeline and directly on an instance was a matter of convention, and that timeline code is generally a better practice.

View 4 Replies

ActionScript 3.0 :: Load An External Swf Called 'signs.swf' Into An Empty Mc Called 'signholder'?

Apr 12, 2010

I want to load an external swf called 'signs.swf' into an empty mc called 'signholder'.

var loadit2 = new Loader();
loadit2.load(new URLRequest("signs.swf"));
signholder.addChild(loadit2);

Everything works. Cool. But, I now want to target something within the signs.swf. How do I do it though? What is the path? Do I have to give the child of signholder an instance name? Everything I try fails.

If I wanted the root timeline of the external swf to gotoAndPlay(2) for example,...would i say...

signholder.loadit2.gotoAndPlay(2) ???
var wow:MovieClip = loadit2.content as MovieClip;
wow.gotoAndPlay(2) ????

View 3 Replies

ActionScript 3.0 :: Movie Clip Called CircleFill And Another Called CircleOutline?

Oct 30, 2007

I am having issues with startDrag(). I have a movie clip called circle. Inside circle, I have a movie clip called circleFill and another called circleOutline.onEnterFrame, this movieClip is duplicated 4 times.

When I use this:
private function onPressNow(event:MouseEvent):void
{
startDrag();
}
IT DRAGS ALL 4 MOVIECLIPS.

[Code]...

how can I make it drag my movieClip called circle? (meaning both circleFill and outlineFill)

View 8 Replies

ActionScript 3.0 :: Called InfoBox That Contains A Text Field Called Caption?

Oct 24, 2011

i have a box called infoBox that contains a text field called caption. infoBox expands on mouse-over. When it does so, I do not want the text in caption to scale up - I want it to stay at 11 pt. So far my code to prevent this from happening is not working:How do I fix this?[URL]..

View 2 Replies

ActionScript 3.0 :: Creating Loop In Timeline?

Oct 21, 2009

My master timeline is 128 frames long, I want the timeline to play from frames 1 to 128 once and then from frames 64 to 128 three or four times before returning back to frame 1 and starting the whole sequence again so I end up with a continuous loop that consists of the full animation once and the second half 3-4 times all repeating endlessly. I've been reading about "for" loops and guess this is what I need to use but I don't quite get how to set it up, how I'd set up a counter to count the repeats, and how it would reset etc.

View 5 Replies

ActionScript 2.0 :: Loop Code Not Timeline?

Dec 4, 2009

I'm creating a simple banner for my site. I found some cool landing confetti code but it seems like after it hits the keyframe with the confetti actionscript it stops and the rest of my simple timeline animations don't play. I just wanted to have a few type animations and a logo fade in and out while the confetti is falling. I removed the stop on the confetti frame and after I do that the animations play but the confetti doesn't work. This code is on the main timeline that causes it to stop

Code:
// pause after how many seconds
vSeconds = 11;
vFPS = 20;

[code]....

View 6 Replies

ActionScript 3.0 :: Objects On Timeline Reset Themselves On Loop

Dec 3, 2010

I have a character whose face I'm trying to change. The face is a Bitmap object that gets loaded at runtime and placed into the characters face holder movieclip.

I'm loading the Bitmaps just fine, but there is a snag.

The character has many animation states, each of them is a movieclip that lives in it's own frame in the main character movieclip (so that each frame is an animation state).

The problem lies in that the face holder movieclip is inside each state animation movieclip, and it itself is animated along with the character (it's a face, it has to move along too...)

On each state movieclip I have an instance of the faceholder placed on the timeline, and from the character class I can access it by going this.mc.face (where 'mc' is the current state movieclip -they're all structured the same way and have the same objects inside)

So, after I load my image for the face, I'm going like this:

this.mc.face.addChild(faceImg);

this does load the face into the faceholder, and it stays there for a while... until the timeline loops back and the instances reset themselves.

So, I'm kinda stumped here... and feeling rather stupid since this should have been simple... How can I keep the faceHolder movieclip from resetting itself when the timeline loops?

To make things worse, I've realised that the faceholder resets itself not only at each timeline loop, but at each keyframe...

I don't think running a function on EnterFrame just to keep placing the face there again is a good idea... (sounds like disaster really) but then again, it might be the only way, since each state movieclip has it's own set of keyframes :P

EDIT: I just tried the above idea of replacing the image on each frame, but even that doesn't work... the face flickers with a null object error at every loop... go figure why... the face holder movieclip has a motion tween that spans all the range on the timeline... it never gets replaced by a blank frame.

View 2 Replies

ActionScript 3.0 :: Timeline Loop - Trace Does Not Work

Aug 27, 2011

I've got something simple in my main time line. I know I must be missing some kind of loop function, as the hold down doesn't work unless I keep clicking. And my trace doesn't work unless it starts on the 'enemy'. I'm just not sure what

Code:
import flash.events.MouseEvent;
_left.addEventListener(MouseEvent.MOUSE_DOWN, moveLeft);
function moveLeft(e:MouseEvent){
_hero.x--;
[Code] .....

View 6 Replies

ActionScript 2.0 :: Replace A Timeline Loop With A SetInterval

Sep 24, 2005

Trying to replace a timeline loop with a setInterval. For some reason, the function I am using to duplicate my movieclips is not working from setInterval but does work from a normal function call. Why would this be??? I know the functions is actually being called because I traced it. But the duplication of the ball does not.

birthBall = function(){
ball.duplicateMovieClip("ball"+_parent.counter, _parent.counter);
this["ball"+_parent.counter].colNumber = random(4);
this["ball"+_parent.counter]._x = _parent.column[this["ball"+_parent.counter].colNumber];

[code]....

View 3 Replies

IDE :: Loop To Keep Playing Regardless Of The Timeline Stopping And Starting

Apr 29, 2009

i just want my loop to keep playing regardless of the timeline stopping and starting. is this possible?

View 1 Replies

ActionScript 2.0 :: Unload Movie Stuff - Current Swf To Unload And The New One To Load Only After A Transition Occurs

Jun 16, 2003

I want the current swf to unload and the new one to load only after a transition occurs. Is there a more efficient way to do this than if. switch()?

View 2 Replies

ActionScript 3.0 :: Unload The Previous Loaded .swf And Load The New .swf Without Having A Separate Button To Unload

Aug 9, 2008

I am working on a school project that requires me to load external .swf or .jpg files. I currently have all of the buttons working and are loading an external .swf file on to the screen. The problem I am having is that when I go from one button to the next the loaded .swf stays on the screen and the next .swf gets loaded on top of it. I know that I need to unload the file but I am not sure where to put the code for the unload or what code exactly to use. I would like when the button is pressed to unload the previous loaded .swf and load the new .swf without having a separate button to unload.

[Code]...

View 3 Replies

ActionScript 3.0 :: Unload Not Unloading - Unload An External SWF On _root To Load A New One Instead

Jul 23, 2009

I'm trying to unload an external SWF on _root to load a new one instead. I've tried (almost) everything but can't figure it out... I get this error : "Error #1010: A term is undefined and has no properties."

[Code]....

View 3 Replies

ActionScript 3.0 :: Add Code To Get The Actions To Loop Like The Timeline Is Looping?

Jul 16, 2010

I am new to FLASH and have created a rotating banner for our website with 5 roatating images with 5 invisble buttons linking to 5 landing pages. And it works the first loop through.  However when it gets to action 5 for my last image, that link continues for all the buttons is subsequent loops.What do I need to add to my code to get the actions to loop like the timeline is looping? Code used for the links. This is the link that continues after the first run of the banner:

var url5:URLRequest = new URLRequest("http://www.facebook.com/MoDOT.KansasCity");, onStageClick5);
stage.addEventListener(MouseEvent.CLICK[code]....

View 1 Replies

ActionScript 1/2 :: Loop Timeline In Movieclip Then Gotandplay Frame?

Dec 6, 2010

I have an animation of a dog running across the stage and a movieclip called "legs" which is the legs moving. I want to loop the dogs legs for a certain amount of frames and then make it stop on a certain frame within that same nested "legs" movie clip.how to do this and where the actionscript should go?

View 3 Replies

ActionScript 1/2 :: Delay In Timeline Deactivated On Second Loop By Movie

Aug 30, 2011

Below summarizes the problem. Whats being used:
Flash CS4 10.0.2
Actionscript 2.0

Whats going on in the Timeline:
I have a embedded movie in the timeline. Also in this timeline is a actionscript delay. When the animation starts, the timeline reaches the embedded movie and plays then it reaches the end frame with the following actionscript delay.

stop();
var interval:Number = setInterval(
function():Void {
play();
clearInterval(interval);
}, 10000);

The delay works perfectly. When the timline loops a second time the delay fails to work. So the animation works perfectly one time and falls every time the animation loops. The weird part is if I remove the embedded movie layer the delay works perfectly on the following loops. So it appears that this delay is deactivated by the embedded movie!

View 4 Replies

ActionScript 3.0 :: Loop Part Of Timeline 5 Times Then Continue?

Oct 15, 2010

I've been looking at other posts and trying to cobble this together, but am lost. I have a movie I need to play from frames 1-45 five times then continue from frame 50 to frame 70 and stop. on frame one I have the following script (in a layer for actions)

if (numberOfTimesToLoop<5) {
gotoAndPlay(1);
numberOfTimesToLoop++;
} else {
gotoAndPlay(50);

[Code]...

View 2 Replies

ActionScript 2.0 :: Loop Timeline In Nested Movieclip Then Gotandplay?

Dec 6, 2010

I have an animation of a dog running across the stage and a movieclip called "legs" which is the legs moving. I want to loop the dogs legs for a certain amount of frames and then make it stop on a certain frame within that same nested "legs" movie clip.

Can anyone tell me how to do this and where the actionscript should go?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved