ActionScript 3.0 :: Display Images From The Images Server As Long As The User Is Plugged Into The Domain
Jan 22, 2009
I have a flash file sitting inside of a web page in our company domain. There is another server (used to store images) that is part of the domain but is not running any web services (for security reasons). A folder on the images server is however shared in such a way that any site on the web server can display images from the images server as long as the user is plugged into the domain. For example, both I and my boss can pull up a web site on the web server and see all the information, but only he can see the images
because I have Vista Basic and no domain support. This is done via "<img src='\serverNamedirectory.'/>"
That's ok, but on this particular instance I don't want to display the image on the webpage, I want it in a SWF on the page. However the SWF can't seem to load the images even though the page it's sitting in could. I've tried tons of variations of URLRequests and Loaders, most resulting in security errors. Since most of the online discussions about these errors revolve around cross-domain access, I can't seem to find any tech support for our specific situation.
View 2 Replies
Similar Posts:
Dec 9, 2009
How to give a ms word like interface to a user so that he can enlarge and contract the display objects like Images, canvas, Hrules etc. at runtime in an web application?
View 1 Replies
Mar 31, 2011
Is there a way using flash you can display images but each one selected randomly from say an array of different images?
View 4 Replies
Aug 1, 2011
what methods and parameters of the urlloader class we have to use to display images in a flash player if possible..also movie should update everytime a new image is added to a database or filethe images can either be in a file system or in a sql database (if possible)does flash comes with an object of this type or we have to create it
View 1 Replies
Oct 9, 2009
I am using sendAndLoad heavily in my fms3.5.2 application because it accesses an API on the webserver to execute commands. It calls a PHP file on the webserver which connects to a database, does some processing and returns XML output. Now, LoadVars has been giving me problems for months now. I suspect it is the reason my application crashes intermittently.
Also, lately.. it takes about 2 minutes just for the sendAndLoad to reach the onData stage. I have no idea why. This is not a problem of the PHP taking long to display the XML because if I access the PHP directly using `links` linux command, then it returns practically immediately.
View 1 Replies
Apr 9, 2009
I've created a flash app using ActionScript 3 that basically does the following: Loads an XML file on Domain A. The XML file contains URL's to images on Domain B and Domain C.Pulls these URL's from the XML and creates Loaders Creates Flash Bitmaps out of the oader.content.When I test this on my local hard drive, the images load from Domain B and Domain C with no problem. However, when I host the flash file on a server, it's unable to load the images.
View 14 Replies
Jan 19, 2010
Is it possible to load an image(jpg, png, gif) from another domain and manipulate the pixels? I guess when the image is downloaded/copied it is in my domain.
Using the Loader and add the content to an Image component I get an error in my debugger. I guess there are some cross domain polices at work here.
But I need to be more sure how this works before moving on. I guess, if it is not possible to load the image directly I could create a local proxy.
View 2 Replies
Mar 7, 2011
Some background info: I'm trying to create a website to upload my photography portfolio to; the URL is as such [URL] So what I have done is create a parent page and created a variable that functions as a loader. Whenever a button is clicked an external swf file is loaded into that variable. And within those external swf files are additional buttons that will load an image into another loader.
Here's my question; for those of you who've tried the site will realise the images are taking an eternity to load, everything I learn about actionscript tells me this should not be the case. Each of the photographs are between 100 - 300kb in file size and really should not take more than a few seconds. This leads me to conclude theres something wrong with my code.
The code itself is nothing special, in fact it is the absolute most newbie way of creating a function eventlistener for every button. This is the code for the parent page;
var loader = new Loader();
var Xpos:Number = 440;
var Ypos:Number = 380;
[code]...
Here is where things got hectic for me for a while. I tried using the same type of code in the parent page for the external swf pages, for some reason it does not work, I had use the loader component (component's instance name is interfaceloader);
Product_A.addEventListener(MouseEvent.CLICK,Produc tA);
function ProductA(event:MouseEvent):void {
interfaceloader.source = "Product_A.jpg";
}
Once again to summarise my issues; why are 100 - 300kb images taking so long to load even on a ADSL connection and is my code part of that problem?
View 0 Replies
Apr 23, 2009
We are running FMS3 on Windows 2003 Server. Videos stream and play fine when inside our domain, but outside the domain the videos take anywhere from 20 or more seconds before playing.
After analizing the connections it was determined that the player is randomly trying to access ports until it gets to the one that works, but this is ONLY happening from people trying to view videos from outside our domain.
View 14 Replies
Mar 23, 2010
I was wondering whether it's possible to preload images into a users cache, to speed up the loading of dynamically loaded jpgs?
I've download and adapted a very nice image browser which I am using as an online portfolio. But there is quite a delay as it loads each JPG dynamically, when the user get to a specific file.[code]...
View 0 Replies
Nov 12, 2010
I am building an application loading different images related to user action. All data link from xml. My problem is that as soon as I make a load(new UrlRequest) the current image dissapears while the next image is busy loading. I need the current image to stay on screen till the next image finished loading. I also got a built in preloader.
var imgLoader:Loader = new Loader();
imgLoader.load(new URLRequest("images/start01.png"));
imgLoader.contentLoaderInfo.addEventListener(Progr essEvent.PROGRESS,preloader);
imgLoader.contentLoaderInfo.addEventListener(Event .COMPLETE,hidepreloader);
imageHolder.addChild(imgLoader);
[Code] .....
View 1 Replies
Jul 10, 2009
I am a designer with some knowledge of actionscript 2.0, but have never tried to do anything like this. Does anyone know of a good resource to see how this is done, or maybe have Fla to look at?
View 0 Replies
Jan 1, 2005
i am working on a website where i want certain images to load whenever a user clicks on a thumbnail. I want a preloader to appear before the image is displayed. I created this so far:
[Code]...
View 1 Replies
Jan 1, 2005
I am working on a website where I want certain images to load whenever a user clicks on a thumbnail. I want a preloader to appear before the image is displayed. I created this so far:
mcLoader = new MovieClipLoader();
loadListener = new Object();
mcLoader.addListener(loadListener);
mcLoader.loadClip("foto.jpeg", placeholder_mc);
loadListener.onLoadProgress = function(placeholder_mc, loadedBytes, totalBytes) {
[Code] ....
When I preview this of course I see my image, but I want to know if the preloader works. So I hit ctrl+enter again and... nothing. The progress bar (bar_mc) blinks once and then blank... a white screen... Besides, I want this code to be executed when a user clicks a thumbnail, how can I implement this on a button, while at the same time, the first thumbnail should load automatically, so there's no exmpty page when the user first opens the website?
View 1 Replies
Aug 7, 2003
Is there an easier way to display random images, for example I want it to display an image or two and then three or four second�s later change to another. I have over 100 images to display and don�t really want create each frame and place a new image on every 5 or so frame. There must be somewhere out there some action script that can do this, c
View 4 Replies
May 5, 2009
I tired importing a simple .gif image into the library and on stage, but the image is not displaying. When I right click on the image and select display in library it shows.
I am on the trial version of Adobe Flash CS4.
View 3 Replies
Nov 12, 2010
I am loading a series of images that animate a sinking log. The log sinks down in water and then rises back up so I display 3 images to sink and the same images in reverse so it rises again and repeated continually.
What I get is the images being displayed in some weird order and not in the order as in urls16?[code]...
View 6 Replies
Mar 25, 2011
I'm making a Matching Game in Flex. I want to have images from one array on my left and images from the second array on my right, so that user can drag&drop images from the left onto matching images on the right.I have mx:HBox and two mx:VBox inside. Now, how can I display images in VBox that I have in my gameArray, if the length of my array (amount of images) may differ? I would have to create as many mx:Image as the length of my gameArray, but how do I do it in MXML?
View 2 Replies
Jun 7, 2010
What is the fastest way for a Adobe AIR program program to index all images on a users' computer? Using Open Source ActionScript-3, MXML Libs and classes.
Fastest - Same pc configuration, different time (seconds) To index - get a list of absolute links (like c://bla-bla/file ) and save them into file (index.txt) All images (like JPEGs, PNGs)
View 1 Replies
Sep 14, 2011
So basically I want to make a quiz where the user identifies textures in images. The first image is of a shell. So I want the user to be able to type in their answer into a input text field, then press a "check answer" button. Then if they typed in shell "Correct" will appear in a dynamic text field or "incorrect" if they had typed in any other answer.
with the action script required for this button, I am using action script 2 in flash cs4.
I found this code on the internet but it didn't work.
on (release) {
if (input_instance_name=="correct answer"){
display_instance_name.text="Correct!";
}
[Code].....
View 1 Replies
Sep 23, 2010
I have a FileReferenceList from which I'd like to display images in a DataGrid; currently I'm getting the following error: Only one download, upload, load or save operation can be active at a time on each FileReference.Here is my DataGrid:
<s:Panel>
<mx:DataGrid id="imageGrid" width="100%" height="100%" dataProvider="{imageFiles}">
<mx:columns>
[code].....
View 1 Replies
Feb 13, 2009
What is the most simple way of loading whatever images are in folder and displaying them? If possible, not using xml/php/asp.
View 0 Replies
Oct 15, 2009
On a server I am converting an entire PDF file to one single JPG image. As an alternative I can also convert each page to one image.
I would like to display, on an HTML pages, this images with a Next and Previous button, a GO TO page, maybe Zoom.
View 0 Replies
Jul 17, 2009
i am using a function to display all of the images in a horizontal row. (this is just a snippet of the important bits)
Code: Select allfunction processXML(e:Event):void{
var myXML:XML = new XML(e.target.data);
xPos = 0;[code].........
i am sure i have all of the code i need apart from one piece which tells it that at the end of the project start a new row.
View 5 Replies
May 30, 2007
1) I bought a photo gallery that works well, but when I use it in a project I'm working on, the thumbnail images don't display, but everything else does including XML loaded text so I'm pretty sure it has to do with the actionscript and the level it's targeting.
2) I also can't figure out how to shrink the size of the full view photo which seems to also be loaded somehow with action script to a blank MC, but it may not be in the script below... there's a lot of script here that I don't understand.
View 5 Replies
Aug 12, 2009
I am creating an image gallery where the user can select from several thumbnail images. Once selected, the thumbnails will enlarge and load the full sized image. My problem is that while the user is waiting for the full sized image to load, he may decide to close that image and view another image. I am trying to find a way to stop a loader from loading.ere is the code I have used. My problem is that even though the user has clicked on the unloadBtn, the loader continues to load the file. Is there a way to disable that?
Code:
import flash.net.URLRequest;
import flash.display.Loader;
[code]....
View 4 Replies
Jun 23, 2010
I am building a portfolio site which dynamically loads large hi-res images when the user clicks on a thumnail. However I'm having problems maintaining the original image's quality when resizing it to fit the current browser. Currently I'm just adjusting the width & height properties of the image to width to the stage proportionally which is working fine getting it to fit, however I cannot figure out how to maintain image quality? Do I need to load it as a bitmap and redraw/smooth or something similar?[code]
View 1 Replies
Dec 9, 2009
I try to convert Movie snapshot at runtime and allow user to print or save images. Found examples of using AS3 JPGEncoder but I got empty image.
[code]...
View 9 Replies
Oct 26, 2008
I've got two questions; one about whether or not something is natively possible in Flash and another if there is a free or commercial component to fix the problem.I know CSS/HTML in textfields is one of the weak points of Flash, but I still would like to clear something up(couldn' find a definitive 'not possible'through google).I'm trying to display images from HTML/XML as block through CSS in a dynamic textField but can't seem to get it to work.I've tried too many variations to display one piece of code which fails, but it boils down to:
* I load XML in which headings, paragraphs and images(usually within a paragraph) are set.
* I load CSS (or generate with AS for that matter) which set's the properties of the various tags.
* Images always display inline even if just one single char fits beside it in the field. If nothing really fits beside the image,Flash still places text there which is then hidden from the reader. All attempts to have the image's display set to block fail. Also if I try
through a surrounding p-tag.
I tried all from XML.ignoreWiitespace,TextField.condenseWhite, adding p-, and br-tags. It just won't work.If there really is no (why not?!) possibility to have it done natively, does anyone know of a solution (paid or free) done previously?
View 2 Replies
May 9, 2008
Is there a tutorial somewhere that tells/shows how to display an image from a db. I have my image paths in a mysql db and I am using php to display my other text fields. I just haven't been able to get my images to show. Below is the code that I am using so far. Here is my actual goal, I am trying to have a flash document the has a list in the datagrid that is connected to a mysql db. I have successfully done this. When a user clicks on a product in the datagrid it populates the details below the grid and I have done so successfully. What I now need is to show a picture of the product in the details section. I would also like to see how to show different images for different vendors, each vendor has its own image size, so if I put just one image placeholder then some of the images will be scewed. I need something that shows image in placeholder 1 if company=1, show image in placeholder 2 if company=2, etc.
View 1 Replies