Like any of it's simple, but here's what I've got...I'm doing my loadVars, everything's going peachy, but now I want to swap the variable. I've got a bunch of vars in a text file, and here's how I'm doing it right now...
Code:
on (release) {
output1.text = myLoadVar.name2;
}
Now, this works ok, but with as many vars as I'm planning for, I'd like something that I didn't have to make a ton of frames just to have it run.
Code:
on (release) {
output1.text = myLoadVar.(name('prevnum'+1));
}
What I'm looking to do is have an image swapped with another depending on the value of a variable, but I'd also like it to choose the image automatically.[code]...
what i want it to do is when a function is called if the var == 01 it will automatically swap that image with pic_01, if the var == 02 it will swap it with pic_02. However is there a way of doing this without having to actually write an if statement for each of the pics as there is going to be around 700 of them.
I have a class definition as file. In it a variable gets passed to into a function (parameters). Then I want to use the name of this function to swapDepths with another movieclip.
Code: private function alphaZero(clipToSwap) { trace(clipToSwap+"+clipToSwap");
i'm calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get "cannot load file" in the xml loading section, but this updates the xml file.
[code] loadVariables("http://localhost/file.php",this,"POST");[/AS] but when i do it this way. [code] loadVariables("http://localhost/file.php",NONE,"POST");[/AS]
the "cannot load file" messge doesn't get displayed, and the file loads perfectly, but this doesn't update the xml file.
so everytime i have to first use "this" and then "none".
what can i do so that whenever php is called, it'll update the xml file, and still load in the swf.
i'm calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get "cannot load file" in the xml loading section, but this updates the xml file.[code] loadVariables("http://localhost/file.php",this,"POST");[/AS]but when i do it this way.[code]loadVariables("http://localhost/file.php",NONE,"POST");[/AS]the "cannot load file" messge doesn't get displayed, and the file loads perfectly, but this doesn't update the xml file.so everytime i have to first use "this" and then "none".what am i doing wrong? what can i do so that whenever php is called, it'll update the xml file, and still load in the swf.
When I use the code below it works fine and loads the CSS-file and shows the the html-textarea as it should be CSS-formatted. BUT when I try to put the SAME code into a movieclip within another fla-movie it does not work (loads text but not css) and I get un "undefined" all the time. After trying a lot of different things I've come to the conclusion that it MIGHT have soemthing to do with the .onLoad that gets "undefined" in some way. As you can see below I'm getting two vars from input textfields and then use a button to activate the function loadCSS().
Im making my first flash game so forgive me if there is anything with my actionscript or my explaining that is messed up.
This game is a 4 player (<--will be) tank game that fires bullets and stuff. so far its working just how i want it to apart from one thing... the duplication for the bullet. This snippet of the script is the bit that should make the bullet firing. if you look at these to bits of script "_root.depth += 1;", "duplicateMovieClip(_root.bullet, "bullet"+depth, depth);" to my understanding the "depth" should increase BUT it doesn't? does anyone know what is going on?
var u = clips.clip1.getDepth(); clips.clip1.duplicateMovieClip("clip1clone", u-1);
the problem is that clip1clone is not generated. I think it has to do something with path, I have to add somehow a path to clip1clone? I tried 0 instead of u-1 but it didnt work so I guess the problem is with path?
smooth out this scrolling text script. It works perfect but its not smooth. (keyframes are up at 45fps) I know I can just call the function quicker but it's just not the effect im lookin for. I want a steady smooth look to it.
Code: iniText = "Hello this is some text."; mov_cnt=0;[code]....
I'm attempting to create an effect system that will allow for motion blurs and a variety of other effects.My attempt to create this system is by using a series of movie clips that are duplicates of a main movie clip, each a snapshot slightly farther back in time.This doesn't work, as I think I may be lacking some fundemental understanding of how clip duplication works.Below is code that should be creating a duplicate clip, 10 frames behind in time. The clip exists but the sub-clip isn't attached.
Code: // The main movie clip. var main_mc : MovieClip;
I was looking over the script from AS.org. for the page flip navigation.[URL]But see the thing with the script from AS.org is that it does not allow you to use images as the pages.
I have two class files that extend to movieclips......one targets _root.scrolling_mc, the other _root.messages_mc. I have multiple movieclips throughout the presentation with instance names scrolling_mc and messages_mc. This is where it gets interesting. After navigating from a scene with scrolling_mc to a scene with messages_mc, some of the behaviour of the scrolling_mc is still triggering. Its almost as if both class files are working side by side.
I'd like to know if there is a way of controlling the variables that are sent with the AS command loadVariablesNum when calling an ASP.Let's say I don't want to send two variables that exist in that frame.
I'm trying to find a clear and concise book or online referece that can assist me in customizing the components that come with FMX04.Namely the label component. I know how to change the "halo" theme in general to get the buttons and text boxes to change color, but beyond that I am at a lost.
I have tried Macromedia, searched here/Flash Kit/google, but nothing that I can learn from. Live Docs has a feedback part where someone posted some code and while I can cut and paste it, I'm not completely sure how it all worked.
i am developing a photogallery with picts of different width.there's nothing with it,but i am trying to make an element which is more of a design nature.So i have an invisible mc/say "bbb" which is duplicated each time a new photo is loaded and its _x depends on the photos _width and the distance between the photo and the end of the screen regulates how many times "bbb" is duplicated.So on every new photo i got /possibly/ diferent number of instances with diferent _x.Still no poblem.But i want to put an bbb_dups.onRollOver=func(){if (this._x=curr_x){ tween(this._x+30)}else if (this._x=curr_x+30){ tween(backto curr._x)} so i need somehow to store each instances curr._x after the duplication which i dont know how.i've tried with an array but it doesn't seem to work for all the instances.
I found this navigation system and im trying to figure out how to make it. Not going very well tho, i was wondering if anyone has some hints or a simular tutorial for this. This is the navigation system: [URL]
I'm creating flash image galleries for a local design firm's site. Their pages are long, vertically scrolling, with large image galleries spaced down the page (about 900x400px each). Each of these shows an initial image, and then has buttons above to select image 1-9, or pre/next image. The images will need to dissolve from one to the next.Because there are so many of these galleries, I want to put each in a folder, name all of the images Image1.jpg, Image2.jpg, etc. and include a txt file to tell my navigation button how many images are in the gallery (this part works).
OK, but I just can't get the thing going now. Here's how I've approached it: Each Gallery image is a MC that has an alpha in/out animation, with a stop action in between that also swaps it to a certain level (just so I can identify it using getInstanceAtDepth when I need to fade it out).Image_1 is attached to an empty container on stage at the start. I want to define a function that will be called by my gallery buttons that will 1) tell the clip currently onstage to fade out (that works), 2) attach the appropriate clip to my container clip at a particular level (this does not).
Code: _global.galleryFader = function(clickVar) { // "clickVar" is returned when the gallery number buttons are pressed
I'm currently pulling data into Flash 7, Actionscript 2.0 from an RSS XML file. One of the nodes in the XML is the dateTime for each entry. After pulling in the dateTime how can I format how it displays?
Example:
dateTime format in XML- Mon, 10 Apr 2006 16:35:00 -0700
I want it to display like this in Flash in a text field- 4/10/2006, Monday, 10:35am
I have three Flash movies (all the same pixel size) that I want to use on the home page of my website which is built in MX 2004.
How often the movie changes is not critical, but I think once an hour will be fine. What's the best way to get Flash to automatically change the movie every hour and where should I attach any code - to an Actions layer in movie no. 1?
As a summary, here's what I want to achieve;
12.00pm - movie no. 1 plays 1.00pm - movie no. 2 plays 2.00pm - movie no. 3 plays 3.00pm - movie no. 1 plays again
...and so on for 24 hours until you get back to 12.00pm when movie no. 1 plays again.
I took the basic image gallery tutorial on this site and messed about with the code a bit so that the images move back and fourth rather than fading in and out. I'm sure there are better ways to do that than how I did, but it mostly works so I'm happy. My problem now is that I don't know how to make the center of the photos align to the center of the stage. I can of course allign the first one, so it starts aligned, but as soon as I start scrolling through images it aligns the left side of the image to the center of the stage,
I am adding flash galleries toon the Facilities and Gallery pages. On my mac I've tested the galleries using Firefox, Safari, and Opera and they are working perfectly as expected.However, there is no gallery, or error message on PC machines. I do not have a PC so I can't test it, but I've had a Vista and XP user both test the site and the galleries do not display at all.
Ok I was looking over the script from AS.org. for the page flip navigation. Looks kinda like this awesome example. [URL]
But see the thing with the script from AS.org is that it does not allow you to use images as the pages. If anyone knows another open source or could lend a hand.
I'd like to know if there is a way of controlling the variables that are sent with the AS command loadVariablesNum when calling an ASP.Let's say I don't want to send two variables that exist in that frame.
I'm trying to find a clear and concise book or online referece that can assist me in customizing the components that come with FMX04. Namely the label component. I know how to change the "halo" theme in general to get the buttons and text boxes to change color, but beyond that I am at a lost. I have tried Macromedia, searched here/Flash Kit/google, but nothing that I can learn from. Live Docs has a feedback part where someone posted some code and while I can cut and paste it, I'm not completely sure how it all worked. And if I can't figure it out then its just not as fun.
I've been using the "Reusable Preloader Using MovieClipLoader" from the tutorial section of this site.The only difference is that i don't use 'm for preloading jpg. I load external swf files containing video. Everything works fine so far. The only problem is that the preloaded video already starts playing while preloading (at about 30%), but without showing the video.This is the code i have so far:
problem with loading images randomly and putting them in the right _x and _y coordinates.I have a swf file with in the first frame a button with this code :
I have seen popup blocker detection script in Javascript that will alert folks that a window did not launch due to a pop-up blocker. What I was wondering is, is it possible to detect that within flash and play a movie if a popup blocker is enabled? I need to forewarn folks that certain areas of this flash site require popups and that they have them blocked currently.
I am am loading external SWF files into main file from XML created menu.I want to make TRANSITIONS between loaded files, but this Kiripa tutorial does not work for me since I can not give each button sepparate code. All buttons come from xml.
At the moment If I do all by tutorial all menu buttons start to load same link which and transition works, but yeah I need menu to understand that it must load new swf not that same.I know it is possible, but I do not know how it is made, so if anyone could help me I would be very happy!
Now comes code that needs to be modified :
if (_root.currMovie == undefined) { _root.currMovie = _root.link[this.i].attributes.url; _root.Konteiner.loadMovie(link[this.i].attributes.url, "_blank"); } else if (_root.currMovie != link[this.i].attributes.url, "_blank" ) {
I am loading in new swfs using the comboBox component which is all working fine with the following code:
HTML Code: comboListener = new Object(); comboListener.change = function(evtObj){ _root.empty_holder.loadMovie(evtObj.target.text + ".swf",3); } myComboBox.addEventListener("change",comboListener );
What I want to do is instead of it loading into the empty_holder MC, load straight in to replace the parent swf.The reason being that all the buttons underneath, in the parent swf are still active when the new one loads in. If a completely new swf cant be loaded, is there some code that can just deactivate the parent swf?