ActionScript 3.0 :: Create OnMouseClick To Go To URL From A Swf File?
May 26, 2010
I've created a short swf (just 5 frames with a tween between each). I would like to link the whole swf file to a URL. When a viewer clicks on the swf it would go to the specified URL.
I have created a new layer to span the whole movie, drawn a rectangle, made 0 Alpha, made it a button and added (what I think) is correct AS3. But to no avail.
I am using event.event.localX to get the x-axis but it is with reference to local coordinates. How can I get or pass the value of the HBox's xAxis that is clicked by the user so that I can add it in the xAxis of the local coordinate. In other words, I need the global coordinate value? (i.e. x-axis & y-axis)
Then I run above code,it draw 2 balls,and when I click one ball,it raise following error: ArgumentError: Error #1063: MyApp/onMouseClick() parameters mismatching,it should two,current one.I don't know how to correct above code, what can I do?
Having got into flash about a year ago, I have a fairly good understanding of as3, but I have never had any reason to learn as2. For an upcoming project, we were looking to use Scaleform GFx, with the UDK. (Unreal Development Kit) Trouble is, Scaleform only supports as2. From what I've been told, as3 is supposed to be better in just about every way, so I really don't want to learn a language that?s most likely on the way out, if I have any other options.
Is there any converters out there, that can convert script from as3 to as2? Or another workaround possibility, since flash communicates with the UDK by means of just calling a function, could I create an as2 file that could dynamically load an as3 file?
I asked this earlier but maybe I didn't give enough information. I am working on a website where video quality is very important and the client is delivering me the video already compressed. I then want to import it to flash CS3 and export it as .flv for progressive download with the media playback component. I have done all of this successfully in a sense that it all works but the video quality is not good enough, it's good but the client says it;s a bit grainy. I used the highest setting in Flash, on2 vp6 at 700kbs.
My question is what is the best file format (.mov etc) and what settings should the client use, so I can create the highest quality .flv export from their .mov file? Second question, I used an 8 second buffer but now the client is saying they don't want it to buffer at all. What are the other options besides progressive download, I have never delved into this before?
For some reason I am unable to create a FLV file from a MP4 file with high bitrate. I even created a custom setting and specified bitrate as 2500 but the output file is always around 775.
I'm in flash cs3 project. I need to create a pdf file from an image path included into an xml file or if easy also in a written path as the code below:[code]
Is it possible to just create a .AS file and define constants inside of that file? Without making a new class, just so that all my classes can access these constants? This is of course possible in PHP, but are the scopes handled differently in AS3?
I am trying to create a swf file from my original file. I have published swf files before from this file but all of a sudden I get a error. It says "Be sure the destination file is not locked or on a locked drive. Also, check that the file name is not too long. I checked the files and neither the destination file nor the drive locked. The file is named index and always has been named that. What am I doing wrong?
I have got set of images with whom I'll play animation like in powerpoint. Now i need to export that animation to avi, mpeg, mov format using either flex or php.
Does anyone know how to create a hyperlink on an swf file? i think it can be done using actionscript during the creation of the fla, but i want to see if it can be hyperlinked AFTER creation, just using the website code.
I was wondering how to make a .fla file to be opened and read by flash and have all the elements required using my own program.the motivation behind this is that i want to create a whole lot of swf files that are all pretty similar but won't ever just be slight modifcations to a base file... that and it requires a lot of data to place certain objects in places and set their keyframes to specific things etc.so i wanted to automate creating the .fla files. how to create a .fla file without flash?
I am trying to build a AS3 only project and I ran into a problem that when I turn some MC's visible on...they are out of my browser window and there is no scrollBar for browser to scroll down.
I have a actionscript3 file,such as hello.as,I know I can use mxmlc command to compile hello.as into hello.swf, Now I want to compile it into hello.swc, how to do it? Is there an example for it?
All I want is to take my AS3 source code files and compile them into a SWC file.Upon inspection, the SWC files I generate end up with some kind of timeline or spite in them when I use the Flash IDE or that Flex SDK utility "compc", and it's irritating.
Is it possible to create a flash file programmatically using C# or VB.net? I have a bunch of handwritten characters in coordinate form and I want to create a flash file that displays the characters one after the other. It must also play sounds while this is happening. The ultimate goal is the convert a pencast as generated by a Livescribe smartpen to a flash file. This pencast file contains the characters as well as the audio.
How would I do a text movie like the one on this home page? http:[url]....I've tried before, but have had no success. I can create the swf file and fade images in and out. In the past I've put one line of text on one image, then another line of text on another image, but when I fade the images in they just cover up the prior one.
I have been trying to understand how to create a url link with the xml file that my menu is driven by. what I have is a menu with text amd images reading from an xml file, I have created a third text field which I would like to use as a button/link that when click it goes to a url.this is what I have for my XML:
Can I create an entirely new XML file using flash? I have become fairly proficient at loading, modifying and resaving existing xml files, but now I need to create new xml files with flash and save them with unique names. Anyone know how?
What I mean is that several jpg file will be sent to the server and replace the images that embedded in the file and a exe file will be created from the new file.
I know that I can keep the jpg outside the file and just call them dynamically but I just need to use them in that way.
Is there a way to create a flash file on the fly by a script?
I am trying to build a AS3 only project and I ran into a problem that when I turn some MC's visible on...they are out of my browser window and there is no scrollBar for browser to scroll down...
i have AIR application and I need save some data to PDF file..can i do it some simple?? is different way for save image to pdf or save only text to pdf??