I publish test.swf and test.html to mydoc folder on my local computer. Mydoc folder also contains the test.flv that was imported to the flash to create the swf and html. Open any of them in the mydoc folder and they work fine, move the swf or html files to another folder and they work.Move the flv file,even keeping it with the other files, and they don't work.The main problem is that the swf will not work after uploading all to the same folder on the web server.
tarting a script to make my object move to the coordinates of where i click on my mouseand if possible i would like to make it animate to each coordinate like its moving there not all of sudden jumps there when you click somewhere.
My problem is as such. I made a slide show for a non-profit, but they can't view my .swf or .html files. They say they open to a blank window.
I had Flash 5 and Flash MX. Apparently only the html version worked then. So I got rid of 5 hoping 6 would work better, but now nothing works.
Is Flash MX so dated that it just can't be used online anymore? Or am I missing some vital step in the publishing? Let me know if any of you have any incites on the matter. Or if you'd like any more details.
I have a simple application where you can sort isometric boxes on a grid. It works just fine but the more often you apply changes (i.e. click on a box and drag and drop it) the slower the app gets. After about 10 changes it has something like a 5 second delay in response and becomes completely useless.
As long as I stay on the first MOUSE_DOWN it works as fast as it should, but speed decreases with every click. Strangely CPU-levels will always return to near zero when I stop doing things in the app and always go up to the same level when working, so I do not think it that there is some procedure I call while dragging and forget to close again (I also checked this about a hundred times in the code).
Basically I think it must something with the most basic event listeners that look like this: Code: container.addEventListener(MouseEvent.MOUSE_UP, dropElement); container.addEventListener(MouseEvent.MOUSE_DOWN, dragElement); function dragElement(e:Event):void{ currentElement = currentDropTarget = previousDropTarget = Kiste(e.target); currentElement.alpha = 0.5; stage.addEventListener(Event.ENTER_FRAME, whileDrag); }function dropElement(e:Event):void{ currentElement.alpha = 1; stage.removeEventListener(Event.ENTER_FRAME,whileDrag); } I also checked if my "whileDrag"-function keeps running but it doesn't.
what is the most useless function in flash? one that can be used as a dummy code within a function. say for frameworking your code before making it. the best i can come up with is trace, but im looking for something less intrusive.
function fireMegaBall (lv:Number) { trace('megaBall '+ lv +' fired');}
We have an asp.net website that uses a flash movie to do HTTP file uploads, it works seamlessly on IE. When using firefox, it fails to upload .. HTTP debugging revealed that the page we are posting to returns the following:
HTTP <html><head><title>Object moved</title></head><body> <h2>Object moved to <a
I have a small SWF that works if I run it in FlashDevelop or when I run it (by double clicking) it from the bin folder. Now, if I move the bin folder anywhere else, and then double click on the SWF, it runs, but is missing the .pngs. The folder structure is: bin contains .swf bin/assets/imges contains .pngs I copied the whole project folder to another place, but still, the same problem occurred. What do you think might be the problem?
I am having a nightmare getting text to display as the font and size I select?I select text tool, I click on MC and start typing, it displays correcly in edit mode.I change the size of the text box (not via transform) and move the text box to where I want the text to display.However, when the application is published the font is showing as though it has been bolded or made a different size.It is not the font size and format I created it in.I have ensured I have no "anti-alias Bitmap" selected, but it's behaving as though it has "animation anti-alias" applied?
on previous host, .swf played in Flash Player. I moved the site to GoDaddy & found the movie would not play. I learned about .htaccess & put this file in the site folder:now the page prompted me to download shockwave player. Instead of playing the .swf, the Shockwave logo shows. I would rather the movie play in Flash player.
I think only just started popping up with CS4. Basically sometimes I'll have a menu or something with different states on different keyframes. There is a series of icons (sprites) on there and they get moved around on the different keyframes. Now sometimes when I do this and I go to the next keyframe using actionscript, the MCs stay in the same position they were in the first keyframe no matter how I position them in the actual IDE.I've noticed that if I give each icon a different instance name on every keyframe this goes away, but it is really annoying because I'd like to use the same handler function across all the keyframes.
iv made a game. and i want to add in an introduction. so i made one. and now when i try to transfer the game frames over. it messes up and takes out my background to the game. iv checked the movie clips and changed the names. and stuff. but it still does it. any suggestions? (this is due 2rrow)
I want to dynamically create and put some Image (mx.controls.Image) objects on a Canvas and I want them then to be able to be repositioned by the user via the mouse. Can this be done? Note, I am not looking for drag and drop. I just want to change the X and Y coordinates of Images with the mouse.
i am trying to make a system that randomly chooses an element movieclip out of 7 types of elements, and then creates that element on the screen. Right after i create the 25 random elements, i attempt to set their location, but they wont budge, my patients are wearing thin with this.Here is my short snippet where it all happens.
Looking for some code to make magnifying glass over 1 image (can not be 2 images one, small one large) that can be moved to specific locations off of an event like clip load, or clip end.I can find this online for as3 but not as2.so for example...when image is displayed it should load magnifying glass in certain area, then as new clip starts or some type of event happens (not a click event) it should be able to move the glass to new coordinates.we are placing this in a system that CAN NOT use as3. must be as2.
Ok i have a movieclip in the mainframe that on a button release gets moved to the center of the screen with some set_property stuff and then i want the clip to play. So i added a tell_target on release, the target is /movieclipname and i then Go_To_and_Play the first frame.
I have a stop action as the first frame of the movieclip as to keep it from runing when i dont want it. i want that tell_target to make the movieclip play but sofar no luck.
Am just a begineer with Actionscript but am picking up quite quickly. I been racking my brains and can't seem to find a solution. Basiaclly I've got 5 movieclips on the stage which are draggable. How can i get a message to appear in a text box if the first movieclip is moved higher than the second movie clip?
I saw this question a few times here and there but it never had a satisfying answer... It may be that there really is no elegant way to solve this (Polling for change in ENTER_FRAME is really bad!) but I've got to ask one last time.
I'm a Flex developer but it doesn't really matter in this case.
I would like to know when an object's global x/y was modified (or its transform's concatenated matrix's tx/ty, same thing), maybe because an indirect parent somewhere moved, etc.In particular, I have the object's gran gran gran parent which gets its scrollrect changed.
I have two flash ads that need to look as though they are interacting. is there a way to make sure they load at the same time so they can sync every time? they do not need to communicate with each other just load simultaneously so the animation lines up. can local connection object work for this?I suppose I could stager load em and plan the animation accordingly if simultaneous load gives issues. is there a proper way to load one ad and then the second say 10 frames in, ya know?
I have a FLVPlayback component with an FLV. I have it setup so that when the FLV reaches a cuepoint at the end, a button appears to rewind and play the video, and remove the button. This all works fine. My question is if there is a way to remove the button (removeChild) if the user goes back in the video using the seekbar in the FLVPlayback component?
I have a object in an ISOmetric room I made and I made bounds that are as tall as the char so that he could not go up the wall.I'm wanting do do the same thing with a dynamically loaded SWF that contains and object that can be moved around and stuff,well I have tried to make it so that when it collides with the bounds I made for the man it would stopdrag() but it won't!
Is there another way I could do this or a way to impove the current way??
I get this error when I try runing my fla, this did not occur brfore I moved the hole timeline into a moveyclip symbol.when I debug the run breaks on: MovieClip(this.root).MusLargeImageLoader.source = "Images/Mus/IMG_1.jpg";I think the error is with this root.
I've set up a game, where the user has to guess what a picture is by moving a small hole/ portal around.I've used the mask feature to do this and managed to attach the portal to the mouse.However,I need to stop the mouse dragging the portal when it moves outside of the picture/instance.This is so the user can then press buttons to go back to main menu etc. Here's the code I've used to attach the portal
Is it possible to persist the look of a 'hovered' hyperlink even after the mouse has moved away from it? I want to keep the user's attention on the hyperlink -- or at least have them able to see what it was, standing out from the rest of the text -- for a few seconds after they've left it. Ideally it would fade slowly back to normal