ActionScript 2.0 :: Loadmovie To Target Not Totally Working?

Mar 11, 2003

So I am tring to load a movie into a target. It is loading but all of the scripts are not working (some of the scripts are working). All the scripts work if I load the movie to a level instead of a target. But I need the movies to be in a target because of the motion that I want to apply to the loaded movie

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Totally Stop A Class From Working - Making Null?

Mar 23, 2010

I have a large creation in process that requires a lot of heavy animations and movement with vectors and really processor intensive. Just want to know, regardless of whether the project is huge or small, how to totally stop a class from working? I have three classes I am calling. "class1 = new Class1();" etc. When I am in the level, say, class2, I can still talk to objects in class1 even though I removed the class listeners within that class1 after I was done using it. It still is able to be called upon, and still running something in the background that I can't figure out what it is. I just want to know, rather than searching for whatever is causing the problem, can't I simply null the class that I never ever need to use again?

I tried that, but then I ran a trace and it still tells me that it is a class object. I reckon its because I have a "public var class1:Class1" etc, which means they will always have those objects associated with them, but still. I want to totally get rid of it for garbage collection, and because I don't want to use some of them at all, ever again. So basically, what is the best way to get rid of classes so that they aren't hogging up resources any more?

View 2 Replies

Actionscript :: Flash - OnMouseOut Listener Not Totally Working Under Internet Explorer 8?

Mar 22, 2011

I am working on a video player in Flash CS4. I'm trying to build the player such that when the user moves their mouse over the flash object, the playback controls appear and, when the user moves the mouse out of the flash object, the controls disappear.I managed to get some code put together that works in every browser but one: Internet Explorer. Well, it 'works' but only if you slowly move the mouse out on the left side of the flash object.I have done quite a bit of Google searching for an answer, but I can't seem to find someone with a similar problem.Code is as follows:

ActionScript Code:
root.onLoad = function(){
_root.clip.skinAutoHide=true;

[code].....

View 1 Replies

ActionScript 2.0 :: CS3 Loadmovie Into Target Mc - Not Level?

Apr 5, 2009

got a file that contains scripting that creates and animates a carousel effect in a faux 3d space - it all works great on a mac and some pc's but on a lot of pc's it doesn't play nicely! i have added some script to carousel script so if the carousel item is clicked it rotates that item to the front and then loads the specified swf into level 1

pc's don't seem to recognise the alignment of the loaded swf and brings it in half cropped off the screen - appearing in the top left of the stage area.how do i tell the loaded swf to centre in the middle of the stage just like the rest of the elements in the movie? how to make the target mc sit at the highest level/depth - in other words above the carousel? this is my onclick script:

Code:
function released()
{
output.text = this.txt_label.text + " has been selected";[code].........

View 1 Replies

ActionScript 2.0 :: Target A Mc Properly After LoadMovie?

Apr 9, 2003

how to target a mc properly after loadMovie. I have a swf where an mc is copied 15 times (so a 4*4 grid is formed) like this:

Code:
Movieclip.prototype.duplicateMC = function(){
amount = 16
x = 1;
y = 0;

[code]....

This works fine. However, when I load it into another movie with loadMovie, it doesn't work anymore because of the _root that I use.
I thought that using _parent["copy"+i]._x += 50*x; would do the trick, but it doesn't.....

View 14 Replies

ActionScript 2.0 :: Loadmovie And Target A Frame

Jul 17, 2009

I want to load a movie and have it start on a specific frame within that movie instead of starting on frame one. The code I have now is this:

stop();
loadMovieNum("mc2.swf", 2);

I want it to start on the frame label in the movie called "in" instead of on frame one. How the hell do I do this, I looked everywhere

View 1 Replies

ActionScript 2.0 :: LoadMovie In The Target _root.as. And The Url Is Dynamic

Nov 26, 2005

I want to loadMovie in the target _root.as. And the url is dynamic: _root.as.loadMovie(_root.link) Unfortunately the movie isn't loaded I tried to convert _root.link to string but nothing

View 13 Replies

ActionScript 2.0 :: Loading A Swf To Target By Using NamedMC.loadmovie

Apr 11, 2003

I have been loading an swf to target by using namedMC.loadmovie ("path+name", _levelN) altho I notice there is another method suggested here about using createEmptyMovieClip so it is all in script. Can anyone suggest a way of preloading all my separate swf files and then playing them at various specified points, like when the previous animation is finished/finishing. I have tried things like altering the _alpha and using namedMC.stop(); and namedMC.play(); but that aint working.

View 1 Replies

ActionScript 2.0 :: LoadMovie - Target A Specific Scene In The Load Movie Command?

Jul 9, 2002

I want to load a movie loadMovie ("target", _root....) and so on. My question is can you target a specific scene in the load movie command?? I have a movie with a button that loads a new movie into level 0 so it replaces the first movie. Now in the new movie I have a button that unloads the new movie and loads the previous one. But it starts it off at the veru beginning of the movie. I want it to pick up where the first button click took place.

View 2 Replies

ActionScript 2.0 :: LoadMovie "target" & Kirupa's Image Pan?

Nov 27, 2006

Description: HTML page containing MC1 and MC2. MC1 has container MC-C inside and MC2 has button with AS ... loadMovie ("MC3.swf", _root.MC1.MC-C") Problem: when I hit the button nothing happens When I assigned this script to a button inside MC1 (excludeing "MC1." from target value) than it works. Would anyone know how should my target value look like to achieve desired load into container within MC1?? conditions: (MCs 1,2,3 are in same folder, with correct instance names, have tryed few variations but no success)

Q2: Kirupa's Image Pan - is there any way how to integrate whole thing inside another MC without messing it up like me?? Cause I have noticed that it is fixed to "stage.width" and stage of the MC I wanted to plece it is a bit different.

View 2 Replies

ActionScript 2.0 :: Preloader Not Working But LoadMovie Is?

Sep 19, 2009

I've got a strange problem with my new flash website. I've been able to code a preloader for loading in different .swfs into my main .swf file. This works fine locally and even when I simulate the download in Flash. But when I've uploaded it to my website the preloader no longer works. Basicly the swf file does load into the current swf but without the loading bar and percentage reading.

stop();
_root.homecontent.loadshowreel._xscale = 1;
_root.homecontent.onEnterFrame = function() {

[code]....

View 4 Replies

ActionScript 2.0 :: Loadmovie Preloader Is Not Working

Nov 15, 2009

i tried to load an image into my stage. with clicking a button so i put actionscript for the button as such :on (release)[code]but the loader is not working the % which has to count to 100 then show the picture doesnt work and the picture appears with out loading..

View 5 Replies

ActionScript 1/2 :: LoadMovie Not Working At All (nothing Appears)?

Aug 26, 2009

i know this is a basic procedure but im having problems with loadMovie. Heres my code
 
import mx.transitions.Tween;
import mx.transitions.easing.*; 
this.createEmptyMovieClip("holder_mc", "holder",0);
holder_mc._x = (Stage.width)/2;
holder_mc._y = (Stage.height)/2;

[Code]...
 
Im geussing its a problem with nesting movieclips with code and the solution is to do with something im un aware of because of my lack of experience,

View 7 Replies

ActionScript 2.0 :: LoadMovie Not Working On Server?

Nov 2, 2007

why doesn't loadMovie("folder\file.jp",this); work? Could it be something with folder/file permissions on the server? It works in my computer but when I upload it to the server..it doesn't!I have the folder and the needed file already in the server.

View 1 Replies

ActionScript 2.0 :: LoadMovie Getting "Target Not Found"?

Jan 29, 2009

have a hard time seeing why the code isn't quite working:on frame 4 I have:

var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
var image:MovieClip = mc.createEmptyMovieClip("image", mc.getNextHighestDepth());
image.loadMovie("gallery1.swf");

[code].....

View 1 Replies

ActionScript 2.0 :: Flash8 Suddenly Not Working In IE - Won't LoadMovie

Nov 10, 2009

I have a photo gallery I developed using AS2 in Flash 8 Pro. You can find it at [URL]. I used a loadMovie to import different swf files into the main swf file when a button is clicked. It works great in Firefox and Safari but suddenly stopped working yesterday in IE. It worked in IE (6, 7 and 8) since last Friday when I uploaded it but stopped yesterday. I am using IE on Windows XP. I did try IE on Vista yesterday when I started having trouble with my XP IE and it seemed to work...however, this morning I can't even get my IE Vista to come up so am not sure it is still working on that version. I removed the preloaders that are in the imported swf files but it didn't help so I put them back in. I am using the following code in my html to embed the flash:

[Code]....

View 8 Replies

ActionScript 2.0 :: LoadMovie, Stop/play Not Working?

Jan 16, 2009

Anyway I am having problems with my flash file. I am calling a movie through actionscript using the loadMovie command into a container (movieclip) on stage. The code i have used is below;

Code:
var MoviePath =Path[slide_count];
loadMovie(MoviePath, loader_mc);;

The movie files are stored externally, and i have set the paths into an array as there is multple movies.

The problem I am having is pausing the actual movie and resuming it when they clicked on a particulr button on stage.

I have used this two codes when they click the pause button. But am not sure why it is not working.

Code:
this.loader_mc.stop();
this.loader_mc.play();

I have traced to see whether the button is working or not and it seems to be responding when i click on the button. Just that the movie is not pausing.

The whole flash file is set on one scene with buttons on the one layer, the actionscript on another, and the movie container (loader_mc) is on its own layer as well.

Any support will be well recieved, as I have wrapped my brain around this and cant seem to solve it. I have tried various combination as well. being,

_root.stop();
_root.loader_mc.stop();
_this.loader_mc.stop();

View 9 Replies

ActionScript 2.0 :: Loadmovie - Random Variable Not Working

May 16, 2002

The tutorial in The Best of Kirupa isn't working for me! When I try doing this:

rn = Math.round(Math.random()*1000000);
loadVariablesNum ("flashdata.txt?reload="+rn,0);

I get a debug error: Error opening URL "file:///C|/pathtofolder/flashdata.txt?reload=263757" Where the reload variable is the random number and flashdata.txt is the file that contains the variable I need.

View 9 Replies

ActionScript 2.0 :: LoadMovie With SetTimeout Delay Function Not Working

Aug 16, 2009

I'm trying to load a .swf into a containerMC with a button action. I want it to delay the loadMovie action for 1 second to allow an out animation to finish playing. The buttons (next and back) are in a MC on the main timeline of the swf.

I have this code in 1st frame of main timeline:

_global.nextMC = function() {
_root.containerMC.loadMovie("images/folio/chevron.swf");
};

[Code].....

I feel like I'm close, but probably just am missing something here in my setTimeout syntax.

View 2 Replies

ActionScript 2.0 :: LoadMovie Not Working - Loading Doesn't Load At All?

Sep 15, 2006

I have a movieclip called masterloader in my flash project, and I have

[Code]....

when it actually loads in the movie, yet the movie I am loading doesn't load at all. It's only a one framed picture.

View 4 Replies

ActionScript 2.0 :: Load An JPG Dynamically - Method LoadMovie Isn't Working?

Mar 2, 2004

I need do load an JPG dynamically. The URL is variable pase by Javascript.So... I have do create de variable in the JS e send it fo Flash.I'm getting this variable already. Using swfLiveconnect, and in the javascript the method SetVariable(var,value); I'm changing de value of the var. I can chage textfields, but the method loadMovie isn't working, by putting de URL param as the variable I get from javascript.Here goes the code I'm using:

HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>[code].....

View 3 Replies

ActionScript 2.0 :: LoadMovie Command Not Working In Loop Statement?

Oct 28, 2002

I have the following which works fine just out side of the loop statement:

loadMovie("icons/test.jpg", "pIcon0.Icon");

But inside the loop statement no image shows up.

I need it in the loop statement because eventually the code will call the jpgs out of an array based on the loop variable. And put them in a movieclip number by the variable also.

View 1 Replies

ActionScript 2.0 :: Tell Target Not Working?

Jan 28, 2004

Here is what i am trying to do. i have a movie clip in frame one of my main timeline. In this movie clip i have a nav bar with buttons. With an on release, i set a variable and i play an animation in that movie clip, starting at frame 61. At the end of that animation, i jump to frame two of my main time line. In that frame i have a series of if statments that asks for the varible set with the on release, and it will load a new movie depending on what that varible is. Now, the code works, but the problem is it only works once. After you hit one button and it does all the actions, it will not go to frame 61 to play the animation in the new loaded movie. To get a visual, here is what i am working on:

[Code]...

View 4 Replies

ActionScript 2.0 :: Not Working Contact Form Inside Another Movie (loadMovie)

Jan 24, 2007

I have a working contact form (.swf) that doesnt work inside another movie. Alone it works, but when I call it in main movie with loadMovie it doesn't.

[URL]

I used files from Kirupa's tutorials, made by claudio and senocular.

View 3 Replies

ActionScript 3.0 :: E.target.name Not Working For MOUSE_UP Listener?

Oct 4, 2010

Code:
var buttons:Array = new Array(
_button1,
_button2,[code]........

I have 3 buttons on my stage (this is a small part of a larger project), named _button1, _button2, _button3 declared in an array so I can dynamically assign listeners and use a substring of the instance name to determine which button was clicked for other functions.My problem is that trace(e.target.name); returns the value _button1 on ROLL_OVER and ROLL_OUT as expected. However when clicking the button it returns "instance9" instead of the actual instance name I gave it.Why is this happening and how do I make it return the correct name? Why the hell would my buttonClicked function return a different result from the buttonOver function where the target is the same button for each function?

View 3 Replies

ActionScript 3.0 :: Target Shooting Game - HitTestObject Not Working

Mar 22, 2011

I'm making target shooting game and the hitTestObject not working its located in the function collision detection below in my code:
import fl.motion.MotionEvent;
import flash.events.MouseEvent;
var xSwitch:Array = new Array ;
var count:Number = 120;
var seconds:Number = 0;
var minutes:Number = 0;
[Code] .....

View 1 Replies

Flash :: Professional - Drop Target Not Working In Container?

Mar 3, 2010

I have produced a Flash movieclip, containing a fair few layers, including masked layers, actionscript etc. One of the things it does is allows the user to click and drag a number of movieclips and drop them anywhere within the mc, but if they drop them on specific drop targets then some actionscript (AS2) kicks in, stops the drag object from being draggable again and advances through its frames to basically 'enlarge' the drag object and play a sound to show the user they've hit the right mark. This all works perfectly on its own, or in a browser window etc.

The problem I have is when I try to insert the Flash movie into an Adobe Captivate 4 e-learning package. Things work ok apart from when you drop the dragged object onto a drop target, nothing happens. The actionscript doesn't execute. Would the fact that the movieclip is (probably) sitting within a container (the Captivate e-learning package) be causing the problem? If so, how do I get around this issue?

View 5 Replies

Professional :: 2nd Scene Not Working If Landing Target Is Other Than 1st Frame

Apr 19, 2010

Ok... I have 2 scenes.... 1st scene is an intro menu with several movie clip symbols (let's call them buttons for all intents and purposes) that gotoAndPlay various sections of the 2nd scene when clicked ... The various buttons on this intro screen point to different frame numbers in the 2nd scene... button1 goes to frame 1 of scene 2... button 2 goes to frame 10 of scene 2.... button 3 goes to frame 20 of scene 2 and so on....

when I click  the 1st button, it takes me to the 2nd scene at frame 1 and correctly shows me that page ... (all 2nd scene pages have a navigation bar at the top to access the other 2nd scene pages) ... when I click on a navigation button it takes me to the next page within the 2nd scene that I am looking for and each progresive page works correctly.

[Code]....

View 6 Replies

ActionScript 2.0 :: Drop Target Function Stops Working?

Sep 16, 2009

I made a flash site and one of the pages has drag and drop functions with drop target actions, so that text appears once dropped onto a target.It works fine but when I have it loaded inside an external editor, the drop and drag still works but the drop target function stops working.

View 0 Replies

ActionScript 2.0 :: Target Path In External SWF Not Working Correctly

Jun 5, 2007

Alright, so I've tried quite a few things with no luck. I have a scrollbar that works in the swf fine, but when loaded into my mainmovie container I get this error...
Target not found: Target = "/scrolling text " Base = "_levelO.swf container"

Basically I understand this to mean that the externally loaded movie cannot find the instance name /scrolling text. The code is as follows that I have set to the scrollbar button in the externally loaded swf....

on (rollOver) {
tellTarget ("/scrollingtext") {
nextFrame();
} gotoAndStop("down1");
}

I tried changing the target to _root.scrollingtext with no luck. Also tried _parent.

View 1 Replies







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