There was a post about a month ago about page numbering what i THINK was senocular's xml portfolio. with the recent loss of some posts, this was wiped out as well. does anyone have it archived anywhere or does anyone have the file that was being passed around in that post?
Not sure how many remember what flash paper was, but it was a program that converted PDFs into a flash application.So I am building it in AS3 (not the conversion process, but the viewer).My question has to do with the zoom feature, well I guess the previous/next buttons as well.The way the previous and next buttons work is they reference an array of Y values of where the next page is. The array looks like this:
0,800,1600,2400,3200....etc
This works fine, however, when I go to zoom those values are not accurate anymore more.
Whenever you Zoom up I up the scale by += 0.1 Whenever you Zoom down I down the scale by -= 0.1
In that process I need to update the Y Value array to match the new height of all the combined pages. How could I do that?
I've created a game of top trumps. 64 cards and randomized and the 30 are selected. The 30 are then split between 2 arrays, one called PlayerCards and the other called AICards. Only problem is that the cards don't play in any order and often the same card is played 2-3 times in a row. I want to number the random cards in each the PlayersCards and AIsCards 0-14. How do I number the 15 cards in both the PlayerCards and AICards arrays?
I was reading about the "bones" tool in Flash CS4, and the IK library that comes with it, but I don't have access to CS4...so I'm wondering if there is a smilar tool and library for CS3 users, who may want to create these effects with Actionscript.
I am trying to find where the IKManager is located on my file system, so that I can import it into my project from Flex Builder. Though this class apparently comes standard with CS4, it's nowhere to be found on the filesystem. Can anyone point me in the right direction? Is it in a swc file?
is it possible to perform inverse trigonometric function using AS3? Actually , i want to calculate the angle of incidence of ball to the wall then reflect back it to angle of reflect.
i am trying to edit a flash template with flash cs4.the problem is that there are some pictures in there that are hidden ( dont ask how is that possible becoz i dont know). to see this pictures i have to use distribute into layers. as i want to change this photos the problem is that after i change them i dont know how to do the invers of distribute into layers.... and as a result the template doesent work as it has to.
I've taken this problem far and wide, and it's a common one, too: Someone wants to use a mask inversely, hiding the masked object instead of revealing it. The only coded solution is to create a bigger "stage" mask with the inverse mask cut out. I understand the process, and have a slight grip on methods of executing it. Too bad it still will not work properly. I have employed two solutions to no avail. There was this simple option, and then there was this slightly harder option.
And where it works for some people, it is not working in my instance. If you look at my files, the masks cut out rather strangely. Is there something different about this situation that requires a different line of code, or am I simply using it wrong? To show you how they worked out, this is the goal: And this is what I ended up with after option 2: Because the object will be squishing and changing shape, creating the mask frame by frame would be a hassle. Changing the shape of a solid mask is a lot easier than moving the particular points of a "stage" mask manually.
I'm wondering if there are any nice ways of inversing a black and white / monochrome bitmapdata in AS3 which don't involve going through and setting each pixel by pixel?
For a site im working on I want an object to move thats hanging on a piece of wire made with the bone tool to move when my mouse is moved towards it so it would swing when the mouse is placed near.I thought using a simple code to move the movieclip attached to the bone would work but it just moves the movie clip and forgets about the kinematics. this is the code i used:
ActionScript Code: stage.addEventListener(Event.ENTER_FRAME,followmouse); function followmouse(event:Event):void { var dx:int = box.x - mouseX;
If you click the scroller in this .fla I've attached the text jumps away at first. The jump increases when you increase the [x]*dydrag function in value. I want the text to follow the inverse motion of the scroller very smoothly.
I've managed to create a flock with an eagle chasing it around using some available code. How to create an inverse kinematic tail for the predator class like a line of eagles chasing the flock. I've uploaded my code in a zip file.
Has anyone here ever developed a function (or general library of relevant functions) that will allow one to find the inverse of a matrix? I've searched the forum archives, as well as the internet more generally, but haven't found anything. If anyone has some leads, I hope you'll pass them along.
If I don't hear anything within the next few days, I might try to develop something on my own, but I'd hate to do so if someone has already done the dirty work.
A solution to this problem would be very useful for 3-D work or anyone doing mathematical programming more generally.