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


Similar Posts:


ActionScript 3.0 :: Graphics Clear() Doesn't Clear Bitmap Data From BeginBitmapFill()?

Jul 30, 2011

I'm working on a game whose background has many layers that each scroll at different speeds.

Inside each layer I have a Sprite, I've started using graphics.beginBitmapFill, but what I've found is that the graphics.clear() function doesn't actually clear the contents set by the previous call to graphics.begin.BitmapFill. Each frame, I adjust the matrix to shift the layer as needed.  Then, I call graphics.clear() and graphics.beginBitmapFill() with the adjusted matrix. Since my layers have alphas in the bitmap, I can see the contents that was drawn the previous frame.

View 3 Replies

ActionScript 3.0 :: Line.clear - Doesn't Clear The Line When Mc1 Moved?

Jan 1, 2012

[Code]...

doesnt clear the line when mc1 moved ? How solve tihs problem?

View 1 Replies

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

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]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 :: [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 3.0 :: Crossdomain Policy File On Root Level Cannot Be Deployed On Root Level? 

Jan 14, 2009

Situation:

- We have a Flash application located on a SAP EP (let's say ep.x.com)

- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)

- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices

Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.

- A crossdomain policy file on root level cannot be deployed on root level

- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.

Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.

Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.

- SAP / Adobe always features the close relationship between their technologies.

Question:- What could we do?

- How does the Visual Composer works around that problem?

View 1 Replies

Actionscript 3 :: Position Loaded Object Based On Root Stage Instead Of MC That Is Loaded From Root

Mar 22, 2010

I have a root stage, and a MC that is called from the root stage.Now from that MC, i will called in another MC2, and I wanted to placed the MC in the center of the stage. The reason I could not use normal ADDED_TO_STAGE at MC and define the center is because MC is not place in the exact position of the root stage (as in x, y=0). So if I would target MC2 at MC stage center, it would not be the exact center of the root stage/screen.How can I called the root stage properties rather than adding MC2 into the stage?

View 1 Replies

Flash - Tell The Root Timeline To Root.gotoAndStop(2); From The Timeline Of A MovieClip Added Using AddChild?

Nov 7, 2011

How do you tell the root timeline to root.gotoAndStop(2); from the timeline of a movieClip added using addChild?In the maintime line I have

addChild(fade_eng);

and in fade_eng I have the following on frame 20

root.gotoAndStop(2);
this.gotoAndStop(1);

But I am getting 1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:Stage.

View 1 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] 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] 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 3.0 :: Way To Clear Out All TextInputs?

May 21, 2009

I am creating a wizard-like form. At the end, I give the users an option to start over.At this point, I want to blank out all TextInput fields in the application.I wrote some code that does the trick, but I am wondering if there is a better way?

Code:
private function clearText(obj:Object):void{
try{

[code]....

View 1 Replies







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