ActionScript 2.0 :: Simulate A "scratch-effect" With Flash?
Apr 7, 2003
I'm working on a project right now, where I need to simulate a "scratch-effect" with Flash, however, the setMask method just doesn't seem to work for me. examine my code and tell me what the *beep* I'm doing wrong?
SWF-file: scratchtest.swf (click)
Source-file: scratchtest.fla (rightclick and save)
View 8 Replies
Similar Posts:
Mar 24, 2006
The following code doesn't work on a mac but works fine on a pc. Anyone know how revise it so it works on both platforms?
stop();
startDrag("/coin", true);
MovieClip.prototype.startScratch = function(width){
[Code].....
View 2 Replies
Aug 28, 2007
I'm trying to simulate the effect of a slinky spring in actionscript, and I've come up against an interesting anomaly.The code is fairly basic, and takes advantage of a certain degree of latency in the running of the code. The code basically asks all the movie clips to the right of clip that is being dragged, to keep a certain amount of pixels apart from its neighbour. You would think that this would mean the clips would be kept in rigid alignment, but instead you get a great rippling effect.
My problem is that this only seems to work in one direction despite my code being identical (but reversed)for each different case - left and right.If you take a look at the fla you'll see what I mean. Try dragging line No. 0 around versus dragging line No. 19.
View 12 Replies
May 16, 2010
How can I simulate the genie effect (like in Mac OS X) in flex4 using the new spark effects?
View 2 Replies
Jul 8, 2011
Im trying to do a "Pano" 360 flash app from scratch. Using Away3D I should apply an stereographic image very well, everything is working well.But looking in some apps on web (like Panorama), they load only 6 images and somehow they "merge" this 6 images and, I suppose, apply this merge into the sphere 3D. Or it doesnt use a sphere and make kinda illusion of sphere?Could you help me find out how can I merge the images and "apply" those flat, separate images, in my Sphere primitive or, if this isnt the right way, how can I "emulate" those panorama?
View 4 Replies
Nov 16, 2011
I need to create a webcam chat which i intend to use in my website. It will allow two or more persons to video chat through their webcams.I want to develop the webcam chat from the scratch. I have no idea which software to use. I did a thorough search for this topic and alli got is adobe flash with some actionscript is required to build it.
View 1 Replies
Sep 11, 2003
does any1 know or have done any 'scratch and win' type of game in flash?
View 4 Replies
Feb 14, 2011
I'm looking for resources on making an interactive charting component in Adobe Flash without use of Flex (or, minimal use). That is, starting "from scratch" with Flash and ActionScript 3.0. Is there recommended reading? Perhaps a good recent book on the subject, or a detailed blog article, or an open source project to look at? I'm interested in the development process, and specific design patterns (for example, extending Sprite as the logical base class for your component).
View 1 Replies
Feb 7, 2010
I would like to know what my visitors will see when they visit my site without flash installed. Obviously I could uninstall flash to find this out, but I was just wondering whether there's some gimmicky add-on out there that can simulate 'no Flash'. Would be handy...
View 2 Replies
Nov 9, 2010
Is it possible to simulate streaming mp3s with local mp3s in flash?
View 2 Replies
Jan 29, 2011
I've searched this and cannot find it. I've tried different plugins and different browsers (Firefox, Opera, and Chrome). I've tried most of the no flash plugins for each of those as well as disabling Flash plugins/addons in the settings. I also renamed the .so file in /usr/lib/flashplugin-installer/ i found by searching the system. when i renamed it, makes Firefox and Chrome ask to install Flash, but still:alert(navigator.mimeTypes['application/x-shockwave-flash'].type);returns:application/x-shockwave-flash'm not sure what else to try without uninstalling Flash, but that will be a total pain in the ass for this. I also REALLY don't want to use SWFObject just to see if Flash is at all installed which I can do simply with:
View 1 Replies
Sep 24, 2009
I have a quick question... is there a way to simulate a flashvar while testing an application in the Flash IDE? I know I can export it and test it on a web browser with a container passing the flashvar, but it's so much easier to just do CTRL+Enter :P
Specifically, what I'm doing here is the following: My movie has a lot of things hardcoded... I want it to load the hardcoded parts only if there's a flashvar called "debug" and set to "true". As you may have guessed, I DO NOT want that flashvar to be known to my providers, but I do want to set it on the IDE so everytime I test the code, it enters my debug mode (and so I don't have to change even a bit of code to publish it later)This would be my code:
[Code]...
View 9 Replies
Oct 8, 2009
I am currently making a website on my Mac with Adobe Dreamweaver CS4. I had an idea to make an iPhone and press a button next to it so that it would change the application page/home screen page displayed on the iPhone. I have NO idea how to go about doing this. I was told this can be done in Flash using Actionscript 3.0 but I do not know anything about AS3.
View 2 Replies
Jun 27, 2010
I'm developing Greasemonkey scripts for a website. I do not control the Flash file.
Question: Is it possible to simulate a mouse click on a button/movie clip in a Flash object embedded in a web page? Googling only shows ways to simulate a mouse click on a DOM element, and ways that require the ActionScript to be changed to implement a JavaScript interface. Or is this simply impossible?
View 1 Replies
Jan 30, 2011
I am trying to show the first image of my image gallery when it is loaded. How would I go about simulating a mouse click event that will pass an event value to a function?
[Code]....
View 4 Replies
Mar 8, 2011
Our sales people accepted flash banners without a click tag and then scream in anger when our ads server (openx) didn't count correctly the clicks. I'm looking if exists some way of "simulate" a click tag, I don't know exactly how, maybe with some JavaScript.
View 2 Replies
May 31, 2010
ive constantly problems when developing flash applications that work based on flash variables provided in the embed code of a website. it is very annoying and time consuming to re upload swf�s to a web server after every change to see if it works in browsers. is there a way to simulate embed info...like there is simulation for download.
View 6 Replies
Jan 12, 2004
I was thinking about this today, when i was using my new Makita I got for Christmas.How can I simulate a drill in flash?
View 6 Replies
Feb 22, 2005
i want to simulate cellphone environment in flash
View 1 Replies
Mar 2, 2006
I have been working for some time trying to remake Paint in flash. Question is: how to simulate a pencil drawing, my idea so far is to draw lines one after another.
View 6 Replies
Sep 30, 2010
Why i couldn't see the preloader when i do simulate download (i.e. control+enter) after publishing ? Do my PC have any prob? or flash?
View 1 Replies
Apr 21, 2009
I googled this online, and almost all of them start with dragging the scrollpane from the component toolbar.
I don't like the way this scrollpane looks. How to change the color, shapes, etc. Can I do this through altering the code, or do I need to start from scratch?
View 5 Replies
May 4, 2009
I need help building a site entirely on Flash from scratch. I am a beginner at the software, I know what most tools do, I know how to create basic tweens and stuff, but well, all in all, I'm a beginner. I know absolutely nothing on Action Script (be it 2 or 3), and I want very much to learn Flash now. To do so, I want to put online a portfolio site for me. I already know Photoshop, Illustrator and After Effects quite well, so I think now's the time to give it a shoot. On to business:
1. So, first, what size should it be? I wanted it to be something around 1024 x 768 maybe? Is it possible to set an adapative resolution for the site? (I don't know if that's the correct term, what I meant is that the site changes resolution according to the users who are accessing it.)
2. I heard that if you don't use ActionScript to animate things, the site gets mega heavy. Is that true? What should I use ActionScript for when building this website?
3. Is it possible to organize the loading priorities? As in, the order in which things load, so that the site gets a bit more dynamic allocating the user's connection?
4. Are there global standards for Flash-based websites?
For now, I guess this is it. I'm starting this project today, so I'm still not quite sure what other doubts may pop up.
View 1 Replies
Oct 12, 2009
Is it possible to make a Tilecomponent from scratch only wiith AS3 ?I want to make a xml driven dynamic video playlist with thumbs and text description but without a premade flash componenent.The thing I can't understand is how-to to manage the "cellrenderer" from scratch
View 2 Replies
Jan 24, 2011
I need to do the windows moving effect from the following Ubuntu Window Effects video in Flash. Basically the window is transformed while you drag it. I want to have a movieclip and when I drag it to transform the same way the Ubuntu windows transform. I believe that there is something to do with matrix transformations.
View 3 Replies
Feb 14, 2011
I have recently started making (and am still making) the transition from ActionScript 2 to 3. I have used the _global variable in an AS2 project as I needed a variable to be accessible from within ANY swf loaded into my main movie. This worked like a treat.
However, along came AS3 and whipped that from right under my feet. After much Googling, a few people suggested making use of a simple class with a simple variable that can be publicly set and retrieved. I made a simple class, imported it and manipulated the value, and all went well, however the instance of the class I create in my main loader movie is still not accessible from within a second SWF that gets loaded into my movie. If I re-instantiate the class in the SWF that is being dynamically loaded, the value reverts to the default value in the class code, not the new value set in my parent (first) movie.
Here is my class code, stored in an external .as file, is there any way I can simulate the ostype variable being a global variable?
package{
public class ostype {
public var ismac:Boolean = false;
[code]....
it's used as a simple identifier as to what operating system this flash app is being used on (mac or windows) and as a result let's me server content - such as saving files - in a different manner.
View 1 Replies
Feb 11, 2009
How to develop a flash file that can simulate a sms (text message) input like how you will write a message with your mobile phone. For example pressing the num '1' once, will give u 'a', twice will give u 'b', and trice will give u 'c' etc. I have an onscreen number pad, so user click the button '1' will give u 'a', twice will give u 'b' and etc. Problem is how can I detect the mouse to be how many click before they chunk out a alphabet. Also not forgetting some key like '7' need to test for 4 hit (P,Q,R,S).
View 2 Replies
Feb 10, 2009
develop a flash file that can simulate a sms (text message) input like how you will write a message with your mobile phone. For example pressing the num 1 once, will give u a, twice will give u b, and trice will give u c etc.
I have an onscreen number pad, so user click the button 1 will give u a, twice will give u b and etc
Problem is how can I detect the mouse to be how many click before they chunk out a alphabet. Also not forgetting some key like 7 need to test for 4 hit (P,Q,R,S).
View 6 Replies
Jun 28, 2009
I was wondering what would be the most optimal way of coding something that work this way: There's 10 buttons, you click button 5 (for example) which causes button 5 to gotoAndStop(2) while at the same time it tells all the buttons which aren't button 5 to gotoAndStop(1)
View 1 Replies
Jan 16, 2007
i have a little scratch and win game that's working perfectly, except i am being asked to make a custom cursor (a coin). now, i can easily make a custom cursor for the whole thing, but i think it looks trashy (especially with it going on a website with ads and the like, how would anyone know to click the ad when theres a freakin' coin over it?
anyways, what i want, is to make the coin only show up when the coin is like... over a "scratchable" box..
View 3 Replies