ActionScript 2.0 :: [flash8] Swf Loaded Into Another Swf

Jan 4, 2007

I have a preloader which loads another loader which in turn loads a swf, now the swf needs to send variables to php and then recieve data back, how would i do this since the swf is within a loader and that is within another preloader.

View 3 Replies


Similar Posts:


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 :: Flash8 Smoothing Loaded Images?

Mar 10, 2010

Okay, so this little peice of code works perfectly. The author of this code has set the code up so it loads the file you want, and scales it to 150% and rotates it 15 degrees, the problem is, I cant see where in the code you can set what to scale it by or rotate,

Actionscript Code:
]_global.smoothImageLoad = function(imgURL, targetMovie) {var i=0do { i++ } while (eval("_root.smoothImageLoadTemp"+i) != undefined)tmc = _root.createEmptyMovieClip("smoothImageL� _root.getNextHighestDepth())tmc.createEmptyMovieClip("ti", tmc.getNextHighestDepth())tmc.tm = targetMoviewith(tmc) {tmcl = new MovieClipLoader()tmcl.onLoadComplete = function() {ti.onEnterFrame = function() {pixelData = new [code]....

View 2 Replies

[Flash8 AS2] Script A Button That Controls A Loaded Clip?

Apr 23, 2009

trying to get the swf to load and it was somthing so simple I was missing- if I can avoid the hours of frustration this time that would be great. I'd appreciate it if someone showed me how to create a basic button that will act on the contents of a loaded swf...

View 4 Replies

ActionScript 2.0 :: [Flash8] Assigning Link ID To A Loaded Image?

Feb 13, 2006

I've been trying to figure out a way to assign a link ID to a loaded image so that I can then attach that clip to various other nested movieclips.

If I load the image into an empty movieclip on the stage that already has a link ID in the library and then try to attach that movieclip to another one using its link ID, it will attach the empty clip from the library and not the one on the stage with my loaded image in it.

This problem has come up from wanting to preload images (using a loading array) but then wanting to attach these images to dynamically generated clips later on, that are nested deep within my movie.

I know that i could load in swfs (with link IDs) instead of jpegs, but I need updates to the site to simply require images added to a folder, rather than a whole lot of swfs with Link IDs created.

View 1 Replies

ActionScript 2.0 :: [Flash8] Calling Functions From An Externally Loaded .swf?

Sep 20, 2009

basically, each time i hit a letter key on my keyboard, i want a new .swf to load. All of the external .swfs are looped, which is working fine, but for me to get this one to do what it should, i need to press another key to get it to advance to the next frame and play. Since i'm operating it from a loader, i can't get the function to call.

so here's my loader function:

Code:
on (keyPress "e") {
_root.createEmptyMovieClip("container", 1);
// Container's positions on stage

[code]....

View 1 Replies

ActionScript 2.0 :: Flash8 : Properly Organize Dynamically Loaded Thumbnails From A Xml File?

May 28, 2009

how you properly organize dynamically loaded thumbnails from an xml file, into a grid.What I'd like is for the number of columns and rows to be set in the xml file also, and for the flash file to auotmatically fill out the rows / columns based on how many thumbs are in the xml file.

I've found examples of this type of thing in both as3 and as2, but I can't seem to get my as2 version working properly... how to create a thumbnail grid in as2...I don't really want the thumbs to link to a bigger version fo the image...

View 5 Replies

ActionScript 2.0 :: [Flash8] Place An External Swf File On It In A Desired Position When The Corresponding Page Is Being Loaded + Scaling

Aug 18, 2006

I have a flash file (a flash navigation bar actually, which gets loaded in all the webpages inside the website). What I am trying to do is place an external swf file on it in a desired position when the corresponding page is being loaded. I am using FlashVars (variable name -> 'movieName') to pass the name of the movie clips. These variables are read by the navigation swf file and the corresponding swf file should be loaded in the area specified. Now, to create a container, I am using createEmptyMovieClip() method which will host all the external swf files.

The swf files are all being loaded but with a lot of problems. First, no matter what I try, the swf file comes at a fixed place (which is way off from where it is supposed to be). I have tried checking if the container loaded the movie before fixing its position but it changed nothing. Although it did change the position of a weird background colour box I am getting when the movie starts loading - which brings me to the second problem.

A rectangular box flashes once when the external swf is loaded, and its position is being affected by whatever I am setting the _x & _y values of the container movies to. I have no idea why it is happening as it doesn't happen when I test that swf seperately.

[Code]...

View 1 Replies

Flash8 New Kid On The Block?

Apr 17, 2009

I maintain two web sites and am reasonably competent in Dreamweaver and Fireworks. Now to get into Flash.I want to produce a banner which shows a flag + Welcome in that language and have about 20 nations to cover. Can anyone please point me to a guide as to how to get this started?

View 1 Replies

Flash8 :: Go To Frame If Key Is Down?

Feb 19, 2010

I have two frames in a movieclip with a stop in the first. I want a script that makes is so that when you hold down the UP or DOWN arrowkey it jumps to frame 2 but if you drop the UP or DOWN key you go back to frame 1.

View 1 Replies

Flash8 :: Variables That Can't Go Below Zero Etc

Aug 4, 2010

just getting the grip around the variables and im experimenting. This is what i have as a variable

money = 1000;
health = 100;

Then i have the dynamic textbox that shows them. works great, and i also have various effect that makes the two go up and down. Here's the problem, or more, how i would like to expand the concept but is stuck on. Right now both variables can go as high and low as possible (of course). Is there something i can add in that script that makes so the money variable can't go below 0. Also is there something i can add so that the Health can't go ABOVE say 500 and when health reaches zero (or a negative) this triggers _root.gotoAndPlay("gameover"); you get what im trying to achive here

View 15 Replies

ActionScript 3.0 :: Loaded Swf Tell The Parent Loader To Unload Itself After The Loaded Swf Finishes Playing?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 4 Replies

Flash :: Loaded Font Doesn't Show Up When Parent Swf Creates TextField In Loaded Child Swf

Jun 14, 2011

Im working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 1 Replies

ActionScript 3.0 :: Loaded Font Doesn't Show Up / When Parent Swf Creates TextField In Loaded Child Swf

Jun 15, 2011

I'm working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 7 Replies

ActionScript 2.0 :: Preloading Flashvars - Ensure That All The Content Being Loaded Externally Is Loaded Before The Transition Plays?

Aug 30, 2005

I am in the process of building a site for an Architect... Jamie Fobert Architects (projects) I am useing transitions between the projects and am loading details/text and images externally through flashvars, php and a mySQL database. Within my transitions I have a a preloader on the forst 2 frames the code is as follows (taken from a Voetsjoeba tutorial):

[Code]....

This works pretty well if the content is within the .swf, but when it is loaded externally it doesnt preload it at all. Does anyone know how I can adapt/improve this preloader? or somehow ensure that all the content being loaded externally is loaded before the transition plays?

View 2 Replies

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

Flash8 :: Seeing All Layers In Animation?

Mar 13, 2009

I am trying to make an animation in which different layers (=images) come into the stage, then stay in place and other layers move in and stay as well. I have done 2 of the layers so far, converted them into movie clips, tweened them etc. When I run the cursor along the timeline, I see the desired result on the stage, ie everything comes in at the right time and stays in place. However, when I export it to view the film, only the first layer comes in, moves into place and stays there, and then nothing happens, ie the second layer never comes in.

I've tried everything I can think of, moving the layers around etc, and have deleted and redone the whole thing many times in an attempt to fix this, but I simply don't know what is wrong.

View 4 Replies

Flash8 :: Blank When Exporting To .avi?

Mar 25, 2009

So I made an animation a while ago and exported it no problem as an .avi. Recently I've needed to make changes, but whenever I try to export it, it is a blank video.

There is no sound, so I'm not sure whether or not that is working, but the video turns out as just a black movie with the proper length.

When I test it in flash or export it as a .swf, it is fine, only the .avi is the problem.

View 1 Replies

Flash8 :: Adding The Cut-Out Shapes?

Apr 15, 2009

it is possible for me to add cut-out shapes onto Flash? I have cut them out in photoshop and pasted on a transparent background, but when I open them in Flash the background has changed to white.

View 1 Replies

Flash8 :: SCROLL Keeps ROLLing On

Apr 21, 2009

I have a scrolling image. Like the speed, like everything about it except that the image keeps panning out of sight on either side never to be seen again! What to Doooo??

View 3 Replies

Flash8 :: Stopping The Map At Impact

May 10, 2009

Basicly its simply a world map with a character in the middle. You move around with the arrow keyes (in reality you move the map around and the character stays in the middle) and at certain impact you walk into houses etc etc. To accomplish this i have a movie clip in the middle named "man" and a map movie clip beneath it with the following code:

[Code]...

So far so good and no problems. This is what i need help with: I can't seem to get the "main" map to stop moving at certain points when it impacts the "man". In essence there are lakes and mountains that the character cannot cross when when he hits these i want the speed X to be 0 so to say. Im uploading my example here. It's when the movieclip in the root named "man" hits the purple line in the map movieclip its speed should go 0. Ive tried around with hittests (the code is still in the code) but i can't get it to work.

View 21 Replies

Flash8 :: Put Variables In An Array?

May 31, 2009

Is it possible to put variables in an array?

For example:

Code:
var positions:Array = new Array(Stage.width / 2, Stage.height / 2);

When the above code is executed, the values "Stage.width / 2" and "Stage.height / 2" are replaced with the number values and the array becomes, for example [500, 400].And when I call the array positions[0], instead of getting the value of the Stage.width / 2 (considering the stage has been resized), I get the static value of 500.What can I do to get the value of Stage.width / 2 ?

View 1 Replies

Flash8 :: Can't Load This Swf Into Flash

Jun 5, 2009

i have a fla file in Flash 8 that i use for content center...and i'm trying to load a swf (some photo and text AS3) into it... but it just doesnt want to work... i have tried loadmovie, loadmovienum, none seems to work, the swf file is just not working the content file is working, its the preview.swf that is not,

View 2 Replies

ActionScript 2.0 :: Flash8 Load Txt To Url?

Jun 15, 2009

I have a textfile called link with an url-address. I want to load that textfile and have that url instead of "goal" in this code.

knapp.onRelease = function(){
getURL(goal,"_blank");
}

View 10 Replies

ActionScript 2.0 :: Flash8 FLV To Play Only Once?

Aug 24, 2009

I need the FLV to play only once when a MC is loaded.

When the FLV is still playing, I want it to stop playing when click on any button..

PHP Code:

stop();
// Flash 8, AS2
import mx.video.*;
var flv1:String = "flvs/DrJoy_corner_KevinIntro.flv";

[Code].....

View 2 Replies

Flash8 :: Fit My Webpage On Any Screen?

Oct 6, 2009

I have designed a website in flash. I tried all the file resolution size like 1024x768 or 800x600 or even 1000x600. Whatever size it is, the webpage doesnt fit on my monitor. Either it is too small or very big.Also I dont want to see any blank white space. How will I fit it exactly on all monitors?

View 2 Replies

ActionScript 2.0 :: Flash8 Using Arrays For More Than 1 MC

Oct 10, 2009

i'm trying to use an array to attach up to 4 movie clips, using the same script. My code I'm using to attach looks like:

Code:
if(en<=4){
EA[t] = attachMovie("enemy", "enemy"+t, depth++);
EA[t]._x = random(300);

[Code]....

This part works fine, but what doesn't work is the script I try to add to the movieclips. If i add EA[t]._x += 10, then only the lastly created enemy moves. How do i make it so that all of the enemies move?

View 9 Replies

Flash8 : Collide With Only One Layer?

Dec 2, 2009

I'm using Flash 8, and I'm hoping to work on a platforming game. I'm pretty familiar with programming in general, but Flash is a little confusing for me.What I have at the moment kind of works for generic collisions, but my problem is that it works too well. My player symbol collides with absolutely everything, on every layer, even including text.

Right now my file only has two movie clips, Player, and Bounds, and there's an instance of Player named player_1, and an instance of Bounds named Wall.

For collision checking, I used the following if ( _root.Wall._parent.hitTest( ... ) ) { /*do stuff*/ } and this works well enough, I collide with anything, given that I check in the right place. I'm happy with the way that this works, but is there any way I can confine the collisions to the layer the symbol is currently on? I'd like to design the levels, and just draw the foreground graphics on the layer above, and the background graphics on the layer below.

Using trace, _root.Wall._parent returns level0, which I'm going to guess is maybe the scene? I'm assuming collisions aren't really meant to be handled this way, so if I have to totally redo them, I'll understand, but it would be most convenient for me if I can confine the collisions to only a single layer.

View 18 Replies

Flash8 :: Swfobject - Can't Resize It?

Dec 28, 2009

Here is myattempt at using swfobject and alternate content:

Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>[code]........

I seem to be getting closer to this, but I can't get it to NOT resize the swf!

View 4 Replies

Flash8 :: Achievements Appear Once Not Working?

Jan 18, 2010

I'm making an game which i want to intergrate acheivements, I've got everything working to an extent but I've isolated code and put it in a test to show my problem. I have a MC called "ach" (without ") and inside that i have another MC called a1 , a2 , a3. They are animated to disappear after say 45 frames. I've put my acheivements on buttons just to test them, but in my game you get them for say playing for 1 hour or collecting all items and some for clicking hidden buttons etc. but when I click the buttons again the acheive MC keeps appearing. I only want it to appear once.This is the code I have got that doesnt work.

Button Code :

Code:
on (release) {
_root.ach.gotoAndStop(3)
}

[code]....

View 1 Replies







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