Add a URL link to my Flash banner ...
I am also fairly new to flash and have made my first
banner...
http://www.airboxmedia.com/rhythmpunkz/
As you can its finished now but I cant figure out how to make
it link back to the page (listed above). I have created rectangle
as a seprate layer over the whole stage, coverted it to a button
and set the Alpha to 0% as the idea the user can click on the
banner at anytime to open a new window.
I have tried adding this action scrip to the rectangle layer:
link.addEventListener(MouseEvent.CLICK,clickHandler);
function clickHandler(event:MouseEvent):void{
navigateToURL(new URLRequest("
http://www.airboxmedia.com/rhythmpunkz"));
but all I get is an error saying:
Statement must appear within on handler ->
link.addEventListener(MouseEvent.CLICK,clickHandler);
The class or interface 'MouseEvent' could not be loaded.
-> function clickHandler(event:MouseEvent):void{
Many thanks, J
You don' t need to add that to the layer, you need to add
that script to your root.. normally you create a new layer and lock
it immediately so you can't add any shapes / objects to it, then
add your code above in that frame, test the movie :)
Similar Messages
-
I need t add a URL link to a word but have not bee able to locate this option, and the usual CTRL + K isn't working. Thanks!
Hi experts,
I findout that there is no option in the standard text to add a url link and i findout the solution also we can create text module sepreatly ,here we can add a url link and then add in the smartfrom.In this way the user only can edit the text contents of the samrtfrom without seeing ht settings.
Thanks everyone for help. -
Add a URL link to an area menu (SE43)
Does anybody know an possibility to add a URL link to an area menu in SE43?
Best Regards
A.B.Hi.,
As far I know it is not possible to create URL link in Area Menu., instead, Create a Report and call Function 'CALL_BROWSER' and pass the url to the function module.
Now create a Transaction for this report let say ZURL,
Now Assign this transaction to Area Menu So., When you click that transaction in Area menu it will open Url in browser.
hope this helps u.,
Thanks & Regards,
Kiran -
How to add external URL link to SAP object (Purchase Order, Invoice, etc)
Hello,
Is there any function module /BAPI that allows me to add an external URL link to a existing Purchase Order
or Invoice document in R3 system?
I tried to debug the system but have not found no suitable function module for it.
I also analyzed the ABAP code of the small GUI window that allows to add a external URL link to
a Purchase Order, and found the function module SO_OBJECT_INSERT. However I could not debug
it (seems to be created with BOR objects) so I've no example for it.
Please help!
Regards,
Manuel DiasCONSTANTS:
c_http(36) TYPE c VALUE '/BpHttpApis/slaphapi?ibmperson/(uid=',
c_listxml(12) TYPE c VALUE ').list/byxml',
c_value(5) TYPE c VALUE 'value',
c_cn(2) TYPE c VALUE 'cn',
c_mail(4) TYPE c VALUE 'mail',
c_em_num(19) TYPE c VALUE 'managerserialnumber',
c_em_cou(18) TYPE c VALUE 'managercountrycode'.
DATA client TYPE REF TO if_http_client.
DATA url TYPE string.
DATA xbuffer TYPE xstring.
DATA l_value TYPE zchar2000.
DATA l_value_string TYPE string.
DATA content TYPE string .
DATA rows TYPE STANDARD TABLE OF string.
DATA wa_rows TYPE string .
DATA conv TYPE REF TO cl_abap_conv_in_ce.
DATA ixml TYPE REF TO if_ixml.
DATA streamfactory TYPE REF TO if_ixml_stream_factory.
DATA parser TYPE REF TO if_ixml_parser.
DATA istream TYPE REF TO if_ixml_istream.
DATA document TYPE REF TO if_ixml_document.
DATA node TYPE REF TO if_ixml_node.
DATA xmldata TYPE string.
DATA iterator TYPE REF TO if_ixml_node_iterator.
DATA nodemap TYPE REF TO if_ixml_named_node_map.
DATA attr TYPE REF TO if_ixml_node.
DATA name TYPE string.
DATA prefix TYPE string.
DATA value TYPE string.
DATA indent TYPE i.
DATA count TYPE i.
DATA index TYPE i.
url = 'http://bluepages.ibm.com'.
CLEAR: l_value_string, l_value.
***Create the HTTP client
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = url
IMPORTING
client = client
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
Create the HTTP client failure, sy-subrc =
MESSAGE i005(zm) WITH text-026 sy-subrc.
EXIT.
ENDIF.
CONCATENATE c_http
p_accnt
p_couty
c_listxml
INTO l_value.
l_value_string = l_value.
***Get employee information
CALL METHOD client->request->set_header_field
EXPORTING
name = '~request_uri'
value = l_value_string.
client->send( ).
client->receive( ).
***Load to xstring
CLEAR xbuffer .
xbuffer = client->response->get_data( ).
conv = cl_abap_conv_in_ce=>create( input = xbuffer ).
conv->read( IMPORTING data = content ).
create the ixml main factory
ixml = cl_ixml=>create( ).
create a stream factory
streamfactory = ixml->create_stream_factory( ).
xmldata = content.
create a input stream
istream = streamfactory->create_istream_string( string = xmldata )
create a ixml document
document = ixml->create_document( ).
create a xml parser
parser = ixml->create_parser( document = document
stream_factory = streamfactory
istream = istream ).
parse the xml document into DOM tree
IF parser->parse( ) <> 0.
parse the xml document into DOM tree failure
MESSAGE i005(zm) WITH text-027.
EXIT.
ELSE.
node ?= document.
IF node IS INITIAL.
To be done
ENDIF.
create a node iterator
iterator = node->create_iterator( ).
get current node
node = iterator->get_next( ).
loop over all nodes
WHILE NOT node IS INITIAL.
indent = node->get_height( ) * 2.
indent = indent + 20.
CASE node->get_type( ).
WHEN if_ixml_node=>co_node_element.
element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
IF NOT nodemap IS INITIAL.
attributes
count = nodemap->get_length( ).
DO count TIMES.
index = sy-index - 1.
attr = nodemap->get_item( index ).
name = attr->get_name( ).
prefix = attr->get_namespace_prefix( ).
value = attr->get_value( ).
ENDDO.
ENDIF.
WHEN if_ixml_node=>co_node_text.
User name
IF name = c_value AND
value = c_cn.
text node
value = node->get_value( ).
p_name = value.
ENDIF.
User email
IF name = c_value AND
value = c_mail.
text node
value = node->get_value( ).
p_email = value.
ENDIF.
Employ serial number
IF name = c_value AND
value = c_em_num.
text node
value = node->get_value( ).
p_em_num = value.
ENDIF.
Employ country code
IF name = c_value AND
value = c_em_cou.
text node
value = node->get_value( ).
p_em_cou = value.
ENDIF.
ENDCASE.
advance to next node
node = iterator->get_next( ).
ENDWHILE.
ENDIF. -
How do I add a URL link to a JTextArea?
Hi,
I have a JTextArea that updates the status of my program.
How do I make some of the status updates URL links?
Thanks.
VshJEditorPane can provide support for links relatively easily. Read the abstract at the top of the JavaDocs for an example.
-
Hello !
As a beginner at Flash, I encounter my first difficulty ... I want to create a banner, linked on all its surface to an Url.
I created a transparent button on a special layer a the top, and converted it as a button, before applying it the "click to go to web page" action.
Whenever i load the scene by "ctrl enter", to test on the flash software itself, everything is ok, but I need my scene to be exported on a swf file, and when i do so, and launch it on Chrome or Filezilla, it apears, runs correctly, but there is no action when i click on the banner.
Can anybody help me, please ?
I'm sorry if the answer is hidden somewhere, but i Couldn't find it.
Excuse me also if my message is not in a good english, I'm French so do not hesitate to ask if anything is not clear.
Thank you all !!!
EvaArrrg ! I'm so bad at web stuff ... I've been trying but apparently I can't embed the swf file on my website, because of a security that prevent me from uploading it on my FTp... and it definitely exeeds my abilities with websites
I think I may have to give a first try to my customer and then wait for his webmaster to tell me if the file is OK or not ... Not very professional, though :/
(little precision : my real job are graphisms and drawings, but a customer asked me to put my graphism on a swf file, with a simple "blink effect" and an url ... no choice on that one, but I'm perfectly conscious that this will not be my job. Never. Thank to you guys that make our word look brighter with all those animated stuff, I bow down ... my world is definitely the one of paper drawing and photoshop & Illustrator tricks ! )
Thank you, if you have a solution to embed the file somewhere, it would be nice but i don't want to bother ... -
URGENT: How to add an URL link to an Image?
Hi,
I need to be able to link a web page from an image . How can I do this using Oracle Portal?
Many THANKS
Marielathis link try to connect to a page named page_name
<img src="images/24librar.gif" border="1">
here is the code
<a href=/pls/portal30/url/page/page_name ><img src=images/24librar.gif border=1 ></a>
pedro -
How to add a URL link to a WAD template
Hi,
the requirement is to have a kind of button in a WAD template
that opens a document in a new browser window.
(The document actually contains an extensive help for the application.
It shall be stored in the portal CM and we have the URL for that)
Any suggestions fr a simple solution?
P.S.
- A single document might be an option as well, however than we would have to attach the document to an BW object and it seems not to open directly after the call
- A button group item that starts a script item?Hello,
Try this one as Web Template:
START ###
<bi:bisp xmlns="http://www.w3.org/TR/REC-html40" xmlns:bi="http://xml.sap.com/2005/01/bi/wad/bisp" xmlns:jsp="http://java.sun.com/JSP/Page" >
<html >
<head >
<title >BEx Web Application</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body >
<p >
<bi:TEMPLATE_PARAMETERS name="TEMPLATE_PARAMETERS" />
<!-- insert data providers, items and other template content here -->
Button with portal style:
</p>
<p >
<span class="urBtnRow" >
<a class="urBtnStd" id="BUTTON_DOCUMENTATION" title="Documentation" href="http://sap.com" target="_new">Documentation</a>
</span>
</p>
<p >Hyperlink:</p>
<p >
<span class="urBtnRow" >
<a href="http://sap.com" >[Documentation]</a>
</span>
</p>
</body>
</html>
</bi:bisp>
END ###
Probably you have to look into source code of this page, because you have to copy the text directly into WAD.
Search for ### START ###
Regards, Karol
SAP NetWeaver BI, Development -
Can I create more than one URL link in a single Flash (SWF) file?
I created a simple SWF slideshow in Flash with 5 slides. I was able to link one URL to the whole file by adding an alpha button.
What I can't figure out is how to add a URL link to each slide. The SWF file i sused on a website and I would like to be able to click on a particular slide as it is playing to go the a site or page that applies to that slide.
Is there a way or code I can use to do this??
This is the code I am currently using for the button now.
ja_btn.addEventListener(MouseEvent.CLICK,mouseClick);
function mouseClick(event:MouseEvent):void
var request = new URLRequest("http://www.jakeandamos.com/");
navigateToURL (request,"_blank");
I am just learning this stuff so I can use your help, Thanks!You cannot duplicate instance names or function names, so you'll need to create unique names for each one that behaves differently. So you can only have one function named "mouseClick"... if you want to have another function to link somewhere else you need to create a new name for that function ("mouseClick2" would work)
There are alternate approaches, but for now this will be the easiest for you to deal with. -
How to add URL links in XML file?
Hi,
I'm having problem with adding the URL links to the flash output. I'm using the XML file to call images and then the corrsponding links. Images are called correctly but when I try to add a link I'm not getting the links, but instead getting the HTML anchor tags as texts. I'm using the XML escape characters to escape the HTML tags but the results are not what I need.
I'm using the following code:
<thumbnail preview="large.jpg" thumb="thumb.jpg">
<title><![CDATA[Finance Services]]></title>
<discription><![CDATA[<a href="http://www.google.ca">Google</a>]]></discription>
</thumbnail>
Output:
Images are displayed correctly, but instead of getting the links, I'm getting following text message:
<a href="http://www.google.ca">Google</a>
I need to find out what I'm doing wrong. Am I using the correct way to add the links or not?
Thanks for your time.I'm using following code for the Description part, where I need to place the HTML tags:
var _discription:TextField = previewHolder.discriptionText.discriptionText;
_discription.htmlText = _xml.thumbnails.thumbnail[photoNum].discription.toString()
I'm using the htmlText, I tried replacing htmlText with tf.htmlText, but it didn't work. I'm importing the text field using import flash.text.TextField; do I need to import something for HTML tags to work? -
How can I be able to add url link in the standard text
Hi expert,
I want to add a url link in the standard text.Please guide me how can i be able to do that.Hi experts,
I findout that there is no option in the standard text to add a url link and i findout the solution also we can create text module sepreatly ,here we can add a url link and then add in the smartfrom.In this way the user only can edit the text contents of the samrtfrom without seeing ht settings.
Thanks everyone for help. -
Add url link in "lightbox style" js gallery
Hello,
Can someone help me add a url link in the image description? I am using an "overlay" gallery (prettyphoto) and want viewers to be able to visit a site instead of going to the next image when clicked on images that are websites.
CSS Code I am using:
<li><a href="images/work/work-full1.jpg" rel="prettyPhoto[1]" title="Trade Show Panels - 2011"><img src="images/work/work-thumb1.jpg"></a></li>
<li><a href="images/work/work-full2.jpg" rel="prettyPhoto[1]" title="Local Resource Website - Lake Wylie, SC"><img src="images/work/work-thumb2.jpg"></a></li>
and so on...
View gallery in action here:
click on the work tab.
http://doubleulabs.com/
Thanks for any help on this.I no longer use lightbox. I prefer Fancybox because you can do more with it. Copy & paste this code into a new, blank document. SaveAs test.html and preview in browsers.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5, with Fancybox2 and Captions</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--LATEST JQUERY CORE LIBRARY-->
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<!--FANCYBOX plugins-->
<link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
<script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
<style>
/**LINKS**/
a {text-decoration:none}
a:link {color:#FF0}
a:visited {color:#920000}
a:hover, a:active, a:focus {text-decoration:underline}
/**this styles image container**/
#thumbs p {
float: left;
width: 180px;
margin: 10px;
padding: 10px;
text-align: center;
border: 1px solid silver;
/**rounded borders**/
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
/**recommend using same size images**/
#thumbs img {
width: 160px; /**adjust width to thumbnail**/
height: 120px; /**adjust height to thumbnail**/
opacity: 0.75;
#thumbs img:hover { opacity: 1.0 }
/**float clearing**/
#thumbs:after {
content: ".";
clear: left;
font-size: 0px;
line-height: 0;
display: block;
visibility: hidden;
</style>
</head>
<body>
<h1><a href="http://fancyapps.com/fancybox/">Fancybox2</a> Viewer with images</h1>
<h2>Captions contain text and links</h2>
<div id="thumbs">
<!--insert thumbnails with links to full size images below-->
<p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional title" caption="<a href="http://example.com">Example.com</a> some plain text here... <a href="http://example.com">Example.com</a>"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 1" /></a> </p>
<p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional title" caption="<a href="http://example.com">Example.com</a> some plain text here... <a href="http://example.com">Example.com</a>"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 2" /></a> </p>
<p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional title" caption="<a href="http://example.com">Example.com</a> some plain text here... <a href="http://example.com">Example.com</a>"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 3" /></a> </p>
<p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional title" caption="<a href="http://example.com">Example.com</a> some plain text here... <a href="http://example.com">Example.com</a>"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 4" /></a> </p>
<p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional title" caption="<a href="http://example.com">Example.com</a> some plain text here... <a href="http://example.com">Example.com</a>"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 5" /></a> </p>
<!--end thumbs--></div>
<!--FancyBox function code-->
<script>
$(document).ready(function() {
$(".fancybox")
.attr('rel', 'gallery')
.fancybox({
beforeLoad: function() {
this.title = $(this.element).attr('caption');
</script>
</body>
</html>
Nancy O. -
Hello there,
I'm trying to create a number of URL links in a Flash menu I
have made for a website soon to be released officially on the
internet. When I test the movie in Flash, I click on one of the
menu items and it not only opens the link I have specified to that
button but opens all of the other links.
The FLA file can be viewed by visiting:
www.freewebs.com/torbayhospitalradio/header.fla
Regards,
Coxdabd.Hi Coxdabd...this is an easy one. You've coded all the
buttons with onClipEvent (mouseDown) event handlers. This means
that when Flash detects the mouse click, anything with this event
handler will execute the code--so all the buttons see the mouse
click and execute. That explains why you're getting all of the URLs
at the same time, instead of just the one that you clicked. A
better way would be to code the buttons the same way you did the
rollOver and rollOut events; for instance the Home button would be
coded as:
// place code in a root timeline frame, no on the Home
movieclip
Home.onRelease = function() {
getURL("
http://www.freewebs.com/torbayhospitalradio");
Good luck,
Albee -
How to make a movie clip button into a url link?
Hello,
I'm kinda new to using Flash and am trying to edit a template for a friend of mine, the problem is I'm trying to add a url link to the buttons. I tried adding this action to the button
on(release){
getURL(http://www.yoururl.com.);
I saved as swf & got this error msg in the compiler errors: Symbol=but1,layer 4, frame=1 Mouse events are only for button instances
In the library I checked the properties of the button and its a movies clip, I'm not sure if it will make any difference if I change to button or graphic?
I would like to upload the fla and swf files but this forum doesn't seem to allow me to attach files to messages.
Does anyone know how to do this? Any help is greatly appreciated.
http://jaedenyoo.comUnfortunately that doesn't seem to be the problem, I checked and
in my flash file its typed correctly. -
I found that many people are searching a way to add an URL link to a .AI file that works after exporting to PDF.
The only way seems to place a text field with the complete URL (for ex. a youtube link: http://www.youtube.com/watch?v=3c7-EPNTnPI).
In my case I prefered show an alternate text instead of a long URL, for example a better "WATCH THE VIDEO". My method consist in simply arrange the URL text field (the only that works in PDF file) over the custom text, stretch it for perfect occupying the hot-spot you want and assigning a alpha 1% (do not set alpha 0% because this will make the text box inesixtense). This make it practically invisible but still clickable in the output PDF file. This method works also with an image under the "half-invisible URL" text.
Hope this could help.no.
clickTag is the variable that contains the url string.
Maybe you are looking for
-
Hi, Is there any alternate solution for setting up the MDM Process, without following the Device Enrollment Program (DEP) and managing the devices by creating our own setup controlling through the server, Please let me know. Thanks for the help.
-
Invoice Block - Tolerance Key - Can currency can be changed??
Hi Gurus, We can set the below in SPRO, Material Management->Logistic Invoice verification->Invoice Block->Set Tolerance Limit-> Here we can maintain for company code / Tolerance Key and details. While we maintaining the tolerance key, depending upon
-
ASL, Sourcing rules and currencies.
<p> Hi, I would appreciate any help with the following: I need to source item's price and supplier from a BPA into requisition line. BPA's currency is EUR while functional currency is USD. I have defined the following: A. Approved BPA with currency E
-
How To Replace LOVs With Buttons
Hi all, can someone please advise if it is possible to replace LOVs with Buttons? Customer has a requirement to replace the LOVs with buttons in Compensation Manager to approve/reject the paysheet. This is for R12.1.3. Many thanks Amanda
-
Problem with transporting Content
Hello experts, I have problems transporting my content from BW1 to BW2. I collected my content objects in Transport Connection of BW1 and transported them to BW2. Everything worked fine. I could use my content in RSA1 of BW2. But when I transported m