ActionScript 3.0 :: Recreate Loadmovie With Addchild?

Jul 4, 2009

I want to load in external swfs into an mc on the root called 'holder'.In As2, I would just do loadMovie("whatever.swf", this.holder); And if I loaded another swf into that same holder it would replace the contents with the new swf.

But now, I'm trying As3 and doing..var i =new Loader();i.load(new URLRequest("contact.swf"));this.holder.addChild(i)

When I repeat this code, for another external swf, I want it to replace the first one, but it appears to not be doing that. I fear that this addChild, is simply adding more mc's within my main holder mc.

So I don't know how to match the functionality that I liked from As2.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: AddChild From A Class - Get The Error "1180 : Call To A Possibly Undefined Method AddChild?

Jun 15, 2011

I'm trying to have a class file which can add objects to the stage via addChild; however, when I call addChild from within the class file, I get the error "1180: Call to a possibly undefined method addChild." I've tried importing flash.display.* and that doesn't fix the problem. Does the class file have to extend Sprite or MovieClip to be able to add objects to the stage?

View 8 Replies

ActionScript 2.0 :: Use Php To Recreate Xml That Parses Into It?

Aug 27, 2009

I am trying to recreate an xml through php as I am pulling information from a database. I know the problem is with the php code as the actionscript code works with a normal xml file[code]...

View 0 Replies

ActionScript 2.0 :: How To Recreate Gravity

Jun 24, 2003

i'm trying to recreate gravity. this is what i have so far:

[AS]G = 0.005;
m1 = ball1._width;
m2 = ball2._width;
scrnW = 550
scrnH = 400

[code]....

the script looks alright to me but when run, the effect is wrong...

View 14 Replies

ActionScript 2.0 :: Recreate This Jpg In Flash?

Apr 8, 2008

Im trying to convert my company's logo from a jpg to a flash movieclip...I need to do this because the jpg has a static background of white...but I need the background to be transparent so that only the text graphix show up above everything else...assuming I can get a hold of the font used for the logo...how would I do all the fancy shading/lighting with the "bent horizon" look across it? I am by no means a designer...merely a wannabe developer...so I know nothing as far as the pretty part of flash is concerned...here is the logo I am trying to duplicate..

View 2 Replies

ActionScript 3.0 :: Box2d Addchild - 41061: Call To A Possibly Undefined Method AddChild Through A Reference With Static Type Class

Jan 16, 2012

I have downloaded Box2d ([URL]) and created a project that looks like this: [URL]. catalyst is the green cube and it has the base class "shapes.box", it is inside "world" which has the base class "wck.World". What i want to do is to add another "catalyst" from the library inside "world" when i click on add_btn. I tried to accomplish this by this code:

[Code]...

Symbol 'buttons', Layer 'Actions', Frame 1, Line 41061: Call to a possibly undefined method addChild through a reference with static type Class.

View 9 Replies

IDE :: Recreate The Sky With A Rotating Clip In The Shape Of An Arc

Aug 30, 2009

I'm trying to recreate the sky with a rotating clip in the shape of an arc. I've tried the built-in timer that changes the rotation, I've tried the TweenMax class, and I've tried hand-building the animation with a motion tween. In all cases, the movement is jerky--smooth for about five frames, then a sudden jerk of motion. What can I do to make this animation smoother? Clip is about 2400px wide, 400px high, with a reg point about 3000px away that it rotates around.

View 3 Replies

ActionScript 3.0 :: Recreate Pen Tool Inside It?

Mar 4, 2012

I've been looking all over with no luck for a way to code the pen tool in AS3. What i want is, in the flash application, the pen tool as it functions in Flash itself. So, for example, i push Ctrl + Enter and test my program, then can use the mouse to click and create a point, click again and it connects with a straight line, or click and drag to create a curve. I don't need anything like hinges where you can go back and edit curves, i just want the click/click drag line functionality.

View 6 Replies

ActionScript 2.0 :: Recreate The TV Snow Effect?

Oct 20, 2003

Does anyone know how to recreate the TV snow effect, you know when you're trying to tune in a tv channel and all you get is the 'fuzz'?

View 10 Replies

ActionScript 3.0 :: Difference Between Mc.stage.addChild And Mc.addChild?

Jan 20, 2011

I have the followings:

_p:Player (which is a MC)
a1:Animation1 (which is a MC)
_p.addChild(a1); //doesn't display anything
_p.stage.addChild(a1); //displays a1

Why won't the MC display a child without using his stage?

View 1 Replies

ActionScript 3.0 :: Difference Between AddChild And Parent.addChild?

Aug 11, 2009

I'm trying to resolve an issue that reared it's ugly head yesterday.Frame one of main timeline I have the following code:

Code:
import flash.display.MovieClip;
import flash.events.MouseEvent;

[code]....

The newMC doesn't show up.If I add 'parent.' in front of the addChild then it appears.mc_LibItem has a base class of "flash.display.MovieClip" and is exporting for ActionScript and on frame one.For grins I created a new .fla and began messing around with the same addChild idea and it worked.

View 14 Replies

ActionScript 3.0 :: Recreate A Dragable Object That Will Blur Anything Behind It?

Feb 12, 2009

I have flash and i wat to recreate a dragable object that will blur anything behind it.

View 3 Replies

ActionScript 3.0 :: Recreate Page Anchors In Flash?

Mar 17, 2010

Im working on a project where i have 5 buttons on one side and a blank window in the middle of the screen. when a button is clicked an external swf is loaded with movieclips of text based on each catergory. 2 of these movieclips of text are long and a request for an index at the top of the page has been made. everything in the movie is working so far except the page index. i wanted to create this similiar to the way an html index works with page anchors.

i have made all the letters and converted them to movieclips. ive added event listeners to those buttons so that the main window's y position is moved when they are clicked. the main swf window will jump down to the desired position but the scroll button remains at the top and theres no way to scoll back up to the top of the page.

View 1 Replies

Recreate Simple Flash Animation Using Script?

Sep 4, 2010

I came a across a really sharp intro effect I'd like to try and create in jQuery, mootools or prototype[url]... (Just the spin in effect) So in a sense, I want to spin in the main content div of the page.

View 3 Replies

ActionScript 2.0 :: Recreate The RollOver Swapdepth Effect?

Jan 9, 2006

I have been trying to recreate the rollOver swapdepth effect (above). Works OK but slow using mc's on the main timeline using the swapDepth behaviors.It appears (on the [URL]) that each swf is loaded independently on top of the main with their own preloaders.This seems vastly more complicated than just swapping depths on a single timeline.

View 1 Replies

ActionScript 2.0 :: Using Active Blur Class To Recreate Effect?

Mar 5, 2010

So I'm using PixelFume's Active Blur class to recreate the effect, though somewhat simpler so I rewrote some of it and it seem screwed up to me. I have it on the first frame of an .swf that gets loaded into and container clip in the main .swf via loadMovie. It does what I want it to do, but everytime you load the page it comes up slower and slower. If you click the button to load it like 15 times, it's pretty much 1fps.

The code is as below:
Code:
import flash.filters.BlurFilter;
import flash.display.BitmapData;
import flash.geom.Point;
var bottom = bg.getDepth();
this.createEmptyMovieClip("bgBlur", bottom+1);
[Code] .....

View 2 Replies

ActionScript 3.0 :: Send Objects To Server And Recreate Stage?

Nov 19, 2009

i want to send an object and its properties (that have been manipulated) to my server. I then plan to re-create this object and automatically create a screenshot of the object (i do not want to do this client side). i'm planning to use POST and some php for each property as its changed, and then load this data into a server side as3 script. i would like this server side script to take the object in automatically, and create an image server side - is there anyway to doing all this while not prompting for any input (from what i've learnt, flash needs a prompt before saving a file)? i haven't used flex, could it be used here?

View 10 Replies

Actionscript 3 :: Drawing - Recreate Such Effect Using Pixel Bender?

Jan 30, 2011

Effect is generally in mostly vertical with slight horizontal offsets looks like: often used by paintors in sky painting like here

View 1 Replies

ActionScript 2.0 :: Use To Recreate A Text Field With Lots Of Letter Mcs?

Apr 25, 2008

I've recently created a Super Text Transition class - its pretty much perfect, except theres on thing that niggles me.

It works by splitting up dynamic textfields into many movie clips, one for each letter - but I cant work out how to position the newly created letter movie clips (each containing a dynamic textfield with only one letter in them) in the right way so it looks exactly like the original text would in the textfield.

Im assuming Im not taking into account certain variables - between textWidth/textHeight, _width and _height of the letter movie clips, leading, letterSpacing blablabla. know the variables to use to recreate a text field with lots of letter mcs?

View 2 Replies

ActionScript 3.0 :: Recreate The Following Website Except Using Different Graphics But With The Same Navigation Elements?

Apr 15, 2009

I am trying to recreate the following website except using different graphics but with the same navigation elements and the same motion and tweening and animation effects going on in the stage.[URL]

View 1 Replies

ActionScript 3.0 :: Recreate The Flash Selection Tool's Functionality?

Apr 21, 2009

I would like to recreate the flash selection tool's functionality. To clarify, I created a drawing program that uses the drawing api. Now if a user draws a circle, I would like them to have the ability to stretch and mold it like you can in flash by hovering close to the edge so the ) cursor shows up.

View 3 Replies

ActionScript 2.0 :: Recreate 2 Buttons Inside A Mc Or A Main Button?

May 11, 2009

I need to recreate 2 buttons inside a mc or a main button in AS 2.0 [URL]rollover "portfolio" then rollover faith in chaos you will see a set of buttons in what looks like the main button overstate I know this was done with a javascript menu in this case but there has to be a way to do it in Flash I need to create that overstate with accessible buttons inside.

View 10 Replies

ActionScript 3.0 :: Recreate The Effect That Site Has When Transitioning Between Pages

Feb 5, 2012

First time on the site. I have been desperately looking for information on this transition, but I have only gotten so far. I was wondering how to recreate the effect that this site has when transitioning between pages. [URL] As you can see, there is a very nice fade out, then in effect. I know that u can fade in with a motion tween, but when u click the next link, the page just jumps into the next one instead of fading. How can I get that fading both in and out effect?

View 2 Replies

ActionScript 2.0 :: Flash - Recreate The Animated Navigation On The Home Page?

Oct 7, 2007

I have been asked to recreate the animated navigation on the home page at [URL] but I don't have a clue where to start.

View 1 Replies

ActionScript 2.0 :: Recreate Z Scaling / Depth Effect In Posted Website [renamed]

Mar 9, 2005

I'm trying to duplicate this site. I haven't been able to find anything on depth scale, z depth etc. [URL] was wondering figure this out and point me to the right direction or keword or any scripts.

View 7 Replies

ActionScript 3.0 :: AddChild, RemoveChild And AddChild?

Oct 30, 2005

somewhat understood the basics of adding and removing children, however, I am facing another problem. After using the removeChild Function, I can't seem to add another child.For example:

ActionScript Code:
var attachedMC = new (getDefinitionByName("Content1") as Class)()
Page.addChild(attachedMC);

[code].....

View 3 Replies

ActionScript 3.0 :: Load External SWFs, AddChild(Loader) Versus AddChild(Loader.content), Etc?

Jul 29, 2009

I have a main "shell" swf which, by clicking several buttons, will load/unload various external swfs into a Placeholder_mc which resides on the main timeline in Shell.swf In the documentation and tutorials I've seen a couple different methods, and I'm not sure I quite understand the difference, or at least the reason you would use one over the other...In the 1st method, you can just add the Loader object using the addChild() method:

Code:

var myLoader:Loader = new Loader();
var myURLRequest:URLRequest = new URLRequest("ExternalFileA.swf");
myLoader.load(myURLRequest);
Placeholder_mc.addChild(myLoader);

This will apparently add myLoader to the display list once it has completely loaded.The 2nd method, you supposedly can add the Loader.content; however, it appears you can only do this once the content has completed loading, so you need to incorporate an event handler with the contentLoaderInfo object:

Code:

var myLoader:Loader = new Loader();
var myURLRequest:URLRequest = new URLRequest("ExternalFileA.swf");
myLoader.load(myURLRequest);

[code]....

What are the pros/cons of adding the entire Loader object, as opposed to the Loader.content and vice versa?

View 7 Replies

ActionScript 3.0 :: Adding Movies Dynamically - Recreate Class Works But Shows The Tiles In A Random Order

Oct 4, 2011

0: Its not rocket science, but my surname aint Oppenheimer either so... read on if ou dare.

1: this is my third attempt at mastering OO and flash CS5 so, i hope we can all have a laugh after.

2: In short.. I added a 64x64 tiled movie in flash. Read it out in an array, in a.. well original way(just to see if i could get it to work so stop lauging already), and tried to recreate them using a flash class.
 
2a: The recreate class works but shows the Tiles in a random order, every time a new one?! this is what happens..

[Code]...

View 5 Replies

Jquery :: Recreate This Flash App's Functionality Without Using Flash?

Feb 15, 2012

Can I use jQuery or something else to re-create this flash app's functionality?I haven't messed around with jQuery much, but I feel like the same functionality can be achieved as Flash can.Are there any other languages or combinations of languages that I could use to replicate the functionality of this site?

TimeGlider Timeline Creator

You have to click the start button on the bottom of the first screen in the top left of the page in order to start interacting with the timeline. If you click the X in the top corner, the timeline data won't load.After clicking start clicking on a picture will bring up a caption. If desired, a link is placed under the caption that opens to a new window. You can scroll through time and get details on events when they are clicked.There isn't a lot more to this site, but I want to be able to do something similar using jQuery or another capable language.Is this possible? If so, what languages do I need to use in order to replicate the functionality of the flash app on this site?

View 1 Replies

ActionScript 3.0 :: Delete A Variable Containing A Movie Clip Class And Recreate It With A Different Movie Clip Class?

Jul 1, 2009

In my project are pages of text with each word having a button that when pressed will display a movieclip presentation about that word (its pronounciation and spelling etc..). In the project I am working on now I have over 450 unique presentations of words to deal with. I don't want to have all of these hundreds of movie clips on the stage and tell them one at a time to stop and rewind and then have one play each time a word button is pressed. That seems to be very inefficient to me.

add movieclips to the stage using addChild(movieclipname) and remove them using removeChild(movieclipname) but there is a problem. I have hundreds of unique movieclips and I don't want to have to manage hundreds of variables containing the indivudual movieclip instancess. It is a real pain having to figure out what instance is still on the stage before i delete it.In Adobe Director all I have to do is this:

View 5 Replies







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