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




Flash Buttons That Navigate To Html Files In Same Folder As Flash Movie?



I'm completely new to Flash and AS3.......however, i've managed to build a simple "intro" flash movie that has buttons on it that need to navigate to non-flash, DWCS3 based site files. when i go into the button in flash, if i select text in the button there is a spot in the properties panel that allows for a URL link...i enter the name of the html file but it doesn't work......but this URL property field is not available to the entire button....so i started looking at AS because i'm pretty sure i need to use events and event listeners....BUT all of the tutorials only cover getting an external URL or linking to a frame within a flash movie......none of them cover linking to an existing HTML file in the same folder.......(ie., to access the meat of the website through the flash intro buttons....)help? the movie is at www.methods.com/msite07/site07_intro_more.html if you'd like to take a look....the animated buttons need the link functionality.......



Adobe > Flash Site Design
Posted on: 10/04/2007 07:13:04 AM


View Complete Forum Thread with Replies

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

Using Flash Buttons To Navigate HTML Frames
Hi,
I find this site very useful and instructive. It truely is a great piece of work.
Anyway, I have a problem involving flash menu buttons in a frameset. I have consulted the protocol from kirupa, and the site works great when its on my desktop, however, after having uploaded it to my webspace, the site does not function. Now, it could be a problem with my hosting, but I have a feeling the actionscript is not sound.

If you would like to see how far I have gotten, visit: http://www.uweb.ucsb.edu/~awebster

thank you all! you guys are great.
-Alexandre.

Using Flash Buttons To Navigate HTML Frames
Hi,
I find this site very useful and instructive. It truely is a great piece of work.
Anyway, I have a problem involving flash menu buttons in a frameset. I have consulted the protocol from kirupa, and the site works great when its on my desktop, however, after having uploaded it to my webspace, the site does not function. Now, it could be a problem with my hosting, but I have a feeling the actionscript is not sound.

If you would like to see how far I have gotten, visit: http://www.uweb.ucsb.edu/~awebster

thank you all! you guys are great.
-Alexandre.

HTML Buttons To Navigate A Swf
Hello!

I have a swf that loads other swfs into a level based on a release. Works great. I also have a secondary navigation in HTML and need this to tell the initiate swf which swf to load into the set level on button press. I've looked over some code and can't seem to get it working. — Thank you for reading, and thank you for your answers!

Navigate From HTML To Flash
I want to use a menu in a straight HTML-page to navigate to spesific frames in a Flash-file. How do I do that? It used to be impossible, but someone might have found a solution ... Can you help me please?

Opeing Html Files With Flash Buttons
sorry!!! i know this is a really simple and stupid question, but i have a movie with a button on it. when the button is clicked, i want another htnl file to open. how do i do this?

thanks for helping a stupid bloke

How To Use Flash To Navigate Through Html Site?
I know this must be simple.... but i just dont know how.....
how can i use buttons in my flash movie to make my html site jump to another page? please help me soon!

Using Flash To Navigate Through Html Site
I'm using a flash movie to navigate through a html site.
Everything works fine. I got buttons with an getURL and load a page in a frame called mainFrame:

on (press) {
getURL ("products.htm", "mainFrame");
}

But how can i make buttom that jumps to a specific place in the loaded page? What i mean is, that if 'product.htm' is a page with computers, scanners and software, how do i jump directly to software?

this doesn't seem to work:

getURL ("products.htm#software", "mainFrame");
}

anyone?

Using Flash To Navigate To Html Anchors
Hi folks,

I got an flash movie to navigate my html page
All loaded in an index.htm with 4 frames.
The frame containing the flashmovie is called navFrame.
The frame containing the html file with anchors is called mainFrame.

This is the code i attached to a button in the Flash movie:

on (release) {
getURL (javascript:window.location.href="portfolio.htm#in ternet",
"mainFrame");
}

When the (flash) button is clicked, "portfolio.htm" loads perfectly in
"mainFrame" but doesn's jump to the anchor named "internet"

Can anyone tell me what to do?
What exactly shoul be filled in for window and location? (i tried different
things but it didn't seem to make any difference)

Please help me if you can......

Using Browser Buttons To Navigate Flash
Hi All,

Is there any way that a user can navigate a Flash site by using the back and forward buttons in the browser? Also, is there a way to bookmark individual pages of a Flash site within a browser or have the page title show up for the different sections of the Flash movie?

Thanks,

David

Using Browser Buttons To Navigate Flash
Hi All,

Is there any way that a user can navigate a Flash site by using the back and forward buttons in the browser? Also, is there a way to bookmark individual pages of a Flash site within a browser or have the page title show up for the different sections of the Flash movie?

Thanks,

David

Navigate Through Iframe With Flash Buttons
how can i let my flashbuttons scroll through an iframe?? i'm tring but nothing works, lots of thank you's to anyone who knows

Navigate Back To Flash Frame From Html Page
videoimagination.com

Yes, it's a horrible thing, but help me make this work and I promise I'll never buy another template.

If you click the "Families" button at the top of the page, it brings you to another Flash page. Then, if you click "The Video Imagination Transfer Process", you'll be sent to a plain html page.

So if our client wants to then "go back", the Flash reloads itself, whereas I want them to just be sent back to the "Families" page.

How the heck do I make this happen?

I think a problem is that the Flash site is a hot mess, as we bought a template (yeah, I know, never again.) and the "Families" page is just a particular layer and frame in the Flash timeline.

Any good diagnosticians out there?

so I guess the question would be can I write a button/scripty thing to place in the html that will send the viewer back to a frame of the flash, and not reload the whole dang thing all over again?

HELP!!!!

Thanks in advance, Allison


Rapid responses always appreciated!

Allison


Mark this message as the answer.

Can Flash Tell Me How Many Files Are In A Folder?
Hey People

ok so this what I wanna do. I want to make a dynamic website which reads a certain folder(or perhaps just a certain set of files ie. graphicxx.jpg upwards) and depending on that create said amount of buttons or links or whatever.

Can flash look in a folder and see how many files there are in that folder and return a numerical value?

Syllosigm

Can Flash See How Many Files There Are In A Folder?
Is there any way to tell flash (alone) to count the files in a specific folder? I'm loading some images from a folder and the quantity of files is not constant, so instead of editing the text file (I'm grabbing information from that via LoadVars) each time, can I get the number of files with flah, without any eternal script?

Thanks in advance.

Is There A Way To Get Flash To Tell You Which Files Are In A Folder?
In Director you could do this:
getNthFileInFolder(n) was the syntax from memory (running inside a loop that was initiated via getting the number of files in the folder).

Can Flash do this? This would be for an exe file as the final output.

All I'd need returned is a list of filenames.

At the moment I'm numbering my text files - 01.txt, 02.txt, 03.txt etc... I can find out how many files there are by doing a loadVars inside a massive loop until I get a load failure, but it'd be better to be able to name the files according to what they contain and have Flash just look at how many there are and what their filepath or filenames are.

Thanks for any help,
pH

Can Flash Detect Files In A Folder?
Is it posible for flash to read files in a specified folder? Or detect, for instance, how many .jpg or .swf files there are in a folder?
I need this to work on a CD ROM.
Any help will be appreciated

How Do I Pull Text Into Flash From .txt Files In The Same Folder
Sorry I may not be explaining myself right but I'm using a text box with a component scrollbar and I was wandering how can i make this text updateable by just changing the text files in the root folder ie so anyone can update the .txt file and then flash will pull in the correct text.

The site isn't complete but here is the text box I mean:

http://www.immaculate.co.uk/interact...ctionmedia.htm

Sorry about the long intro and no skip but I've only just started this project.

Exporting Sound Files Out Of Flash....and Into A Folder
Hello everyone. I was just wondering is there a way to export any sounds files that are in the library to a folder on your harddrive. I wanted to keep a folder of all sounds from my fla. files in a folder and import them as I need them rather then "Import, open external library" from other fla. files. I am using MX professional. Thanks for any answer to this.

Can Flash Read The Files Names In A Folder?
I know variations of this have been covered, but all involve a naming convention for your images...

Is there a way that we can direct flash (or XML, php, etc) to see all the items in a folder and grab their file names?

Basically, I'm creating a portfolio gallery that will have different folders on the server, and random images in the folder. If there are 4 items iin the folder, I need flash to create 4 buttons, then when each button is pressed, in a new iFrame, load that .jpg.

Any ideas?

Flash 8 Actionscript -> List Files In Folder?
I was wondering if it was possible to list all the files inside a specific folder using Flash 8 Action Script.

Just that I have an image gallery that has all the image names in an array. What I would like to do instead is get the image names from the folder they are in.

Is something like this possible without the use of a server side programming language like PHP since the flash file will not be on a PHP server.

Thanks for your time.

Browser Window Buttons Navigate Movie?
Is there any way to have a Flash movie navigate via the user's browser window buttons? For example, when the user hits the Back button in their web browser, the whole movie currently reloads instead of going to the previous scene in the movie.

Any suggestions would be greatly appreciated!

Can Flash Download Files To A Folder Of User's Choice?
I'm using Flash MX to build an on-line training course which uses .MP3 audio narration. Since some users may have slow connections to the Internet, I decided to make users take the hit up front and download the files to their hard drive to a folder of their choosing.

Since I'm familiar with InstallShield, I know I can build an installer to accomplish this, but there seems to be no easy way to tell my Flash program where the files get installed to.

Is there a way to accomplish this entirely in Flash so that my program knows where the files get downloaded to?

Thanks much.

Can Flash Automatically Count The Number Of Files In A Folder Somehow
here's the situation. I am making a viewer for a series of flash movies that I will be creating in the future. I want the movies to load externally and so far I have been successful with automating everything about the viewer exept one detail. When the user reaches the final movie and hits the next movie button, the viewer attempts to load a movie that doesn't exist.

I need a bit of code that will all me to find out the number of movies available to load, so that I can put an "if n = numberofmovies, n = n. else n = n+1" on the next movie button.

I know that I can just hard code that number into the flash movie, but I would really like to automate it as I will be creating alot of these movies for a long time. Anyway if you know the code I would be most grateful.

Feeling Tricky- Having Flash Count Files In A Folder
What i'd like to do is have Flash count the number of files in a file on my server, so that it can adjust how many photos are in a given slide show without having to pass any variables or adjust anything in my .swf.

help! i've been banging my head against this for hours now!

Is there also a good way to get variables out of a PHP file?
Peace
_EmpireEmpire

Help: How Do I Load Externel Html Files Into A Flash Movie With A Meny Button?
help: how do I load externel html files into a flash movie with a meny button?

I looked on every tut. but i can only find text files and swf files. not html. how do i do that? Do I load it into a container? like I do with the external swf?
Pleaase help me im stuck.

Help: How Do I Load Externel Html Files Into A Flash Movie With A Meny Button?
help: how do I load externel html files into a flash movie with a meny button?

I looked on every tut. but i can only find text files and swf files. not html. how do i do that? Do I load it into a container? like I do with the external swf?
Pleaase help me im stuck.

Using A Keypress Button To Navigate Flash Projector Movie
Hi, Any help will be greatly appreciated. What I am trying to achieve is to have one key -lets say the letter 'n', to control my flash presentation- which has different sections that need to go in order as the presenter speaks so it will serve basically as a next button. I don't want a mouse running around the screen pressing buttons as its a visual presentation on a huge projector screen! I have tried this using an invisible button and this As:
on (keyPress "<Space>") {
gotoAndStop("next Scene", 1);}
which does'nt work and I havent been able to figure out why! If I could just get the key press to work even to goto the next frame then I can make this work but no luck there either.

I can get key presses to work if I use a movie clip;
onClipEvent (keyDown) {
if (Key.isDown(78)) {
_root.myMC.gotoAndPlay(2);}

I'm not sure if this will work using the same key for all my events? Surely it will just keep playing the same movie clip over and over. If anyone can shed some light or knows of a better way to achieve this please help, I have never had to use anything other than mouse navigation so I am rather clueless about this side of Flash.

B

Is It Possible To Show And Hide Html Layres Using Buttons In A Flash Movie ? If So Ho
Is it possible to show and hide html layres using buttons in a flash movie ? If so How ?

For example I have a html page which has on it a html layre. You know the score:

Layer1" style="position:absolute; width:247px; height:11px; z-index:1; left: 75; top: 11; visibility: visible; etc
Now what I want to do is to be able to show and hide this layre using a flash button, held in a flash movie that will also be on the html page.

Therefore I basically need to know if it is possible and how to control the visibility of the layre

Cheers Guys

Linking To Files That Are In The Folder That Hold The Folder Where Ur File Is
i'm trying to get my website to run as it would on the internet but not actually on the internet for a college exhibition. most of my website is in one flash doc but a few pages are seperate that hold some media. all the pages are in one folder (except one) and link to each other with this code:

on (release) {
getURL("whateverfile.htm");
}

the other page is my music page, which is in a folder within the folder that all the other pages are in. to get to the music page from the rest of my website, i did this:

on (release) {
getURL("musicfolder/mymusic.htm");
}

if you even know what im talking about how to i get back out of that folder to the main folder with a link to the main website page?

this is what i tried:

on (release) {
getURL("websitefolder/mywebsite.htm");
}

it didnt work.
i'm quite new to action scrpiting, as in i started learning 3 days ago. im more of an animator to be honest. thanks

Initializing Movie: Several Flash Movies, Same Folder?
Hi guys,

I'm trying to do the "initializing movie" tutorial and I'm having some trouble. When I click the button on the main page, "movie one" loads immediately (the actual "initializing movie" animation never shows up). .

I thought this was happening quickly because all the files were on my local drive (I've made "movie one" 4 mb so, I'm sure it's not because it is small). I tried uploading them to my remote server and calling the page up in my browser but now, when I click on the button, nothing happens. I've got all the files in the same folder so, I'm not sure what's going on.

Does anyone know where I may be going wrong?

Thanks very much,

artane

Open A Folder From Main Flash Movie
Hi

I am trying to reference a folder within my main directory

on (press) {
openCenteredWindow("/champ/index.htm", 800, 600);
}

The folder is called champ
I can't seem to get it to work... it opens the html window bu then
it says file not found
any ideas?

Any help will be greatly appreciated

Thanks!

Flash Over Html, Hide Flash Access Html After Flash Movie Ends
We've got a green screened video playing in a flash movie over top of our html content.

when the movie ends, flash uses external interface .api to call a javascript function which swaps the flash movie out with a 5 x 5 pixel flash movie (rewrites the <div>).

this works and you can interact with the html content after the flash movie in all browsers except firefox...!

anyone know of any work-arounds or is there a better way of handling flash over html in this fashion?

any input would be greatly appreciated!

Flash Banner , Flash Buttons And Html Content
Hi!


I am working on this web project that needs to be like this :

Flash banner on the top, flash buttons under the banner and html content(the rest)

I have finished the banner and the buttons but i don't know how to make the rest (html content).

If anybody knows which software i need to use and what actions should i put to the buttons, please help!!!

Buttons And Connectivity To HTML Files
I'm trying to figure out if I can export a button created in Flash and use it within an HTML doc created in DreamWeaver. In other words, can a Flash button somehow be connected with URLs so that users are directed to other links when they click on the button? I didn't know if a button is considered a stand-alone object or if it must be used only within a site created entirely in Flash.

Thanks for any input you may have.

Txt And Html Files In Flash?
I know that it is possible to let a flash movie display text that is in a .txt file. Could you please explain me how that was done? I know that this question has been asked before but I don't remember the answer anymore.
Is it also possible do display a html page inside a flash movie? Or at least the text that is in the html file?

How Do I Navigate With Buttons?
Hi there,

Can somebody please tell me how to navigate through a movie using buttons?

I have a movie set out and have each page in it's own section on different layers throughout the timeline.

i.e. intro = frams 10-200, page1 = frames 201-250, page2 = 251-300

My intro has actionscript telling it to stop at the end, so that is fine, but I need to know what script to use and where to put it so that I can jump to the specific frame of the movie and have it play that scene/page.

Also...to make things more complicated...once a button is clicked - the exisint page has a small closing movie.

The buttons are already 'button' symbols and I have set the over, and hit keyframes within.

Help??

Thanks

Jonnie

Navigate Between Buttons
Hi, do anyone know how to setfoucs on button when the application starts.
And using the left and right keys to navigate between buttons.Without the use of addListener, I'm new to actionscript. It has stuck me for a day. Thanks ~

Using Mx To Navigate Html Frames - Possible?
a webpage has two frames, the left frame hold the navigation for the main (frame)

is it possible to have a flash file in the left frame control the display in the main?

Navigate SWF From External HTML
hi guys,

i have the following problem:

i have a given swf file from a customer which is a desktop presentation. it navigates to the next frame after mouseclick by the user (presumably gotoandplay).
now i want to embed this file into a webpage and trigger the navigation via a command generated from/in a HTML file instead of a mousclick.
the idea is to have the slides switch in synch with a video displayed on a different layer (wmv9), using microsoft producer (a BAD programm...). producer manages the synchronisation of the html files, so this is not the problem. i just want to load these html files invisible and have them send a gotoAndPlay (or whatever else is best) to my swf in another layer to navigate it.
unfortunately i cannot access the fla source files.

any ideas...? is there a way to send a swf a command to navigate a frame further from outside flash without loading the whole swf with a parameter (cos i dont have these..)?

cheers, nils

I Cant Link The Buttons Of Menu With The Html Files
hi ..
i am using this fla file in one of my web design..but facing some problems........problem is that i cant link the buttons of menu with the html files.. ......plz if any body can help me here..it is urgent..
thanks in advance
i am using this script...but nuthng works...
on (rollOver) {
if (_root.link<>3) {
this.gotoAndPlay("index-1.html");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>3) {
this.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>3) {
_root["item"+_root.link].gotoAndPlay("s2");
_root.link = 3;
}
}

FLA FILE ATTACHED HERE:

http://rapidshare.com/files/166990270/menu.fla.html

How To Download .pdf-files In Flash Without Html?
hi

can anybody tell me how to download pdf files in flash
directly without html?


this would be nice because my deadline is thursday!

thanks in advance.

Niki

Can You Insert HTML Files Into Flash?
Hello, thanks for reading my post.

I need to know if you can insert HTML files in Flash. You know how Inline Frames is a web-page within a web-page -- well I need something like that. I need a webpage within my flash project.

You see, this is for a Eagle Scout project. I am making a website for my church. I want to make the navigation in Flash, but I need the actual page in HTML so the staff at my church can edit it easily.

If you have any questions please respond. THANKS A BUNCH TO ALL WHO IS READING THIS. PLEASE RESPOND!!! Have a nice day

Taking Html Files Into Flash
Does anyone know an easy way to take existing html files into Flash? I have a site that is all html with some Flash but I want to turn it all into a Flash site without losing some of the functions I have with java.

Thanks in advance for your time.

Deb

[F8] Flash Not Working In Html Files
I have a flash file that reads variables off a .txt file using loadVariables() and off a .xml file using load(). It works fine if I open it in the Flash Player, but if I publish preview it in HTML, it seems like the variables dont load. Whats going on with this?

Flash Navigation In Different Html Files
I have a Flash navigation banner. The navigation banner contains seven buttons. Each button when clicked goes to different frames in the Flash movie. On those frames, I want to load or link to HTML page. Like frame 10 will be page.htm, frame 18 will be page2.htm so on and so forth. I saw some JavaScript on some other forums. But couldn’t use the JavaScript properly. I would highly appreciate if someone could provide me some pointers to solve this. I am sure this is not the first time such question posted here. However I could not find them. I do not want to use Frames. Is there a JavaScript code or CSS code I could use?

Thank you,
PP

Loading Html Files Into Flash 8
I'm trying to bring in a html page from a site into flash for displaying...
this is what I found so far, but it doesn't work with an html page out on the web.

this.createTextField("news_txt", 99, 50, 50, 450, 300);
news_txt.border = true;
news_txt.html = true;
news_txt.multiline = true;
news_txt.scroll = true;
news_txt.wordWrap = true;

// Create a new style sheet and LoadVars object.
var myVars_lv:LoadVars = new LoadVars();
var styles:TextField.StyleSheet = new TextField.StyleSheet();

// Location of CSS and text files to load.
var txt_url:String = "index.html";
var css_url:String = "html_styles.css";

// Define onLoad handler and Load CSS file.
styles.onLoad = function(success:Boolean):Void {
if (success) {
/* If the style sheet loaded without error,
then assign it to the text object,
and assign the HTML text to the text field. */
news_txt.styleSheet = styles;
//news_txt.text = storyText;
} else {
trace("Unable to load CSS file.");
}
};
styles.load(css_url);

// Define onData handler and load text to display.
myVars_lv.onData = function(src:String):Void {
if (src != undefined) {
news_txt.htmlText = src;
} else {
trace("Unable to load HTML file");
}
};
myVars_lv.load(txt_url);


any help would be a great help...
originally, i wanted to bring in through <IFRAME> but i don't see that flash understands that.

Thanks in advance!

Flash Navigation And Html Files
I have a Flash navigation banner. The navigation banner contains seven buttons. Each button when clicked goes to different frames in the Flash movie. So, the first interaction is to make the movie to go to a particular frame, which I was able to do easily. On those frames, I also would like to load or link to HTML page. Like frame 10 will be page1.htm, frame 18 will be page2.htm so on and so forth. How do I link .htm files and the single navigation bar where each button would go to a specific frame and play the frame? I don’t want to use frames in my html docs. Is there any other solution? Please help!!

Thank you in advance.
FA

Loading HTML Files In Flash
Hey, i need help with getting a HTML file from a URL and placing it into a Textarea ... I also need to know how to implement JS dropdown boxes on hoverover from a JS file. The hoverovers are images.

Adam

Links In Flash And HTML Files
Hi,

I hope someone can help me - it is probably a simple thing, but have searched the help files etc.

I have a flash document with 3 buttons, each with links. When I publish the file, the links in the SWF file work fine, but those in the HTML file don't (all other actions are OK).

I doubt this important, but I have Flash CS3 on an offline computer.

Please help!!

Mark.

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