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


Similar Posts:


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 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 :: 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 :: Controlling Dynamically Loaded Movie Clips?

Mar 3, 2004

Im creating a booklet with turning pages, like the one previously posted, so all the content is loaded dynamically.On the right hand page i have text, of which some lines are interactive.On the left page, i have a hidden text box. When the user clicks on a certain line on the right page, the text box on the left page becomes visible, and the relevant txt is loaded into the text box.Now, i can make the text box on the left page invisible by placing _visible = 0; directly into the actionscript pane of the text box.What i cant do is make it visible by clicking on the right page text. Where should i put the code to make the text box visible?Is it as simple as movieClip._visible = 1; ?

View 10 Replies

ActionScript 2.0 :: Targeting Dynamically Loaded Swfs?

Mar 21, 2006

Having trouble targeting movieclips in a dynamically loaded swf. (Flash 8, Actionscript 2).I have a swf file, which contains a set of duplicated movieclips, that I am loading into another swf file (using the movieClipLoader() class), basically like this: "swfA" is loading into "swfB", and I have clips 1, 2, and 3, inside "swfA."I don't seem to be able to mouseover and click clips 1, 2, and 3, when "swfA" is loaded into "swfB". But when I run "swfA" on it's own, the clips are active and clickable.I've tried setting "this._lockroot = true;" at the top of "swfA", and tha in the duplicating script, but still no luck targeting the clips.I usually execute the duplicating script on the main swf (swfB), but I wanted to contain everything in a swf, thinking it might be simpler. But the targeting problem has me scratching my head.

View 1 Replies

Flash :: Loading A SWF Dynamically Causes Previously Loaded SWFs To Misbehave

Mar 26, 2010

I have run into a very strange problem with Flash and Flex. It appears that under certain circumstances, movie clips from a SWF loaded at runtime (using Loader) cannot be instantiated if another SWF has been loaded in the mean time. Here is the complete code for a program that reproduces the error. It is compiled using mxmlc, via Ensemble Tofino:

[Code]...

View 4 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 :: 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 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 :: 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 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 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 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 :: 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 :: 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

ActionScript 3.0 :: Loaded Swfs Not Working When Loaded Through Xml?

Jun 10, 2010

I have a "photo" gallery that loads numerous SWFs through xml, one by one on click. All works fine. All my SWF work fine stand alone. But when I load them into the player, many swf dont work properly.in example, I have textinput textfields in many of the swfs, which work fine on their own but not when loaded into the player. Then I have a word search game that works fine when alone, not when in player. I can see there is something as my mouse cursor changes into the "button finger", but nothing visual.

All drag and drop assigments work fine etc. I have no idea whats up. I have receantly switched to as3 and in as2 there was _lockroot declaration that solved similar problems, but now in as3 (where it supposedly should be automatic) it doesnt work. As it seems that it cannot recognise it own stage value, or selection_focus when loadedinside another swf through xml.Using cs4, as3.

View 4 Replies

Dynamically Controlling Many Instances At Once?

Mar 19, 2011

i am trying to control 30 instances of a movie clip dynamically. the instances are as follows

ship1
ship2
ship3

[code]....

coming from php i would just set up an associative array like list array('speed'=>array(false,false,true,...),'weapon '=>array(true,false,....and so on I can not for the life of me figure out how to store this information and then use it as a variable name later.my end result should look something like this .. i just don't understand how to do this in as3 .. it seems unnecessarily convoluted.

Code:

foreach($upgrades['speed'] as $key => $val)
{
UpgradeScreen.'speed'.$key.visible = $val);
this would dynamically call

[code]....

i know the above is incorrect.I want to create this so that it is completely dynamic and the instance names can be feed in dynamically as the array or whatever is being looped.

View 9 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 A Movie Clip Dynamically From SQL?

Mar 21, 2006

I have a movie clip with 11 frames containing 10 different images named "thermometer". I have a dynamic text box on the root of the movie with the var name of "therm"

action script in MC "thermometer"=
onEnterFrame = function() {
if ((therm <= 15000) && (therm >= 0)){

[code].....

View 4 Replies

ActionScript 2.0 :: Dynamically Importing Audio From Folder And Controlling It In Swf

Mar 24, 2010

How can I get this flash file to import this audio file and be able to pause and reset the audio?The file I have I was able to get it to play but I can not pause it, it just re-sets it.I also can not figure out how to get a progress bar to match the audios progress.Has anyone done this befor or have a fla with code I can look at and revers enginere? URL...

View 2 Replies

ActionScript 2.0 :: Controlling Clips Created Dynamically With Loops

Jun 19, 2006

how to make a grid of squares with loops? also, how do i controle the clips that were dynamically created with the loop. like clip25 only?

Code:

total = 5;
i = 1;
while(i<total){

[Code].....

View 10 Replies

ActionScript 2.0 :: Controlling Clips Created Dynamically With Loops?

Apr 20, 2011

i was wondering how to make a grid of squares with loops? also, how do i controle the clips that were dynamically created with the loop. like clip25 only?

Code:
total = 5;
i = 1;

[code].....

View 2 Replies

ActionScript 2.0 :: Controlling Playback Of Dynamically Referenced Movieclips

Mar 4, 2005

There is a nav section of just 2 buttons, one for the "previous step," and the other for the "next step."

Just to make it easier (or maybe not...) I've named all instances of my movieclips "mc1" "mc2" etc... And I've created ActionScript that notes what "page" you're on, and using a for loop, makes the movieclip that corresponds to the current page (page #2 >> mc2) visible while at the same time making every other movieclip invisible. I've got all of that working properly.

What I need to fix is... Say you view the first step's movieclip, and you go on to the next step, but then want to go back to the previous step to watch it again... What you'll see is the last stopped frame of that movieclip rather than seeing the entire animation over again.

You'll be able see what it's doing in the code...

Code:
stop();
// Declare variables
pageNumber = 1;
maxPageNumber = 12;

[Code].....

I know that I can use setProperty to reference something like "mc"+i, but can I do the same thing with play()? Obviously "mc"+i.play(); doesn't work...

View 1 Replies

Actionscript 3 :: Controlling The Mc's Of A Loaded SWF?

Apr 26, 2010

I have a controller.swf which loads an external swf into a movieclip.

news_mc = loadEvent.currentTarget.content as MovieClip;

the swf is called "news.swf" and has a movieclip on the maintimeline, frame 1 called "sb".

I have tried everything to access this such as

mews_mc.sb.alpha = 0;

but nothing works?

View 1 Replies

ActionScript 3.0 :: Controlling The Loaded SWF?

Jan 20, 2010

I'm loading a SWF into a main SWF using the code bellow, from senocular tutorials:

Code:
var request:URLRequest = new URLRequest("home.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);

[code]....

I have buttons inside a movie clip, at the main movie (parent) and I want to control the home.swf movie that I just loaded. How can I do that?I'm trying this, without any result:

Code:
function botao_clique(e:MouseEvent):void{
MovieClip(root).window_mc.textos_mc.gotoAndStop(2);
}

View 4 Replies

ActionScript 3.0 :: Controlling Audio In Loaded SWF

Jan 23, 2009

I have several flash swf's that are about 10 - 20 min. each. I load these in a player that I have created as the user selects them from a menu in the main swf (a swf player basically). I can pause start and stop the swf's with no problem, but I can't seem to get a handle on controlling the audio. I have the audio in the loaded swf's timelines because I need to sync the audio with the animation taking place in those swfs. I could, take the audio out of the timeline (after syncing it), and then load it separately, but it would be much cleaner for me to just have it in the timeline.

I've resorted to the SoundMixer of the main swf to mute and change the volume, but I can't get hold of the Sound(), soundTransforms etc. of the loaded swf. To assign a play location for the soundChannel I need to access the loaded swf's Sound().Play() function, but I can't seem to do that. I have exported the timeline audio in it's actionscript, supplied a name (same as it's class name), and then tried to access it, but I can't seem to do it (yes I wrap the loaded.content variable in a MovieClip cast--that's how I can control the pause and play of the animation). Tutorials I have found only seem to work with sounds loaded into variables, and none refer accessing timeline sounds in a loaded swf.

View 5 Replies

ActionScript 3.0 :: Controlling Loaded Swf Rewind?

Aug 2, 2009

I need to bring the playhead to the begining (rewind) each time the onsound button is clicked. But a loadimage function was used to load the swf.

View 10 Replies

Professional :: Controlling MovieClip Loaded From SWC

Aug 25, 2011

I'm loading assets from a swc and I need to loop through every frame of the movieclip and find a certain instance so I can colorize it. Is this possible? It seems that with a swc I loose the ability to control the movieclips playback. It just plays and repeats no matter what I do.

View 4 Replies







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