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


Similar Posts:


ActionScript 2.0 :: Select One Of Those Movie Clips - Drag It To A Desired Position And Have It Snap To Place

Nov 10, 2009

I have movie clips loading in dynamically using an XML file, and the duplicate movie clip function. I need to be able to select one of those movie clips, drag it to a desired position and have it snap to place. As for right now, I'm using :

[Code]...

View 3 Replies

ActionScript 3.0 :: External Swf File Loaded By Preloader: Place And Size?

Feb 22, 2011

i try to implement a preloader for my site but i have the following problems:once the preloader is finished it opens my external swf but this one appears below the preloader and very little in the window (almost smaller than my preloader size)

package classes
{
import flash.display.MovieClip;

[code].....

View 0 Replies

ActionScript 3.0 :: Place Bitmapdata Drawing Over Content / Get Desired Effect

Apr 16, 2009

i am creating a very simple particle system. My only issue is trying to create a blurry trail effect on the particles in motion. I started by creating a large bitmap container, and applying a colormatrix filter and a blur filter . It seems to do the trick , but the issue now, is i have to make this container cover the stage, which has a two unwanted a effects:

-it's slower

-it covers all the content beneath. Perhaps my approach to creating trails is wrong?

i can post the whole class, but before i litter this post with long lines of code, is there a way to place a bitmapdata drawing over content and still get the desired effect. NOTE, if make transparency false in the bmdata, i loose the effect

View 2 Replies

ActionScript 2.0 :: [F8] External Imgs Loaded Into Movie Clip Appear Big Before Scaling

Jan 16, 2007

[URL]

Click on one of the menu options - "corporatecommunications" or "events&entertainment"

I fixed the earlier progressBar problem, but when you click on an image thumbnail to load it, it pops up regular size for maybe 1/30th of a second before being scaled to the proper size.

Here's my code:

Code:

// set a variable to hold image name
var imageNow:String;
// scale empty movie clip that will hold the image
function iHoldSize() {

[Code].....

View 3 Replies

ActionScript 3.0 :: Position An External Swf Being Loaded?

Apr 9, 2009

I have an external swf loading on a button and it appears at the bottom right corner of my main, this is a problem cuz its about the same size as my main and so its cut off the screen. Is there a way to position the X and Y coords when it loads?

View 1 Replies

ActionScript 2.0 :: Place External File By Calling The Url Into Movie?

Oct 9, 2009

I have tried everything i know to get this to work but nothing has. I am trying to place external file by calling the url into my movie. It works but I cannot position it. I have tried using mc but when i do that the file will not load. my script is below whith the url.

//load Movie Behavior
if(this == Number(this)){
loadMovieNum("http://void.snocap.com/s/T3-31324-KUSPN325KQ-S/",this);

[Code].....

View 0 Replies

ActionScript 3.0 :: Bring The External .SWF To A Desired Level, Which Is Always On Top?

Oct 29, 2011

The following code works fine but always this external .SWF file stays on Top ot other Layers. How can I bring it down to the desired level (Say, if I have 10 layers and I would like this external .SWF on 5th layer).

[code]var mySwf1:SWFLoader = new SWFLoader("AnalogClock.swf", {width:225, height:225, container:this, onComplete:completeHandler1});
mySwf1.load();

[Code].....

View 7 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 Save To External File?

Apr 12, 2009

I have a number of different swf files that all have a score variable. I was wondering is it possible to save this variable into an external file and be able to load these variables in a different swf?

View 3 Replies

ActionScript 2.0 :: [Flash8] Mc Color Change Through External File?

Jan 2, 2007

I want to change the color of a movie clip, and I've succeeded with the following code:

var my_color:Color = new Color(mc);
my_color.setRGB(0xFF0000); // mc turns red

Now, this is only the start. What I really want is that the color is changed via an external textfile (or similar).

I've gathered that this is possible with the LoadVariables function, but I can't seem to get it right. Does anyone have a solution for this? I'd also like to know how I should format the textfile code (should it be something like this: "&mc=0xFF0000"?)...

View 14 Replies

Professional :: Load Preloader From External File Or Place It Directly Into Existing Movie?

Sep 13, 2010

Is it best to load the preloader from external file or place it directly into an already existing movie?

View 3 Replies

ActionScript 2.0 :: [Flash8] External File - Button To Switch Between Backgrounds

Mar 9, 2006

I'm making a flash banner for a client, it has a button to switch between backgrounds, however, how do I say something like

[Code]...

View 7 Replies

ActionScript 2.0 :: Change The Page / Margin Size So The Content Can Fit In The Page Without Scaling

Jun 11, 2010

I'm trying to print a mc which is bigger than the default page size. I want to change the page/margin size so the content can fit in the page without scaling. Per the API reference [URL] the page settings are readonly. How can I print something bigger than the default page size? Is it doable in AS2 or AS3?

View 2 Replies

Flash8 :: Mouse Over A Certain Place To Get Text?

Apr 9, 2009

I'm working on someone's Flash project and my task is to add roll over text to all the buttons in the project. The problem is I can't use the actual buttons because the are underneath some other animation. What I want to do is to add roll over text using the coordinates of the button but not the actual button.

View 7 Replies

Flex :: BitmapData - Scaling Always Taking Place On Previous Point

Feb 1, 2010

I am working on an application that will allow a user to scale an image. The issue that I am having with the method below is that the scaling is always taking place on the previous scale point. For example: If I scale the image up one and then scale the image down one. I have to scale down twice to get it back to the point I want it to be.

Here is my current code:
private var sourceBMD:BitmapData = testImage.source as BitmapData
private var matrixScaleX:Number = 1;
private var matrixScaleY:Number = 1;
private var baseScaleX:Number = .05;
private var baseScaleY:Number = .05;
[Code] .....

View 1 Replies

ActionScript 2.0 :: [Flash8] Scaling A Movieclip From 100%-70%-100% Using The X-axis

Aug 22, 2007

I am building a flash piece in which I need an object to move across the stage from right to left and scale from 100% just off the right side of the stage, to 70% in the middle of the stage and then 100% again just off the left side of the stage. Giving the illusion that it is moving in a circular pattern around the viewer. My goal is to get the scaling to be relative to the MC's x position on the stage. Moving it across the stage is the easy part, and I can scale the MC from 100% on the right to 0% on the left using an onEnterFrame function containing:

MC._xscale = MC._yscale = Math.round((MC._x/Stage.width)*100);

but I can't seem to figure the 100-70-100 deal out. I thought there might be a math function like sin, cos or tan that would really help out, but I can't seem to find anything out there

View 3 Replies

ActionScript 2.0 :: External Movieclip Being Loaded In Every Page?

Mar 30, 2012

I'm loading an external movieclip in a site page, but when I click another page it won't fade away. I mean, no matter which link I click, the external mc will be in every page.

View 5 Replies

ActionScript 2.0 :: Flash8 Resetting MC's To Original Place?

May 16, 2009

Right now I am in the beginning stages and I have it set up so you can drag different sounds to the timeline (in the game, not in flash) and it'll snap in place which works perfectly.

But here's my problem: When I try to click the reset button the sounds snap to their original places (which sounds good right?) but then they tween back to where you dragged them on the in-game timeline.

I have put in various codes and no matter what I try, when I click the reset button, they always go back to where you dragged them to the timeline, making the reset button pointless.

Here's my code on the Flash timeline:

Code:
function dragSetup(clip, targArray) {
clip.onPress = function() {
startDrag(this);

[Code].....

I know, I know, that whole s(N) thing is very beginner but I didn't know what else to use, and it worked fine.

View 1 Replies

ActionScript 2.0 :: [Flash8] Place Image From A Xml Search?

Dec 7, 2005

I am working on a new project, and I need a search engine to look for data and display images and data, I read this senocular tutorial, but I'm too bad for these things and I can't still manage how to load an image.

View 6 Replies

ActionScript 2.0 :: Position A Dynamically Loaded Swf File Behind An Existing Mc?

Apr 19, 2005

I'm trying to get a dynamically loaded swf to load into an empty mc behind a particular mc on the stage. I used actionscript to create an empty movie clip using the createEmptyMovieClip command. But, how can i get it to create it, then load the external .swf into it behind a exsisting mc on the stage?

View 1 Replies

ActionScript 2.0 :: Flash8 Doppler Effect - Circle's Scaling

Apr 27, 2010

I have been trying to make an animation which illustrates a doppler effect:[URL] I am using Flash 8 and the moving ball I have drawn to stage. My problem is that I can't get the scripted wave circles scaling. My script is like this:

[Code]....

View 5 Replies

ActionScript 3.0 :: Getting An External Swf To Be Loaded On A Page In Main Timeline?

Sep 25, 2011

I'm about 10 hours deep into getting an external swf to be loaded on a page in my main timeline. I've gotten as far as loading the external swf (within the first few hours) hahah but now, have spent twice as long trying to get the external swf to be removed when a person navigates to a different page of my main timeline.

I have a videoplayer on one frame which is my "video" page. I've gotten the external swf to load two different ways, for example, the latest code i am using to load the external is below and seems so nice, clean and simple:

var request:URLRequest = new URLRequest("VideoPlaylist_HV.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
loader.x = 180
loader.y = 50

But I would like to add a function that says on any mouse click event (navigation) close the swf that is loaded.

If any of you genius people out there can help me, please do. I thought getting it to load was going to be the hard part but I was wrong. I am very discouraged by Actionscript in general.

download what i have so far, i left alot of the content out so the file size isn't big. And yes, i am sure once you see how I work you will be sure that I am no flash expert. I can send a link to the .flas, the site won't allow me to post the link as I am new.

View 5 Replies

ActionScript 2.0 :: Disable / Cover Background When External Page Loaded

May 3, 2011

I have a full screen webpage with an elastic bg that is created mostly through AS, XML, and external .swf's. The main menu links to pages (other external .swf's with dynamically loaded content) that look sort of like popups over the graphic content of the main background (img2). There are two problems, 1) there are other buttons on the main page that the user can click when viewing a page and 2) the popups come down directly on the content and make the whole site look rather flat.

I am trying to create a background for each of the pages that has the same elastic qualities as the main page (so that no matter what it will cover the user's entire screen) and will disable all of the buttons beneath it. I tried adding a rectangle beneath the pages other layers, however any script I write for that mc (such as the onResize _mc.width and _mc.height or ._x and ._y) is completely ignored in the main timeline and the rectangle messes with the popup page position -- img3. Also the buttons beneath the rectangle are still active.

View 2 Replies

Media Server :: CopyTo Function In FMS 4 - Copy A File To A Desired Location

Mar 11, 2011

I was working with FMS 3.5 and using the function 'copyTo()' to copy a file to a desired location. Code: fileObject.copyTo("store/"+name+".flv") store is a virtual directory defined in Application.xml file in the server side and name is a variable that stores the fileName without extension This was working fine with FMS 3 and FMS 3.5. Now, I moved to FMS 4 and noticed that this copyTo() function is not working. In the FMS Admin Console, it throws an error:Error: File operation copyTo failed.

View 10 Replies

ActionScript 2.0 :: Save The Local Shared Object(.sol) File At A Desired Location?

Jun 8, 2004

!--Does anyone know if it possible to save the local shared object(.sol) file at a desired location or to embed it within the flash movie?

2--Is it possible to create an image file at runtime from a flash projector file?

View 1 Replies

ActionScript 3.0 :: Load External SWF File Position?

May 18, 2010

I want to load that SWF file in the center of the screen.

I got "loader(the variable that loads external SWF file)" and I don't know how to assign the X and Y position of that loader in the center of the screen.

here is my code.....

ActionScript Code:
var myStage:Stage = this.stage;
myStage.scaleMode = StageScaleMode.NO_SCALE;
myStage.align = StageAlign.TOP_LEFT;

[Code]....

View 0 Replies

ActionScript 2.0 :: CS4 : Get An External Swf To Load And POSITION In Main File?

Apr 14, 2010

I'm trying to get a swf file to play in a main swf file. I can get it to play, but it always appears in the top left corner. I've tried several different methods to position it but every one of them either doesn't work or won't play the file.Here's what I'm using right now.

Actionscript Code:
stop();loadMovieNum("circles.swf", 1);var xset = 381;var yset = 179;

The swf plays just fine, but it won't take the coordinates.I also need to get it to stop when I go back and the command

Actionscript Code:
unloadMovieNum(circles.swf);

doesn't work.A tutor in my class showed me a method to place the swf into a box on the main stage without doing a lot of scripting, just putting in some file-name and size/position references, but he's not available right now to ask how he got that started.

View 5 Replies

ActionScript 2.0 :: Save The Local Shared Object(.sol) File At A Desired Location Or To Embed It Within The Flash Movie?

Jun 8, 2004

!--Does anyone know if it possible to save the local shared object(.sol) file at a desired location or to embed it within the flash movie?

2--Is it possible to create an image file at runtime from a flash projector file?

View 1 Replies

ActionScript 3.0 :: Prevent Scaling And Keep Position?

Jul 18, 2011

I have a project which has a background which is a swf that is scalable with the browser.However I do not want anything in the parent SWF to scale and want to position it in the top left of the browser regardless of size. how to do this in AS3 Currently it seems that the parent SWF is scaling everything as a result of a child swf on the stage.

View 7 Replies







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