ActionScript 2.0 :: Second Swf Works By Itself But Not When Loaded Into The Main Swf

Mar 18, 2003

i have a movie that loads a 2nd movie on a button action. The second movie has some other buttons ("co" & "me") that makes some text pop up with easing. This is the code below. The problem is, the second swf works by itself, but not when loaded into the main swf. I've tried changing _root to _parent as well as various others, but to no avail? Is _root my problem??

[Code]...

View 1 Replies


Similar Posts:


ActionScript 3.0 :: External XML Works Loaded Offline Not Loaded Online?

Apr 15, 2009

Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);

[code]....

View 3 Replies

ActionScript 2.0 :: Created The Main System Which Works Roughly As Follows?

Apr 29, 2002

i'm creating a flash news scroller that accesses an external file to read news headlines.I've created the main system which works roughly as follows.The main movie clip reads the external headlines & related article texts from a file (using loadvariables) and puts them into an array.I loop over the array creating several new instances of a movie clip (lets call it "news_piece"), placing one above the other. "News_piece" contains 2 text fields called "Headline" and "Article", so i change the contents of these for each instance of the movie, retrieving the contents from the array.The outer movie then scrolls the lot.It works pretty well.

Now comes the difficult bit...stay with me... sometimes the headlines can be 1, 2 or 3 lines in length. So, if I want the article text to start directly below the headline, I guess I'll have to move the lower Text field ("Article") a bit higher in that particular instance of the "News_piece" movie.So, to summarize, I wanna move the co-ordinates of a text field in an instance of a movie clip.

View 1 Replies

ActionScript 3.0 :: Load An Assortment Of Random Old Flash Works To A Main Swf?

Oct 27, 2009

I'm trying to load an assortment of random old flash works to a main swf, to just grab bits and pieces from their libraries at runtime.the embedded code of the old SWFs is unimportant and subsequently throws misc errors when i load them in. So I'd just like to disable any external actionscript and really just load an SWF's assets for use.

View 3 Replies

ActionScript 2.0 :: NetStream/netConn Works In Small Test But Not In Main Fla?

Jul 25, 2006

Im using netConnection and netStream in flash 8 to play an external flv. this is my code:

Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
vid.attachVideo(ns);

[code]....

The code, buttons and video object are all in the main timeline (scene 1) of a test fla and it works just fine. But, once I take this code and put it in my main fla which loads external audio, text, and supposedly this video, nothing happens. It doesnt play the flv at all.

View 1 Replies

ActionScript 3.0 :: Tooltips Not Working Inside Embedded Movie Clip But Works On Main Stage

May 17, 2011

I  have a movie clip that is a navigation window and I am trying to have some tooltip hover over the buttons inside the navigation window.
 
If I create a button on the main stage it hovers and works fine but if I create the same clip inside the embedded navigation window the tooltip does not show up.  I do not have any error messages but it is not there that I can see.

View 5 Replies

Loaded Swf GotoAndPlay Works Everywhere But Off Intranet Server?

Jun 24, 2009

I am loading into my movie a super simple test swf ... a moving box over 100 frames that stops at frame 100 .... once its loaded I just move it out of site so I don't reload it ... when its turn comes up again I bring it into position and send a gotoAndPlay(1) code to it ... here's the weird part it works on my server, as well as in Flash dev environment but when the swf comes off of our corp intranet server it plays fine but that code does nothing

View 5 Replies

ActionScript 3.0 :: Loaded Swf Works In Flash - But Not In Debugger

Oct 7, 2010

Im having issues with a loaded swf which works stand alone and after alot of googeling, it also works in flash cs5 the original problem was that it lost its stage after being loaded and there for it wouldnt work then i found this code:

if (stage){
stage.align = StageAlign.TOP;
stage.scaleMode = StageScaleMode.NO_SCALE;

And it now works in flash but when i test the main.swf in debugger and load this swf into it it dosent work and throws the sandbox security error. 2070.

This is the script in the loaded swf:

if (stage){
stage.align = StageAlign.TOP;
stage.scaleMode = StageScaleMode.NO_SCALE;
}

[Code].....

View 0 Replies

Actionscript 3.0 :: PreLoader Works After The Content Is Loaded?

Jun 16, 2009

I would like to add preloader with progress bar to my AS3 page. It's an image gallery. The preloader is on frame 1 and the content is on frame 2. It seems like that the loader works after all the content is loaded. And the progress bar doesn't appear on the screen. What am I doing wrong? For the quick view, the code is below. I also attach the code. To make it simple, I am testing the code with just one image.

frame 1
Code: Select allstop();
addEventListener(Event.ENTER_FRAME, loadF);

[code].....

View 6 Replies

ActionScript 2.0 :: Loaded Content Works Finein Test Mode Only?

Aug 22, 2009

I have loaded various external swf in my flash site,thew problem is that when i test my site with ctrl+alt+enter they all display properly, when i test the movie form its folder or online some of their functions or aspects bug.

View 1 Replies

LoadMovie Works But Sounds Don't Play When New Movie Loaded In Next Level?

Jan 10, 2010

Im using loadMovie within a .swf on level 1 to load an external movie into level 2. But when this happens the sound function doesnt work. The 2nd movie being loaded has the newsound defined and everything within itself. It plays if i run that swf seperately or using ctrl+enter. Yet when the 1st movie calls the 2nd movie onto level 1 at runtime.The sound in the 2nd movie doesnt play. But its button sounds all seem to be working.

View 1 Replies

ActionScript 2.0 :: Externally Loaded Sound Works On Local Machine - But Not Online

Sep 19, 2006

I'm using loadSound to load in external MP3 files and they load and sound great on the local machine but don't work when I upload the files to the web. I'm pretty stumped. The MP3 files are only like 10k and 60k so it can't be a size issue (I'm on a T1 line here at work too). Here is the site: [URL] Basically when you walk close to the fire you should hear the fire crackling and it will get louder as you get even closer. Everything works on my PC, just not online. Here's the AS code for the fire:

[Code]....

View 3 Replies

ActionScript 2.0 :: Multiple Externally Loaded Txt Files - Works Offline But Not Online?

Apr 23, 2007

I am loading 2 external text files into my SWF.. I believe that my action script is correct as it works pefect offline.. However as soon as I uploaded it to my webspace, both text boxes have the "undefined" text sitting there.. The problem doesn't exsist when I only have 1 external text file loaded..

//load 1st text file
myData1 = new LoadVars();
myData1.onLoad = function() {

[Code].....

View 3 Replies

Actionscript 3.0 :: Youtube Player That Actually Works - Error #2124: Loaded File Is An Unknown Type?

May 18, 2011

i am trying to create a AS3 youtube player... and after i searched online and followed tutorials, i couldnt make any of them work due to errors.. i always get this error Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type. is it because i am testing it locally? I tried online as well without any luck!

View 1 Replies

ActionScript 2.0 :: Lock FPS Of Loaded SWF In Main?

Jun 11, 2009

I am using loadmovie to load in swf in my main swf.

The FPS of my main timeline is : 20FPS

The SWF I am loading is : 8 FPS

When i load it in it is automatically changed to 20 FPS.

Is there anyway to lock FPS?

View 2 Replies

ActionScript 3.0 ::loaded A Swf Into Main Swf File

Nov 17, 2009

i want to loaded a swf into my main swf file. How do I place it on the main timeline in the main swf. To be exact I have a frame label called about. Where i want the swf to be.[code]

View 7 Replies

ActionScript 3.0 :: Return From Loaded Swf To Main?

Mar 13, 2012

I have some swfs that i want to combine: I have the main.swf that containes buttons, and i want each button to lead to an external swf. I have already done that.What i dont know is how to return to  main.swf. I want all external swfs to have a button called "Back to menu" and go back to main.swf

View 3 Replies

Access Main Swf X,Y From Externally Loaded It?

Jan 7, 2010

I have a site that I'm working on that I am loading an external swf page into a main one. The main one is based on a totally liquid state and stretches the background to fill the browser and the components are relatively position based on browser window dimensions.

Now inside of the main swf I load an external swf through the loader command. This swf has a set dimension and stays centered in the stage.

I am trying to make a button in this swf that loads yet another swf that is stretches the full browser. However I do not know how to access the properties of a main swf from this external one, or if this is even possible.

View 3 Replies

ActionScript 3.0 :: Overlapping Loaded Swf To Main Swf?

Jan 4, 2011

I am loading an external swf and I want it to overlap my main swf. I have been trying to figure this out for days. Check my link to see what I am talking about

[URL]

when you click on about the swf loads, but it leaves a little space on the right where you can still see the main swf underneath... you can also check my FLAs if you want...download here

[URL]

View 1 Replies

ActionScript 2.0 :: Loaded Swf Controlling Main Swf?

Oct 25, 2005

is it possible for a loaded swf to control the timeline of the main swf or even to tell the main swf to unload the loaded swf just by pressing a button in the loaded swf.

View 2 Replies

ActionScript 2.0 :: Possible To Run FLV Inside SWF Loaded Into Main?

Sep 26, 2006

I have a website up at [URL]. The thing is that I have flv files being loaded by swfs that are loaded on a movieclip of a main swf. Locally everything works fine but as soon as I move it up the web or even try to run in over my home network, the flv files won't run. Can the flv run inside a swf that is loaded into another swf? I have set the paths to relative already, this taking into account the main swf!

Something like this:
loaded_swf_folder/flv_folder/flv_file.flv
If I didn't take the main swf into account it would look like this:
flv_folder/flv_file.flv
But I tried this already and it didn't work at all. Except if you run one of the loaded swf directly instead of through the main swf.

View 2 Replies

ActionScript 3.0 :: Control Main.swf Through Loaded.swf?

Jun 7, 2009

I'm trying to control my main.swf through a loaded .swf.

My goals are. 1. load the external swf into main.swf and have a movieclip in the external swf play. (the movie clip in the external swf should play without any code, however, when the external swf loads, the movie clip goes to the last frame of itself for some reason)

2. I have an "X" button on the loaded.swf itself that should dismiss the loaded swf and cause my navigation on my main.swf to reappear.

Here is my loader code in main.swf:

Code:
var _urlx:Loader = new Loader();
_urlx.load(new URLRequest("loadBlank.swf"));
var _url1:Loader = new Loader();

[Code]....

As of now, my navigation in main.swf does reappear when the "X" in the loaded.swf is clicked, but I need a way to unload the currently loaded swf when the "X" button is clicked..

I've tried remove child, checking to see if the loaded child is not null, but that didn't work either...

View 3 Replies

ActionScript 2.0 :: Add One To The File That Is Loaded Into The Main Movie Main Movie That Is Loading The File?

Aug 3, 2003

using the command:

loadMovie(_root.section, _root.content);how would i work in a preloader bar?? add one to the file that is loaded into the main movie or on my main movie that is loading the file?

View 1 Replies

Action Script :: Swf Is Loaded Into Main Movie?

Apr 29, 2008

My site consists of a main swf file ('home.swf') which then has other swfs loaded into it via an empty movie clip.I have created one such swf. file (news.swf) which features 2 simple scrolling text buttons (one to move text down, and the other to move it up).http:[url].....

Everything works fine when I preview the news.swf on its own, but when I preview the home.swf and view the news.swf loaded into it, the button which should move the text up doesn't work.I think it's something to do with using the term _root. but i don't know what to replace it with.This is the script I have on the button that doesn't work:

//Events during mouse click
on(press) {
_root.controller.gotoAndPlay (2);[code]........

Is it just a case of changing the _root. term, and if so what should I change it to, or is it trickier than that.

View 9 Replies

ActionScript 3.0 :: Communication Between Main And Externally Loaded SWF

Aug 30, 2010

I basically need to communicate to an externally loaded swf and send info back to main swf. Below is some sample code of what I am trying to achieve:

In the main swf:
var imgLoader:Loader = new Loader();
imgLoader.load(new URLRequest("external.swf"));
addChild(imgLoader);
var MC:MovieClip = imgLoader.content as MovieClip;
//var MC = MovieClip(imgLoader.content);
trace(MC)
MC.btn1.visible=false;

In the external swf:
btn1.addEventListener(MouseEvent.CLICK,externalCli ck1);
btn2.addEventListener(MouseEvent.CLICK,externalCli ck2);
function externalClick1(e:MouseEvent):void {
trace("external Click 1");
//main swf goto nextFrame;
} function externalClick2(e:MouseEvent):void {
trace("external Click 2");
// main swf goto PrevFrame;
}

The trace I have setup in the main swf, trace(MC) returns a null value.

View 2 Replies

ActionScript 3.0 :: Controlling Main Timeline From Loaded SWF

Nov 2, 2010

I have a simple swf called site.swf that loads a menu with UILoader called menu.swf, from menu I'm able to navigateToURL but I also need that it goes to frame 50 in menu.swf.

View 1 Replies

ActionScript 3.0 :: Referencing The Main Timeline From A Loaded Swf?

Jun 14, 2009

I just poked around google as well as these forums, but the only answer I am seeing that was successful, is from kglad, and for some reason his posts are not showingAnyway, I am just trying to figure how to reference a frame label on my main timeline from a loaded swf (through my imageLoader).

View 4 Replies

ActionScript 1/2 :: Getting Back To Main Timeline In Loaded Ext. SWF

Jul 7, 2009

I have a project I'm working on where the user is presented with an overhead shot of a building and is able to mouse-over the different rooms to choose one to "enter." Once clicked, the chosen room is an external .SWF that is loaded that has options to view other external .SWFs within that room. Problem is, within the first loaded .SWF, I have a "home" button that is supposed to take the viewer back to the main overhead view but I can't get the AS to work. I've tried _parent and _root with no luck (not sure I even typed out right code).

View 29 Replies

ActionScript 3.0 :: Muting Sound In A Loaded Swf From The Main Swf

Aug 25, 2009

I have a swf I am loading in and I need to be able to mute the sound of those soundChannels in the keyframes inside of the other swf. I have a mute button that I am toggling its visiblity on and off, one for mute one for sound. I need to be able to access the sound clip inside the external swf.

View 3 Replies

ActionScript 3.0 :: Control Main Timeline From Loaded Swf

Aug 24, 2010

I'm using a textfield for debug information.I'm loading an swf on the main timeline and I'm showing the status in the debug textfield.[code]I'm loading a png file in the loaded swf. , I'm trying to show the status of the png file as I showed the status of the swf.[code]I can't control the main swf from inside the loaded swf. Even gotoAndStop or calling a function doesn't work.Do I need to add something when I load the swf, saying it's a MovieClip or something?URL...

View 3 Replies







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