ActionScript 2.0 :: [FMX2004]initObject In DuplicateMovieClip?

Jan 13, 2004

How do you use that??? I'd like to duplicate a MC and give it dynamicly a position but i don't know how to tell that to flash...I'm using that code :

[AS]

onClipEvent(load){
for(i=0; i = nb_titre; i++){
_root.bande.duplicateMovieClip("bande" + i, i, .......................)}}

View 2 Replies


Similar Posts:


ActionScript 2.0 :: [FMX2004] InitObject In DuplicateMovieClip - Duplicate A MC And Give It Dynamically A Position?

Jan 13, 2004

I'd like to duplicate a MC and give it dynamicly a position but i don't know how to tell that to flash... I'm using that code :

[Code]...

View 2 Replies

ActionScript 2.0 :: [FMX2004]duplicateMovieClip Success?

Jan 15, 2004

I have that loop:

[AS]
for (i=1; i<this.nb; i++) {_root.bande.duplicateMovieClip("bande"+i, i, {_x:originex, _y:(originey+(bandeheight*i))});

[code]....

View 6 Replies

ActionScript 2.0 :: InitObject With AttachMovie()?

Jul 21, 2006

I want to attach a preloader to the main stage of my site to load in external JPEGS and SWF's and to do this I need to pass certain parameters to my preloader, such as the preloaders width and height. How do I make use of the initObject parameter for attachMovie()? I know I need to either define a constructor or somehow access the current movieClip's constructor, but I have no want to create a custom class for my preloader movieclip, I just want to be able to get certain information when I attach the preloader. Do I really need to create a custom class that inherits from movieClip?

View 3 Replies

ActionScript 2.0 :: AttachMovie With InitObject - Doesn't Return Anything

Jan 12, 2005

I'm attaching a clip to _root using .attachMovie, and the clip I'm attaching is an instance of a class. Normally, attachMovie() returns a reference to the newly created clip. However, when you're using the optional initObject commands, it seems it doesn't return anything. That is, I'm using this:

[Code]...

View 7 Replies

ActionScript 2.0 :: Why Doesn't This Work In FMX2004?

Mar 15, 2004

for (x = 0; x < 10; x++){
for (y = 0; y < 10; y++){
this.createTextField("_txt"+depth, depth, x*20, y*20, 20, 20);[code].....

the above script is from senocular's isometry tutorial, but when i place it on the first frame in MX04 and test the movie -> the result is one box with text "9:9".

View 2 Replies

ActionScript 2.0 :: [FMX2004] Setting The Alpha?

Jul 4, 2004

I am having trouble setting the alpha of a movie clip (this is a bitmap, if that matters). My code is as follows:

Code:
on (change) {
if (this.getSelectedItem().data == 3) {
set (this._parent.ahouston._alpha,100)}
if (this.getSelectedItem().data <> 3) {
set (this._parent.ahouston._alpha,0)}
}

I don't believe it is a problem with my combobox actionscript, as just putting:

Code:
set (this.ahouston._alpha,100)

in the only frame of the parent movie clip doesn't work either.

EDIT: Now it shows it with 0% alpha, but won't turn to 100%. I was wrong. It is a combobox problem.

View 7 Replies

ActionScript 2.0 :: FMX2004::30 Sec Timer Prob?

Aug 10, 2004

ive done a little media player for my mates website.means i didnt understand the xml and loading audio that way i decided to try another way,which was to load external .swf which contained audio.so ive done this everything working.the problem is i tried to add a timer, so that when the 30 sec sample was done it would go to the next frame which loads a different track.i found a piece of timer code which is

loadMovieNum("track2.swf", 1);
if (bytes_loaded == bytes_total) {
var time = 0;[code].....

It all works first time around but when you select the track again then it cuts out 20-25 seconds,

View 2 Replies

ActionScript 2.0 :: [FMX2004] Can't Get Root To Clear

Jan 5, 2004

I just started learning actionscript and decided to make something easy. Some draggable points and make a like between two of them, but I can't clear the previous drawn line.

View 1 Replies

ActionScript 2.0 :: [fmx2004] Disabling Movieclips?

Jan 14, 2004

im aware of the movieclipinstancename.enable=false;but i cant seem to get it to work.I want it to work because i slide in a sound control panel over my content (also in a movieclip) but the mouse still reacts to mouse events of the content under the sound control panel. eg i have a flash email form, and the icon changes to it.

View 2 Replies

ActionScript 2.0 :: [FMX2004] Cannot Use A Variable In A Path?

Jan 5, 2005

why I cannot use a variable in a path?

[Code]...

I can work my way around it, but why doesn't it work?

View 3 Replies

ActionScript 2.0 :: [fmx2004] Ramdom Xml Files?

Mar 18, 2005

I don't know How to do it. I have a quiz in xml and what I want to do it's to open randomly a quiz from 3 xml... In fact, there is only a place in the script where it talk about the xml : myData.load("quiz.xml");and that's at the end of the script on frame 1... How do I set to randomly chose between different xml files.

View 5 Replies

ActionScript 2.0 :: [fmx2004] Set To Randomly Chose Between Different Xml Files

Mar 18, 2005

Well it is quite simple but I don't know How to do it. I have a quiz in xml and what I want to do it's to open randomly a quiz from 3 xml... In fact, there is only a place in the script where it talk about the xml : myData.load("quiz.xml"); and that's at the end of the script on frame 1... How do I set to randomly chose between different xml files.

View 5 Replies

ActionScript 2.0 :: Code Don't Make Another Rows (FMX2004)

Oct 2, 2005

[Code]...

the movies go the next row but they stay all in the same x location

View 3 Replies

ActionScript 2.0 :: [FMX2004] Prototype Only Moves One Clip?

Mar 3, 2006

i have this prototype where i send this mc to certain x position. But when i try to send TWO mcs at the same time it only sends the last one. What to do for it to work on two mcs at the same time?

here is the prototype:

Code:
MovieClip.prototype.moveOut= function ( mc, endX ){
speed = 5;
this.onEnterFrame = function(){

[Code]....

View 2 Replies

ActionScript 2.0 :: [FMX2004] Scrolling Background Tweaks?

Mar 20, 2006

I'm working on a website that is kind of set up a bit like a flash game. the background scrolls continuously with the movement of your mouse, and loops to make it appear seamless. my problem is with the quality.. it seems to skip or jump a little when it moves, and I am trying to get it as smooth as possible.

the source file is here: http:[url]....

you can just export it to see what I am talking about. what can I do to make it not so jumpy? are there settings I can adjust, or does anyone have any other code variations that would improve on mine?

View 4 Replies

ActionScript 2.0 :: [FMX2004] Zoom The Coordinate Ruler?

Jul 19, 2007

what i'm trying to create is a map system with pan and zoom functions similar to google maps. that part is easy. what i'm having trouble with is figuring out how to scale the coordinates at the top and left of the map.so if at 100% my map is viewable from mile 0 to mile 99 (numbers are only for the sake of example) then when i zoom in on the center to 150% i would need to show coordinates from mile 25 to mile 75 ... i think if that example is not clear just look at flash or photoshop. when you zoom in just look how the ruler around the stage changes with the zoom level.

View 1 Replies

ActionScript 2.0 :: Check If A Movieclip Exists [FMX2004]

Aug 11, 2004

How do you check if a movieclip exists?

View 5 Replies

ActionScript 2.0 :: Mask A Clip.loadMovie(picture.jpg); [FMX2004]?

May 8, 2004

Im loading several thumbnails from out of a database into flash, everything is stored as it should. Then i create a Rectangle called "mc_mask". This one is created as it should with the correct values. Then im looping through this for(){}. As you can see im duplicating a movieclip "mc_thumb_holder" then eval them to my array, there im loading in a Movie with .loadMovie(thumb); Now when i set the rectangle as a mask on each of the duplicated movieclips it wont work. So my question is:

[Code]...

View 2 Replies

ActionScript 2.0 :: [FMX2004] - Variables Work On Test, Not In Html

Dec 7, 2004

I've got a main movie (main) loading another movie (forms) that includes a listbox (listBox) inside a empty movieclip (comboloader).. When I test this out using a getURL?variable="+ _root.variable it works fine in the flash test but when I run it from the site the variable is "undefined"

Here's my code for the button which makes all this happen.

(all variables are set to global)
on(release){
formData = new LoadVars();

[Code]...

am I missing a _parent somewhere? Is there any reason this thing would work standalone (in flash) and not in the final file (when its loaded into another clip)

View 4 Replies

ActionScript 2.0 :: [fmx2004] Passing Variables From Html To Flash

Jun 7, 2005

I want to have links on several pages of my website which, when clicked, take the user to an html page called "portfolio.htm" which has a flash portfolio on it. This portfolio is set up with a series of buttons which load external .swf files for each project. How do I tell flash which .swf to load when the flash file opens.

ex: user clicks on "project x" on a web page called print.htm. The user should then be taken to portfolio.htm where a flash file resides and loads "project x" into a movie clip called "content_mc".

All the other posts I've read make reference to PHP. Is it neccesary to use PHP, or can I achieve this without PHP?

View 4 Replies

ActionScript 2.0 :: [FMX2004] How To Do A Rotation Like On The Laguna Beach Page For MTV

Aug 17, 2005

I am trying to do a rotation like on the Laguna Beach page for MTV. [URL]I can rotate the 3 figures around a path, but I run into problems with the depth of the figures. I guess is the z positioning.

View 1 Replies

ActionScript 2.0 :: FMX2004 - 30 Sec Timer - Goto The Next Frame Which Loads A Different Track

Aug 10, 2004

ive done a little media player for my mates website.means i didnt understand the xml and loading audio that way i decided to try another way,which was to load external .swf which contained audio.so ive done this everything working.the problem is i tried to add a timer, so that when the 30 sec sample was done it would go to the next frame which loads a different track.i found a piece of timer code which is

[Code]...

View 2 Replies

ActionScript 2.0 :: [FMX2004] Setting Event Handler For Dynamically Created Buttons

May 23, 2005

I'm using Flash Remoting to grab a result set from a SQL Server database. Then, using the total records in the result set, I'm creating the respective number of movie clips on the stage. Each of these movie clips is an instance of the "button_mc" movie clip I have in the library, named "button_0", "button_1", ..."button_n". The library movie clip that I'm using to create the instances contains a standard Flash button.

Anyway, that part is working fine. What I want to do is dynamically generate the onRelease event handler for each of these unique buttons. When I try to do this within the for loop, it sets all the event handlers to the last item in the list. What I want to do with the event handler is change the text of a dynamic text field based on the button name.

e.g. buttonName.onRelease = function() {
myDynamicTextField.text = "button_"+i;
}

In some ways it makes sense that the event handler is always going to be the last available in the loop, as the handler is called after the loop is completed. However, I'm hoping there's a way to make the handler "stick" after the loop is completed.

View 2 Replies

ActionScript 2.0 :: [FMX2004] Resize Images In Flash To Fit The Masked Area But Proportionately?

Jan 24, 2006

Basically I'm trying to resize images in flash to fit the masked area but proportionately....

My mask area is:

Code:
width = 478;
height = 420;

now consider that the the max width I want my pictures to be. This doesn't have to be exact. Now what I came up with to resize proportionatly is:

Code:
//width & height are my mask deminsions ( which i wanna resize my pics to)
//width_orig & height_orig are the deminsions of each new loaded pic.
height = (width / width_orig) * height_orig;
width = (height / height_orig) * width_orig;

That does scale them proportionatly but some of the times it will resize a lil bit smaller than the image area which I don't really want. Like I said this doesn't need to be exact. I would prefer it to be a lil bit bigger than the masked area. I just need to make sure the pics are scaled proportionatly.

View 1 Replies

ActionScript 2.0 :: [FMX2004] HtmlText - Can Only Move The Cursor With Keys And Not With Mouse Anymore When Insert An Image In TextField

May 12, 2004

i'm making a small "add news" movie for a site in actionscript. When I insert an image in my textField, I can only move the cursor with my keys and not with my mouse anymore. I put the image always in front. I also have to click one time in my textfield, otherwise my text appears under my image. When I click it aligns to the right.

[Code]...

View 2 Replies

ActionScript 2.0 :: DuplicateMovieClip?

Feb 11, 2008

I have created a emptymovieclip which contains 1 shape and then i have a uplicateMoviclip, and it posistion with {_x:Number,_y:Number}my code:

Code:
this.createEmptyMovieClip("shape", this.getNextHighestDepth());
shape.beginFill(0xFF0000);

[code].....

View 2 Replies

ActionScript 2.0 :: CS3 Rotate And DuplicateMovieClip?

Apr 15, 2010

CS3 rotate and duplicateMovieClip?

View 2 Replies

ActionScript 2.0 :: CS3 DuplicateMovieClip And For Loop ?

Jun 29, 2010

I'm creating a flash menu and I have this AS code on the first frame:

[code]...

My problem is, that when these MC's duplicates, there is only one (last) which is working.

View 3 Replies

Flash :: Best Way To Delete A DuplicateMovieClip?

Jan 14, 2011

[code]...

This code just generates a new ham_mc where the user releases the original (drag and drop). The original returns to its starting point. I have the same code for a movieclip called cheese_mc, the user can drag and drop cheese too.

So, if more than one of these ham_mc's and cheese_mc's are created, what is the best way to delete the last one created?

View 1 Replies







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