ActionScript 2.0 :: Centering An AttachMovie In Its Holder?

Jul 3, 2007

how to center an image that is smaller than its attachMovie parent. Basically I have a blank slide (a 94 x 94 square) that I load dynamically image thumbnails into. Some of them may be 92 wide and others 92 tall but never anymore than that. The problem I have is that all images loaded are aligned to the top of the mc they replace and if a thumbnail is 92 wide by 20 tall than theres alot of space underneath it - i need to center (both vertically and horizontally) the loaded data and I have come up stumped.

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Flash Resizing And Centering Child Holder On Stage, After Loading External Photo?

Apr 5, 2011

im loading photos of different aspect ratios with a loader onto a child holder frame_mc. I wanted to know what AS3 commands do i need to work on to get the frame_mc to resize to the new childs dimensions and centerize itself on the main stage? (as in event listeners, functions, vars etc)

View 3 Replies

ActionScript 2.0 :: Getting Functions From Other Swf In The Holder

May 11, 2009

I'm having an issue where I have a holder swf that loads an other swf. I want to call functions from the other swf in the holder. I'm not as fluent in AS 2.0 doing this and it has to be done in AS 2.0.

View 1 Replies

IDE :: Rooting Between Imported Swf And Holder

May 25, 2009

I have a master SWF which has a menu and loads other swf's into holders so they can be animated. I have button's in one of the loaded swf's but i am unable to make these buttons alter whats in the main swf. I.e. addEventListener to button and root(but the root doesnt seem to root to the holding swf).

View 2 Replies

ActionScript 3.0 :: Loading JPEG/SWF Into Holder?

Jan 3, 2010

I want to create a page for viewing JPEGs and SWFs. There will be a holder and underneath this there will be a row of thumbnails. On release of a thumbnail the JPEG or SWF will load into the holder. The files need to be updateable.

View 7 Replies

ActionScript 1/2 :: Loading MC From Library In MC Holder

Feb 8, 2010

I searched previous posts last week about this and learned that I can load a movie clip from the library in a blank mc holder similar to how I load an exernal swf. But so far that code is not working for me. I also need a way to close/make invisible the clip on user clicking an X. I have a page with about 6 key words over which I will place invisible buttons. First button instance is named compworkBtn. I have a blank mc on the stage, name of mcLoadertop. My mc I want to play is in the library and named compworkMC. I read that I need to set the properties to export and I have done this (picture attached for compworkMC).

[Code]....

Then I want the user to click on the X or close button and it goes away. I thought the easiest thing for this work be to program the Close button itself to drive the MC to a frame that had no content. It will still be there, of course, but not be visible. Then the user would click on the next key word and the next MC will load. Not sure that is a good solution though, because they will both still be there. So, I'd like a suggestion for another solution to unload the first mc and load the second one. I have done a similar thing with external swfs, but I will need a close button instance for each of the unloads, right?

View 8 Replies

ActionScript 3.0 :: Clearing Out Object In Holder?

Sep 2, 2009

I am trying to create a flash visual showing a time series of data on a world map. I have created a flash file which 1) creates proportional circles for each country of interest (in this case 6 countries) and 2) has a timeline so that the circles change through time. I have successfully gotten the timeline to work with the proportional circles, however the circles to not clear out before displaying the new circles when adjusting the timeline. I am not able to figure out how to properly clear out the circles. I have tried using the holder.removeChild(c) command before I create my new circles, but get an error which states 'Parameter child must be non-null'.

ActionScript Code:
import XMLLoader;
import ProportionalCircle;

[code]........

View 1 Replies

Actionscript 3.0 :: Load Images To A Holder?

Feb 28, 2010

i am looking to have a number a small thumbnail pictures on a page, and with either a roll over of the mouse or a click i would like them to larger on the screen.

i am guessing i need to have a holder to load them in but i dont know the script i need to load a picture from the library this what i have so far but i just dont know the code to load images to a holder

function image_click (mye:MouseEvent):void{
}
image_btn.addEventListener(MouseEvent.CLICK,image_click);

View 2 Replies

Actionscript 3.0 :: Removing Swf From Holder Swf And Replacing With A New One

Apr 1, 2010

What I've got is a holder swf that loads in a separate swf. Within this loaded swf there is a button, that when pressed, removes itself (as in, the swf the button is placed within is removed) from the holder swf and loads in a new swf.

This seems incredibly complicated to achieve, at least I think it is

What I've got so far is this, the holder swf...

Code: Select allpackage {
import flash.display.*;
import flash.net.URLRequest;
import flash.events.*;

[Code].....

View 8 Replies

ActionScript 2.0 :: Placing Empty MC In A Holder?

Apr 4, 2008

I'm working on the Kirupa photo gallery and that works fine. Now I want to change how the thumbnails are loaded in. I would like them to be loaded in a holder (now in an emptyMC) so that I can put a mask/ border on it.

This is the thumbnail function:

Code:
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k,thumbnail_mc.getNextHighestDepth());
tlistener = new Object();

[Code]...

View 1 Replies

ActionScript 3.0 :: Load Then To Unload Images From A Holder MC

Mar 16, 2009

fairly new to AS3 and just get'n the hang of it.. i'm have'n trouble unloading images from a holder MC...

thb_btn_01.addEventListener(MouseEvent.CLICK, load01);
function load01(event:MouseEvent):void {
var image:Loader = new Loader();
image.load( new URLRequest ("test01.jpg"));
holder_mc.addChild(image);
}
[Code]....

i'd like to clean the holder every time a new thumbnail is clicked.

View 3 Replies

ActionScript 3.0 :: Make An Array Of A Clip Or The Holder?

Nov 4, 2009

I'm trying to animate the list of thumbnails I have imported from an XML doc in my movie. In as2 I had something like:

[Code]...

So I've decided the best way to animate them in a staggered fashion is to create a "clipArray:Array" and then push in one thumbnail at a time. Then animate the clips using Tweenlite's TweenGroup. However, I don't know what would make the most sense as I'm new to the display model. Should I try to push in movie clips or holders? I'm not sure would make more sense down the line with the new format in AS3.

View 2 Replies

ActionScript 2.0 :: Change Orientation Of Image Within A Holder?

Apr 12, 2010

I am using an array to load images into a holder_mc on my flash site.Is there a way to change the registration point at which the image loads?

View 3 Replies

ActionScript 3.0 :: Interval Driven As2 Swf Not Functioning In Holder

Jun 8, 2010

I have a set up whereby I have a shell AS3 swf which loads in an as2 swf to a movieclip. The two swf's don't need to communicate with each other. This works fine, and the AS2 swf contains its own code for the user to interact with it. However, I'm using a simple setInterval in the AS2 swf to fire a few animations in sequence if the user doesn't interact with it for a few seconds. This works fine when I publish the AS2 swf on its own, but won't work when its loaded into the AS3 swf.

View 0 Replies

ActionScript 2.0 :: Loading External Swf Into Movieclip Holder?

Jan 6, 2011

note I have to change some file names and urls for company privacy.I am working on an online banner ad which tight size requirements. In order to stay under the file size, I want to load an external swf housed on our server into an empty movie clip on a button press. I have this working with the following code on a button:

on (release) {
loader_mc.loadMovie("location where swf file is housed");
}

I then want to unload this movie if a different button is pressed. However I am receiving the following error.

*** Security Sandbox Violation ***
Connection to file: XXXXXXXX halted - not permitted from "location where swf file is housed"
-- Remote SWFs may not access local files.

How can I unload this external swf file from my move? Again the external swf file is housed on our sever and the main swf file will be housed with the place we are advertising.

View 0 Replies

ActionScript 2.0 :: Load A Simple Swf Movie Into Mc Holder

Jul 8, 2004

Trying to load a simple swf movie into my mc holder.When I preview the page on my desktop the external files loads. On the FTP server it doesn't. Why? I tried 2 scripts for an "onClipeEvent" on the empty mc holder but nothing workes. [code]Then I got recommended to use this script on an empty keyframe. It works but again, only offline.targetMc.loadMovie("floorplans/301.swf");

View 3 Replies

ActionScript 3.0 :: Values Of Holder And Child Alpha?

Dec 16, 2009

If my holder's alpha equals 0 can its child's alpha be effectively > 0 ? In my case I have holders (custom clases) with many children, some of which are holders them selves (with their own children and holders and so on).

I would like to:
-pick out a single holder from the 'tree'
-have all of the 1st level children of that are NOT holders themselves have an alpha of 1.

View 4 Replies

Creating A Flash Content Holder That Shuffles Websites?

Sep 7, 2009

I'm trying to do this effect with my website allowing me to shuffle through different websites

[URL]

I'm referring to the white rectangle that swaps their sites in and out

View 1 Replies

ActionScript 3.0 :: Loading Array Elements Into Holder Clips?

Nov 29, 2009

I am trying to load an array of web_thumbs into an array of thumb "holders" I've got the holders loading in a grid but then the way I have it, all of the web_thumbs load into each of the holders instead of one web_thumb per holder - I've tried it every which way and this is as close as I can get it without help... Can someone tell me what i need to do to have one web_thumb load into each thumb holder? This is what i have in place:

var dataLoader:URLLoader = new URLLoader();
dataLoader.load(new URLRequest("web_thumbs.xml"));
dataLoader.addEventListener(Event.COMPLETE, onDataLoaded);[code]..........

View 4 Replies

ActionScript 3.0 :: Button Swap Image In Holder Movieclip?

Dec 4, 2008

what I'm tryingto do is have a row of buttons that when clicked change the imageheld within a holder movieclip. I have a button with instance name"adept" and a holder movieclip with instance name "holder". this isthe code i have so far, i have barely started:

adept.addEventListener(MouseEvent.CLICK, Click);
function Click(event:MouseEvent):void {
eventNotice.text = "MOUSE CLICKED";

[code]........

View 3 Replies

Professional :: Load SWF From Menu XML File Into Holder MC On Stage

Apr 18, 2011

How can I load a swf from this xml file into a mc holder file? See code below.
var myxml:XML = <node label="Root Node"><node label="Chapter 1">
<node label="Intro" image="circleImage"/>
<node label="Recommended Prerequisites" image="squareImage"/>
<node label="Course Navigation and Controls" image="triangleImage"/>
<node label="Chapter 1 Completion" image="starImage"/></node></node>;
[Code] .....

View 1 Replies

Professional :: Flash - Flip Shows Place Holder Only?

Oct 26, 2011

the place holder is the only thing i see when I check online i have folder with images and swf and xml list there is not express instal file and I dont know how to obtain it I do not know how to show my code here and I used dreamweaver to insert the swf

View 2 Replies

ActionScript 3.0 :: Targeting Parent Swf Holder Mc To Load New External Swf?

Dec 1, 2009

I have a main swf that loads external swfs into a holderMC. How do I get a button called playnext_btn on each external swf to tell the main swf to load a new external swf into its holderMC? I used this code in the main swf to do the initial load of the first external swf into holderMC:

Code:
var swfLoader:Loader = new Loader();
holderMC.addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("benefits.swf");

[code]....

View 3 Replies

ActionScript 3.0 :: Insert Movieclips Currently In A Holder In Stage Into Array?

Jan 27, 2011

How to insert movieclips currently in a holder in stage into array? Number of movieclips varies in each step.

View 1 Replies

ActionScript 2.0 :: Text Field Place Holder Not Visible?

Dec 16, 2011

I m trying to figure out how to clear the text fields of a contact form. i already have the Action script for it but for some reason it isn't working. I hope some body from here will help me out with this.i will write the code here.

ActionScript Code:
function reset_txt(name, name2, value)
{
path = _target;[code]....

I am using Flash CS3. Form has 4 text fields as in this image. [url].... Instance names for fields are t1, t2, t3, t4, and Variable names are as shown in the action script description. When i run the flash, Form looks ok but without the placeholder text, as Name or email etc.

View 4 Replies

ActionScript 2.0 :: Change Load Point Of An Image Within A Holder?

Apr 12, 2010

I am using an array to load images into a holder_mc on my flash site. Is there a way to change the registration point at which the image loads? Currently the image loads and is justified to the top left corner of the holder. I would like to change it to the top right corner.

View 7 Replies

ActionScript 2.0 :: Apply Act. To A Holder Inside An Attach.file?

Aug 7, 2004

I like to apply a prototype to the following:a holder inside an mc that has a linkage(project). Project is loaded (attachmovie ) in a holder (name main)placed on stag (root). Possible?

View 5 Replies

ActionScript 2.0 :: Attach MovieClip Inside Loaded One From Library Of Holder

Jan 18, 2007

I've used MovieClipLoader to load a movieclip into my holder. Everything works out fine, the mc loads and it's all good. But then, inside the loaded mc I use attachMovie to attach a movieclip from the library of the holder. It won't attach, but it will attach if I re-create the specific mc in the loaded mc's library. Does anyone know how to get around this?

View 1 Replies

ActionScript 2.0 :: Loadmovie, Bringing An External Swf Into A Holder Clip That Is Empty?

Jul 7, 2007

I am doing a simple loadmovie, bringing an external swf into a holder clip that is empty.
here is my code. I have it placed on frame one INSIDE the holder clip:

PHP Code:

_root.pages.weddingholder.loadMovie("wedding_section.swf",this); 

The external movie loads, but the issue is HOW it loads. The swf is 643x394 and looks fantastic by itself. When it is loaded into the holder clip though, it scales it and makes it much taller and wider than the actual external SWf is, and is messing the way it looks up.

View 1 Replies

ActionScript 2.0 :: MovieClipLoader - Loading Bitmap In Holder Image Container

Aug 30, 2007

I'm trying to load a bitmap using this: [URL]. It seems like the preload is working fine. I'm just having trouble loading the bitmap from here. it works without the preloader but I can't figure out what's not making it load when it's done.

Code:
function loadTransBitmap(id){
this.createEmptyMovieClip("holder_img", this.getNextHighestDepth());
var mcl:MovieClipLoader = new MovieClipLoader();
preload = new Object();
mcl.addListener(preload);
[Code] .....

I noticed after the load is complete, I traced the width for targetMC, which is where the image should be preloaded..and it comes up as 0. So it seems like there's nothing in the holder_img container. But it preloads something so I don't know what the problem is.
Also: 'id' from the function is just the image (images/1.jpg)

View 1 Replies







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