Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Linking From Html To Swf Called From Another Swf



I understand how you can link from html to a swf file but my problem is that I need it to go to specific place which is another swf file called from the "container" swf file.

What would be the easiest way to do this?



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-18-2007, 01:35 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Popup Called From Flash Vs Html
Hi Forum

It appears that popups called from within html with a onClick event in the anchor tag are less likely to be blocked by most browser popup blockers (safari, mozilla). A popup called from within an swf movie however will trigger the popup alert. That just seems kinda unfair. no ? :)

I'm using flash 8 and getURL()

Is there some sort of acceptable workaround or alternative? Even if it's just a temporary one which will be fixed in the next versions of popup blockers.

Any opinions on this?

Thanks

stephank

Window Attributes With Url Being Called From Html
I have a movie clip with the following script:

onClipEvent(load) {
loadMovie(_root.url + "_portfolio1.jpg", this.cont);
url=_root.url7;
}

The movie clip contains a button with this script:

on (release) {
trace('1 - ' + url);
getURL(url, "_blank");
}

In an html page I have this:

url7=http://www.blahblahblah.com

All this together opens a new window with the new site. But..I want to have a fixed window size with no scrolling...etc..

What do, and how do, I add this to the getURL(url, "_blank"); since I am using "url" and not http//www.blahblahblah.com?

Any help would be a world of help. Thanks

Swf Works On Its Own, But Only Flashes When Called From Html
Hi all,

I'm not new to flash, but I haven't done much passing of parameters between flash and php. What I'm trying to do is create a flash file that will load swfs that are randomly chosen from a directory full of swfs. The random choosing is done by a php script.

When I call the swf directly, it functions properly but opens a new window, which I don't want. When I run the html page generated by flash (I'm using v8), the loaded swf is embedded, which is what I want, but it just flashes and leaves me looking at a blank page.

The swf is at http://www.teryg.net/test/SwfOnly.swf.
The html is at http://www.teryg.net/test/SwfOnly.html.
The php code is at http://www.teryg.net/test/image/RandomSwf.php.

The actionscript in the master flash file is:

/* first create a new instance of the LoadVars object */
myVars = new LoadVars();
// call the load method to load my php page
myVars.load("http://www.teryg.net/test/image/RandomSwf.php");
// once vars have been loaded, we will have these variables:
myVars.swfToLoad    // URL of swf
yVars.onLoad = function( success ){
    if(success){
        trace("variables loaded");
        for( var  prop in this ) {
            loadMovie (this[prop],"photo_clip");
        }
     } else {
        trace("Error loading page");
    }
}
stop() ;

I've been messing with this for hours, so I know it must be something obvious . . .

TIA,
JadeG

How To Pass Data Across Swf Which Are Called Thru Different Html Files
Urgent:

Does anyone know how to pass data across swf which are called thru different html files?

For examlpe: There is file called "Interface.swf" which have a variable called userName. There is a button in Interface which opens a file called "Help.htm" which inturns calls a file "Help.swf". I need the variable userName from Interface.swf to Help.swf. I have tried global variable but its not being passed as these are called thru two different html.

So, does anyone know the solution to solve this problem?

thanks in advance...

Javascript Not Being Called In Html TextField In Safari
I have a dynamic text field where I create an html link based on a couple of pieces of data.

Here's an example of the code for the link:

PHP Code:



var aTag:String = "<p class = 'landing'><a href="javascript:openVidPlayer('/vidplayer.html?video="+sel.v_id+"&category="+sel.cat+"');" target = '_parent'>"+sel.ttl+"</a></p>"; 




My problem is that the popup works fine in Windows IE, Mac/Win Firefox just fine. It won't work in Safari. It shows as link, but when you click, nothing happens. Can anyone think of a reason why this wouldn't work?

How To Pass Data Across Swf Which Are Called Thru Different Html Files
Urgent:

Does anyone know how to pass data across swf which are called thru different html files?

For examlpe: There is file called "Interface.swf" which have a variable called userName. There is a button in Interface which opens a file called "Help.htm" which inturns calls a file "Help.swf". I need the variable userName from Interface.swf to Help.swf. I have tried global variable but its not being passed as these are called thru two different html.

So, does anyone know the solution to solve this problem?

thanks in advance...

How To Pass Data Across Swf Which Are Called Thru Different Html Files?
Urgent:

Does anyone know how to pass data across swf which are called thru different html files?

For examlpe: There is file called "Interface.swf" which have a variable called userName. There is a button in Interface which opens a file called "Help.htm" which inturns calls a file "Help.swf". I need the variable userName from Interface.swf to Help.swf. I have tried global variable but its not being passed as these are called thru two different html.

So, does anyone know the solution to solve this problem?

thanks in advance...

How To Pass Data Across Swf Which Are Called Thru Different Html Files?
Urgent:

Does anyone know how to pass data across swf which are called thru different html files?

For examlpe: There is file called "Interface.swf" which have a variable called userName. There is a button in Interface which opens a file called "Help.htm" which inturns calls a file "Help.swf". I need the variable userName from Interface.swf to Help.swf. I have tried global variable but its not being passed as these are called thru two different html.

So, does anyone know the solution to solve this problem?

thanks in advance...

Any Component To Generate PDF File From HTML Called From Flash?
I know about a few ASP components that have to be installed as .DLL in IIS.

Can any Flash componemt do the same?

I need to call a page with HTML code in the background (using loadvars) and generate a PDF file from the HTML in the called page.


Thanks

How To Make An Application Full Screen For Mac OS X That Are Called Through Html?
I made an application in flash MX 2004 which is called through an htm. I want to know, how to make an application full screen for Mac OS X. I had already tried fscommand("fullscreen", true); but doesn't seem to work on Mac.

So, what should be done to make the application full screen for Mac OS X that are called through an html? Hope someone could give me some idea.

Thanks in advance.

HTML Text In A Dynamic Text Box Called From An External .txt File
Hello,

I am trying to get a .txt file containing html text to load into a dynamic text field in flash.

All of the tutorials I have found and the books I have read all do this with a button. I need this to be done without a button.

If anyone knows of a tutorial or could help me out please let me know.

I am using Flash MX 2004 on a mac

Zard

Linking An .swf To Html
hey everyone,

how can i make a .swf movie file linkable to an html page? Can it be done or no? thanks

Linking HTML Help
Hi,

I was wondering how (if) you can link an html file to a .swf. I want to make the first page of my .swf website to link to an external .swf's html file. (I centered the site in the HTML) I know you can use the load movie command to link one .swf to another but can you link to the HTML so that I can retain the <center> code i wrote? Any help would be great!

Thanks,
Ryan

Linking HTML
When you visit my website it has a button that says 'Open Popup', when you open the popup you have some lame flash animation that has 4 links to go to 4 different sub websites of my entire website. So now, there are 2 windows, one is a normal window with that Open Popup page on it, and then there is the one with the flash animation on the 800x600 popup with no toolbar, no resize, no anything. I want the links on the flash animation to be able to go to the normal HTML page that has the open popup link on it. How would I do this? I'm assuming it's a target such as _blank, _parent, _self, or something else?

If you want a more visual look go to: http://dille-zone.com

on (release) {
getURL("http://dille-zone.com/forum/","_self");
}

Is the command I'm using for the forum at the moment and _self didn't work, I would use _blank but I don't want more than 2 windows opening up, I don't want to aggravate the user.

Thanks in advance,
Mark Dille

Html And Swf Linking...
I can't seem to apply a link in my html page around the swf file so that when someone clicks on the swf file it will re-direct. Anyone have a tip on how to do this?

Linking Html To Swf
Hi,
Im currently making a half flash half html site right now and was wondering how i could link a html made button to a frame on my swf timeline...
Thanks

Linking From One .html To Another?
Let say i publish a flash file, A, in .html. And I publish another file, B, in .html too.

In A, there's a button. When I click on it, i want it to go to and stop at frame 3 of B.html.

Is it possible?

[F8] Html Linking
I want my flash to stop and go to my website (I'm no good with Action Script is a min requirement on the College project ;-; )


Code:
stop();
getURL("http:\\www.tjk.desudesu.org", "_self");
ok the stop and self parts I understand , that works fine ^_^

its the link part when the flash stops it somehow puts a extra "/" in the link and takes away half the "" (which is why there is 4 's in my link)

thanks , Any help Appreciated ^_^

Linking To HTML Files HELP
Hi,

I'm currently making a portfolio using flash which will be CD based. When the user clicks a button I want a new browser window to pop up with an HTML file included on the CD. I can get this to work on my home computer by using geturl(file:///portfolioindex.html). However this wont work on my friends computer. I've tried relative linking and I cant get this to work! Is there some scripting to put the CD rom drive letter into the geturl statement???

Please help this is driving me mad!!!!

thanks

Linking To HTML Frames
How do you link from a falsh menu in one htmL frame to another html frame?

All help appreciated

Ross

Linking Html W/ Flash...
Hi, I need a bit of a hand, what I have is a list of names, written into my webpage via html, I also on that page have a place for a flash file.

What I need to do, is when I click a particular name, it loads a particular flash file correspnding to that name into the place for the flash file.

e.g, click vortex (webpage), flash file loads "vortex.swf"

I need to do this without creating extra html file...

Any suggestions?

Linking Flash And Html
can anyone explain to me or send me a link to a place that will, how to link flash to html?

what i am trying to do, is set up a flash menu on a site, with html as the content..so when u click portfolio it goes to a seperate html page..but flash menu is still there..

i tried to explain as best as i could i hope somebody understands thanks

Linking To Html And Other Files
I'm doing a flash file for a menu on a CD. I plan to have the menu autoload and I want to have the menu link to different types of files: specifically html files, Word documents and perhaps some PDFs. How do I link to files that will be on the same CD in the same directory?
I'm just not having any luck here.

Thanks!

Linking To An Anchor In HTML?
Is it possible to link a button in an .swf file to an external HTML anchor link set up in dremweaver....
Please help!

Thamks in Advance..

chaps

Deep Linking From Html
Hey all!

What would be the best way to link to a specific frame number/label from an external html source?

Linking Flash To Html
How would you link a flash file that is inserted in dreamweaver to an html file?

Linking To A HTML Page
In need of a little help folks. I need a button to, once clicked, link to a HTML in the same window. hope this is easy to answer. Thanks!

-kdv

Linking To Outside Html Files
how can I get my flash button to open up html files that are in the same folder as the flash file but not have to type in the whole web root ie http://www...etc that you have to do in the get URL action

cheers

JC

Button Linking To Html
I know this is total noob, button whats the code to link a button to say index.php or what ever?

thanks

Linking To HTML Frames?
Does anyone know how I can link a flash button to a certain HTML frame on my website?

I use 2 frames, one for my menu (which is flash) and one for the content (which is HTML). I need it so when I click the flash button, it opens the link inside the content frame. Is there some type of action script or <target="contentframe"> code I need to tag on?

Thanks for any help!

Linking Flash To Html
so what I have is a flash "header" with links that control which html document to go to. so I need to know how to link a flash button to an html document while keeping the SWF header the same and not re-loading it or anything. here is the site I'm doing: http://okasoft.150m.com/main/about.htm

as you can see I have the SWF header and the HTML all in the same HTML document. I'm hoping this all makes sense....

thanks, Joel.

Linking Buttons To Html
Ok, so I want to be able to do this...

http://www.bluegelmedia.com

They have flash navigation on the top, and html on the bottom. I have no idea how to even begin to implement this feature, I'm very very interested to learn how. Does anyone have any thoughts?

Thanks for any help I can't wait to hear word from anyone!

Linking An SWF To Another SWF In A Same Frame In HTML
I have 26 scenes (swf files) and would like to link them to each other starting from scene1.swf for the website. What script should I use to link them up since the go to and play does not work?

Problems With Linking SWF In HTML
I'm not an expert at flash, i have been able to make buttons for this website I am making. However, I have coded html to the SWFs, <a href> tags were used to be specific, and when the cursor is scrolled over the button the link shows up in the bottom left showing that the link is working, but when I click the button nothing happens. Does this have something to do with the file being a SWF? I know that this method works with jpegs. If this is the problem, how do I fix it? Do I have to code the link within the button somehow?? Here is the website so that you can have a better understanding of what I am talking about, http://www.geocities.com/mattyfoo1984/frontpage.htm

Linking To An HTML Anchor Tag
I am trying to link to a specific anchor inside an HTML document from an embedded swf file inside an other HTML page. The page opens just fine when the button is clicked but it does not go to the specified anchor tag. It just goes to the opens the page normally.

This is my script on the button...

on (release) {
getURL("about.html#ryan");
}


Anyone know what I'm doing wrong?

Linking To HTML Fragments
I want to link to HTML fragments without reloading the HTML page itself and, thus, reloading my movie, but it's not working the way I'd like.


Code:
on (release) {
_root.play();
getURL("#Home", "javascript:window.scroll(0,0);");
}
Using that script, it keeps opening my webpage in a NEW window with the "#Home" fragment on the end of the URL, instead of just adding the fragment to the end of the URL in the CURRENT window. Anyone know how to fix this?

Linking To HTML Files
I was just wondering if the following is possible:

say i have a folder within a folder within a folder...
and i have html files in each folder...
the main flash file and swf is in the top folder... is it possible to create a link (the getURL) so that if u click on a button it opens the html file thats in a sub folder or even a sub-sub folder?

i tried referencing the whole path in the getURL bit... but then when i upload the swf in my site the links dont work on other computers...

would much appreciate if someone could help... thanx

Linking HTMl From A Flash Pop-Up
here is scenario.

i have a Flash movie that pops up from an html page.

i then want to be able to change the URL in the parent page by clicking a button in the "popped up" (daughter) page.

here is the code i am using

java script in the Popped Up html:

function myMovie_DoFSCommand(command, args){
if (command=="go"){
window.opener.location = args


in the Flash movie:

on(press){
fscommand("go", "myURL.htm");
}

this is supposed to work, but is not. i am not a developer and am sorta winging it.

do i need anything in the Parent page? do i need to name something?

help!

(thanks in advance...)

Linking The Swf Files Through Html
Hi,
I have created an animated flash banner. I want to link the banner to a web site on click over the banner.This is my script over the banner:
on (release) {
getURL("http://www.mysite.com", "_blank");
}

But I don't want to write the code in flash as I want to give the link in html.
Is it possible to link swf files using "a href ..." like any other images in html?
Any help will be appreciated.

Linking To A Html Page
I have attached the relevant files. The main flash file is a MX 2004.

What I am trying to do (!) is have a list which is scrollable and searchable as this one is but I want to be able to click on the word and access another page.

I am trying to create a dictionary of words and images. I have included a simple html page (dreamweaver) - how can I have it so that when I click on the word apple this page opens with the image of an apple on? Is it possible?

(Please ignore other words/links on the list - as most of these were on there when I copied the menu file)

I always get a syntax error...what does this mean?

If its not possilbe to link to a html page can anyone show me how to link to the image within flash?

Please just ask if I have not been clear - thanks in advance to anyone who can help.

Doubts: Linking From HTML
Hi everyone

I have a lot of doubts because I'm very New in flash ...

I bought a Template and it have a section that is for the Clients,

every image have this script:


Code:
onClipEvent(load) {
loadMovie(_root.url + "_clients1.jpg", this.cont);
url=_root.url3;
}
the statement url=_root.url3; I thought was the one I must add to the HTML Variables like:



Code:
&url3=http:www.example.com
But nothing happen (so that prove that I'm Noobie)


second


I have a button:


Code:
on(rollOver) {
gotoAndPlay("s1");
}

on(rollOut) {
gotoAndPlay("s2");
}

on(release) {
getURL(URL);
}
And I would like to link this button to a part of the Flash website. How can a do that?


May be this Could be a little bit annoying for the experts, but , Where else can I get help .

Hope can Help me..

Thanks


PD: Sorry about the english

Linking Between Flash, Pdf And Html
How to link from Flash to certain page in pdf document displaying in web browser?
this is not working:

on (release) {
getURL("interfaces.pdf#example", "_self");
}

neither: #nameddest=example, #page=2

This works though from html, but only first time. If you surf beck and then go to the same link it doesnt navigate to that page! Any idea very appreciated!

Thanx

Linking To An Html File
This should be so easy! I created a header with Flash. I want to incorporate the header into my html files. When I click on the flash buttons it should link to an internal html files. Hence, the About Us button will go to Aboutus.html. I know how it can be handled with URL request, but I don't want to include the http:// and so forth into the link. If I can get help with this code, it will be great.

Linking Flash With HTML
Hello, i'm kinda new to Flash. I''ve been messing around with it for a while. I mainly wanted to learn so i could create a website for my band. I've been useing HTML for a while now, and I wanted to know if there was a possible way to make a section of the Flash file I already made that I could use Flash buttons, also already in the file, to load a created HTML file into. Rather than haveing it all in the Flash file.

It would save alot of time and uploading to be able to do this. Can anyone be of some assistance on letting me know how?

If needed I could show what the file i've already made looks like to give more of an example of what i'm looking to do. Any feedback would be great.

Linking To Html Frame
The script below will open a web page in a popup, however I need it to open a page in an html frame. How can this be done?

var labels:Array = new Array("web attack", "Macromedia", "ASP.Net");
var links:Array = new Array("http://www.webattack.com", "http://www.macromedia.com", "http://www.asp.net");
for (var i=0; i<labels.length; i++) {
_root.myCombo.addItem({label: labels[i],
data: links[i]});
}

var obj:Object = new Object();
obj.change = function (evt){
selectedLab = evt.target.selectedItem
trace(selectedLab.label);
trace(selectedLab.data);
getURL(selectedLab.data,"_blank","POST");
}
myCombo.addEventListener("change", obj);

Linking The Swf Files Through Html
Hi,
I have created an animated flash banner. I want to link the banner to a web site on click over the banner.This is my script over the banner:
on (release) {
getURL("http://www.mysite.com", "_blank");
}

But I don't want to write the code in flash as I want to give the link in html.
Is it possible to link swf files using "a href ..." like any other images in html?
Any help will be appreciated.

Somebody Please - Linking Html Thats Not Online
hi guys

i have a flash movie that has a link to a html file that not on the web. all files are stored in a folder on a disk. on my hard drive it works (eg. D:/folder/file.html) but because when its not on the harddrive but on a disk it doesnt work becuase it doesnt know where to go. I have tried changing the extension to the cd drive but no luck. but i doubt this would work because because the cd drive will vary on different computers.
how can i sort this out.

thanks.

oh.. and how do i make my movie play as soon as the disk goes in. I thought i would publish to .exe, but i doesnt work? is it maybe because it's in a folder on the disk and not by it self?

Linking Flash And HTML
I have a movie, with a swift 3d element and flash, after playing the movie, I would like in its place load a regular HTML page.
I dont want to load a new page, is it possible to do without loading to a new page??

Linking To Html Pages
This may be no-brainer, but it is driving me crazy. How to a get a flash button, used within a html page, to link to another html page without opening a whole new page?

Your comments are much appreciated.

-jtbrockmeyer

Copyright © 2005-08 www.BigResource.com, All rights reserved