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


Similar Posts:


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 :: [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] 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 :: 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] 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 :: Adobe Air Native Installer Is Not Including .class Files And .properties Files

Feb 20, 2012

I have some files in my src directory, some are .class files (Java class files) and some are .properties files, when I create the Adobe air native installer these files are not included. Why is that? How can I work around that?

Also it excludes .mxml files, but that's good. I'm sure that's related, how to change what it includes or excludes?

View 1 Replies

ActionScript 2.0 :: Xml Gallery - Images Appear On The Tshirts To Be .png Files Or Gif Files As The Tshirt Colour Can Be Changed

Apr 7, 2009

I have created a flash file that allows you to click on a thumbnail image and larger image appears ontop of a tshirt. The same way as a gallery would work. The images and thumbnails are pulled in through xml. However I have a problem, I need the images that appear on the tshirts to be .png files or gif files as the tshirt colour can be changed. At the moment my flash file will only display jpegs! I dont knwo why. The jpegs leave me with a white background, so I need the transparency of a png/gif. My actionscript is:

[Code]...

View 2 Replies

ActionScript 3.0 :: Uploading Local Files Without Requiring User To Select Files?

Feb 3, 2009

My users upload a certain kind of text file that sometimeshas references to images stored locally on their hard drive. I needto check this file either on the server or within a flash app tosee if it has these references and then grab those images in aflash app to upload to my server.So I can use FileReference easily enough to have users uploadlocal images. But FileReference requires users to select their files with a dialog box. I can't have that. Myusers wouldn't know where to look and there are typically way toomany files, sometimes with the same name but in differentdirectories.

I can also just use URLLoader with a local URL, I guess I canprobably just use Loader too? That works great. The problem here isI can't communicate with both the server and the local filesystemin the same flash application due to Flash's security sandboxrestrictions. So I can get out of those security restrictions byplacing or editing a trust file in designated locations on variousOSes. I then need to install this trust file which is more invasiveand confusing to users then I want to be...Java's method of accessing local files from a web applet bysimply signing the applet with a certificate and having a dialogbox popup where the users grants access is ideal. Is there anything

View 4 Replies

Media Server :: Make In FMS Files(xml Files) In Order To Reduce The Latency

Sep 8, 2009

iam streaming my web cam to FMS .... i have got a latency of 1 -2 second,,,,,, What should i do to reduce the latency,,,,,, is ter any change i can make in FMS files(xml files) in order to reduce the latency......

View 6 Replies

ActionScript 2.0 :: Retaining Order Of Files Loaded Externally From Large XML Files

Jul 18, 2006

I was messing around with some old examples, and I ran into an unfinished example where several 30k-100k XML files are loaded and stored as a string into an Array. The code looks basically like:[code]Basically, when I trace the 'this', the order of the files that are loaded is off. Out of about 10 tries, about 3 times the order is perfect. The remaining 7 times, the order is a bit off. Does anybody have a suggestion on how to ensure the files are loaded prior to the next file being loaded? I tried placing a while loop that basically delays the clock for a few milliseconds, and that didn't work either. Besides, that is not really a good solution to arbitrarily waste clock cycles.

View 6 Replies

Professional :: Flash CS4 Can't Open .fla Files Or Lose Files/graphics?

Mar 20, 2010

I installed Flash CS4 Professional trial version for school use.  It wouldn't install successfully.  I deleted the font files the troubleshooting guide said to, tried again, but gave up. (I'm afraid to run regedit and mess up everything else I have loaded.)  (I previously had the Fireworks CS4 trial version loaded, then uninstalled it.)  My problem is this- I have it running, but it saves files and then they can't be opened, even if I use the save function often- it's worse when I create the file, test the movie and then save.If I try to open it again, it says "cannot open file."  Once it opened a copy I had saved, and it appeared blank, even though it was 544 kb file size.  I only need it for a few more days, one more assignment and I'm afraid my previous files are corrupt.  I have Windows Vista Home Edition.

View 4 Replies







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