ActionScript 3.0 :: Combine 2 Variable?
Jan 14, 2010
i need some data in my variable so i use this
Variable_name1 = Data1
Variable_name2 = Data2
but the datas are from database, so i need to change it depends on CurrentRecord
so when CurrentRecord is 1
Variable_name1 = Data1
View 5 Replies
Similar Posts:
Jan 31, 2012
I'm still learning flash and actionscript 3 and i am having trouble with variable and object names. I need to be able to combine variable names together (in the same way as php can combine by doing var1.var2).
My swf contains 4 loaders (image1_loader, image2_loader etc..) which are a child of (image1_content, image2_content etc.....)
I then have 4 buttons which load an image into the loader and while doing so they define the currently active loader.
Finally i have 4 control buttons - scale up/down and rotate clockwise/anticlockwise which should only control the currently active loader (as set by the buttons above)[code]...
View 2 Replies
Jan 31, 2012
I'm still learning flash and actionscript 3 and i am having trouble with variable and object names. I need to be able to combine variable names together (in the same way as php can combine by doing var1.var2).
My swf contains 4 loaders (image1_loader, image2_loader etc..) which are a child of (image1_content, image2_content etc.....)
I then have 4 buttons which load an image into the loader and while doing so they define the currently active loader.
Finally i have 4 control buttons - scale up/down and rotate clockwise/anticlockwise which should only control the currently active loader (as set by the buttons above)
So my buttons as well as loading the image have the event listener:
image1_btn.addEventListener(MouseEvent.CLICK, setCurrentSelection);
image2_btn.addEventListener(MouseEvent.CLICK, setCurrentSelection);
(and so on..)
function setCurrentSelection(e:MouseEvent):void {
[Code]...
So within the rotateClockwise and rotateAntiClockwise functions i need to be able to recognise which is the currently active loader and have that number instead of the X - so if it is image1_loader - it needs to be image1_content, if 4 - image4_content... I had tried to do it as this but it doesn't like it being a string:
rotateAroundCenter((activeLoader+'_content'), 10, ptR);
View 3 Replies
Jan 31, 2012
I'm still learning flash and actionscript 3 and i am having trouble with variable and object names. I need to be able to combine variable names together (in the same way as php can combine by doing var1.var2).My swf contains 4 loaders (image1_loader, image2_loader etc..) which are a child of (image1_content, image2_content etc.)I then have 4 buttons which load an image into the loader and while doing so they define the currently active loader.Finally i have 4 control buttons - scale up/down and rotate clockwise/anticlockwise which should only control the currently active loader (as set by the buttons above)So my buttons as well as loading the image have the event listener:[code]So within the rotateClockwise and rotate Anti Clockwise functions i need to be able to recognise which is the currently active loader and have that number instead of the X - so if it is image1_ loader - it needs to be image1_content, if 4 - image4_content.I had tried to do it as this but it doesn't like it being a string:[code]
View 3 Replies
Apr 15, 2011
Im trying to combine a string with varible so that on function can control a variaty of elements, depending on which varible is chosen. Here is my code:
[Code]...
View 1 Replies
Dec 29, 2009
I can't believe that I could not find an answer for this the last 2 hours...
I have dynamic text boxes called txtItem1, txtItem2 and txtItem3 on my stage.
How can I replace the - this["txtItem" + i]- method to dynamically name the text boxes in a loop (that I used all the time in as2), in as3.
View 9 Replies
Jul 9, 2009
I created 2 separate swf files. One is a slideshow and the other is an interactive tool. I have have also converted these two files into a flash projector so as not to worry about plug ins that customer may or maynot have.I have another file right now which is the menu flash file that has buttons pointing it to the flash projector individual files. Since these are exe files, once the customer clicks on it, it will warn that it is potentially harmful and they have to click "run" in order for it to show.
View 7 Replies
Sep 11, 2009
Anyone can tell me the way to combine 2 fla files together. It mean in the 1st fla file I'll make a button and when I click the button it will run the content of 2nd fla file.
View 3 Replies
Apr 29, 2009
I have multiple .fla file (small online invitations etc) and I am trying to combine them as part of an online portfolio.
IS there a quick way of simply placing a .fla movie into another or do I have to use the swf.
And am I being silly - should this be done using Dreamweaver as the 'container"
View 2 Replies
Aug 21, 2009
Say I create a symbol, and then another inside the symbol. In the library I now have 2 symbols. Is there a way to combine these into just one library item?
View 1 Replies
Mar 15, 2011
I have 2 .flv files that I'd like to combine, no editing other than I want a sigle file so what were 2 sequences runs continuously as 1. Is there a way to do this (quickly) without having to re-encde? Easiest method: premiere or flash? or other utility that would join segments only?
View 2 Replies
Jul 11, 2011
I'm new user which is trying to developing simple game..I'm using template to create the game..I just wondering how to insert the symbols within existing timeline..meaning that, i'm trying to create new layer and convert it to symbol but I didn't how to combine it with existing timeline.
View 6 Replies
Jan 27, 2009
just going through my code and I want to reduce it where possible. is there a way to combine these two lines into one?
ActionScript Code:
this.mainClip_mc.item0.percentage_txt.setTextFormat(perTextFormat);
this.mainClip_mc.item1.percentage_txt.setTextFormat(perTextFormat);
View 3 Replies
Sep 13, 2011
We are trying to build a game in flash with AS3 (Im no pro with this)I've got 7 Movieclips and 7 Buttons.none of the 7 Movieclips should be on stage, they only appear when you've clicked 3 of the 7 buttons. once these 3 are clicked 1 of the 7 Movieclips should appear.Now I've got the code to make 3 selections and make it show 1 movieclip.and I've gotten the code to make a random movieclip appear.My question: How do I combine these two to make them do what's supposed to for the game.[code]
View 1 Replies
Jun 9, 2003
I have 3 flash movies. Each has its own music. Now i want to combine those 3 movies into one flash file. How do I do that? It is a wedding flash movie for my sister. i have 3 separate movies because i want the music to synchronize with the each of the movie.
View 3 Replies
Jul 28, 2007
I'm trying to combine PHP/SQL and Flash. I've got a problem now. I want to load a variable that contains an url to an image. so the variable is like this:
[URL]
Now I want flash to load the image, not the text. The variable is called 'img1' but the loadmovie function doesn't work when I put it in.
View 1 Replies
Jan 23, 2009
I am using swfaddress for the moment but I am using it on the timeline which is not as dynamic as I would like it to be. How to combine xml and swfaddress? I would like swfadress to get the adress from an xml file and than do whatever its supposed to do.
View 2 Replies
Jul 27, 2009
I made an animation. I made a seccond animation that was suposed to go right after the first. I made a scene 2 and when I copy the frames over it says: Resolve liprary conflict, One or more library items already exist in the document. Replace existing items or dont replace.
If I replace the one works right but the first doesnt. If I dont replace the first one works but everythings all messed up in the other one. Is there a way to combine the 2 animations together?
View 3 Replies
Jul 15, 2002
I'm trying to create an effect which actually is combination of two effects explained in two tutorials on Kirupa website namely (1). ActionScript Text Animation and (2). Random Letter Cycling.The Text Animation part is working fine. but the random letter cycling part is not working fine.i'm not able to recall the corresponding Ist letter of the word i want. In current example the text is "Ritesh".
View 2 Replies
Aug 25, 2009
I'm taking a stab at learning adobe cs4 flash. How can I combine different text and pictures into 1 picture? For example, Iposted a link of tutorials below:URL...Now say I would like a background to fade in, then the picture of a car, then the text. How would go about this? I already have all the images separated (background, car, and text using photoshop), but I would like the background to slowly fade in, then make the car slowly fade in while coming from the left of the screen, and then the text fades in.
View 1 Replies
Dec 10, 2009
I want to build a swf in which i will pass two mp3 files as parameters and what i want is that it should combine these two and output a new mp3.
View 1 Replies
Aug 19, 2010
Set 2 MovieClips on the stage each having a rectangle in it which have different colors. Put them one over another and apply to the top one some blend mode that shows some visual difference. Ok so what I need to do now is grab the bitmapData from both and redraw it into a single MovieClip, so what I need is to merge the 2 bitmapData, which worked fine without a blendMode, but I can't get it to work right with blendMode[code]...
View 3 Replies
Sep 20, 2010
I have 5 movie clip buttons in 5 separate layers. Is there a way to merge them all into one layer? I did that and they stop working.
View 3 Replies
Oct 5, 2011
I have this website with a white fade in / fade out menu. I'm trying to get the menu to be a little more visible. Because the menu is in white font, and the images it pops over occasionally have a white background, this creates a bit of a problem.
I created a large movie clip that fits the stage width and height. I'm calling it 'bg'. The idea is when one rolls over the 'projects' menu, the bg movieclip fades in to dim the whole file except for the menu. I'm setting the alpha of bg to 0 intially, so that it can fade in using TweenLite when the projects mc is rolled over, and fade out when projects is rolled off. I would just do this all using alpha if I could, but here's the problem: in order for the screening to work over the entire file, it has to also work over my externally loaded swf and it's gallery buttons. When the bg mc fades in and tints everything, it gets infront of the buttons and you cannot access them. So... I need to combine the alpha fade thing with turning the bg visible on and off. Is there anyway to do this both at the same time? Right now I either get nice fades, and the visibility not doing anything, or nice fade ins of the bg, and then an abrupt change when visibilty goes to nothing on roll over. [code]...
View 1 Replies
Nov 5, 2011
I am a 3D Designer and I also want to learn Flash. give me some links or books because I want to learn that code , which is behind the design. I don't know the terms, I think is actionscripting and I would like to learn from start . How to combine code with design. I can follow some tutorials and copy the code from those tutorials but like this I will never learn to make what I want.
View 1 Replies
Mar 24, 2010
I'm creating a website that allows kids to designs a tshirt. I will have four section, colour, graphic, text and print.
I have created these sections on demos and they are all working.
I now need to properly create them all on one movie clip.
I'm having problems with it, when i select the chosen tshirt color and move onto the graphic section the shirt is white again and hasnt came through blue. Its the same for every section, when I select a grahic they dont come through either etc when I click the next button it refreshs the page.
Does anyone know how to create this kind of design on one movie clip using different frames and so that the colour etc transfers onto each new page?
View 1 Replies
Oct 28, 2010
Isn't there some way to combine two images together using the xOr operator? I realize I can step through pixel by pixel, but with all the graphics options available to Flash, I am reluctant to take such a ham-fisted approach. How can this be accomplished efficiently?
var pixel1:uint;
var pixel2:uint;
var xorMergedPixel:uint;
[Code]....
View 1 Replies
Jan 8, 2010
I am trying to understand how MVC works and have been able to build components using it. However, my understanding ends when I'm trying to combine these components into larger components. So for example I build a streetRacer class and it is composed of all the usual car parts and more. Inside my streetRacer class (which is considered the client in all of this, correct?) it would have parts like engine, tires, spoiler, etc. Now suppose the engine is created using MVC as are the tires and depending on the RPMs of the engine, that will change the speed at which the tires rotate. (I'm no mechanic and obviously this is highly simplified but I think it serves the example). Having said all that, how would the engine Model drive the tires to update it's view and model? Through the controller? And where would the relationship be set up? in the client?
View 0 Replies
Aug 5, 2011
I can't get the GlowFilter to work on a Shape that has already been ColorTransformed. Is there a limitation? They each work fine individually.
Code:
import flash.filters.GlowFilter;
private function colorRoom(pShape:Shape, pColor:uint):void{
var tColor:ColorTransform = new ColorTransform();
[Code]....
View 3 Replies
Aug 24, 2011
I hav two swf movies with resolution 420px by 200px and 780px by 450px. I want to compile them as a presentation in an autorun cd in fullscreen mode.
View 0 Replies