ActionScript 3.0 :: Control The Loaded Swf?

Dec 16, 2008

I want to load a swf into my main movie but it won't work as I want it to. Seperatly both files work fine and even the main movie works fine when loading the external swf. When loaded the external swf doesn't as it should and I get the error-message "TypeError: Error #1009: Cannot access a property or method of a null object reference. at port_ill_fla::MainTimeline/frame1()"...

Now, I know the problem have to be in the external swf since I've asked it to trace the result in the "for..var" method I use to create thumbs that works as buttons, but it only returns 0 when it should på at least 9.I don't know why it seems to be a problem as the main movie also are able load other external swf-files without any problems at all.theese files doesn't contain any actionscript triggering events in theese files, etc. Anyway, here is the code for the main movie:

var portUrl:URLRequest = new URLRequest();
var portLoader:Loader = new Loader();
function portCompl(Ev:Event):void{

[code]....

View 5 Replies


Similar Posts:


Control When A Swf Is Loaded From Cache And When Is Not?

May 26, 2009

We have a web app. built in flash that allows customers to upload images and text, customize the container in which these will be shown (a swf file) and then embed the code into thier website. There is also a sharing options that allows their users to display this container, together with the content, on their websites. (For e.g you can see the container as the Youtube player and the content as the videos the user chooses to show). The swf container uses an XML file to know what to display.

Now, I am not a flash developer, but a person who takes care of the project.We are currently working on the app and the swf and we still find bugs. Every time we fix sth, I am told to erase my cache to see the changes. My concern is that the client/users might not see the newer version that we make available, but the old one. We can't tell them to erase the cache and we can't afford to renounce using the cache since the images are big.I was told that, sometimes, the browser does not see that the current version is a new one and loads it from the cache (actually, it never detected that there is a newer version and I always had to erase the cache). How can we tell the browser "now, load the swf from cache" or "now, don't load the swf from cache".

View 1 Replies

ActionScript 2.0 :: How To Control Loaded Swf

Jul 9, 2009

I have problem with control external loaded swf.In the "main.swf" I have empty MovieClip "_root.container".[code]The last line do not working when I publish my swf and open HTML in browser,BUT on the local machine - working perfect.

View 5 Replies

ActionScript 2.0 :: Can't Control Loaded Swf

Sep 23, 2011

I'm trying to load a "shopping Cart" into my movie...it loads in and I can see it. But I can't control it at all[code]...

View 3 Replies

ActionScript 3.0 :: Control SWF Loaded As A Child Of MC?

Aug 18, 2009

I've loaded an external SWF into an empty MC named "M1" using this[code]...

Now I want to control the timeline of the external SWF from the main movie timeline. How do I reference the child of the M1 object in AS3? example: M1.child.stop(); (doesn't work of course).

View 1 Replies

ActionScript 1/2 :: Control An Externally Loaded SWF?

Jul 26, 2009

I'm working on an flash movie and the interface is a small town (simiar to "doritos.com" and "comcasttown.com") if you reference both the doritos and comcast sites their little movie runs smoothly. I have several elements in the town. For example, one of the elements is an airplane hangar. When you rollover the hanger, I created a movie, the doors open and an airplane flies out of the hangar. I have several little movies throughout the interactive such as this. I created the hangar animation as a seperate swf file. In my main movie I created a button, on rollover it loads the hangar swf into an empty movieclip. When I publish and view the swf it plays slow and choppy. First, is it possible to write actionscript to load the external swf ,but it stops on the first frame of the animation and when you rollover it continues to play.To put it all in a nutshell, I want to create several buttons throughout the movie with loadmovie functions, once the swf movies are loaded I want them to stop on the first frame of the animation and when you rollover loaded swf movie I want it to continue to play the animation. Should actionscript be applied to the swf movies first and preloaded into the main movie. And what will make the movies run smoothly once it's published and viewed in a browser.Also if this makes a difference, I created the animations in after effects, exported them as FLVs imported them into flash and exported them as swf. Again it runs really slow and choppy

View 1 Replies

ActionScript 3.0 :: Slider To Control Loaded Swf?

Aug 25, 2009

i work in a project and i saw this problem when i want to control swf loaded file i made slider that will control loaded swf but the problem is i can't control sound and animation in the same time.i mean that when user click the slider and start drag it this slider must work as a player that control sound and the movie itself.But i can't control both at the same time when i take slider value and give it to the sound object like this lider.maximum=snd.length.snd.play(slider.value); / /it will play the sound but at the same time i must say gotoAndPlay(slider.value);

View 1 Replies

ActionScript 3.0 :: Control The Timeline Of A Loaded Swf?

Sep 13, 2010

I have two swf files. I use as3 on the main timeline of a.swf which successfully loads and inserts b.swf onto the stage (b.swf has a stop on fame 1):

[Code]...

My goal it to get the myButton click to play frame 2 of the recently loaded b.swf - but that's not happening.What am I doing wrong?

View 6 Replies

ActionScript 2.0 :: Sound Control In Loaded Swf?

Aug 8, 2009

My english is not too stron, but i'll try to explain my problem...I've got 2 swf's, first is main, second is loaded to he first(flv player) throught the command "loadMovie("player.swf", myPlayer)".In the second swf there are such code:

vol.onRelease = function() {
vol.bar._width = _root.myPlayer.vol._xmouse;
sound.setVolume(_root.myPlayer.vol._xmouse/vol._width * 100);

[code].....

View 2 Replies

ActionScript 3.0 :: Control Loaded Swf Like A Video?

Oct 26, 2009

I have looked everywhere to find out how to add a seekbar (so user can scrub and pause). It is so easy to skin a video, but I need the same type of controls for a swf. I see them on the web.

View 0 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 :: 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 3.0 :: Control Loaded External Swf?

May 1, 2011

I can't understand what i did wrong.i loaded an external SWF, and i want to control it's current frames.

View 2 Replies

ActionScript 2.0 :: Flash8 Control A Mc Within A SWF Loaded With Loadclip?

Nov 21, 2009

I have the following code:

Code:
_root.TemplateListener = new Object();
_root.TemplateListener.onLoadComplete = function(target_mc:MovieClip):Void
{
trace (_root.mcBalloonBase.mcTemplate); // undefined[code]........

The loaded SWF 'bt_latex10.swf' have an instance named 'mcTemplate' in its stage. Since it is being loaded into a new empty movieclip called 'mcBalloonBase' that is at the stage of main movie, why it is returning undefined? How can I access the 'mcTemplate' after it be loaded?

View 2 Replies

ActionScript 2.0 :: Control A Loaded Movies Movieclips?

Nov 10, 2011

I have a base move that loads other movies into an empty clip [code]...

View 3 Replies

ActionScript 3.0 :: Get A Loaded SWF To Control Parent Timeline?

Aug 25, 2009

I have a swf that loads an external swf. I want the external swf, (the one that was just loaded), to interact with the timeline of the swf that just loaded it. I've been trying MovieClip(root). or MovieClip(parent). but they give me errors. How should I use as3 in the external swf so that it interacts correctly with the parent?

View 3 Replies

ActionScript 3.0 :: Control A Loaded Flash Movie?

Sep 29, 2009

I'm creating a web site with multiples swf files, the navigation is controlled via drop down menu, i have resolved the script for the drop down menu main buttons and i need to control the timeline of the movies loaded with the drop down menu main sub buttons to navigate into specific frames this is what i got:

stop();var myrequest:URLRequest=newURLRequest("HomeSonny.swf");var myloader:Loader=new Loadermyloader.load(myrequest);stage.addChild(myloader);//main buttonsmenu.nosotros.addEventListener(MouseEvent.CLICK,

[code].....

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

Professional :: Control Transparency Of Loaded Movie?

Jun 6, 2011

I have used a loader to play a swf, and I've managed to scale it like I want it - now I would like for it to fade in and out. How do i do that? Below is the as3 script I am using:

var loader:Loader=new Loader();loader.contentLoaderInfo.addEventListener(Event.COMPLETE,f);loader.load(new URLRequest("BldgBanner_r3an.swf"));addChild(loader); function f(e:Event):void{loader.scaleX=.80;loader.scaleY=.80;}

View 1 Replies

Javascript :: Control Loaded Flash File Using Php

Nov 17, 2009

is there a way to write a program in php or javascript that can load a flash file and interact with it? (click on buttons and such)

View 4 Replies

Actionscript 3 :: Control Loaded Swish Animation?

Jun 2, 2011

I'm developing an AS 3.0 wrapper to add some extra stuff that has to load some old and plain frame to frame SwishMax 3 animations and then be able to stop them,

[Code]...

The animation load works as expected but the movie.stop() doesn't. What is wrong?

View 2 Replies

ActionScript 2.0 :: LoadClip Loaded Swf Movies Need To Control Each Other

Oct 24, 2009

I have a main Movie that I'm using loadClip into empty HolderMc's. I am using listener inits and they are loading and working fine independently. the main movie loads swf A and B. I have a button in swf A needs to tell swf B (headHolderMc) to change:[code]I've tried _root.headHolderMc._alpha = 100; but nothing works.[code]

View 7 Replies

ActionScript 2.0 :: Control Look Of Externally Loaded Text?

Nov 14, 2009

I am using Flash CS3. I have a dynamic text box that scrolls text loaded from an external txt file (made in Notepad).

I was wondering if there is a way that I could better control the style (color, font size, bold, paragraph breaks, etc) of the text?? I know that in flash I can specify the font type, size and alignment. But I want to also make some parts of the text BOLD and DIFFERENT COLORS. Perhaps I can use html tags within Notepad to do this?? If so, HOW??...beacuse I have tryed and it didn't work....the tags just showed up in the flash file along with the text, it didn't read them as html (and yes, I set my dynamic text box to render html).[code]...

View 0 Replies

ActionScript 3.0 :: Control Root With An Externally Loaded Swf?

Jul 26, 2010

Can I control my main timeline with an externally loaded swf?

View 9 Replies

ActionScript 2.0 :: Control SoundObjects Loaded In Movieclips?

Sep 17, 2010

I want to play various sound objects a certain amount of times when the playhead reaches a certain frame and then stop playing (even if the playhead reaches the same frame again).

I hope someone will be kind enough to help me solve this problems I'm having controlling each sound.

Setup Details I'm using the load movie method to load another SWF (welcome.swf) file into a movieclip in the _root SWF timeline (main.swf), and using separate movieclips in the _root SWF as holders for each sound object i declare like so:

welcome.swf (its FLA file holds all the sound files in the library with linkage id's as per the following actionscript located as a frame action in frame 1:

[Code]...

View 1 Replies

ActionScript 2.0 :: Control Main Swf File From Loaded Swf?

Jun 26, 2005

In my main swf, I m loading 1 swf file which is having 1 mc and in that there is 1 btn.

what i want is when a user will click this btn of my loaded swf i want to move to another scene of my main swf.

How can i do it? I tried to search the ans in forum bt could not trace out.

View 6 Replies

ActionScript 2.0 :: Control Playback Of Externally Loaded SWF?

Aug 18, 2006

i am loading external swf's inside a movieclip...is it possible to control the playback of the externally loaded swf, i mean i want to play and pause that swf file within the main movie..

View 2 Replies

ActionScript 2.0 :: Control The Playback Of An Externally Loaded .swf?

Jun 8, 2007

Is there a way to control the playback of an externally loaded .swf?

I'm using the MovieClipLoader class to bring an external .swf into my "main nav" .swf, and I would like to allow the user to pause and resume playback of the external .swf.

How might I accomplish this?

here's what I have so far:

Code:

this.createEmptyMovieClip("mcHolder", this.getNextHighestDepth());
var mclLoader:MovieClipLoader = new MovieClipLoader();
var oListener:Object = new Object();

[Code].....

View 14 Replies

ActionScript 3.0 :: Control The Time Line Of The Loaded Swf?

Feb 21, 2009

i read this tutorial, it is about how to control the time line of the loaded swf

[URL]

but i get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at main_fla::MainTimeline/frame1()

[Code]....

View 4 Replies

ActionScript 3.0 :: Control 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 2 Replies







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