-
Adding HTML
How would I add an HTML tag into flash? I want to add a buy now button but it requires HTML (paypal)? Thanks
-
Prid - Outing
You can add it into a textfield. Let's say you have a Dynamic Textfield, given the instance name, myTxt - use this code on your frame:
Actionscript Code:
myTxt.html = true; myTxt.htmlText = "<font color='#FF0000'>THIS TEXT IS RED, <b>BOLD</b>, <font size='50'>HUGE</font>, AND <i>ITALIC</i>";
Just make sure to switch quotes, "" to apostrophes '' otherwise they would interfere with the string quotes!
But this PayPal button? Is it an image with an external link? If so, then just make a button or import the PayPal button image to Flash, convert it to a button by selecting it, pressing F8, choosing Button and pressing OK. Then, give this button an instance name of paypal_btn, and type this code on your frame:
Actionscript Code:
paypal_btn.onPress = function(){ getURL("http://www.paypal.com/some-url", "_blank"); // change _blank to _self if you want to open it in the same window }
Last edited by Nig 13; 11-15-2011 at 05:08 AM.
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|