HTML Link -AS2 fine, AS3 weird behaviour
Hi Guys, I'm working on a project at the moment, and am
seeing weird behaviour with the way my swf handles html links
inside dynamic textboxes. When rendered as a AS2 file, the link
works on a release as expected. When its inside a AS3 file the link
will only work if the user right click and chooses 'open in new
window' was there a change in behaviour how AS3 handles these
links, or is there now an declaration needed to be made to allow
these link to have the old behaviour?
The project calls for xml data and embedded in that is a html
link. Originally I thought it might have been the way I'd formed
the xml so I tried with a hardcoded version instead (dynamic
textbox, add text -> highlight -> add link through properties
tab). But I still see the same behaviour between the as2 and as3
versions.
Any help would be greatly appreciated.
Cheers.
Actually, the ''href'' attribute is supposed to direct the browser to a new URL, etc., not run a script. Instead, use the ''onclick'' event attribute:
''<a onclick = “$('.div-feedback').fadeIn();”></a>''.
Happy coding!
Similar Messages
-
Hello,
i have this code
var url = _level0.video;
player.contentPath = url;
this catch a url and load on flash player.
this works fine in As2, but in As3 dont work.
i use a converter As2 to As3 but the result is it:
package {
var url = _level0.video;
player.contentPath = url;
i not a As programmer i only use video function on flash,
my question is, how to use my code on ActionScript 3 ??
Thank you !!Thanks for reply,
the variable video i get from html and php.
example:
player.swf?video=<?php echo $_GET["video"]; ?>
and the variable video i get from html
<a href="index.php?video=video.flv"></a>
ok, i discard a converter !!
to use a contentPatch source of flash ?
but i can load a external videos ??
without ActionScript ?
Thank you ! -
Hi,
I was just wondering in what format do people usually publish in: AS2 or AS3? Since there seems to be more widgets in AS2, do people actually publish in AS3?
I'm investigating creating Widgets and I was planning to do it in AS3 but ... is it the right choice?
What are you publishing in?
WhyvesHi there
While I agree with what Lilybiri is saying, I'll add my own thoughts here.
Personally, I tend to use the defaults for many things with Captivate. And one of the defaults is that it defaults to AS2 setting. The only time I might consider using AS3 would be if someone were to offer something I needed to use that only was available in AS3. Then I would change. But I haven't encountered that situation so far.
So sure, I'm keeping an eye to the future as far as AS3 goes, but it doesn't really factor into the things I do daily. AS2 setting is default and seems to work fine. There are some nuances between the two as far as Captivate goes that you might consider.
For example, one of them is that if settings are AS2 and you are using variables in captions, you see a momentary flash of the variable before the value actually appears. I believe that goes away and is corrected if you switch to AS3.
Additionally, I presently am awfully Flash and AS ignorant. So if I were to finally begin learning the mysteries of ActionScript, I might be a lot more concerned.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
HTML links in Vibe Feed and digest e-mails do not work on GW 8.0.3client
I have GroupWise 8.0.3hp1 on NetWare 6.5.8 and a Vibe 3.3 install on
SUSE 11 (the downloadable Vibe demo virtual machine from Novell's site).
I have recently started upgrading GroupWise clients on Windows 7 PCs
(64bit), and have been testing Vibe. I have run into a problem with
HTML links in GW clients not working on PCs where the GW client has been
upgraded.
This problem occurs using the GroupWise 8.0.3hp2 and 8.0.3hp3 clients,
but does not occur on a 8.0.2hp2 client, so it appears to be GroupWise
client related. I haven't tested any other client versions.
1. When using the GW 8.0.3 client, if I select any of the "Novell Vibe
OnPrem", "Favorites", or "My Teams" folders, I can see the Vibe Feed
display showing entries for sites I'm following. But clicking on the
links in these entries does nothing, so I cannot use the Vibe Feed to go
directly to files, profiles, etc. The same Vibe Feed links from the
Vibe web browser interface or from a GW8.0.2hp2 client works fine.
2. If I have e-mail digest notifications setup to let me know when
changes are made to a folder or file in Vibe, the e-mails are delivered
to me just fine. But once again, none of the links in the e-mails work
when using the GW8.0.3 client. Clicking on them does nothing. If I
look at the e-mail message source, I can copy-and-paste the URLs
directly into a browser and they work fine, so the URLs themselves are
correct. Again, these links work fine if I use the GroupWise WebAccess
or a GW8.0.2hp2 client.
Is the GW 8.0.3 client is blocking these HTML links? I receive no
notification from the client asking whether to "unblock" any
links/scripts/images when viewing messages with these Vibe links.
Any suggestions for getting these to work on GW 8.0.3 client?
Thanks,
-Greg
former e-mail for posting:
[email protected]Greg,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://forums.novell.com/ -
Preserving HTML links when converting Word docs
I created a document in MS Word for Mac 2011 (ver 14.5.2)
When I used Adobe Pro 11 to convert the document into pdf format, all the HTML links are lost.
I have tried converting from MS Word, opening the word version with Adobe Pro, printing from MS Word to pdf. Nothing works. Even opened the MS Word document using Apple's Pages software, re-formatted and then converted to pdf. Still no live links.
Best work around so far is to convert and then use the edit feature in Adobe Pro to re-insert the HTML links as invisible rectangles on top of the still-blue-and- underlined text. So to the user it looks like the html links are still live, but what a pain for editor.
I have seen this issue raised in other posts, but none of the answers seem to work. And the work around described above is clearly less than ideal.
Very curious, as reading other posts, the issue apparently does not arise when the word doc converted from a Wintel computer. But I can't imagine Adobe writes software one way for Intel and another for Mac.Imagine it. this has been 15 year fued between Microsoft and Adobe. Adobe Claims that Mac office doesn't hav ethe proper hooks for URLs. Microsoft says the fault is with adobe.
Since a Word Created file will work when opened in the windows version and saved as a PDF, the links work just fine. Just opening and not saving, but converted to Pdf does nothing to the actual Word File.
They had it fixed last year in Acrobat X if your dropped the file on to Acroabt directly. But broke it again with the upgrade to XI.
IF you have iWork and Open the word file in Pages then exported as a Word.docx file then create The PDF the links will become active. Also if you Open in OpenOffice and export as docx file the resulting PDF when open in Word and PDF is Created the links will become active.
If you have neither you will have to open the PDF and add the links. Note the Links will be hot (active) but the links will not turn Blue and be Underlined
Mac Office2011 is a Conversion of Office2010/2007 code. So there should be no pproblem.
Also Don't use the Save As . . . PDF Method. Instead go to Print Menu click on PDF wait for context menu > the choos Adobe Quality PDF or Adobe PDF (uses Adobe's PDF engine).
wait for next screen that shows qualtity leave as sent unles you need specific job options. click okay then next screen File name. Rename as necessary the browser to desired to location then click save. Or you can drop the saved Word document (with Word quit.) on to Acrobat and after a minute or so the PDF will be created. (Using this method in AcrobatX would actully show URL s or Mailtos as active - They broke this in Acrobat XI PDF still can be created but hot links no longer work).
Well it seems it does work on occasion see: http://www.screencast.com/t/cib2kcYG -
Adding a html link to a carousel
i have followed a tutorial to build a flash craousel and have had no problems in building that. i wanted to add a html link to a section of the carousel but everything i have tried up to now has failed. All the information is passed through to the carousel from an xml file and everything works fine except for the link.
i have slightly modified the tutorial so i have an extra box on the information page which holds the web address for the site they are looking at in the portfolio. i have the address showing up but i cannot use the text as a link.
the box that i am putting it in is a dynamic text box which has been set up with the following settings
theLink.html = true;
theLink.htmlText = t.Link;
so as far as i know these are set to be able to handle html tags/code but they are not playing games.
i have tried to pass the link through to the swf file from the xml file with the following code but this just seem to break the whole application.
Link="<![CDATA[<a href='http://www.acmeart.co.uk/pip_new']]"
to view how i have the file working upto now please view the link below.
http://acmeart.co.uk/carousel
i feel the problem is not with the flash application but more with how i am trying to pass the html link over to the application from the xml file. i will attach the xml file to the post.What I had in mind was to place the link inline in your text. Something like this:
<item name="valley" full="assets/valley.png"
title='Book - CD ROM'
body='This product was a Shockwave holiday card. It began as a jigsaw puzzle. As the puzzle was solved, it opened and displayed the holiday greeting. <a href="http://www.amazon.com" >Purchase a copy.<a\>'>
</item>
The url is right in the text. The html markup is escaped as html entities. -
Mouse over HTML link causes single frame to display at top of page Netscape only
Having a wierd problem. When you run the mouse over HTML
links on the page a single frame of the flash movie apears at the
top center of the page. It only happens in netscape in firefox
mode. IE, Opera, and Firefox do not have the problem.
Problem site
Thanks in Advance,
VorschThe problem goes away if i modify my .css file by removing
the
border: 1px solid #999999;
line from the "a:hover" style.
I ran my css file thru the validator at w3c and its fine. The
Page also validates as xhtml transitional.
and just a note the same file version is on my public server
and my testing server.
Has anyone ever seen this before?? I have several sites with
a:hover effects and flass media and have never run across this
before. -
I was testing a XHTML 1.0 Strict valid website on my localhost. It had URL "http://localhost/visaita/tictactoe/Web/index.php?item_id=8&game_password=73|55fc84c0c432ad625a901caaa13108aa&chat_code=74|50b3b60c8be203.98819772#.ULO2EnC23XQ". If I click in URL field between 8 and ?. Then pres shift + end and delete the rest of URL, I get a drop down of suggestions. Then I press arrow left in my keyboard - suggestions dissappear. I press enter and my URL is immediately reset to initial one (with all arguments) even though I wanted to delete them. Server receives all the arguments, so this is not the case of a back-end redirection (tested).
The most interesting effect is that after such refresh ALL HTML LINKS stop working. They refresh page instead of redirecting. Even if I click on a link redirecting to another domain, page still gets refreshed and not redirected. I see it as an obvious and serious bug which happens in very special conditions.
All FF plugins and add-ons disabled. Tested in safe mode as well. One interesting fact is that this page is opened by a redirect from another page (JavaScript performs redirect), but the page where error happens does not contain any JavaScript redirection code. Error console is also empty.
During these redirects FireBug (when enabled) displays interesting stuff. It shows that request without arguments is pending infinitely while immediately after it another request is launched with all unwanted arguments.
Another interesting fact is that page is using late polling AJAX technique (not sure whether it has any impact).
It seems that it is some caching bug.Autocompleted URL does not seem to be related in order to provoke the bug. If I press Esc and then immediately press on links, they all work fine. Without pressing Esc, if long polling is in action, all links redirect the same page. Long polling request happens for no longer that 2 minutes and then there is a 1 second JS delay before the next one. If links are pressed between calls, they work fine.
The strange thing though is that my friend has prepared a simple script which is generating a long polling request and has a link to Google. This test works, so I am trying to understand whether there is any additional factor which is causing the problem. Perhaps it can be due to having redirects and 2 simultaneous long polling requests at the same time. Doing my best to understand the problem. Not sure what is happening although I am quite sure that problem is caused by the FF browser somehow. Tested everything back and forth. -
Incomplete hyperlink in PDF output . HTML output works fine
We have a 10g report that drills down to another report. The hyperlink to access the drill down report is very long (1080 chars).
When generating HTML output, the url is complete and link works fine. When generating PDF output, link gets cut out and it does not work... incomplete link.
Any ideas why this can be happening?hello,
you might try to use the protocol prefix file:
e.g. file:///d|/myfiles/test.xsl
relative urls like d:/... are interpreted differently by
browsers or acrobat reader.
regards,
the oracle reports team -
Having problems passing more than one parameter with html:link tag
Hi guys,
for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
For ex: I have in the database User1, User2 and User3. I would like to have a result like:
User1
User2
User3
Instead of it I have the result like:
User1
User2
User3
User1
User2
User3
User1
User2
User3
What I�m doing wrong? Could somebody help me please?
Thank you in advance
There is a snippet of the code, which I�m using in jsp:
<code>
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name=" usersName " scope="page" page="/name.do">
<logic:iterate id="folder" name="user">
<bean:write name="folder" /><br>
</logic:iterate>
</html:link><br>
</logic:iterate>
</code>Suggestion: next time you post code use the "CODE" button to put code tags around it. It formats much nicer that way :-)
You have a nested loop structure here.
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name=" usersName " scope="page" page="/name.do">
<logic:iterate id="folder" name="user">
<bean:write name="folder" /><br>
</logic:iterate>
</html:link><br>
</logic:iterate>Both loops iterate over your "user".
Your first loop loops over each user.
Then your second loop also loops over each user - hence you get number of users * number of users = 3 groups of 3.
If you have 4 users, you would have 4 groups of 4.
I only see you setting one parameter: "usersName" What other parameters do you need to pass?
At a guess, the inner loop is unnecessary, and you want to write the users name as the text for the link, and also use it as a link parameter.
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name="usersName" scope="page" page="/name.do">
<bean:write name="user" /><br>
</html:link><br>
</logic:iterate> -
HTML link to a Flash file frame
> This message is in MIME format. Since your mail reader
does not understand
this format, some or all of this message may not be legible.
--B_3299492325_1333456
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit
Hi
I've got a client who has a HTML site on a laptop for a
presentation and
within this site he's wants a link that attaches to a AS2
.swf that I've
developed.
The thing is it he wants it to link to specific area of the
file and not to
play it all. How would I do this as he's just asked for the
specific address
of the area it needs to jump to.
Any help would be much appreciated bearing in mind my
ActionScript is pure
novice so a step by step would be handy.
thanks
--B_3299492325_1333456
Content-type: text/html;
charset="US-ASCII"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>HTML link to a Flash file frame</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Calibri, Verdana, Helvetica,
Arial"><SPAN STYLE=3D'font-size:11pt=
'>Hi<BR>
I've got a client who has a HTML site on a laptop for a
presentation and wi=
thin this site he's wants a link that attaches to a AS2 .swf
that I've devel=
oped.<BR>
<BR>
The thing is it he wants it to link to specific area of the
file and not to=
play it all. How would I do this as he's just asked for the
specific addres=
s of the area it needs to jump to.<BR>
<BR>
Any help would be much appreciated bearing in mind my
ActionScript is pure =
novice so a step by step would be handy.<BR>
<BR>
thanks</SPAN></FONT>
</BODY>
</HTML>
--B_3299492325_1333456--What do you mean about opening a flash file? Do you want the
.fla file
to open in flash? Or is it a swf that you imported into
Director? Or
is it an exe that was published from flash? Or a website that
was
created with Flash?
If you are opening a .exe and you know the path to it, then
you can use
Director's built-in open command
open the moviePath&"flashFile.exe"
for most other things, I would use BuddyAPI. To open an exe,
baRunProgram(). To open a fla or swf, baOpenFile.
To make Director open a swf on the stage, import it and
simply tell the
button to go to that frame. -
Greeting,
I have the following codes in struts1.3.5. It works fine under Firefox, but it does not work at all under Internet Explore (IT) at all. Any clues why under IE it does not work?
<html:link action="/private/search">
<input
type="button"
value="Search"
class="search-button">
</html:link>
Thanks a lot!This would probably generate a HTML in which there will be a button inside anchor tag.
This is not a standard HTML feature and no wonder this is not supported by IE. I copied the generated html codes into test.html to try on IE, the button does not work at all.
Firefox is probably lenient here. True. test.html works in Firefox.
You might want to just have a link or do a form submission on button click.The action designed does not need an actionForm. I updated my code to :<html:button onclick="location.href='processSearch'"
property ="Search"
value ="Search">
</html:button>
And now both Firefox & IE works fine.
Thanks a lot! -
Html link not visible as table header in jsp
Hi,
I am not sure if this question belongs to JSP forum, since it's happening in JSP page I am posting it here.
I am seeing this strange problem, in my JSP page all the link are looking fine except some links in Table header. Here is the code snippet:
<th align="left" width="30%"><html:link action="/myAction.do?sortBy=org&all=${param.all}">Organization Name</html:link></th>
ENV is struts, jstl, html.
Now the problem is the text Organization Name is not visible, although it's there and I can click it. If I click and drag mouse over it I can see it.
Also if I put this link anywhere else e.g. <TD> I can see it.
I am not sure why it's happening.
Please help me.
AbhishekSounds like a style issue - is it the same colour as the background for some reason?
What styles have you got applied to your <th> columns? The text in them?
Are you using css? -
Html:link to c:url
<html:link action="/DispatchAddAction.do?method=Delete">
<fmt:message var="btnDelete" key="btn.delete" bundle="${appbundle}"/>
<c:out value="${btnDelete}"/>
</html:link>
this is working fine.
Trying now to use JSTL c:url
<c:url value="/DispatchAddAction.do" var="url">
<c:param name="method" value="Delete"/>
<fmt:message var="btnDelete" key="btn.delete" bundle="${appbundle}"/>
<c:out value="${btnDelete}"/>
</c:url>
I don't see the link Delete. What am I missing here?
Thanks.The tags do slightly different things.
The html:link tag renders an anchor tag for a link on an HTML page.
The c:url tag just produces a url. It doesn't produce HTML. The struts html:rewrite tag would be closer to the function of c:url
As such you have to generate the link yourself:
// set up values
<fmt:message var="btnDelete" key="btn.delete" bundle="${appbundle}"/>
<c:url value="/DispatchAddAction.do" var="url">
<c:param name="method" value="Delete"/>
</c:url>
// then render the tag like this:
<a href="<c:out value="${url}"/>"><c:out value="${btnDelete}"/></a>
//if you have a JSP2.0 container you could do it just like this:
<a href="${url}"><fmt:message key="btn.delete" bundle="${appbundle}"/></a>Cheers,
evnafets -
Html link problem...
Hey!
Just wanned to say to those who answered my post on html link problems, that the problems I had were actualy because of the jdk version! I had jdk1.2 and now I have 1.3 and it works just fine.
thanx a lot to everyone who tried to help!!!hehe i saw the topic "html link problem" posted by amidala and i thought " oh my god is she still struggling!" ;P
Kewl 'twas not a problem!
Maybe you are looking for
-
What's wrong with skype and banning my accounts?
I've had many accounts 8+ banned, I've had to switch aliases multiple times including [Removed for privacy] and others, I make an account and within a week it get's banned, idk if its a ban but when it happens my client crashes then when I try to rec
-
How can I do direct ip dialing?
Hello: Usually I configure the dial peers with the command session target with the remote gw ip address. there is any way to make the call using an ip from the caller endpoint? In each call the user can dial a different ip address and I need that the
-
Sir, Yesterday night i was syncronized my iphone 3gs with my pc. after that operation my phone will not be activated showing error as cound not be activated because sim was not installed. but already I was inserted my sim in it. The phone is conne
-
How do you facetime w someone who has iPhone?
how do you facetime w someone who has iPhone? Obviously my iPod doesn't have a phone #... So how do they "call" me?
-
What does the red number mean?
Airport Utility is displaying a red badge with the number 1 next to the icon for my Airport Extreme, which extends my network with an Airport Time Capsule. What does it mean? If it is indicating an update, shouldn't something happen when I click it?