ActionScript 3.0 :: Loading Stuff From External SWF

Nov 14, 2009

Have a little homepage, where I load some of the stuff from external swf's. But I have some buttons which is gonna be on top of the external load content, but when I export it the buttons doesn't appear anymore. Underneath I have some AS which I use to load the the external content, and to control my buttons.

stage.addEventListener(MouseEvent.CLICK, clickHandler_contact);
function clickHandler_contact(event:MouseEvent):void{
if (event.target.name!=null){
switch(event.target.name) {
case "contact_back_btn": gotoAndStop("index");
[Code] .....

View 9 Replies


Similar Posts:


ActionScript 2.0 :: Loading External Jpegs And Stuff

May 2, 2005

on Flash MX 2004 having problems with loading external jpegs and stuff. I got a tutorial from here and loading from a web address on it is okay,
but I can't get my one to load from my hard drive because there is always an error with the path. I know it'll ultimately be on line anyway but I want to know what I'm doing wrong.[code] What's the correct format for putting in a file path?

View 3 Replies

ActionScript 2.0 :: Loading Database Stuff Through PHP/Flash?

Feb 10, 2005

ok, i have a database with two tables. one table holds the following:table 1 name: lotscolumns: lot_id, number, description, status_idtable 2 name: statusi have a php script that goes as follows (i'm ignoring the description fields for now):

PHP Code:
<?php
// database connection variables

[code].....

View 14 Replies

ActionScript 2.0 :: Loading Stuff From A Txt File To Be Used As Numbers?

Jun 29, 2009

Just wondering. Is it possible to load data from a external txt file in AS2? in particular using the data loaded as a number variable to use for say a Maximum number in a timer counter? for example, say the text file has the variable&numOfPhotos=3how can you make it so flash AS2 can read the variable and convert the number (which I guess is a string) into a Number variable, ready for the swf to use in number related activities?

View 4 Replies

ActionScript 2.0 :: Loading Database Stuff Through PHP / Flash

Feb 10, 2005

i have a database with two tables. one table holds the following:[code]i have a php script that goes as follows (i'm ignoring the description fields for now):[code]now i'm not 100% sure this script is correct, so if anyone sees problems in it, please do let me know. i know that it needs some additions to pull the linking table (status) to display the status_id, but i have no clue how to write that as im not familiar with php, i just took this script from a user on this forum (i apologize for forgetting your name) and edited it.

anyway, i want to be able to pull out all those fields and load them up in flash so i can use them in the scripts over there.i have a grasp on the LoadVars(); a bit but not sure how to pull all this out and if its correct so that i can use it in flash. the fields im most worried about using is the number field in the lots table and the status_id (in both i guess since its a linking table).

View 14 Replies

ActionScript 2.0 :: Easing Scrollbar - Dynamically Loading Stuff Into Main MC

Mar 5, 2004

I've used this script:
[AS]
fscommand("allowscale", "false");
_root.main.attachMovie("boxContect", "boxContect", 1)
bar.useHandCursor = false;
space = 20;
friction = 0.9;
speed = 4;
[Code] ....
If I try to load some thing dynamically into the main MovieClip, it works but the scrollbar doesn't works properly, it doesn't noticed that the height from main has changed.

View 14 Replies

ActionScript 2.0 :: Load External SWFs With Stuff That Appears Off Stage?

Jun 18, 2009

I'm working on a portfolio site that loads external images and swfs (using loadClip). Many of the swfs are banners that have stuff that's viewable off the stage...whoever developed them wasn't smart enough to mask it off, and I don't have the source files.

The first problem I have is the extra stuff is showing up when i load it. The second is that its messing up the width and height properties of the clip (which I need to use to resize a frame that fits around the loaded swf/image). Is there anyway to get the size that the swf document was actually set to with actionscript? That way I can set up a mask. Otherwise I think I'd have to manually create an fla with a mask and correct size for each existing swf that externally loads that swf. Unless anyone can think of a better solution?

View 3 Replies

ActionScript 3.0 :: Rotating Stuff Around Other Stuff?

Jun 29, 2011

So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:

ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y

[code].....

View 4 Replies

ActionScript 3.0 :: Loading External Assets - Screen Stops Until The Loading Is Finished?

Oct 11, 2009

I have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.

View 10 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

ActionScript 2.0 :: Loading External XML On An External Server Into Flash Movie When It Is Uploaded

Jun 4, 2004

[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.

View 2 Replies

ActionScript 3.0 :: Loading In And External Swf And Unloading It From A MC Button Inside The External Swf?

Nov 2, 2010

I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:

PW1.addEventListener( MouseEvent.CLICK,loader1 );
//==================== PS function =============================================
var ldr:Loader = new Loader();

[code].....

View 3 Replies

ActionScript 3.0 :: Loading External SWFs From Another External Swf Into The Main SWF Container?

May 4, 2011

I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.

View 2 Replies

ActionScript 3.0 :: Loading External Pngs And External Text With Html?

Jul 19, 2009

I want to load external png's through this code:

(for this code, check the mcBandPreloader in de .fla file)

Code:
var imageLoader:Loader;
var RespJpeg:String = "images/arch1Proj.jpg"
function loadImage(url:String):void {

[Code]....

Here the problem is that I can't type html in my external txt file. (I did checked the html button in Dynamic Text Properties. What am I doing wrong here?

.fla can be downloaded at [URL]

View 2 Replies

ActionScript 2.0 :: Loading A External Swf Into A Movie - Its Loading Only A Part Of It?

Mar 16, 2004

I'm loading a external swf into a movie everything is fine with that. The only problem is that its loading only a part of it. Does anybody know why? Also, this swf is a mp3 player with streaming. The streaming part works but the playback doesn't.If i start only the mp3 player by itself it's working.here is the fla for the player

View 3 Replies

ActionScript 2.0 :: External Swf Loading Into Target Movieclip Loading

Apr 20, 2005

I'm trying to load a SWF movie into a target movieclip called blankmc. The SWF movie is loaded from an absolute URL (eg. [URL]/img/20042005113934movie3.swf ) My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG! Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?

[CODE]...

View 3 Replies

ActionScript 3.0 :: Stop .mp3 And .flv In External Swfs When Loading A New External Swf?

Apr 10, 2009

Specifically, I am building a flash page that loads external swf files and inside some of the external swf  files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf

View 1 Replies

ActionScript 3.0 :: Loading External Swf Which Attached With Its Own External Class?

Jun 27, 2009

Lets say I have Main.swf and sub.swf, and I wanna load sub when I press a button from Main, but sub.swf has its own external class file attached, so here is the problem, when I load sub using loader class and I would get this message from the output panel:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at subScript()

seems loader class can not access sub.swf's external class when sub is being loaded.

View 1 Replies

ActionScript 3.0 :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

Lets say I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any limitation or setting preventing external swfs loading other content?

View 2 Replies

ActionScript 2.0 :: Loading An External .swf Inside An External .swf?

May 24, 2005

I created a site using Kirupa's external .swf loading tutorial. Now in one of my externally loaded .swf's, I am loading another external .swf. I've gotten this to work fine, but the second external .swf (loaded into the first) contains buttons that will swap this second external .swf with another external .swf. I can't seem to get the AS references to the variables set up correctly in order to swap the swf's. The initial .swf loads fine, but the button control gets complicated inside it. It sounds rather confusing, so I've included a link to the .fla's and .swf's below.

[URL]

The file structure:

-band.swf load's profiles_main.swf

-The buttons in profiles_main.swf are trying to load chris.swf (swapping it entirely with profiles_main.swf)

View 3 Replies

IDE :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any security limitation or setting preventing external swfs loading other content?

View 3 Replies

Professional :: Loading External Swf From Within An External Swf?

Dec 20, 2010

everything was going fine on a website project I've been working on, until yesterday. I'll try to explain the whole scenario first, and I'll put the code in here too so anyone can try to figure out what is wrong. Here's the breakdown of the site:
 
1) There is a MAIN SWF file that plays an intro and then stops on the last frame with the "Main" Navigation buttons.
 
2) Inside the Root folder where the MAIN SWF resides, there is another folder called "swfs" which contains six main external navigation pages, as well as another folder called "galleries" which contains additional external swf files for six gallery pages.
 
3) On one of the layers of the MAIN SWF, there is a movie clip called "mySWFLoadingClip" that the "Main" Navigation buttons load and unload the external  swf pages onto. These all work perfectly. The problem start on the next step. This is the code I used for the navigation buttons on the MAIN SWF timeline:

[Code]...
 
If anyone can help me figure this out I would be really grateful. This is a very important project and the deadline is coming up very soon. Please help me figure out how to load an External SWF onto the main time line and then load an additional external swf from within the first external swf. I'm stumped.

View 3 Replies

ActionScript 3.0 :: Loading External SWF From Within An External SWF?

Dec 20, 2010

Ok, everything was going fine on a website project I've been working on, until yesterday. I'll try to explain the whole scenario first, and I'll put the code in here too so anyone can try to figure out what is wrong. Here's the breakdown of the site:

1) There is a MAIN SWF file that plays an intro and then stops on the last frame with the "Main" Navigation buttons.

2) Inside the Root folder where the MAIN SWF resides, there is another folder called "swfs" which contains six main external navigation pages, as well as another folder called "galleries" which contains additional external swf files for six gallery pages.

3) On one of the layers of the MAIN SWF, there is a movie clip called "mySWFLoadingClip" that the "Main" Navigation buttons load and unload the main swf pages onto. These all work perfectly. The problem start on the next step. This is the code I used for the navigation buttons on the MAIN SWF timeline:

var Xpos:Number = 0.0;
var Ypos:Number = 0.0;
var swf:MovieClip;
var loader:Loader = new Loader();

[Code]......

how to load an External SWF onto the main time line and then load an additional external swf from within the first external swf.

View 2 Replies

Get Stuff To Stop When Using ENTER_FRAME?

Feb 6, 2010

I have a one-frame .fla with script on one layer and a movie clip on another. The movie clip has an instance name of "titleBar," which moves from left to right using dynamic tweening.The tween code moves it from an X position of 200 to a X position of 820.Then I have a function called "xChange," which waits for titleBar's X value to be 820. Once it does, I'd eventually want to load an external swf but I'm just running a trace for now.Again, Here's the code.

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

[code]....

View 4 Replies

ActionScript 3.0 :: XML And Dynamic Stuff In AS3

Apr 28, 2010

I've generated sample xml file:[code]This works ok. What the code is doing - its assigning each node of the xml file to one of the boxes in the fla file.My question is if we can assign to each of the node one box dynamicly? So bassicaly if i will have 5 nodes the code will -draw???- a box and putted the name of the node in the box.And so on, for each of the nodes? And if i will have 6 nodes, then it will draw 6 boxes and so on..

View 6 Replies

ActionScript 2.0 :: How To Do Stuff In Flash

Oct 27, 2005

I know how to do stuff in flash. Ok, so here's what I want to know..on this guessing game, I want the person to enter in their 1 - 3 digit guess, the the number they need to guess is 577 (later I want to make this random whenever they go to play it). If they guess under 577, I have a box to say their guess is too low. If they guess over 577, it says their guess is too high. However, I am not sure how to make it so that what they put in the text box, it takes it as the new variable. I know this may sound confusing, but here is the .fla file.URL...

View 5 Replies

IDE :: Sine Waves And Stuff?

Aug 4, 2009

I have a specific request or a general pondering really.I know you can create a sine wave type thing with as, could you then perhaps create movie clips, letter by letter that would move along and up and down on this sine wave?could you then, instead of setting the size and scale of the sine wave have it react to the input levels of a mic.i've been hunting for something that will help for a while and have drawn a blank

View 5 Replies

IDE :: Return Scope Stuff?

Nov 16, 2009

I have a function, and inside of it is a LoadVars object to load a variable. The problem is that I need the outer function to return the results of the LoadVars' return.

View 2 Replies

ActionScript 3.0 :: How To Remove Stuff In Flex

Oct 9, 2009

but this is my first time using flex, and I am kindof confused on how to remove stuff.Say I use <mx:Panel title="test panel"></mx:Panel> to add a panel, alongwith some textfields and such to create form.....now how do I remove all this entirely and create something new like a tabbed navigator?

View 1 Replies

ActionScript 3.0 :: Accessing Stuff In A Child Swf?

Jul 20, 2009

I have a swf named home.swf  on the stage of home.swf I've added a Sprite with this code
var onStage:bc_sprite = new bc_sprite();addChild(onStage);another swf called menu.swf  loads home.swf into a loader which is added to a MovieClip named currentPage which is on the stage thusly.currentPage.addChild(swfLoader);

View 5 Replies







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