ActionScript 3.0 :: Possible To Split MovieClip In X Parts?
Mar 23, 2011I was wondering if its possible to split MovieClip in x parts, and each one of them to be scalable, which means Bitmap is not the answer...?Possible? Impossible?
View 1 RepliesI was wondering if its possible to split MovieClip in x parts, and each one of them to be scalable, which means Bitmap is not the answer...?Possible? Impossible?
View 1 RepliesI'm trying to split an image (in a MC on the stage) into a variable number of parts.
It's not working properly, and I'm pretty sure it's because I'm re-using the bitmapdata and bitmap I create before the loop...
The MC I'm splitting is called 'back'.
ActionScript Code:
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.geom.Rectangle;
[Code]....
I have a textfield, that has a text value: France Paris. Now I need to know how I can take that string, cut it in 2 parts (France and Paris) and put those two parts in a var. So:
and somewhere i should get
var1 = France;
var2 = Paris;
I know there is a split string command, but i'm not familiar with any of this stuff.
I have a string that contains a full name input, and I would like to spilt them into 2 parts and save them inside an array, first name and last name. How do I do it with string.split? My current code is myNameArray = str_adminInput.split(" "); This code only works if the names are : Jack Lee, June Poh. This code does not work if the names are: Lee Tok Kong, Tan Beng Seng.
View 7 Repliesin a game i am doing i have a class called "player" extending MovieClip.this Player MovieClip has multiple frames with animations in it.for example a MovieClip "Walk-right" on frame 2.this walkcycle clip now contains also some sprites/movieclipsone of these i have to colorize in every frame of the walkcycle according to the players color.how can i achieve this?in as1/as2 i used something like: this.clr.setGRB(_parent._parent.myclr)is there a way or do i have to think differently about the way i have to display the animations?
View 0 RepliesI don't even know what to ask for, but here is my problem: I want to draw a line as part of a graph.Then I want to draw a hollow circle over the line, but I want to cut out the center of the circle, so it shows the layer under the line.At the moment, drawing an outline of a circle the line still shows.I draw the line:
Then I draw the circle:
-----O------
But when I do this in flash I still see the line, the circle is not hollow: How do I 'cut' the middle of the circle out? Instead of beginFill, I want to do beginErase
Is it possible to split a movieclip into several other little ones (12x12) using ActionScript ?
View 4 RepliesI have a character animation which i control from within a class "character"this class references a movieclip with e.g. 3 frames: "idle", "walk_right", "walk_left".these frames contain the animation movieclips.
so when the character moves left i use "gotoAndStop("walk_left")
so far so good, but:the character has some parts which need to be colorized according to the dynamic classes value "color".
I have a scrollpane who's source is a movieclip filled with checkboxes.It works fine, except that some of the checkboxes names are cut off.The checkboxes are for science words.Biology is fine Astromony comes out Astronom with the y cut off. Adjusting the scrollpane width does not help Adjusting the movieclip width makes it look bizarre like it's stretched.
View 0 RepliesI have this movieclip that i made in flash. How would I go about duplicating it and giving its parts instance names using AS3?
View 3 Replieshow to load different parts of a movieclip by clicking on buttons in an other moviclip?
View 2 Repliesmy friend make me doing a map (in ActionScript). After the click on the some place in the map starts the redirect, e.g.
Code:
on (release) {
getURL("http://www.yahoo.com/"_blank);
}
I'm not a flash developer, but I would be to want add the every part of the map a identificator, e.g. id="part1"
PS: I have now the map, where every part have some ID. After the click on that ID I call jQuery event 'click' -- and this I need also in the new flash map.. Is it?
Is it possible to make something like the "Bone tool" does in older Flash CS3?I mean make all limbs for a character and connect them together in the joints, so if I drag the hand, the rest of the arm follows in a natural way. So I can easly make motion tween animations.
View 3 RepliesI have a project where I need to have a video clip play as soon as the SWF starts, and once it's done, the video stops at the end and a prompt to continue appears to transition into another video.I just need to figure out how to handle the video parts of this project, and I need to do this without showing any playback controls on the screan.
View 1 RepliesI have created a flash file and the company I have created it for now wants the fla.so they can make changes to certain parts of the action script. There are some elements that I want to protect as it took me months to develop. Can anybody give me a solution of how I can send them the FLA but at the same time protect the most important parts of my code? I was thinking that I could maybe create an external .as file for the bits of code that they want to change and like my fla to those parts.
View 3 RepliesWell, I've been using flash a while, but I just ran into a newbie problem.. I must have hit some sort of hotkey, but I can't figure out how to undo it or anything in the preferences. Anyways, I'm running Flash CS4 and normally when you draw a shape and select that shape it selects the fill and it looks like little dots all over the shape when its selected. Now when I click on a shape it has a border around it and I can't just select a piece of the shape. Also, what's bothering me is that when you draw two shapes on top of each other, Flash used to merge those shapes automatically, but now they are staying separate unless I manually Union them. It still says they're drawing objects, its not converting them to symbols or anything, but they are kind of acting like symbols in the way I can interact with them. How can I turn this setting off?
View 2 RepliesI saw a website where a video was breaking up in 2 parts.Is there an easy way to do that
View 7 RepliesI'm trying to take a string and break it into two parts. It's a url to a video on a RTMP server.So I've got to take this:
[URL] person17/1031617_person_generic_700kbps (note the removal of the ".flv" which is necessary as well).Right now I'm doing this, which seems overly complicated:
Code:
videoURL="rtmpe://emediadev.mysite.com/ffw/person17/1031617_person_generic_700kbps.flv";
videoURL=videoURL.substr(0,videoURL.length-4); //remove ".flv"
var urlArray:Array=videoURL.split("/");
[code]....
I have a TextField object and i want to apply the bevelFilter object with some settings to a part of the textfield and with other settings to the other part of the textfield, like the textField.setTextFormat() does it.
View 1 RepliesHow do I make an animation play and pause when I click. Meaning.. I want it to play part the first 10 frames when I click, and then stop. Then when I click again it will play from frame 11 to 20, then I click again it plays 21 to 30.
View 3 Repliesusually it can be solved with the "wmode transparent" param, but in firefox i have a strange problem. when i overlay a flash element with a part of a div the div renders strange (like stairs at the border of the flash element)
[URL]
the grey area (and a small transparent area above) is the flash element. the outline is the div with a border.
the error occurs only on FF (i have 3.6) chrome/safari works fine...
CODE:
its an swfobject implementation. the overlaying div/ul is positioned after the
flash-wrapper.
<div id="flash-wrapper">
<object width="740" height="500" type="application/x-shockwave-flash"
[Code].....
I'm thinking about distributing bytes of a SWF into multiple files, how can i put a set of bytes in different parts into one byte array?
[Code]...
Also would reading partial bytes into a byte array work?
I have an XML document with different companies and links to different text sources such as "about" etc for each firm.
Now in my company presentation class I want to send an ID reference so if a user clicks on Microsoft the links point to Microsofts information etc. Im loading all other information through another XML and everything works fine, its just the links I cant seem to figure out.
This is my XML
ActionScript Code:
<?xml version="1.0" encoding="utf-8" ?>
<data>
<company id="1">
[Code]......
I have a bunch of movieclips called firstNameBtn_mc, lastNameBtn_mc and many others. I also have a bunch of movieclips whose names start with the same but instead of "Btn" they have "Arrow", like firstNameArrow_mc, lastNameArrow_mc etc.
What I want is when I click on firstNameBtn_mc it does somthing to firstNameArrow_mc, but there are so many buttons I would like to do it in the following way.
1. get the movie clip's name...something with e.currentTarget.name for example
2. remove the Btn_mc part
3. add the Arrow_mc part
4. do something to the movieclip of that name
I'm new to Flash and AS and everything and I've been trying for 2 days now without success.What I'm trying to do is this. The small squares should fade in/spawn in the blue rectangle and fade away/disappear when they hit the red edges.URL...The animation was made on timeline, not using any AS3. The 2 main problems I have is to get the random number to be from negative 1 to 1 and for the squares to move straight and notgenerate a new direction on every frame. I'm not going to show any code cause it's just edited from tutorials and I don't understand half of it and looks terrible.
View 2 RepliesI have this XML object, and I need to display parts of it so that the user can copy and paste from it. However, whenever I try to, say, display the category section by doing myXML.category, it puts the namespace information in the attributes of the first <category> tag when it displays the xml. Is there a way to get rid of this?
View 5 Repliesi am loading in and xml file based on the structure below...
[Code]...
So what i am trying to do is to Splice the array into 2 parts, all the question ID's that are A and all that are B for for example are placed into 2 new array's like so:
[Code]...
but i am having problems with the code below trying to splice them and seperate them,
[Code]...
i created a flash menu that calls its items from an xml document. the menu items are images that scroll within the menu movie clip depending on mouse position. my problem is that, when clicked, each of these menu items needs to call a pretty complex function.
so this seems like a really basic question, but, is there a tag or something i can use in the xml file to like, name each of the items so that i can write functions with them individually with my actionscript in flash?
I'm in need, again, of some assistance. I'm making a game with 2 pictures. and the concept is built on that you erase part of the top-bitmap to see the bitmap under.How can I accomplish this?I tried to wrap my head around the bitmaps and the draw and the FillRect but can't get it to work completely.Basically I want 2 bitmaps, and a cursor which erases parts of the top one to show the one underneath.
View 5 RepliesIs there an easy way to prevent particular elements in a percentage-scaled SWF from scaling? I want to make a liquid Flash interface in which only the content scales with the browser window, and the navigation elements remain a constant size.
View 4 Replies