This should be fairly straight forward with Actionscript.
Are you familiar with Actionscript?
Are you putting your images on different frames on the timeline? If so, then you would put code on each button that directs the playhead to go to that frame.
If you're using classic buttons (not v2...
I'm using a LocalConnection to communicate between a SWF file in a popUp window (actually several popUp windows created by using divs with styles = position:absolute and visibility:hidden when the popUps are not in use) and the main SWF file on the main page. The popUp contains some combo boxes...
Thanks so much. This was the data I was looking for. It appeared that the 'var' keyword was deprecated, but I just couldn't find the documentation to back it up.
Thanks for the feedback. I assumed as much.
I went to http://us2.php.net and searched high and low for the 'var' keyword to understand just exactly what it was supposed to mean, and I could NOT find any reference to this keyword other than in a few code snippets.
If you have a link to some...
I see the 'var' keyword used in some PHP class code before declaration of variables, but I can't find documentation anywhere on what this keyword is actually doing. Can anyone point me to documentation for this keyword?
Thanks
The Mousewheel doesn't seem to work in FireFox on a fairly complex SWF file I've created on a webpage. I have a v2 DataGrid in the SWF file as well as components I have created in which I have implemented mousewheel functionality. When the mouse is over the DataGrid, the mousewheel will not...
The simplest way is to put the actionscript 'stop()' command on the last frame of your movieclip.
Add a layer in your movieclip and call it Actions.
Open the actions panel under the 'windows' menu and in the last frame of your movieclip insert a keyframe on the Actions layer then type 'stop()'...
If you're using a TextField, you need to set up TextFormat variable in your receiving file to receive the color for the font...
var myFmt:TextFormat = new TextFormat();
myFmt.color = 0x000000; // = black font
then set the TextField format and background color
title_txt.setTextFormat(myFmt)...
If you can come up with a formula for the trajectory, then you can write a function that triggers on the onEnterFrame event and have the formula continually update the bullet's _x and _y properties until the bullet hits its target.
onEnterFrame = function(){
<your trajectory code here>
}...
Please check out the link I included in my last post. It will explain everything.
Here it is again.
http://www.adobe.com/designcenter/popular_topics/click_to_activate/
One last question.
How do I bold the text? If I issue a setTextFormat in actionscript with a bold TextFormat, the text disappears again. I assume I have to embed bold fonts, but I'm not sure how to do that.
Thanks.(-:
When you say the flash at the top gets in the way, I'm not sure what you mean. I was able to navigate through your site just fine, although the flash file did have the "click to activate" tooltip pop up along with the highlighted border. However, once you click on it, it disappears.
Why not...
I assume the tank gun is a movieclip. Now make sure the movieclip rotate point is at the end of the gun. Do this by selecting your movieclip, pressing the letter Q and then moving the rotate point, which should be the circle currently in the center of the movieclip to the roate point desired...
I can't get dynamic text to work with embedded fonts.
I put a dynamic text field, 'my_txt' on the stage and entered 'Sample Text' into the text field with Arial 12 pt bold. I then clicked on 'Embed...' and included upper and lower case characters. The text shows up fine when I test movie...
OKAY, I found the problem. I had the SWF file wmode set to 'transparent.' I had to set it to 'opaque' to get the printing to work as I would like. Everything works as I expect now in both FireFox and IE6-7
Thanks for the suggestion.
I added {printAsBitMap:true} to and that didn't fix the problem. Here's some more info. The flash file containing the movieclip I want to print is on an HTML page enclosed in a <div> tag. If that is the only <div> I have on the HTML page, printing works fine in...
I am using PrintJob to print a movieclip that is masked by another movieclip. I rotate the movieclip (and the mask) to get a landscape orientation when I print. Then I rotate it back. I move the content movieclip under the mask and print multiple pages using the PrintJob.addPage method. The...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.