Accessing A SWF From HTML In A Different Folder
Hi all,How can modify my HTML file so that it can access the SWF file that exists in the parent folder?For example, for the following file, I want it to display the file ".. opbar.swf"Code:<html xmlns="
Adobe > Flash General Discussion
Posted on: 11/04/2008 01:32:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Accessing .swf & .flv In Secure Folder
Hi all,
If a have a projector that loads in external .swf & .flv content from a secure area - how do I pass the username and password.
I was thinking something along the lines of:
my_FLVPlybk.contentPath = "http://usernameassword@website.commovie2.flv";
..but it doesn't work, any ideas? Same problem for loading external .swf's too.
Thanks.
Accessing Folder Names
Hi..
Can any one tell me how to check folder names..??
For example I have a folder named 1, I want to return a value 1 if the folder name is 1 or else return 0..??Is this possible..If Yes,please tell me the procedure..!
Plz Help..!
Thanks,
Nirmal.
Accessing A Movie In A Folder
Hi, I have a movie located in a folder called imageViewer
I am trying to access this using the Instance name. I tried doing it with this
on (release) {
tellTarget ("_level0/Doink/") {
gotoAndStop(3);
}
}
But I know it is not _level0
What level will the folder be?
Thanks
-TJ
Flash Accessing Protected Folder
Question 1
Does anyone know if it is possible to make a .swf file will be able to dynamically load jpeg's from a hta.access protected folder which I want to set up?
Question 2
Also does anyone know of any freeware .fla files that can be used to setup a flash based polling system?
Thanks for any help.
HTML Not Same Folder With SWF
Hi all
I have a folder that store swf as following (action script 3.0): main.swf, 1.swf, 2.swf, main.as
In main.swf, I load 1.swf and 2.swf via some Loader code put in main.as.
Then, I have a HTML file to store the main.swf (all is in the same webdirectory, but diffrent sub-folder)
ex for structure of my website:
HTML: ~/main.html
Flash: ~/FlashSource/main.swf + 1.swf + 2.swf + main.as.
When i run the main.html, only content of the main.swf is load, all dinamic content which is load from 1.swf and 2.swf can not display, This just go corretly when main.html put in the same folder with these flash
Any one can help on this? I need they are in different folder.
Thanks
Open An HTML File From A Folder?
I'm making a small flash project that will run off a CD. I want it to open an HTML page in one of the folders on the CD. How would I do this? I tried the getURL but perhaps my syntax was wrong.
Issues With HTML Following My Folder Hierarchy
Hi, I'm using flash 8 to update a site originally made in flash 6. I have my index.html pointing to an intro.swf inside the folder, "3D." So the index.html is pointing to "3D/intro.swf" That loads fine. But when I click the enter button (which uses the loadMovie to load the main swf into a target movie clip inside of intro.swf) the intro.swf disappears but the main.swf does not load. When I open the intro.swf wih flashplayer 8, I have no problems loading everything else. It's just when I try to execute it through the html that I keep running into this roadblock. It has to be something to do with the differences in 6 and 8, but I can't figure out what. I've tried switching the "allowscriptaccess" to "always" in the index.html, but am still having the same issue.
I tried an alternate route--putting the intro.swf in the same location as the index.html. The intro.swf opens fine... and when I click enter, part of the main.swf loads, but not all of it... plus, links from main.swf no longer work (I get an error msg in flash pro saying that the location "...html_public/artwork.swf" does not exist, even though the main.swf points to "3D/artwork.swf"
I even tried what would seem to be the simplest solution--pointing the index.html to main.html inside the 3D folder (using getURL and loading into the same window with the flash button). But again, I get an error msg saying that the location doesn't exist.
What am I doing wrong??
[CS3] Why Does My Action Script Navigation Not Work On Html Pages In A Sub Folder?
Hi Guys.
I have a flash navigation menu sitting on html pages.
Now this works fine on all pages except pages within a sub folder (/Memberpages)
When the navigation menu is clicked on html pages within this subfolder it does not point back to the root folder.
here's the error.
http://www.wvhgc.org/MemberPages/gallery.html
Why does it put /MemberPages/ into the action script?
I have tried changing the script to point to the root like this http://www.wvhgc.org/gallery.html but with no success.
Can anyone tell me where I am going wrong?
Also here is the action script
onClipEvent (load) {
num = 6;
txt = "gallery.html";
}
Problems Loading External Swfs When The Html File Isn't In The Same Folder
I'm having Problems loading external swfs.
In the main folder where my index file resides, I have online.htm. Online.htm has a flash file (thumbnails.swf) that resides in a folder titled video.
In the video folder, there are swfs that are loaded into thumbnail.swf
If I open up thumbnail.swf by itself, it loads the swfs just fine.
When I had online.htm in the video folder, it worked as well. I am not able to keep the htm file in the folder, it must reside in the root directory because of a secure login I am using.
When online.htm is in the root directory, the thumbnail.swf file shows up, but the buttons stop working.
Here is the code that is on the buttons:
Code:
on (press) {
loadMovie("15.swf","_level1");
}
Like I said, that code works fine when I open up thumbnails.swf by itsself, its broken when I have thumbnails.swf embedded in html and I move the html file outside of the video directory.
I had thought I had a workaround. I had a redirect that was protected by the login, and then it would redirect to the online.htm when it was in the video folder. It sort of worked, but not perfectly.
Is there something I can do to the code to make it work perfectly, or is there no hope for this to work, and I have to find some other login script?
Accessing Swf From Html Page
Is there any way I can go from an html page to a specific frame in my swf file, or will it always load to the front of the file.
Right now I am updating a section on an existing site. I am using flash to create the new section. I want to load a new html page for certain links. Will I be able to get back to the frame that I loaded the new page from?
Thanks for the help
Accessing Html Info
How would i access a html tag on the webpage that myflash document is in and read the text within it?
Chris
Accessing A Parameter From Html
I want to pass a parameter or a session var from a web page into a flash movie.
Having searched for the answer I believe I have half of the answer.
Given this idea
Code:
<param name=movie value="movie.swf?RA=1">
<embed src="movie.swf?RA=1" ... "
How would I access RA in AS?
My humble thanks in advance,
Accessing Params From HTML Object Tag?
Hi All!
How can I reference input parameters specified in the OBJECT/EMBED tag? I need to pass in an identifier than reference it in my SWF for a DB query. Been skimming thru help docs but to no avail.
Thanks!
Using Flash MX
Accessing Parent HTML's Objects
Hi,
I would like to access certain HTML tags' value in the flash.
My flash is embedded in a HTML page and there are several check boxes in the page. When user clicks a button in the flash, it needs to retrieve the value of the check boxes.
What would be the best way of achieving this ?
I am a little desparate ^^ Please let me know !!
Thanks in advance,
Keeyong
Accessing A Flash Movie From HTML
Is it possible to link to/ go to a specific label or frame number within an SWF from an HTML page?
or to put it another way... from an HTML page, can I click a link to take me to a certain place in my swf movie or does it have to start the SWF at the beginning?
Accessing Flashvars And Html Parameters
Hi,
I'm pretty new to AS3 and although I keep seeing the same solution all over the forums, I can't seem to get my flash movie to work properly.
I'm trying to pass a parameter id from a URL to my movie...for example:
http://www.mysite.com/xmas_2111.swf?id=3
Here is the AS code:
Code:
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
var idString:String = root.loaderInfo.parameters.id;
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest
("xmas.xml"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseNames(xmlData);
}
function ParseNames(nameInput:XML):void {
var nameRecipient = nameInput.Recipient.(@id == idString).firstname;
firstname.text = nameRecipient;
var nameSender = nameInput.Recipient.(@id == idString).sender;
sender.text = nameSender;
var titleSender = nameInput.Recipient.(@id == idString).title;
jobtitle.text = titleSender;
}
And here is the html code where the flash movie is embedded:
Code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','550','height','400','src','xmas_2111','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','xmas_2111' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="400">
<param name="movie" value="xmas_2111.swf" />
<param name="FlashVars" value="id=1" />
<param name="quality" value="high" />
<embed src="xmas_2111.swf" FlashVars="id=1" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="400"></embed>
</object></noscript>
Accessing Embedded Flash In Html
i have embedded a flash file in html file. flash has audio. in html i will have a button using which i have to make audio of flash on / off. please suggest.
Loading Movies From A Folder Located In Root Folder?
hello.
I want to organize my root folder on the server better. How would I write the code to load a movie that is located in a folder called slideshow, for example? Basically, how do I target that movie located in root/slideshow/...
I hope you understand.
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
Accessing External Movie Clips From HTML
I have a primary movie clip that is serving as a preloader for two other movie clips. These are being loaded as external MCs into the preloading MC.
I'm having trouble getting HTML to communicate with either of the external MCs, however. I need an HTML button I have to tell one of the two external MCs to go to a certain frame. Previously, when I wasn't using the preloader at all, this was no problem via javascript:
movie.TGotoFrame("/mcRegistrationContainer", 1);
movie.TPlay("/mcRegistrationContainer");
In the above two lines, mcRegistrationContainer is a movieclip belonging to one of the two external MCs that the preloader loads.
I can't figure out how to work through the preloader now to that external MC.
I am using Flash 8. Any help, ideas, or suggestions would be greatly appreciated!
-dbh
Swf Not Accessing Xml File When Embedded In Html Page
What i have is an swf which is basically a counter which counts from one number to another then starts again with 2 different numbers.
The problem i am having is that the numbers are pulled in though loadVars from a url string of an xml file. When viewed on my pc it accesses it fine and displays it correctly, however when i put it live it just doesn't display the numbers constantly saying that it is trying to connect to the url. It doesn't work either when tried on other computers, it only works on mine?
Any ideas?
Problem Loading Flv Over Network When Accessing Swf Through Html
hi all,
i have website that loads images and videos for my company. it's an internal thing that's meant to be shown in a network folder that people can access.
my problem comes when i try to load videos in. on my local machine, everything works fine, if you launch the swf directly from the network folder, everything works fine. the problem comes when you launch the html that the swf is embedded in. my netconnection is successful, but when i try to load the flv using netStream.play (using a local path like "videos/myVid.flv") if get a NetStream.Play.StreamNotFound error.
local paths work fine when loading images etc but not videos (even when i put the video into the images folder or vice versa). the only way i can get this working is if i put absolute paths into the video ( like "\myServerflashvideosmyVid.flv")
i'm thinking this is a sandbox problem. when you open the swf directly, it's running on the network, so it's ok to access network files, but when you open the html, it's being loaded to your local computer, and isn't able to do it? both times when i print out the sandbox type it's "localWithFile", but it just doesn't work in the browser. but then i don't get why xml loading and image loading works, but not video. i've also changed the export to localWithNetworking and tried Security.allowDomain("*") but nothing worked.
this works fine if the files are uploaded to a webserver, btw.
i've put up a zip file with the relevant files (though you'll have to stick in your own flv), though unless you have a network handy it's going to be a bit hard to test it.
any help or points in the right direction would be appreciated though
thanks
Xml Loads When Path Is To The Same Folder,but Not From The Folder I Need To Load Fro
hey there! here is my problem if anyone is so kind to point me in the right direction:
i have a Part2_Resources.swf that loads assets/resources.swf into a container on it's root timeline. no problem. assets/resources.swf then loads in config.xml for its content. i think the problem comes in relation to my file structure even though I have already made sure that my path is relative to my root swf.
this presentation will be on cdom so i want to keep my main projector file out in the open and then store all the other files into an 'assets' folder. so here is my file structure:
cd / Part2_Resources.swf (will end up being a projector file)
assets folder / resources.swf and config.xml
when i play my resources.swf by itself with the config.xml loaded directly it works perfectly (ie path: configxml.load("config.xml")
but when i play the Part2_Resources.swf, which then loads assets/resources.swf, wich in turn loads config.xml from the assets folder (ie: path to xml file in resources.swf changed to configxml.load("assets/config.xml") the data doesnt load, or isn't visible for some reason. I am not getting any errors, just no content from the xml file.
i can't figure out where im going wrong except that i might need to use absolute paths which i don't know how to do from a cdRom!
maybe it is another problem altogether?? i attached my files if anyone wants to give it a go!
Help please!!!
Much appreciated!!!
Problem With: Local Folder Path, With .swf File Inside A .html File
hey i have:
index.html
in the root of the "folder-structure".
and a photoslide.swf file inside
flashfiles/photoslide.swf
other files inside :
flashfiles/
is
flashfiles/pic1.jpg
flashfiles/pic2.jpg
flashfiles/pic3.jpg
now the index file is at root of the file structure and the photoslide.swf file is embedded in the index.html file.
and then the photoslide.swf file loads in the jpg files.
But it doenst work. unless i put the pictures inside the root level of the file structure. And by doing this i lose some of my options. anyway around this? obviously i could jsut set the photoslide.swf file to load files from the path flashfiles/pic1.jpg. But if i do this i must edit every photoslide.swf file in every flashfiles fodle ri have on the server. I have 10.
So my question is as following;
Is there a way to set the photoslide.swf file to always read from the folder the photoslide.swf file is? and not the folder it is embedded in.
thanks from Neptunesnectar
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.......
Shared Folder, Resource Folder ...
This is a bit of an open question, but in terms of application development, project development, systems architecture, etc, in what situation would you have a 'Resource Folder' and a 'Shared Folder'. I believe these are common, so where are they used. Anyone heard of these terms before ?
Open A Folder Not A Web Browser Folder.
I need help openning a folder with flash.
I'm creating a Projector App. When I click on the btn I need to open a folder in my computer. I tried the fscommand by no luck.
All Swf In One Folder
hello
i have html site with alitlle flash inside
i want to put all the swf in one folder
how i call swf to another that inside folder
load movie?
get url?
good day
Load Var From Other Folder
I need to lad a variable from a folder separate from the folder my .swf is in. Someone recommended I use the script shown below, but I can't make it work. everything works fine if the .swf is in the same folder as the var. Can anyone help?
load_file=0;
new_date= new Date();
current_day= new_date.getDate();
load_file=load_file+current_day;
path="../quotes/"
trace(load_file);
loadVariables(path+current_day+".txt", location);
Thanks,
Joe
LoadVariables From Other Folder
I'm trying to use loadVariables to get a little piece of text from a folder separate from the folder the .swf is in. Someone suggested using the script shown below, but it doesn't work. Can anyone see where I've gone wrong?
load_file=0;
new_date= new Date();
current_day= new_date.getDate();
load_file=load_file+current_day;
path="../quotes/"
trace(load_file);
loadVariables(path+current_day+".asp", location3);
TIA
kidvid6
Folder Content .....HELP
i wud like to know whether it is possible (if yes, then how) to have content of a folder such as my documents or control panel in a flash movie. i mean is there any way that the contents be displayed in flash? and oh yea i want to open a program from flash (running locally or on CD).
help appreciated.
FOLDER BACKGROUND - MAC
FOLDER BACKGROUND - MAC
This has been posted to mac, newbie and design/anime.
How, with a Mac, can I put a background into my folders?!
Id like to distribute my cds but without a white background, obviously.
Similarly, how can I create a logo on the background. Most, found on demo disks, seem composits of folders.
How can I do these things on a Mac?!
Load SWF From Folder?
Good Day Board
I'm loading a SWF into my movie.
I want to put the SWF into a folder on my server called "video". How can I load the SWF when it's in a folder on the server?
here is the script i'm using currently:
on (release) {
loadMovieNum("tree.swf", 200);
}
Open A Folder On A CD
I have a projector on a CD.
In the movie there is a button called "EXTRAS"
There is also a sub-folder called "EXTRAS"
I simply would like it so that when the user presses the "EXTRAS" button on the movie, it will open the "EXTRAS" folder.
Please help, my brain hurts...
Open A Folder On A CD
I have a projector on a CD.
In the movie there is a button called "EXTRAS"
There is also a sub-folder called "EXTRAS"
I simply would like it so that when the user presses the "EXTRAS" button on the movie, it will open the "EXTRAS" folder.
Please help, my brain hurts...
Target Folder
'Allo. I've made a Flash menu for my website which will be displayed on multiple HTML pages, but when its on a page in a folder, the links are wrong. (e.g. http://www.test.com/thislink.html - In /ohno, it is http://www.test.com/ohno/thislink.html). Instead of making a differnt menu for each page, can I add a tag or something to the HTML code, which sets a target directory (Like a windows Shortcut)?
Images From Folder
I'm wondering how I might pull images from a folder, and put a fade transition between them. HEard of a way where it pulls from the said image names from a text file, but since im amateur at actionscripting I have no clue how to start.
Exploring A Folder
I want to create a page that displays the pictures that are inside a folder as thumbnails, kind of like XP does in the Explorer window.
Then, when you click on one of the pics, it opens the full size in a seperate window.
Is there a way to code this with actionscript?
Open Certain Folder
hello,
how can i open a certain folder from my hard disk, i think i can use .bat and fscommand but how could i target certain folder to be opened ??
thanks
External Swf From Different Folder
I can only figure out how to load an external swf into an mc if they are in the same folder. I can do it that way if I have to, but it is an organizational nightmare to have a couple of hundred swfs to sort through. There must be a way to load from a different folder on my site? Using MX.
Open A Folder On A CD
Hello,
i am making a flash interface for a CD. There's thumbnails that must open a folder containing the Hi-Res pictures on the CD.
Under Windows i can open the folder with a simple GetUrl command but because my projector is Fullscreen, the folder stay stuck under the projector...
i don't like that.
A little help would be appreciated.
Paco
Folder Question
How can I select a whole group of symbols to put in a folder? Like if I wanted to but 50 symbols into a folder but I didn't want to do one at a time.
Loading From Folder
I have created a sliding thumbnail viewer for a slideshow in flash, however I would like to load the thumbnails from a folder so that when the images in the folder change the flash file is updated.
At the moment I have the thumbnails as buttons contained in a movieclip, allowing me to click the thumbnail to load up the fullsize image in the slideshow. Can I load the images from a folder with this set up?
Configuration Folder
Ok im turning crazy .... At work im always adding function to an agent i made wich is a component and i just go to documents and settings/user data/etc and i work in the .as file and save it. But now im at home and i can't find the file ... The component is working but i cant find the class folder. What the .... is wrong here. even windows search engine cant find it.Is someone have an idea. Its not the agent from work i want but an other xml engine i made. But cant find the source file. I know i have it at work but i need it now. the engine is on my site 'Fxml'
www.benoitmeunier.com
Folder Tabs?
Hey Everyone:
I am building a new website and want to make a top story section on the home page. I would like it to have folder tabs. Say one tab says "Top Story." Another says "Photos," etc... For example, check out the Philadelphia Eagles website... www.philadelphiaeagles.com. Something to that effect? Can anyone help?
Chris
Secure Folder
Is it possible to have flash with a dynamic cart be placed in a secure (https)
folder. Do you place the index in folder? And or can you just place a certain file in secure and have it called out when needed.
Can't Reach Folder
peepz,
im using flash mx (not 2004!) but im having a problem reaching a folder:
if i place the mp3's in the same folder as the SWF it works fine, but if i Do:
code:
myMusic.loadSound("documents/music/kids.mp3", false);
it won't load :S
please help!
thanks already!
Secure Folder
I want to get to my secure folder on my server, this code does not work, can I get some help on this please
on (release) {
getURL("secure/credit_ap.swf", "_blank");
}
|