Why Won't Link In Xml Open From Html?
hi alli have a small problem with a flash scroller that i am using.its a standard link the xml file that calls images and url for that image.when i text movie everything works fine but if i preview it in html none of the links work!any ideas what i'm doing wrong???here is the code Code: stop();System.useCodepage = true;var tmp = random(1000000);var xmlLength;Str = new Array();imageXML = new Array();myXML = new XML();myXML.ignoreWhite = true;myXML.onLoad = function() { imageXML = this.firstChild.childNodes; if (xmlItem.length == 0) { play(); } _global.picAll = int(imageXML.length); if(weburl==undefined) { for (var i = 0; i<imageXML.length; i++) { kk = Str.push({url:(myXML.firstChild.childNodes[i].childNodes[1].childNodes), imagepath:(myXML.firstChild.childNodes[i].childNodes[0].childNodes)}); if (myXML.loaded == true) { play(); } } }else{ for (var i = 0; i<imageXML.length; i++) { kk = Str.push({url:(myXML.firstChild.childNodes[i].childNodes[1].childNodes), imagepath:(weburl+myXML.firstChild.childNodes[i].childNodes[0].childNodes)}); if (myXML.loaded == true) { play(); } } } }; myXML.load("data.xml"); here is an example of the xml<imagesbar><pic><imagepath>images/1.jpg</imagepath><url>http://www.google.com</url></pic><pic><imagepath>images/2.jpg</imagepath><url>http://www.google.com</url></pic></imagesbar>Now when i
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 03-25-2008, 12:17 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Why Won't Link In Xml Open From Html?
hi all
i have a small problem with a flash scroller that i am using.
its a standard link the xml file that calls images and url for that image.
when i text movie everything works fine but if i preview it in html none of the links work!
any ideas what i'm doing wrong???
here is the code
Code:
stop();
System.useCodepage = true;
var tmp = random(1000000);
var xmlLength;
Str = new Array();
imageXML = new Array();
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function() {
imageXML = this.firstChild.childNodes;
if (xmlItem.length == 0) {
play();
}
_global.picAll = int(imageXML.length);
if(weburl==undefined)
{
for (var i = 0; i<imageXML.length; i++) {
kk = Str.push({url:(myXML.firstChild.childNodes[i].childNodes[1].childNodes), imagepath:(myXML.firstChild.childNodes[i].childNodes[0].childNodes)});
if (myXML.loaded == true) {
play();
}
}
}else{
for (var i = 0; i<imageXML.length; i++) {
kk = Str.push({url:(myXML.firstChild.childNodes[i].childNodes[1].childNodes), imagepath:(weburl+myXML.firstChild.childNodes[i].childNodes[0].childNodes)});
if (myXML.loaded == true) {
play();
}
}
}
};
myXML.load("data.xml");
here is an example of the xml
<imagesbar>
<pic>
<imagepath>images/1.jpg</imagepath>
<url>http://www.google.com</url>
</pic>
<pic>
<imagepath>images/2.jpg</imagepath>
<url>http://www.google.com</url>
</pic>
</imagesbar>
Now when i
Link To Open Html At Set Size
Hi
I need to open a html file from a button in flash. How can I open the window at a specific size (ie 600 x 400)
The url resides in the same folder as the swf.
Thanking you
Miffy :-)
Open Up 2 Pages From One Link In HTML
I am using Dreamweaver
This is what I would like to accomplish...
1st page on site has a link/button
When link/button is selected, the same page loads a thank you page, While a second page loads on top containing the flash file.
After a user closes the page that contains the flash content he/she will see the thank you page.
How do I asign two functions to one link in HTML??
Thank you for your time an expertise!
Open Swf With Txt File Html Link
I've gotten close by reading tutorials and the forums but keep failing.
I have a movie that loads a txt file. This text file has html content that is generated in my swf. I know I need an href with asfunction in the text file and a function in my swf. I keep trying but with no success. Could somebody spoon feed the baby I'm not sure if I'm putting my function in the wrong place or my html is wrong.
Can somebody help?
Thanks
Open Swf On Certain Frame Using HTML Link
Hi,
I have an HTML page which I want to link to a flash movie. Within the HTML page there are 5 buttons, I want these 5 buttons to point to the same flash movie but to different points throughout the timeline of the movie.
Can anyone tell me how to do this? is there a simple way of pointing to frame labels through the URL of the link?
Thanks,
Link And Open Html Site In A New Window
Simple but i cant make it work ????
strange...
tell me the code if i want a link on my flash site to open a html page in a new
window (_blank) without scrollbar, without buttons and at a fixed size
300 x 400 dpi :-)
how do i write the code????
Mirrorman
Open Jpg In A Swf Movie With A Link That Comes From An Html Menu
Hi there!
First of all, I apologize for my english. Hope I can make myself clear.
I have a document that contains an .html menu, and I need that once you click on it, a swf movie in the same document loads a .jpg image (without refreshing the page).
Would it be easier to link if the menu was a swf too?
Thanks!!
Open An HTML Link From Flash Projector(.exe)
i have created a projector in flash 8, for a CD presentation and i have to open an HTML link from flash Projector .exe file on release of a button....
i have no idea How to do it.... :roll:
can any one help me.....
Open A New Link In Html By Clicking Button In Flash
Hi,
I'm facing problem while opening a new html window by clicking button created in flash.
For this i don't want to write single code in flash but want to handle this through the html only.
For this I have used <embed> tag to add swf file in html. but could not add click code in HTML on that button.
Could any one help me out?
Open A New Link In Html By Clicking Button In Flash
Hi,
I'm facing problem while opening a new html window by clicking button created in flash.
For this i don't want to write single code in flash but want to handle this through the html only.
For this I have used <embed> tag to add swf file in html. but could not add click code in HTML on that button.
Could any one help me out?
DynamicText(html) In ScrollBar Two Clicks To Open Link
I have a few dynamic text fields (htmlText) with links, either using the .url property in TextFormat and "<a href>" tags. The text files are then placed in a movie clip that was created dynamically which is then bound the the ScrollBar component.
At first it appeared that everything was working perfect....but after a while I noticed if I left the window containing Flash Movie and came came back, it would then takes two clicks for the links to work again.
Trying to track down this little bugger of a problem, I added a listener to the text field to check the stage.focus
Here is my return:
[object TextField] // clicked on a link that opened a browser window out of the Flash IDE
[object TextField]// clicked on another link that opened in the same window
// went and check out the new window that loaded the link
// when I come back and click on the same or another link I get ScrollPane as the trace on the stage.focus
[object ScrollPane]
//second click works and link opened in the browser window
[object TextField]
I am really at a loss as to what I can do to make it so you only have to click once for the link to download.
Thanks in advance,
D
How To Use HTML Link In Textfield To Open Swf File Within The Current Movie ?
Hi,
Is it possible to open a swf file, within the current movie using loadMovieNum, through the HTML link function in a HTML rendered dynamic textfield?
In other words I need to click linked words in a HTML textfield and instead of opening a html linked URL I need to open a swf file so it opens within the same movie just in another level.
Thank you.
Actionscript Button Open Html Link _self Window
hi, i know this is a stupid question but i've looked all over the internet and can't find the code for a button to open a new link within the same window. i know how to do pop-up windows and such but can't figure out how to open a window in self for flash. thanks in advance.
Call Javascript From A Link In A Html Textfield To Open A New Window Possible?
Hello
This is the situation:
I have a textfile which holds some HTML-formatted text. I have added some links which open in a new browser window.
This works, however I was wondering if it is possible to call a "window.open(...)" as it is possible in normal web pages.
Basically I want to use in the textfile:
Code:
<a href="#" onClick="java script:window.open('...'); return false;">My Link</a>
Is this possible or do I have to open the links in a new normal browser window?
Another question: would it be possible to attach such a javascript function to a normal button?
Thanks in advance,
Christian
[MX04] Open A New Link In Html By Clicking Button In Flash (no Code In Flash).
Hi,
I'm facing problem while opening a new html window by clicking button created in flash.
For this i don't want to write single code in flash but want to handle this through the html only.
For this I have used <embed> tag to add swf file in html. but could not add click code in HTML on that button.
Could any one help me out?
Html Link And Flash Link On Intro Page
I've noticed that a lot of Flash sites have some kind of detector to see if you have the flash plug in. Is that scripting?
Plus, I see that the intro page of ones site will have an HTML and a FLASH option to choose from to enter the site. Would that be enabled in the publish settings of Flash 5? I am curious to know how that is done because I am designing this young lady's site and she wants the viewers to have the options of HTML or Flash.
Thanks!
Open A Link From Exe.
Hi frnds,
When I am opening a link from a shell (exe or Projector), its opening behind the projector or exe.
How can I make that browser window to get open over my project's exe ?
Note: my projector is running in full screen mode and it is standalone not in a browser.
pls help me !!!
thanks................
Open Link In New Window?
I have text in flash file. How I can make it so that when you click on that text, it opens it in new window... That text is not a mc. From character settings I have put the url to where it asks for it. But how to make it open in new window? Without making it into mc, if this isn't possible. Tell me how to make mc open in a new window.
Open Link In New Window
Hello, im looking for the code to, when you click a button, you open the link in a new window. Id also like to be able to resize the window to certain width and height, and remove scrolling/re-sizability.
Thank you so very much if you can help, i realy appretiate it.
El_Y:j3
Link Open In New Window
How can I let a link in a swf-file open in a new window when you click on it?
Like you do in java : _blank
please give an example
Can I make all links on one movie open in a new window with only one code?
greetz
Roelie ;-)
[Edited by lebberdude on 09-17-2002 at 05:55 PM]
How To Open Up New Window With Link
i am still relatively new to flash and I would like to know how to make a link that will open up a new window. should be simple enough...just don't know how...
Open Url Link In New Window
I know this is pretty easy, but i'm in a hurry to get my flash site up tonight and just need to know the best way to make url links open in a new window
PC Users Can't Open Link
I'm having trouble making a link work for PC users. (It works fine on two Macs I've tried.)
I want the link to open a slideshow in a window of a pre-determined size. Here's the code...
on (release) {
getURL ("javascript:NewWindow=window.open('slides.html',' Slideshow','width=640,height=480,left=150,top=150, toolbar=No,location=No,scrollbars=No,status=No,res izable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
Do you know why this wouldn't work?
Thanks much.
Open New Link Then Close Old SWF ?
Hi,
I am looking to do exactly what the subject title says - link to a new page, and then close the SWF that took me there.
From searching the forums, I understand I have to use javascript to close the page, but when I do that the SWF is closed before the command to open the new link is performed.
If I put the close command AFTER the link command, it tries closing my new link, and brings up a rather annoying javascript verification message to boot!
Please help! There must be a way...
Thanks, Steve.
How To Link Text To Open A PDF
I am using Flash MX 2004 Pro and I have some scrolling text that contains links to outside urls but when I try to link part of the text to open a PDF it says the file can not be found. I have placed the PDF in the same folder on the web server. I have the name of the file in the link box and have tried adding directories and removing file extension, etc. Anybody know what I am doing wrong?
[F8] Open Link In New Frame,....
Ok this is hard to explain but here it goes look at the picture first
Ok i got 2 differnt fames in front page and the top 1 is made out of flash and the bottom 1 is html i want my program to :
when ever i click the flash movie link it opens in the main frame or frame number 2 instead of same frame or new window i tired looking up for get url in flash but all i get this
Code:
_blank for new window
_parent for the same window
_top for replacing a frameset window
some 1 plz tell me how to open the link in frame number 2
Open Link In Same Window?
So I wrote this out but it opens the link in a new window what do I do to get it to open in the same window?
var homelink:URLRequest = new URLRequest("http://www.address.com")
home.addEventListener(MouseEvent.CLICK, onClick1);
function onClick1(event:MouseEvent):void
{
navigateToURL(homelink);
}
[F8] Open Url In New Window From Link In Swf
Hi, please help.
I created a link menu in flash and want to have the flash button on press:
1)open up a new html page in the same browser window, and
2) Open an external link in a new browser window.
Can't figure out why what I'm doing doesn't work. When I test the swf file, it works but from the html page where swf is embedded, no reaction whatsoever.
I tried three different ways:
on(press){
getURL("http:www.regency.org", "_blank");
}
on(press){
var myURL:String = "http://www.regency.org";
getURL("javascriptpenNewWindow('" + String(myURL) + "');");
}
And the following javascript: this in fla:
on(press){
getURL("javaScriptpenWin('http://www.regency.org',750,650)");
}
along with this in html page:
<script language = "JavaScript">
function openWin(sURL, iWidth, iHeight) {
var n=open(sURL,'0','width=' + iWidth + ',height=' + iHeight + ',menubar=no,status=1,scrollbars=yes');
}
</script>
Nothing works in browser. But opens quite well from swf.
Help please!
[CS3] Open Link In New Browser
Ok i have a simple
on(release) {
getURL("http://www.url.com", "_blank");
}
my problem is that i get a error or a prompt from Firefox and IE asking if i want to allow my flash file to open the link. I have tried to use java to go around this and I just got the same error.
here is a link to the page with the java script http://www.flashkit.com/tutorials/Ac...-122/more2.php
So my question is there a way around this or no?
Thanks in advanced,
flashhappy990
Link To Open In New Window Help
Hi, I'm a newbie so sorry if this is a basic question. I've developed a dress up game in which I had someone else write the actionscript for me, so I don't know the answer to this myself.
I have buttons/links in my games but want them to open up in a NEW window - how can I do this? This is the current AS I'm using on my buttons:
on (release) {
getURL("http://www.yourdomain.com");
}
Thank you!
[cs3] Url Link Doesn't Open In IE
Something is not working right.
I'm opening a new document (AS2).
using the text tool i write "test".
in the properties window i go to the link attrebutes (the one with the chain).
I enter "http://www.google.com"
I publish to a folder including index.html (which is untitled.html).
if i open the HTML in IE6 or IE7 the link will not launch the url.
It turns into a hand, it opens a 3 item menu if i right click (open, open in new window, copy link to clipboard).
The two open options do nothing, the 3rd indeed copys the url to the clipboard.
needless to say that it works perfectly in firefox but obviously it's not good enough for my client.
any ideas ?
Vago
[F8] Open Link In NEW Window
Here is my code:
CUover_mc.onRelease = function () {
getURL("http://www.cupidsarrow.org");
};
I want this to open in a new window. Please help
Cant Get Link To Open In Same Window
hi i cant seem to get the link on my buttons to open in the same window
my script is:
button1.onRelease = function()
{
getURL("http://www.key4international.com/italia/developments/ilpaesino_overview.php",_top);
};
button2.onRelease = function()
{
getURL("http://www.key4international.com/italia/developments/terranova_overview.php",_self);
};
button3.onRelease = function()
{
getURL("http://www.key4international.com/italia/developments/florence_overview.php",_blank);
};
as you can see i have tried them all and they all open in a new window
Link To Open A File
I want to know how to make a link from Flash MX to open a file (ex. .pdf; .doc), so that runs the program and finally opens the file.
what's the action script I should use?
Link To Open In A New Window
Hi everyone,
I'm trying to make a button in Flash. I need it to open a new window.
I tried:
on(release) {
getURL('http://www.atlands.com', _blank);
}
It still opens in the same window. What do I need to write instead of _blank ???
Thanks for help
Jana
Open Link In New Window
Hi, I'm fairly new to flash, and would love some help with opening a link in a new window.
I have created a button and just need to know what actionscript I am meant to put on the
button to get a separate window to display the link. Hopefully this can be achieved without
affecting the original window the user is browsing.
THANKS IN ADVANCE
Edited: 02/08/2007 at 05:18:33 PM by med23
Open Link In Different Window
Good day all
I am working with Flash MX 2004. How do I get a link when pressed to open ia a different window.
Thank you
leecsone
leecs@northrock.bm
Open Link In New Window
hi,
why won´t the attached file open the link - check the code on the button, which is from
http://www.learningflashmx.com/flash_popup_windows.html
my browser tells me that
"....this procedure is not possible... because safari won´t allow to execute the javascript that way"
any clues? thanks.....
Link To Open PDF Documents
I currently have a button link that opens up a pdf document. On some browsers the default action is to download the file to the user's desktop. On other browsers the default action is to open it up right inside the browser.
Is there a way to force download it to the user's desktop, so the experience is consistent from browser to browser? Thanks.
Code:
on(release) {
getURL("test.pdf");
}
Help Link To Download PDF (not Open)
Hi, I am trying to setup a link for users to download a PDF from my site. Does anyone know if there is a way to force a download dialogue box, instead of having the PDF open in a new window. I've been using the GetURL to do this.
I have looked everywhere, and only found this:
http://www.informit.com/guides/conte...ash&seqNum=342
But when I try to do it, there are errors, and its way above me to fix. Any help is much appreciated.
PS - I'm trying to do this because for some very weird reason, when it opens now in the new window, Acrobat just crashes (no clue why, but it does on all computers -- I've tested on 5). Thanks.
Open Link In Different Window
Good day all
I am working with Flash MX 2004. How do I get a link when pressed to open ia a different window.
Thank you
leecsone
leecs@northrock.bm
Open Link In Other Window
Hi there...
I've a problem...
I have a main page called 'default.asp' which contains a link to open a popup with my flash navigation. This works fine.
But I've got a button in my navigation which should open an url in the other page (default.asp). This works in Safari, but not in IE and FF.
This is what I use now:
Code:
Code:
on (release) { getURL("javascript:window.opener.location.href = 'default.asp';"); }
It opens the requested page in the other window (default.asp) but it also clears the flash movie in the popup. It shows then the requested url instead of the swf.
Anyone an idea?
Thnx,
Leon
Open Link But Not In New Window?
I have a button inside a projector.exe and I want it to simply change the page in the browser instead of opening a new window.... how can I do this?
URGENT: Flash Navigation Embedded In Html That Link To Frameset Content In Html
Hi all,
I want to build a website that consists of a menu navigation (made in flash but embedded in a topframe in dreamweaver. On the left site, there would be some flash animations (images etc.)embedded in the leftframe and in the right/main frame, there would be either flash content or html content (depending on the content). The menu bar is made of 7 buttons; when you mouse over a button, you get a scrolling menu with different items, those buttons items have a rollover effect and when you click on one of this items it will load either a flash or html content in the right/mainframe of my dreamweaver site. My question is what is the best way to build this navigation bar so that when i click on one of this item, it will load the correct content in the right/main.frame.html. When this occurs, i want that the scrolling menu still displays while the content is loading so that when the visitor have seen the content, he just needs to click to another item to load the content (so no ectra step). Please help me with this as it urges.
Be clear in your responses as i am not a pro of actionscrit!
Many thanks, lineda
|