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


Similar Posts:


Flash :: 3D Transforms On Loaded SWFs Aren't Working

Dec 12, 2011

Our creative team produces SWF animations in the Flash CS5 authoring tool that we (the engineers) load at runtime into a project built using the Flex SDK. Animations that don't use the "3D rotation tool" work just fine.

Animations that use the 3D rotation tool give the following behavior:

MovieClips that have 3D tweens applied using the 3D rotation tool show up in the top-left corner of the stage as if they had no transform at all (i.e. as if their Matrix3D was being ignored, and their Matrix was identity) MovieClips that have normal 2D tweens animate properly Alpha and other non-affine properties tween properly

Both 3D and non-3D animations play fine when loaded by themselves in a browser tab or the standalone flash player. 3D is only broken when loaded into our code generated SWF.

So it seems that for MovieClips with 3D transformations applied in the CS5 authoring environment, those transformations aren't being applied / respected when the SWF is loaded by our code SWF.

This is my first foray into 3D, so I'm not sure what could be causing this, but here's what I've tested / checked / tried, all to no avail:

I've ensured that actionscript 3 and Flash Player 10 / 10.1 is selected in the authoring environment. I've tried loading animations into code SWFs built using Flex 4.1, 4.5, and 4.6 at Flash player versions 10.0, 10.1, 10.2, and 11 I've applied Matrix3D to the containers that load the SWF animations, both identity and rotated. I can see the rotated containers do work with 3D in perspective, so I know that my code SWF is 3D capable.

View 3 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 3.0 :: Using New() On Loaded Swfs?

Aug 7, 2010

Usually when I want to create multiples instances of a same movieclip (that's already in the main .fla library) I use new mcClassName()but what if the clip is external, for example Ball.fla, Ball.as and Ball.swf? I've loaded Ball.swf into the main .fla and I don't know what to do now

View 4 Replies

ActionScript 1/2 :: Loaded Swfs Distorting?

May 5, 2009

I've made a simple portfolio web site which loads a swf file containing the navigation at the top and then the navigation loads individual swf files containing full page images.The problem is the full page images are distorting very slightly when they are loaded in. I've attached two images, the first image (picture2.png) is how looks when I just open the image's swf file, and the second image (picture3.png) is how it looks after its loaded in by the navigation.

View 2 Replies

ActionScript 3.0 :: Unloading Xml Loaded Swfs?

Sep 29, 2008

how to unload the swfs in as3 once you click a button to load a new one.

My file works great, with the exception of the videos playing over each other. slight bummer.

I have five buttons that each pull an external swf that is controlled by an xml file. If there were not sound it would not be an issue, but the sound overlaps if you click to the next link before the first video finishes playing.

I uploaded all the files here, including two test flv files. the files were too big to upload to the kirupa forum.

[URL]

View 3 Replies

ActionScript 2.0 :: Two SWFs Loaded - Possible To Control One With Another

Nov 22, 2009

I m loading 2 .swf in one flash file and want to control one with another. The first contain small animation and other has play and stop button. Now I want to control that animation with these 2 button.
Files details:
test1.swf: It has the animation
test2.swf: It has the 2 buttons
test3.swf: It is the main file, in which I m loading the 2 files i.e. test1.swf and test2.swf

View 1 Replies

ActionScript 3.0 :: Keep Menu On Top Of Loaded Swfs?

Jan 9, 2011

This may seem a stupid question but I just started learning AS3, Is it possible to keep my menu on top of externally loaded swfs? My menu is sitting on the main timeline as movieclip and the externally loaded swf overlap my main timeline completely completely covering my menu.[code]....

View 5 Replies

ActionScript 3.0 :: Scope Of Loaded SWFs

May 5, 2011

I recently changed the setup of my project from only having one SWF, to loading in my main SWF through a preloader. I'm facing a problem of scope. My old code for targeting things no longer works. This is it.

ActionScript Code:
if (this.parent.contains(Credits)) {
Credits.gotoAndPlay(120); CreditsText1.gotoAndPlay(120);
}

What would I change this code to in order to target the exact same spot in my loaded SWF? I should add that all my code is in an external .as file, which is set as the DocumentClass for the loaded SWF. I've tried both "this.parent.parent.contains" and "this.contains" Neither worked.

View 5 Replies

ActionScript 3.0 :: How To Keep A Menu On Top Of Loaded Swfs

Jan 8, 2011

Is it possible to keep my menu on top of externally loaded swfs? I believe it should be but I just cannot figure out how to do it. I have searched around and I believe I should use something like addChildAt but when I try to use it in the main menu actionscript my external swfs do not load anymore.. My menu is sitting on the main timeline as movieclip and the externally loaded swf overlap my main timeline completely completely covering my menu...

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 3.0 :: Accessing Variables In Loaded SWFs

Oct 12, 2009

If I load an SWF file, is it possible for the pre-loader to access and change a string variable inside the loaded swf? Is there any special way to do this or would it be a simple case of loadedMC.variable = "new value"

View 3 Replies

ActionScript 3.0 :: Make Transitions Between Loaded Swfs?

Oct 13, 2009

I am trying to make transitions between loaded swfs. Below is my code. I know I need to add to one of the functions to make it play the "out" transition before the new swf is loaded. Each swf has a timeline with a stop frame and a frame labeled "out". The below script allows me to press buttons and load the coresponding swf to the stage.

Code:

package
{
import flash.display.MovieClip;
import flash.display.SimpleButton;

[code]....

View 21 Replies

ActionScript 3.0 :: Accessing Variables In Loaded SWFs?

Mar 16, 2011

If I load an SWF file, is it possible for the pre-loader to access and change a string variable inside the loaded swf? Is there any special way to do this or would it be a simple case of loadedMC.variable = "new value"

View 2 Replies

ActionScript 3.0 :: Loaded External Swfs With Transitions

Oct 26, 2009

I need help getting my loaded swf files to play the "out" transition before the next movie loads. I have a main swf with 5 buttons (movie clips) that load external swf onto the stage.[code]The loaded swf has a stop() an intro animation and on the last frame have.dispatchEvent(new Event("removeMe", true));

View 6 Replies

ActionScript 1/2 :: OnLoadInit - Go To Frame When All The SWFs Are Loaded?

Apr 28, 2010

This code is not functioning! How do I amend this code to go to frame 5 when all the SWFs are loaded?

[Code]...

View 2 Replies

AS3 :: Xml - Space Externally Loaded Swfs With Different Heights?

Feb 17, 2011

I'm loading in swf files into a holder swf and want to position each loaded swf underneath eachother with a 10px margin.

This is what I have so far, Its pulling in all the data correctly now just want to position the loaded swfs.

import flash.display.LoaderInfo;
var swfLoader:Loader;
var xml:XML;

[Code]....

View 1 Replies

ActionScript 3.0 :: Removing Unnecessary Loaded SWFs Already Seen?

Jan 28, 2009

I'm loading 31 SWFs in total. For example, the first one shows and it has a 'Next' button. When Next is clicked, then it loads the second SWF; and so on until reach a total of 31 SWFs.

No problem here, but thing is that while more SWFs I'm loading, heavier gets the file and little by little it's being taking longer to load. Because when I reach the 31 SWFs, I got a total of 31 childs loaded one after another.

I've been thinking in the posibility of removing the SWFs once they are no longer seen but can't find how to do it...

This is what I'm doing:

ActionScript Code:
import flash.events.MouseEvent;
import flash.display.Loader;
import flash.net.URLRequest;

[Code]....

It basically does this in every one of the 31 FLAs, so, as you can see, it goes loading and loading SWFs. Problem, as I said, while bigger the amount of SWFs loaded, slower the process gets. I'm using e.target.parent.addChild because all this is inside a MovieClip called mc.

How to remove the ones I'm no longer using?

View 4 Replies

ActionScript 3.0 :: Removing Loaded SWFs Into MC On Stage

Oct 10, 2009

I am loading external swfs into a MC on the stage. I noticed they are stacking up and not being removed or replaced. How can Iremove the previous loaded swf?

Code:
package {
import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.MouseEvent;
[Code] .....

View 3 Replies

ActionScript 3.0 :: Make Transitions Between Loaded Swfs

Oct 14, 2009

I am trying to make transitions between loaded swfs. Below is my code. I know I need to add to one of the functions to make it play the "out" transition before the new swf is loaded. Each swf has a timeline with a stop frame and a frame labeled "out". The below script allows me to press buttons and load the coresponding swf to the stage.[code]

View 9 Replies

ActionScript 2.0 :: Communicating To Swfs Loaded In Movie?

Jan 24, 2010

I'm loading movies into my parent movie, and i was wondering if it was possible to communicate between the two - so i could swap out other external SWFs (in the parent) based on input in the loaded movie.I'm still relatively new to Action Script, and have been learning quick, but i have been unsuccessful in my attempts so far.

View 3 Replies

Actionscript 3.0 :: Preloading External Loaded Swfs?

Apr 13, 2009

this is the code i'm using to load external swf files....

Code: Select allstop();
/////////////////////////Music
var s:Sound = new Sound();
s.load(new URLRequest("rainbow.mp3"));

[code].....

but how do i implement this code for preloading ever swf?

Code: Select allloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);function loadProgress(event:ProgressEvent):void {var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;percentLoaded = Math.round(percentLoaded * 100); trace("Loading: "+percentLoaded+"%");}function loadComplete(event:Event):void {   trace("Complete");}

all i want is a simple text with % preloader on all the loaded swfs?

View 2 Replies

ActionScript 2.0 :: Preloading Remote Loaded Swfs?

Oct 19, 2003

I have created a prelaoder for my whole .swf file but as this .swf is a gallery I would like to load in pictures when you click on certain pictures is there anyway to do this i.e if you load picture01.jpg into movie01 how do you use a preloader to preload this???

View 1 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 :: Flashing Between Externally Loaded SWFs

Apr 11, 2005

I have the buttons at the bottom of my site load each "section" of the site from external swf files in the same directory as the main movie. When you switch back and forth between the sections there is a flash (like its loading the swf file every time you press a button maybe?). I have each section loading into the same container. I tried multiple containers but I couldn't figure out how to stop one from loading over the other, then you couldn't see the previous swf anymore (once a new one loaded it was on top of the others). Basically something to do with loadMovie and containers I guess. Here is the work in progress. The buttons load the external movies on release into a container.

>>> Flashing External SWFs <<<
What I want is a nice transition that you don't notice. With that flash you can basically tell its loading a new clip in. I want it to be seemless to the viewer.

View 4 Replies

ActionScript 2.0 :: Viewing Loaded External Swfs?

Jul 27, 2005

I'm hoping someone can help me. I have a main.fla with six movieclips acting as buttons, each loading a separate external swf into a "container" movieclip. The external swfs are playing inside the container when called, but they don't appear as they should. When played separately through FlashPlayer, the external swfs look fine. But when they're played inside the container mc from the main swf, only the bottom-most layer appears the one-line drawing and text are not visible.

view the flas and swfs in the attached zip. Only the "Event 1" button is functioning since I've only included the fla and swf for this button.I'm an AS rookie and troubleshooting this problem is WAY over my head!

View 1 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

ActionScript 2.0 :: Loaded .swfs Running Slowly?

May 1, 2006

I have a main interface which loads up a series of animated .swfs, one after the other into an empty movie clip, under a mask layer on my main timeline.My problem is with the loaded swfs running really slowly. Without them being loaded into the interface, they run fine, as I have tested them online.But once they are within the interface, they run really slowly, especially when the redraw regions are biggest.
I'm just using

loadMovie("FirstMovie.swf", "_root.empty_mc");

In my main timeline to load the first movie, then

this.loadMovie("SecondMovie.swf");

...on the final frame of the first movie, and so on.As you can see, I havent put any numbers or channels in, as I'm not sure how they work. Could this be why my swfs are running so slow?

View 5 Replies

ActionScript 2.0 :: Swfs Appearing Before Fully Loaded?

Sep 3, 2006

I'm having a strange problem while preloading external swfs. I have about 6 external swfs that load whenever their respective button is clicked. Each swf will have a short animation that builds the page. Initially, i was testing the swfs with the full page assembled on frame 1.

Everything worked as it should until i started building the animations. Now, instead of the animation starting when the swf is fully loaded, it starts when the preloader is around 60%. This happens everytime at 60%. If I take the animation off and go back to 1 frame, it shows up when it's supposed too, at 100% loaded. I thought i could get around it by putting a stop on the first frame and telling the swf to play with onLodInit(), but it still shows up early with the stop() on frame 1. Just wondering if anyone else has ever experienced this weird problem?

View 3 Replies







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