ActionScript 2.0 :: Loading SWFs Into Scenes - Controlling Position On Screen

Dec 4, 2002

I have several buttons, that link to several scenes, containing swf files. Using the loadmovie command I can get these swf's playing on-screen. That's good.

-How can I control where they appear on my document (I'd guess these require some x or y values, but not sure how this is done) as they all appear in the top left-hand corner.
- When I mouse over another button (link to scene/swf) how can I remove the previous swf from the page, then load the new swf -as they all appear in the same spot/all over each other? Is this an unload movie command?

I was hoping to counter this problem by using different scenes (no luck there) and all I really need to do is remove the previously loaded swf, when the new one is loaded.

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Loading Sub SWFs Behind The Scenes Into MC

Apr 18, 2010

I have a site that has one main file and then another five sub swfs that get loaded in when you click on various buttons. I would like to load these sub swfs behind the scenes, even before they click to open them. Is there a way to load them into some mc without adding it to the stage, but making it so that when they do click to actually load that swf in, it will already be cached? I'd prefer not to do a traditional preloader for each and every sub section. I'd rather just load in all the sub swfs, have them cached and ready to go so that when they do click on a section, it will be good to go.

View 1 Replies

ActionScript 2.0 :: Controlling Mc.'s Position On Screen?

Jan 19, 2004

I have a mc w/ an invisible button attached to my main stage called mc.return.Attached to the mc.return is the following script:

[AS]on (release) {
mc.blkqueen._x = 275.3;
mc.blkqueen._y = 461;
}[/AS]

The mc.blkqueen has startDrag and stopDrag actions attached to it (which works fine). It has also been instanciated as mc.blkqueen.Seems logical to me that pressing mc.return should place mc.blkqueen at 275x461 - but nothing happens when I test it.

View 1 Replies

ActionScript 2.0 :: Controlling Mc's Position On Screen

Jan 19, 2004

I have a mc w/ an invisible button attached to my main stage called mc.return. Attached to the mc.return is the following script:

[AS]on (release) {
mc.blkqueen._x = 275.3;
mc.blkqueen._y = 461;
}[/AS]

The mc.blkqueen has startDrag and stopDrag actions attached to it (which works fine). It has also been instanciated as mc.blkqueen.

Seems logical to me that pressing mc.return should place mc.blkqueen at 275x461 - but nothing happens when I test it.

View 1 Replies

ActionScript 2.0 :: Controlling Order Of Loading External SWFs

Mar 22, 2004

Is it possible without looping to control which of 12 or so external swfs loads first when they all have to load on the same frame of the main movie? For example, we have a main movie which creates classes where the class is itself in an external movie. When we load locally, the movies all load fast enough that the classes are created correctly, however when we move to loading from the server some of the class movies are not loaded into their levels before the main movie tries to create the class with of course the result being the class is not generated and the movies do not function correctly.

View 2 Replies

ActionScript 2.0 :: Controlling The Order Of Loading External Swfs?

Mar 22, 2004

It could be that using loops is the only way to do what we want, however ever the optimist I'll ask the question anyways.

Is it possible without looping to control which of 12 or so external swfs loads first when they all have to load on the same frame of the main movie?

For example, we have a main movie which creates classes where the class is itself in an external movie. When we load locally, the movies all load fast enough that the classes are created correctly, however when we move to loading from the server some of the class movies are not loaded into their levels before the main movie tries to create the class with of course the result being the class is not generated and the movies do not function correctly.

View 2 Replies

ActionScript 2.0 :: Mc Loader And Swfs Loading And Position?

Oct 4, 2006

Here is the thing : on rollover on thumbnails ( buttons)its preview has to appear on the top of it.My corrected code works fine exepted that my swf don't load in a good way..they load at 60 kms from the thumbnail...and in a distorted size!I don't get it.I turn the thing in all ways but it is getting worth...What is my mistake?Code for each button ( thumb)

on (rollOver) {
_root.caption._visible = 1;
_root.caption.image_mc.loadMovie("images.swf");

[code].....

View 1 Replies

ActionScript 2.0 :: Loading Swfs Depending On Screen Resolution

Dec 19, 2006

I had done a swf content for some major resolution ..flash800.swf,flash1200.swf,flash1600.swf. I load a swf at first which detects the x resolution of a screen and then loads appropriate content. the problem is that tke decision-making swf loads that flash movie into itself , so I have to do the checking resolution swf the maximum width and height the same as in the biggest (flash1600.swf) movie loaded into it....that makes all my work meaningless.

View 4 Replies

Controlling Sound Objects Across Scenes

Nov 14, 2007

I'm doing a project that I have to use scenes in, I have a sound object that i want to be able to control in all scenes. I set up global variables for the sound object and a boolean to check if the sounds currently playing like this :
PHP Code:
_global.sound1= new Sound();
_global.sound1.attachSound("song");
_global.soundplaying = 0;

In each scene I have two buttons a stop and a play button, Heres my code for play:
PHP Code:
if(!_global.soundplaying){
_global.sound1.start();
_global.soundplaying = 1;
}

And stop:
PHP Code:
_global.stewielaugh.stop();
_global.soundplaying = 0; 
Doesn't seem to work, if I press play in scene one and go to scene 2 and then return to scene one the sound can be played again on top of the already playing sound object.

View 2 Replies

ActionScript 3.0 :: Controlling Eksternal Swf (Scenes, Frame) From Main Swf?

Jan 8, 2011

Am gonna create an encyclopedia program, consist many of Chapter. I have difficulties about **controlling external swf inside my Main swf**. This is my Main.as in Actionscript 3

Code:
public class utama extends MovieClip {
var loader:Loader;

[code]......

View 1 Replies

Actionscript 3 :: Controlling External Swf(Scenes, Frame) Inside Main Swf?

Jan 8, 2011

Am gonna create an encyclopedia program, consist many of Chapter. I have difficulties about controlling external swf inside my Main swf. This is my Main.as in Actionscript 3

public class utama extends MovieClip {
var loader:Loader;
var urlReq:URLRequest;[code]........

Am using eksternal page as a Chapter, and A Chapter consist of many Pages (it using Scene)
For an example :

Chapter 1 --> Page 1 it will be represented as hal1.swf-->Scene 1
Chapter 1 --> Page 2 it will be represented as hal1.swf-->Scene 2

Now, How to control it, I still didn't get it ??

View 1 Replies

ActionScript 2.0 :: Transition Between Scenes Instead Of External Swfs?

Aug 12, 2009

[URL]

how to do the transition between scenes? instead of external swfs?

View 3 Replies

ActionScript 2.0 :: [MX04] Store A Mc's X-position Between Scenes?

Feb 13, 2009

I make making a basic animation / game. Basically I need to have a movieclip named "ground" stay in the same position between scenes. It will be moving around and at certain moments, the movie goes to other scenes and it needs to place the ground at the x-postion where it was last at. So I had:

I set a variable (xpos) to be 0 earlier and then i have:

if(blah blah happens){
gotoAndStop(nextScene()){
_root.xpos = _root.ground._x;
}

and then in the next scene I have

_root.ground._x = _root.xpos;

But it only works randomly. Some time it will work for certain scenes and certain actions and other's it doesn't work.

View 1 Replies

ActionScript 3.0 :: AIR Switching Scenes, But Assets Stay On Screen

Dec 16, 2011

I had to set the "Default linkage" actionscript setting to "Merged into code."

I have pretty basic AS that says to switch to a different scene, and it will switch, but movie clips from the original scene won't disappear. Never happened before...

Code:
function unit1MainMenu(event:MouseEvent):void {
gotoAndPlay(1, "Main Menu Unit 1");
}
MainMenu.addEventListener(MouseEvent.MOUSE_UP, unit1MainMenu);

View 2 Replies

ActionScript 2.0 :: CS3 Buttons In Loaded Swfs Loading Other External Swfs Into The Main Timeline?

Sep 11, 2009

I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf

View 3 Replies

ActionScript 2.0 :: Possible To Controlling Loaded Swfs?

Apr 21, 2004

What I'm trying to do is create buttons in one swf that load another swf and also give instructions to begin playing from a certain frame in that swf. The target swf has a preloader on frame 1 and then a movie clip that contains a video in frame 2. Depending on which button the user presses the video will be cued up ready to play at different frames. think it may need an if statement ie if x=34 then goto frame 34, but I can't seem to pass the variables to the loaded swf.In the zip file is an example of what I'm trying to do.

View 10 Replies

ActionScript 1/2 :: Controlling Embedded Captivate SWFs

May 25, 2006

I have a SWF (SWF A) that I'm loading into a movieclip (Movieclip C)which is part of another SWF (SWF B). Basically, SWF B functions as a player, with play and pause controls. These controls control Movieclip C where the external SWF A is loaded into.Normally, I have had no problem with this and it always works. At run time, when you click the pause button on SWF B, a stop() command is issued to Movieclip C, which stops the play of
the external movieclip (SWF A) loaded into it.However, I did a screen capture with Captivate and published it as a SWF. I loaded this SWF (SWF A) into Movieclip C in SWF B at run time. However, clicking the controls on SWF I created has NO EFFECT on the SWF I created in Captivate. It just keeps playing.I guess all SWFs are NOT created equal. How can I make this work?

View 4 Replies

ActionScript 2.0 :: Controlling External Swfs Loaded Into An MC

Mar 23, 2005

what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky

View 2 Replies

ActionScript 2.0 :: Attaching/controlling External .swfs?

Mar 11, 2003

load/attach and 'control' external .swfs, i.e. loading them into a MC and then applying actions, masking, etc.

View 2 Replies

ActionScript 2.0 :: [FMX] Controlling Sounds Across Multiple .SWFs?

Apr 10, 2003

I need a little advice. I've got a set of swfs that are all part of one training, and within these movies are a few sound effects attached to button instances. I want the user to be able to click a button to turn the sound on or off at any time during the training.

My first idea was to create a variable called wantSound, which each sound instance checks before deciding to play. This is working perfectly. There's a toggle switch on the main timeline that sets sound to on or off, and when a sound is supposed to play, it checks to see if wantSound=true, and plays, or if it is false, it does not.

This works fine on each individual .swf, but when a new .swf loads in, the sound defaults back to true, and the user has to turn it off again. I imagine this could be fixed by loading each movie into different levels instead of loading them into level0 or root, but as this is not how I originally created the file, that will take a lot of work to handle aligning the loaded movies and parking them (making sure none of the buttons are active on the level below). I'm lazy, what can I say? :-)

I've been looking around at similar questions, and found a decent tutorial on Macromedia's site about using javascript to pass a variable from flash to HTML. I went through that, and managed to get Flash to send my wantSound variable to HTML with no problem. Check here for the tutorial.

The only problem is that in macromedia's example for sending data from HTML back to Flash, they use a text field for getting the variable. I just want to take the variable sent from Flash to HTML and send it back to Flash when requested (at the beginning of the next SWF.)

View 1 Replies

ActionScript 2.0 :: Controlling Dynamically Loaded Swfs?

Jun 24, 2003

how can you controll them as they are coming in? For example: i want to load three swfs but i want them to sit invisible until the user clicks a button to change visibility and see the content. The problem seems to be that you can't control it until it's all there... here's the code i have been trying.[AS]function

goMovie(xMovie, xLevel){
loadMovieNum(xMovie, xLevel);
mytry=false;

[code]....

View 3 Replies

ActionScript 2.0 :: Controlling External Swfs Loaded Into An MC?

Mar 23, 2005

what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky

View 2 Replies

ActionScript 3.0 :: Controlling Slideshow From Withing External SWFs?

Jul 27, 2010

What I have is a SWF file that calls out to 3 different SWF files via the following code:

// Array of external clips to use. Variable index refers to next clip to be displayed.var clips:Array = ["page1.swf", "page2.swf", "page3.swf"];var index:int = 0;
// Stuff to load swf filesvar thisLoader:Loader = new Loader();

[code].......

View 11 Replies

ActionScript 2.0 :: Controlling And Preloading Separate SWFs On A Website?

Jul 14, 2005

My Website opens, its written in HTML... There is a "Navigation" FLash at the top of the page which opens up HTML documents into the "Main Frame" below.Ok now... When the Website first loads up, In the Main frame of the page I want a flash swf to play as an intro to the website (Its a band website). Once the (intro) Swf ends I want it to tell the Navigation Flash Menu Swf to go ahead and show the buttons so people can navigate.Thats my first problem, or task to solve.2nd... If it is possible to control Swf's from an external one it must be possible to preload them aswell right? So what I want to do, is the site to load up... and all the preloading done from the Navigation Swf to account for both Swfs (Intro and Navigation)

View 2 Replies

ActionScript 2.0 :: Loading Other Swfs From Loaded Swfs?

Aug 2, 2006

Flash - 8 : Above is an example of what I would like to do/have done. I've gotten as far as loading the "loaded.swf" into the "start.swf" but my problem is I'd love to use that little loading action I made earlier without copying and pasting into the new movie the same actions for a different link. So, how do I load "loaded2.swf" into "loaded.swf" via the link in "loaded.swf"?

View 1 Replies

ActionScript 2.0 :: Controlling The Menu's _x Position Dynamically

Apr 13, 2010

I have a 1200 px wide scrolling menu movie clip which is placed on a stage that is 650 px wide (mc menu is approx 2X wider than the movie). It is aligned left to the stage and whenever a user moves the cursor over it - it scrolls itself around _x axis (inverted x axis). Here is the code that works:

ActionScript Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
//take mouse position and invert it

[Code].....

But sometimes during aggressive mouse movement over the menu mc, the mouse position variable goes beyond it's limits (I don't know why, latency error?) by 20-30 px. This makes the menu go way beyond its limits/bounding box and almost completely exits the screen.

I've tried adding mc that registers the movie area, limiting _x axis in the IF statement, but whatever script I make it either: glitches, doesn't move or just goes all over the place.

How can I make the menu mc move only in specified movie area?

View 0 Replies

ActionScript 2.0 :: Controlling Timeline Via Mouse X Position?

Feb 10, 2010

how to controll the timeline via moving the moiuse in x (left to right ).basicly i wsant to shocase a sculpture of mine in a seemingly quicktime vr fasion. so i will take lots of images of the sculpture in difrent agles to get the 360 degreemovie. then import intoflash timeline. Then somehow i need a script to control the scrub the timeline images (to create the quicktime vr look )

View 17 Replies

ActionScript 3.0 :: Controlling MovieClips On Screen Via XML

Jul 15, 2009

I am trying to figure out how to control 3 movieClips on the screen via XML. I can successfully control one, but I want to control all 3 if the XML has the values.

Here is my code:
var ducks:Array;
var myLoader:URLLoader;
var i:uint;
var xPos:int;
var yPos:int;
var myXML:XML;
[Code] .....

I think I would need to create some sort of list for each specific node (arrayPos, xPos, yPos, isvis) and then run a for loop so that each movieClips values get assigned properly. I have uploaded the .fla and XML for anyone who wishes to view it.

View 1 Replies

ActionScript 3.0 :: Controlling Sound Of Movie With Mouse Position?

Nov 26, 2009

is there a way in as3 to mute a video inside a movie clip if the mouse x position equals less than, say 200px?

View 1 Replies

ActionScript 2.0 :: Controlling Movie Clip Like Sclae , Rotate, Position?

May 22, 2007

I have started a project for a t-shirt store with a similar featurescan any one tell me how he is controlling the designs and text rotation and scaling inside the target area

View 2 Replies







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