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




Downloading Images From A Different Root Dir?



ok I have 2 root directories on this site, one for http and one for https.

I have the flash on the http side but the images on the https side. I am trying to load those images into flash. I am using an absolute url for the images but its not working....however it IS working from within the flash IDE when I test move...but once I upload to the site it will not load the images.

is there some kind of security stopping it from loading the images from a different root directory? and is there a fix?

Thanks!!



ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 08-19-2008, 02:54 PM


View Complete Forum Thread with Replies

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

Downloading Images
I want others to download jpgs from my gallery on web. Images are loaded dynamically into swf from external folder depending on variable (number of images), which is also loaded from external .txt. Can anyone help how to enable or create some right-click-save as -like utility like in html or how to force windows to show that tab with save as, print,.., functions ?

Re-downloading Images
Hey guys,

I haven't been doing Flash for a while and I need to do something for something that i just started.
I think I used to know how to do this, but is it possible for a flash applet to load a picture file and display it?
I would've done this in HTML or java, but i need something that will re-download a picture without re-freshing the whole screen.
Sorry if i can't explain very well, hopefully you get the picture. Any help will be appreciated

Thanks

Downloading New Images From A Database
I want to beable to create a Flash movie with a single picture on the 'wall' in a room. When a person clicks onto this picture a 'pop-up' window will open up displaying a number of new picture images (which are linked to a database). When they click onto a picture they like, it will download to a specified folder on they hard-drive, and replace the current picture on the 'wall'.

What I need to know is:
1) What language/database should I be using to display this 'pop-up' window with new images? PHP/mysql?

2) Is there anyway I am able to open up this 'pop-up' window without the usual Microsoft branding i.e I don't want people to know that they are having the information displayed in a Microsoft Internet Explorer browser page.

Downloading New Images And Saving
My Flash Movie will consist of one image on the 'wall'. This is actually a Movie Clip with a jpeg loaded in from an 'image folder'.

I want to be able to click onto the image on the 'wall', have a new window open up and a selection of new images displayed. When clicking onto one of these new images, I want it to be downloaded to the 'image folder', replacing the original image on the 'wall'.

Can this be done? I don't want it to say 'Please select a location to save image' (when you click on any of the new images to be downloaded), but I don't mind it asking if you want to overwrite the current image in the 'image folder'.

Also, if this can be done, when the new image has been downloaded, is there a 'Refresh' facilty in Flash which will allow me to view the new image striaght away on the 'wall', or do I need to recompile or reload Flash?

Uploading And Downloading Images
Hi

Can I give the options in the brower to open any image from the disk and upload it to server. And can I also download some images from the server.

Downloading Images From A Flash Site
Hi all,

I need to have some various buttons on my site that will allow the user to download hi-res PDF's. ie "click here to dowload PDF"

Whats the best way?
TX!

Uploading And Downloading Images From Server
Hi
I want my browser to open up an image from disk and upload it to the server, and than I want to download few images from the server. Can we do that in actionscript.

Downloading Externally Loaded Images
Does anyone know how i can make externally loaded images (JPG) rightclick downloadable?

I externally load the images into an MC. The "rightclick/save image" option is not workung (duhh, it's flash!) but i want it to.

Could anyone help me with this?

Martijn

ps. for an example of the gallery see parkingmartijn.tk / studies

What A Disaster - Images Downloading Multiple Times
I have different images at various points in my movie, all of which are loaded with the following code:
var myMCLoader:MovieClipLoader = new MovieClipLoader();
myMCLoader.loadClip("images/myImage", this);

This is not working well because:
1. The images do not download in the background until they are accessed on the timeline
2. Flash attempts to download them every time they appear.

I thought Flash would download each image in the background just once and then that would be it.

The preloaders I make preload content and then show it immediately once it's downloaded. How can I preload something and then use it later?

Also, if the user clicks the back button to return to the beginning of the timeline, the preloader kicks in again (it's on frame 1) and downloads the image again! I want Flash to download stuff just once.
Someone please help.

Controlling Root With MC Loaded Into Empty MC On Root
I have a movie in which there are 7-8 Empty movieclips put on the stage. I load movieclips into these on load and from some Btns on the main or root movie. Now I'm trying to change out one of these empty MCs from a MC loaded into another empty MC....If that makes any sense?? Here's the code:

code:
onPress = function () {
this.gotoAndPlay(frame);

if (code == "1"){
_parent.getURL(site, target);
}
else if (code == "0"){
fscommand("exec", fs);
}
else if (code == "2"){
_root.clipnmone.loadMovie(movie, clipnmone);
_root.clipnmtwo.loadMovie(movie2, clipnmtwo);
}
}


I'm getting the Vars clipnmone & clipnmtwo But I can't seem to hit the clip on the root movie. It's called clip4. Now, it works if I put the clip name in place of the Vars. If someone could point out what I'm doing wrong, that would be great. Thanks for your help and time on this. Oh, and I'm using Flash vers 6. So, please don't send me 2004 code. Thanks.

[AS3] _root Or Var Root = Root;
Pls.. i need help to find _root (as2) on my project AS3.

_root.gotoAndStop(2);

And AS3 I have used:

var root = root
root.gotoAndStop(2);

This is a bug ???
I can´t understand ??
Why i need white var root = root ???

Somebody know other way to do this ???


tnx for all

Questions About The Using Of Root And This.root
Hi,

I have some questions about the using of "this" and "root":

Why the following codes works:


Quote:




var r = root;
r.myText_txt.text = "Kirupa Forum";




But not this:


Quote:




root.myText_txt.text = "Kirupa Forum";




And why the following also works:


Quote:




var r = this.root;
r.myText_txt.text = "Kirupa Forum";




But not this:


Quote:




this.root.myText_txt.text = "Kirupa Forum";




Thanks and best regards

Alex

Why Stage.root.addEventListener & Root.stage.addEventListener Both Work ?
Why does:

stage.root.addEventListener
&
root.stage.addEventListener

both work ?

which one is really under which ?

Downloading A Zip
can someone tell me the actions to put in a button
that is supposed enable the user to download a zip file
the .zip file name is iconset.zip.
thanks.

Downloading
If anyone can help me. I want to make my sites available for download (fla)
How do I make that facility we always see.... ie save to disk, or view locally.

thanks tiki

Downloading And Using Fla**** FLA's
When downloading FLA's from Flashkit to learn how other do things an error occurs when opening the file.

The error is:
"This document contains embedded objects that were created for Microsoft Windows version of Flash. These embedded objects must be deleted before opening on the Macintosh."

We are running Flash 4. This error occurs with all downloads. We have also checked to make sure we are downloading Flash 4 files - which we are when getting the error.

Is there a way to open FLA files on a Mac?

Downloading
On one of the FK boards, i heared about this flash tool set.
from http://www.flashtoolset.com/ but when i download it, it
cuts me off, does anyone else have this problem? If so then
reply to this thread.

Downloading .swi
I know this is a dumb question but: I read a lot of posts that says one way to learn SWiSH is to dowload the .swi files and open them and analyze them but for some reason I can't figure out how to do this. I've looked at the help is SWiSH but can't find anything on this topic. So when someone posts their .swi file (http://www.domain.com/something.swi) how do I save it to disk to check it out?

Thanks,
LTH

Downloading
I'm making a webpage so people can download my music off of it. One prob I can make the music play with a button but dont know how to get it so other people can download it. Please help thank you

Downloading?
hi all, i am new to this flash scene ... may i ask...can one download a flash movie from a website for offline viewing /modifying etc? i will be glad if you can help cos i lost one of my movies off my hdd and would like to get it off the website!!

Downloading Pdf
I am working on a flash project for cd-rom presentation, not website. I want the user to be able to click on a link to download a pdf onto their hard drive from the cd.

What Action would I apply to get this to work correctly? I tried using the "get url" and just type in the file name, .pdf, saved in the same folder as the flash swf file, but it didn't work.

Any suggestions??

Downloading
is there a way to make your web page download a plugin that it requires for the user without them knowing and placing it in a specific file.

Downloading A Jpg From A Swf?
I would like to make an option so that the viewer can download a jpg file on to there computer. It needs to be for pc and mac users. Any help?

Downloading PDF
Am I drawing a blank? I can't figure out how to create a link that would allow the user to download a PDF (ie., a job application). As of right now, I'm embedding my flash website into dreamweaver pages and I have the button scripted as "get url http://www.employmentform.pdf
BUT I'm thinking it may need to be ....www.site name.com/employmentform.pdf
Am I on the right track or is there an easier way?

Thanks!
Kerri

Downloading
I am trying to download some of the flash movies to enter into a Web site building program so I can include them in my Web site. I am told I do not want to download an FLA file for a flash movie; only a shockwave file. However, I cannot find a way on this site to avoid downloading the FLA files for each of these flash movies. And when I download the entire movie I am unable to delete the FLA file.

Can anyone help me please.

Forrest Simmerman

Downloading
Please can someone help me with downloading files.

How do I make it so when a user clicks a button a file downloads to there desktop.

Thanks

Downloading
I need help. I'm sure this is an easy question but I'm having trouble figuring it out. It's for an online portfolio. I have a button and i want it to either open up a pdf or allow you to download a word doc. can anyone help?

Thanks

Downloading A Zip
How can I create a button to envoke a download. The Get Url file just opens the zip, doesn't ask me to download.

Thanks

Downloading A Pdf On A Cd?
I'm doing a flash presentation that will be sent out on a cd, can someone help me with having a button that will open up an external pdf file that will be included on the cd? Thanks!

Downloading
HI,

Can anyone help me with this! i intend to put a link on my site, where users can click on and download a pdf file or word doc. file. Can anyone tell me how this is done!...

thanks

M

Downloading Something
Was hoping someone could just real fast remind me how to do this...

Let's say I would like to have a .doc be downloadable... so say the name of the file is "wacko.doc" and I would like to have a link to download that on my site. What do I do?

Do I have to zip it up 1st?

Downloading An Mp3
How does one download an mp3 from the loop download section. Every time i click on download it brings up the selections and then asks me to choose among formats. I choose mp3 and it brings the loop up in quicktime. How do I download it to my hard disk?

Your help is appreciated.

PDF Downloading HOW
How can I program a Button which let the downloading of a PDF file in a computer directly!

Thanks!

Downloading
Hi Flashers!!

I'm having a problem....again.
I am trying to create a page on my website where viewers can listen to an mp3 and/or download it.
My problem is...I can't get the mp3 to download!!!

This is what I did:

I zipped my mp3's and put them in the same folder as the website SWF and HTML.
I created a download button and added the following action to it -

on (release) {
getURL("http://www.thepartymoon.com/Party Moon.zip");
}

I checked spelling and spaces and everything already.
When I view the SWF, the download button does nothing. Any ideas on what I'm doing wrong? Any advice?

Thanks!!!

Downloading 7,0,14,0
can anyone please tell me the best way to embed code in HTML that will make the user required to automatically download the newest version of Flash. I have a code now that I thought did this but if they have 6.0 or better there is no required download. I am using the latest flash video player and this is creating a problem on my site. Thanks for you help!

Downloading
Does anyone know how to have a bt in flash that the user clicks on and it automatically brings up the download window?

Thanks a bunch

Ry

Downloading A Jpg
Is there any way of having the user click on a bt in flash that pops up the download dialogue box to download a jpg with out zipping a file or putting in a pdf??? All I want is one click and boom! The download box appears! Anyone??? But doing it with a .jpg!!! not a zip!


thanks
ry

Downloading
hello fellow flashers

was just wondering if anybody knows how to add a file to a flash site so that the viewer can download it??
for example.. i am creating a website for a restaurant and they want there menu online and they want it to be able to be downloaded as a pdf ...? or word doc?.... so all they would have to do is click on the download option and download manager open up and it is on your desktop....?

any ideas?

thanx in advance

shrav

Downloading Pdf
I am working on a flash projector file that will be distributed on CD. One of the functions it needs to be capable of is download pdfÕs. They will be contained on the CD but the target audience will most likely not be able to under that they should go in to the folder to retrieve the file.

So to make it easy they should be able to click a link and had the file go to their desktop, or where ever they like, and open it's self up in acrobat or equivalent.

What must I do? I have tried get URL but that does not produce the desired result. Any help would be appreciated. Thank you.

Downloading Help
Ok, I have a link to a movie in one of my flash files. When you click the link, the movie loads in media player. I don't want it to do this so i can save bandwidth. Is there anyway to make it so when you click the link, it makes you save the movie instead of play it immediatly?

Downloading Mp3's
Hi all,

Sorry if this question has been asked before, I didn't see any posts for it.

I would like to know how I would make mp3's downloadable from my flash site. I dont just want them to stream, I would like to make them actually downloadable so people can have them on their comps. So please give me a hand ya'll. I would greatly appreciate. I have a feeling it has to do with setting a behavior but I'm not to sure...

Thx,
Shawn (Matrix1Media)

Downloading A Doc
Flash 8

Hey,
So I can script an open email command. I can script an open new web page and pdf file. I can not figure out what command to use to make something like a word file downloadable. Obviously I'm missing something simple.

Thanks for any help.

Downloading
I cant figure it out! Maybe I am not with it or something, but I click on the down load button in the free music are and I get to listen to the music...I wanna save it to use on my website!
HELP
Thanks-
Beth

Pre-downloading
I have a Flash intro page that is followed by a flash website. I am wondering if there is any code I can use to initiate the downloading of the website while the intro page is being viewed? If there is a way to do this is the code simple to insert on an actions layer of the website?

I'm also wondering if there is a way to send browsers that don't have the Flash player to an HTML (or CSS, whatever) portion of the site? I don't just want to send them a message saying they should download Flash player. I want a jump to another URL.

Downloading .swf
Is it possible to download an .swf into the cache for access at a later time rather than placing it into MC for display? Not sure if I'm wording the question properly, but I hope the idea is conveyed.

Downloading
I want to add the feature that the user could be able to download a song from within the flash website. I dont want the song to start playing but I want them to be able to download the songs so they can save them onto there computer. What code or procedure do I need to handle this for....

Downloading .pdf
I am trying to let the user download a .pdf from my site. I am using the following script which i took from the example in the help section but i don't want to use the web. By this, I mean, i want to use the "./folder/file.pdf".

import flash.net.FileReference;

var listener:Object = new Object();
listener.onComplete = function(file:FileReference) {
trace("onComplete : " + file.name);
}

var url:String = "./folder/file.pdf";
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.download(url, "name.pdf");
}

It seems that unless I put http in the string then I don't get the 'save' window up at all.
I don't understand why i can stream movies using the ./ method and this one doesn't work.
Please help me. This is driving me madder than i already am.
thanks

Downloading
I have a zip file in the same folder as the flash movie. In the movie there is a button. When the user click the button, it will direct to the zip file and start downloading it. I how to achieve this?

Downloading
I would like to have my cv on my website so that viewers can download it does anyone know the actioscript for downloading please?
thanks

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