Actionscript 3.0 :: Detect A Mouseclick On Specific Photo Which Is Uploaded From Xml?
Jul 20, 2010Anyone knows how do i detect a mouseclick on a specific photo which is uploaded from xml?
View 3 RepliesAnyone knows how do i detect a mouseclick on a specific photo which is uploaded from xml?
View 3 RepliesAre flash applications processed on my computer or the websites server? Would a photo uploaded to flash be faster if processed on my computer or the websites server? Oh Yeah, I'm in sales explain with details.
View 1 RepliesI've used this site as a resource leading up to this, not particularly sure if I worded this correctly I have a class "Block" which is just a square (will be something else later on in the process) I want each block to have controls to add an additional block in either direction so I have another class BlockButtons which has my buttons for each direction.
And another class GlobalVar where I keep all my variables for funsies
[Code]...
I am using Flex to create a sort of photo viewer that loops through an array of photos when users click on arrow buttons. However, I wanted to make it so if an image is broken then it would be skipped, but I can't seem to find a way of checking if the image is broken.
View 3 RepliesI have a flash template that I bought and customized with dreamweaver, flash and Coda html editor, the website test PERFECTLY when I test the index.html file, all of the buttons work fine, I have a total of 12 .flv videos and they ALL play back fine, when I play the index.html file, the problem occurs when I upload the files to my godaddy server, 11 of the videos play fine, the whole site is fine, it is one particular .flv file that will not play once it is uploaded to the server. I have changed the orders the video play, renamed the file and changed the html flv path to reflect the name change, I have deleted all the files off my server, refreshed the server logged out and re logged on and uploaded everything again, I have re-encoded the original .mov file to a .flv file again using Adobe media encoder, still nothing, I am wondering why would the index.html play this particular .flv file fine, but once uploaded to the server it will not play, the path is correct I have checked it, if the path were the problem the index.html for that particular file would not play when I test the index.html file before I upload it, but it plays fine until it is uploaded, I am uploading the whole folder on the root, and this particular video file is in a folder with all the rest of the .flv files, I even tried changing the path and putting this particular .flv file in a seperate folder and change the path still nothing.
View 7 RepliesI have a MovieClip that has a bunch of MovieClips inside it. I am trying to figure out how wide the MC is at a specific y value. Not sure if there is an easy way to do this.
For an example.
Code:
OOOOOOOO
O O
O O
[code]....
This is the shape of the MC. It is not solid all the way through, it has MCs strewn about inside this outline. I am trying to figure out how wide it is from, say the second 'O' from the bottom. Left to right. The actual MC.width would be 12 'O's wide. But at that bottom portion, it would be 10 'O's wide. I'm not sure how I can do this.
ive used this code to detect a hit between a specific object and a certain MC
Code:
if(this.hitTest(_root.ufo)){
now i want to know if its possible to detect collisions with everything except (ignore) certain MCs because i only have 3 MCS i dont want it to care about , but there will be about 200 or more i want it to care for.
In my Timeline I have 4 layers, each with labels on different keyframes. I have the following code, which obeys to my first layer:[code]How can I make AS3 to detect the specific "currentFrameLabel" of a named layer?
View 6 RepliesIs it possible to detect (dynamically) the white pixels of an image and delete them? Actually i have some images that i load on stage but they are square without the actual image be a square sized. So i want to make the hit area exactly the shape of the image and not the whit border they have.
View 2 Repliesits for a photo gallery that I downlowded,the images fades in and out, but only start that when you click a button(timer).I'm trying to founf out where in the script I can change this, so that the photo's start automatically,rather than, on a button click.I have pasted the script below, is that ok, or would people rather a zip file of the files?
// (c) Copyright by Andrew DiFiore. All rights reserved. DO NOT REMOVE.
fscommand("allowscale", "false");
Stage.scaleMode = "noScale";[code]......
I found the tutorial by Kirupa
[Code]...
Are there any examples of Flash + Javascript libraries which allow you to display a variable-sized Flash movie in your page that captures Webcam snapshots (still frames), and submits them to your server in a JPEG format?
Currently I know of: jpegcam
I have an XML photo gallery, that when it starts it has a loader for the photos. It always starts with the XML file determined sequence, which is fine, but what happens is that the tabs on the right hand side of the photo loader go astray while it is loading the first photo. If the first photo was loaded instantly this wouldnt be an issue.Is there a way that I can preload that first photo, so that it is in memory when the swf file reads the XML file, allowing the first photo to be instantly loaded ?Amongst other things, I tried embedding the photo in the swf file, but it didnt work...obviously I have no idea what to script...I also created another scene, prior to the main scene, to preload the photo.. but it didnt work either, again probably used useless script...Going further in detail, this is the main script:
Code:
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts, PennerEasing);
[code].....
I have been searching for a particular photo gallery, and haven't got far. Here is an example of what I am looking for. With the example I wanting the user to be able to click on a photo for it to appear in the box above. I am looking for a tutorial, so I can customise to fit in my client's flash website.
View 2 RepliesIm currently making a game that has one of those old-skool Fallout maps (a world map where you click somewhere and the "you" marker moves there) that im trying to replicate.I already have the scripts ready for map interaction (using onhit here). But i was wondering if someone could help me with a script that works this way:
1. I have a movieclip (the character)
2. When i click somewhere on the map i want this movieclip to move there. Not instantly but moving over the screen to that point where you clicked.
3. I also want there to be passages that when the movieclip hit that movieclip (named hit for example) it stops dead and doesn't move (will be used on the map for mountains and such) and the player has to click somewhere else to move it that path (im assuming this will be something like onhit: hit - speed=0 something but im not a good scripter and it would had to be worked into the script.
4. ok this one is kinda optional but would be great! If it's possible to have it worked in the script that when the clip doesn't move (and is stationary on the map) the movieclip stays on frame 1 but when the movieclip is in motion (and moving across the screen) the movieclip is on frame 2 (and reverts to frame 1 when it's not moving anymore and so no)
I am trying to get an object to rotate similar to the globe on this sitei have found the
code:
onClipEvent(enterFrame){
_rotation += (Math.floor(180*Math.atan2(_ymouse,_xmouse)/Math.PI)+90);
[code].....
at first ihave 3 frames coded with AS3
frame1 has var i = 0;
then frame2 has AS3 buttons (action inserted)
function Click(e:MouseEvent):void {
gotoAndPlay(2); var i = 1;
and the last one has (without click, this one works very well)gotoAndPlay(2); i++ (but it gets i=0; on click)how can i change the value ? (and this way works very well on AS2)
I have recently made a piano in CS3 using AS2. The basic idea is that you can both click on a piano key and click on a key on your keyboard to hear the sound that particular key makes.Everything works just dandy apart from the fact that the sound doesn't seem to work at all.Below I have posted the action script (the comments are in Dutch) perhaps you'll need the FLA file as well.
Code:
stop();
//Maakt een sound object en verbind het met de piano movie clip op de stage
[code].....
im loading a swf into my flash but the whole swf that is loaded gets the "click hand"
is there a way to get rid of this?
All of my buttons load their respective external swf files. However, they load on top of each other. How do I set each button to UNLOAD the external swf's that have already been loaded by the previous buttons.Here is what I have now:
movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
var fl_Loader:Loader;
//This variable keeps track of whether you want to load or unload the SWF
var fl_ToLoad:Boolean = true;
[code]......
I have a most simple animation which I want to start on mouse click. I use CS5 and ActionScript 3.0. I have one layer where my animation is in, and an actions layer. When I add a stop(); at frame 1, the whole thing does not start. So far, so good. How do I tell Flash that it should then start the animation after clicking the mouse?I am a complete newbie but have tried since hours to overcome this problem.
View 3 RepliesIs there a way to get the path to the movieClip I'm clicking?
e.g. event.currentTarget.path? (This doesn't work but I'd like something like it!)
'm putting together a flash animation of approx five productsEach picture is above the other so the flash file is tall roduct 1 at the top product 2 underneath 3 underneath that etcThe whole thing will scroll up and down vertically to display each appropriate pictureI need 5 buttons each one would move the strip of images up and down vertically to the correct location and I was wondering if this would be possible by using actionscript to move and define the position on the long strip of images.I.e when product 1 button is pressed, scroll the strip up to show product 1 picture. When product 4 button is pressed, scroll the same strip down to display product 4..For example, each button script might read something likeonRelease - scroll the image bar to y position(obviously a different position for each button)would this be feesable? I hope somebody understands what I mean, I've seen these type of flash 'portfolio' type scroll bars quite a few times but I'm not sure how to go about putting one together, is this the best way?
View 6 RepliesI have two arrays thumbs and images, both the thumb and image are added to the same index in their arrays, so thumb[0] is the thumb of image[0]but what I need to do is get the index position of the clicked item, how do i do this?
new_carousel_item.addEventListener(MouseEvent.CLIC K, getValue);
new_carousel_item.buttonMode = true;
thumbs.push(new_carousel_item);
[code].....
Complete newbie to flash and as3, but im getting into it a bit with college and im making a small basic flash webpage. Im not sure if this is possible but im going try and explain it best i can to get a few pointers. So i basically have a webpage with 4 different pages, (each page being a MC ), But the pages arnt new keyframes, Instead they are small movie clips taht look like post cards. the idea i have is so when the about button is clicked it will add the about_mc to stage, it does not change to new frame, But stay's on the current frame, While it imports the about_mc to stage... My basic understanding is if i use code like this
[Code]...
I'm going to by chance include a message I sent out to a colleague in the off-chance someone also has a solution to it, but it also pertains to my issue. Skip to the bolded part below for just the question I have.I've been tasked with converting a Powerpoint presentation into a Flash presentation. I was considering manually doing it, but it seems like it would take an awful long time (240 slides, with videos and animations) - plus I don't know how to export the animations on individual slides over to Flash other than recreating them entirely.
I found a handful of programs on the Web that advertise that they will convert PPT to Flash (swf) and I tried a few to see which if any I should purchase. All of them had issues. Some either didn't run entirely or the end result was graphically ugly, videos weren't carried over (a problem I could easily rectify if the thing was an FLA where I could add videos back in that way), or animations were either mangled or ignored completely.how best tackle this challenge?Okay, so I basically started to just recreate the entire thing in Flash, using PrtScrn for backgrounds after deleting objects (then pasting in Photoshop and exporting as a PNG-24), as well as copying graphics into Photoshop as well to export as PNGs. No idea what to do about animations yet. Videos I can add back manually.
But anyways, as I do this, the movie is automatically advancing through every frame when I preview. I'm not sure how to go about setting up my Flash so that it only goes to the next frame when someone either presses the mouse button or the spacebar (either would be fine, I think).So that's my main focus at the moment. The other stuff is definitely part of the whole deal, but my main question is:ow do I set up Flash so that it only advances to the next frame when a mouse button or spacebar is pushed?
I have this movieClip container/holder with several movieClips inside.The container is draggable over the Y axis with TOUCH_BEGIN(same as MOUSE_DOWN) and stops dragging with TOUCH_END(same as MOUSE_UP).But the movieClips WITHIN this holder are clickable with TOUCH_TAP(or CLICK).
Here's the problem:When I start dragging with my finger(mouse) on one of the movieClips within the holder, and release with my finger(mouse) still on the movieClip (I have an ease added to the dragging so it's possible my finger(mouse) won't be on the movieClip when done dragging) it will fire the function of this movieClip.This is really annoying because what if you started dragging, and wanted to click the movieClip beneath the one your finger(mouse) is on right now.I already tried something with removing/adding eventListeners but that doesn't work.
I am trying to spawn a sprite (which works correctly). But i cant seem to remove the sprite on mouseclick. I have my object called Cactus. It runs fine but returns an error when clicking.
Code:
Code:
package
{
import flash.display.*;
[Code].....
Is it possible to define the properties of a movieclip by clicking a button and then to play the movieclip by pressing another button.
for example:
clicking on buttonA defines the sizeA of a circle clicking on buttonB defines a second sizeB of the same circle clicking on buttonC makes the circel growing from sizeA to sizeB
this I need for 25 different circles which shoud grow at the same time
Just trying to make a flash photo gallery that displays all the image files in a certain directory with the usual photo gallery functionality.
View 1 Replies