Displaying Images In Flash
Hi, Iam doing a project for university on subliminal perception. In order for me to complete my project i have to flash images up on screen very quickly.
Iam using Flash MX and was wondering if there was a way of showing images on screen for a millisecond or two?
Thanks
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 10-26-2004, 04:01 PM
View Complete Forum Thread with Replies
Sponsored Links:
Is Flash Displaying Images Or IE ?
i was wondering if when i load a movie with a image url is internet explorer displaying the image then or is flash?
the reason is with the type of transparency im using i have to save in .PNG image format and im pretty sure that not supported very well if not at all by IE, but i know flash uses them just fine.
so if i do the load movie with url image in .PNG will it not work?
http://thegaffney.com/
View Replies !
View Related
Displaying Images In Flash Through XML
i have created a simple content management system for a flash site which gets new articles from a mysql db and displays them within the site. i was asked to add an image upload to this section which i have now done and i am storing the images on the server and the paths to the images in a mysql db.
the problem that i am having is that instead of the images showing up on the pages i am just getting the path to the images. have i missed something out to get it to display the images?
here is my code (flash)
Code:
var theXML:XML = new XML();
theXML.ignoreWhite = true;
theXML.onLoad = function() {
var nodes = this.firstChild.childNodes;
for(i=0; i < nodes.length; i++) {
theTextBox.text += nodes[i].firstChild.nodeValue+newline+"
";
}
}
theXML.load("test_process.php");
and the rest (php)
Code:
$query = "SELECT * FROM internal";
$result = mysql_query($query, $link) or die("Data not found.");
$xml_output = "<?xml version="1.0"?>
";
$xml_output .= "<entries>
";
for($x = 0 ; $x < mysql_num_rows($result) ; $x++) {
$row = mysql_fetch_assoc($result);
$xml_output .= " <date>" . $row['date'] . "</date>
";
$xml_output .= " <title>" . $row['title'] . "</title>
";
$xml_output .= " <article>" . $row['article'] . "</article>";
$xml_output .= " <image>" . $row['image'] . "</image>
";
any help with this would be great. if you want to look at the test file i will pm you a link for it.
View Replies !
View Related
Displaying Images In Flash From A URL?
Hi,
is it possible to display an image in Flash dynamically that is at a specific place on the web if you have it's location?
for example if I have MySite.commypicture.jpg is there anyway I can show mypicture.jpg in Flash without having to import the picture into Flash manually?
If so how would I go about doing this - does anybody have a tutorial of this?
View Replies !
View Related
Displaying Images In Flash From A URL?
Hi,
is it possible to display an image in Flash dynamically that is at a specific place on the web if you have it's location?
for example if I have MySite.commypicture.jpg is there anyway I can show mypicture.jpg in Flash without having to import the picture into Flash manually?
If so how would I go about doing this - does anybody have a tutorial of this?
View Replies !
View Related
Displaying Images In Flash
Hi All,
I have a database that is set up like so:
This contains numbers ranging from 1-9.
ID - SYM1 - SYM2 - SYM3
-----------------------------
1 - 7 - 1 - 2
-----------------------------
2 - 3 - 1 - 5
-----------------------------
3 - 5 - 8 - 8
-----------------------------
4 - 4 - 3 - 3
etc.
I am then running a PHP page which connects to the database and drags out one record, e.g. Id 1. I'm then echoing this line out using the code:
Code:
echo ("&symbol1=$sym1&symbol2=$sym2&symbol3=$sym3&");
The output of this being:
&symbol1=7&symbol2=1&symbol3=2&
I'm then passing these variables into Flash and placing them in dynamic text fields using AS:
Code:
//Create an object to store the variables
loadText = new LoadVars();
//Load the required variables from PHP
loadText.load("http://www.mydomain.com/filepath/file.php");
//Once the variables have loaded display them in the three dynamic text field
loadText.onLoad = function() {
textarea1 = this.symbol1;
textarea2 = this.symbol2;
textarea3 = this.symbol3;
};
This all works fine, however the problem im facing is that i want the numbers to become images once inside flash, so for example if the line dragged from the database was 1, 1, 1.
I may want to display: Apple, Apple , Apple on the stage.
Whereas if the line dragged from the database was 1, 7, 2. I may want to display: Apple, Strawberry, Orange.
Can anyone offer me some advice on this?
Thanks in advance
View Replies !
View Related
Displaying Images From Xml Sheet In Flash 8
hello all i am new to this forum and am in need of some help.
i have created image viewers before where xml passes the oath to an image and the flash displays the images.
i am now trying to create a small CMS for a flash site and the images will not show. i am trying to display these images inside a text field.
i have a php page which runs queries on the mysql db and then turns these queries into an xml formatted sheet. i have a column in the db that stores the paths to the images uploaded to the server.
once the xml is passed to flash it displays the text as it should but where the images are meant to display i just get null written.
i have been trying to get this to work now for the las couple of days and i am still stuck at the same place.
View Replies !
View Related
Displaying External Php Images In Flash
Hi, I'm trying to display dynamic JPG, GIF, PNG's from my database using php. Sorta at a loss. I checked the Flash "HELP" for a while but came up with nothing that worked. Also googled everything about "images, Flash, PHP" and "Dynamically displaying images in flash. Came up with nothing. Maybe I'm a bad googler but.....
anyhow below is my simple PHP that shows an image when looked at in browser. I've tried several ways to display it in flash. It works nice if I just place the server location of my actual pic in a "loader Component", But I need it PHP-Dynamic.
~thanks for any help
<?php
session_start();
?>
<html>
<body>
<img src="user_files/thumbnail1/<?php echo $_SESSION['thumb_1'];?>"/>
</body>
</html>
Maybe someone could show me a function in flash that will display the pics using "for loop" from php database, thanks
View Replies !
View Related
Displaying Metadata From Images In Flash
I am creating a photojournalism portfolio in flash MX, and need to display caption info. Before I manually add a text field on every frame for each picture, is it possible to write a script that can access the images meta date (file info in photoshop) and load the embedded caption into my flash movie? This could save me SO much time I might cry. Many thanks.
View Replies !
View Related
Displaying Images Dynamically In Flash
hi,
i'm new to this flash php/mysql integration, and i've managed to retrieve data from the database using php and displaying it in flash, but i can't manage the displaying of images.
As far as i know you just retrieve the images location from the database and then set it to a variable like you do the text, and then use loadmovie to display it in flash. But that doesn't seem to work.
i've even gone as far as trying this:
loadMovieNum ("chat.gif", 0);
but it didn't work either...nothing appears in the flash when i view it through the browser.
Any help would be greatly appreciated...i've been working on this for three days now..and i'm going quite mad!!
Thanks,
View Replies !
View Related
Displaying Images Thru Mysql Database,php In Flash
i like wrote this
getcardimages.php
<?php
$server = "localhost";
$user = "khelorummy_d";
$pass = "khelorummy123";
$database = "khelorummy_d";
mysql_connect($server, $user, $pass);
mysql_select_db($database);
$SqlQuery = "SELECT `c`.* FROM `cards` c, `cardsets` cs WHERE c.`cardID` = cs.`cardID`";
$Result = $DBConn->ExecuteQuery($SqlQuery);
if (!Result || mysql_num_rows($Result)==0) {
$rowset = '&msg='.mysql_error().'&';
} else {
$rowset = '&n='.mysql_num_rows ($Result);
$i = 1;
while ($row = mysql_fetch_assoc ($Result)) {
while (list ($key, $val) = each ($row)) {
$rowset .= '&' . $key . $i . '=' . stripslashes($val);
}
$i++;
}
$rowset .='&';
}
return $rowset;
?>
and getcardimages.fla like this
var lvSend = new LoadVars();
var lvReceive = new LoadVars();
lvSend.SendAndLoad("http://192.168.1.9/projects/khelorummy/user/getcardimages.php",lvReceive,"get");
lvReceive.onLoad = function(bSuccess) {
if(bSuccess == true) {
for (var i:Number=0; i <= this.n; i++) {
this.root.createEmptyMovieClip("container"+i, i);
var mc = this.root["container"+i];
mc.loadMovie("http://192.168.1.9/projects/khelorummy/cards/"+this["label"+i]+".gif");
}
}
and in design mode i took one movie clip and i named it as "container". is it correct?
why images are not displaying when i execute getcardimages.swf?
plz give me right solution.
thankq
View Replies !
View Related
Displaying In Line Images In Flash Dynamic Text Box
Hello all -
I have checked out the sample in Flash MX 2004 regarding "Text Enhancements" ... I even got my file to load and scroll properly - my problem/question is this:
Sometimes the text displays fine ... but after I edit my external html file to display an inline image, the text formats to a couple of point sizes smaller, so its difficult to read.
Even after I take the image tag out of my external html file, the text size still remains the same (small) size.
Does anyone have an idea why this is OR how I can fix it?
Won't you please help?
Here are my files for reference:
main site: http://www.curtisdw.com/wellbrock/We...k_content.html (go to 'Our Story')
CSS file: http://www.curtisdw.com/wellbrock/sample.css
external html file: http://www.curtisdw.com/wellbrock/TXT/sample.html
Actionscript to load external file:var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load("sample.css");
content.styleSheet = ss;
content.multiline= true;
content.wordWrap = true;
content.html = true;
story = new XML();
story.ignoreWhite = true;
story.load("TXT/sample.html");
story.onLoad = function () {
content.htmlText = story;
}
View Replies !
View Related
Displaying Images
I was wondering how i can make my flash movie display images located in a separate folder. I would like to periodically change the images in the separate folder -- and thus the images displayed in the flash movie would be different without having to re-program my flash movie.
View Replies !
View Related
Displaying Images
Hi
Im currently recreating my portfilio page in flash and want to display some of my work.
Im not sure weather to open the images in a large flash movie or to open them in a browser window. which is best?
i have tried loading them into a window but can't get it to center on screen.
thx
DoM
View Replies !
View Related
Displaying Images Using XML
I'm really struggling with this, getting to the stage of pulling hair out by now.
Basically I have a flash file which is populated by an XML file.
It works like a stocklist. Loading in data and images.
I can't get the image part to work.
The original flash file came from someone else but I don't know who and I'm confused as to what and where to put the part about the images.
The flash file scrolls when an item title is selected to show the coresponding details to that title. The scroll part works fine and all the data except the images load in. Don't understand what I'm doing wrong!!!!!
I've attached the relevant files for you to have a look at.
Please if any one can help it's be great
View Replies !
View Related
Displaying Images...
Can anyone tell me what am I doing wrong in this code? All I'm trying to do is just display an image on my page when someone clicks the thumbnail, better yet it would be great if I can display that image in a new window....what will I have to do in order to use the popUp function in javascript? Here's my code, i had been trying all kinds of things...I know it's reading my logic, cause it does output the traces....Also, I was trying something different on button 1 for testing purposes....Pleeeease Help
var myReq:URLRequest = new URLRequest("images/image1.jpg");
var loader2:URLRequest = new URLRequest("images/image2.jpg");
var loader3:URLRequest = new URLRequest("images/image3.jpg");
var loader4:URLRequest = new URLRequest("images/image4.jpg");
var loader5:URLRequest = new URLRequest("images/image5.jpg");
var loader6:URLRequest = new URLRequest("images/image6.jpg");
var loader7:URLRequest = new URLRequest("images/image7.jpg");
var loader8:URLRequest = new URLRequest("images/image8.jpg");
var loader9:URLRequest = new URLRequest("images/image9.jpg");
var btn_1:Loader = new Loader();
var btn2:URLLoader = new URLLoader(loader2);
var btn3:URLLoader = new URLLoader(loader3);
var btn4:URLLoader = new URLLoader(loader4);
var btn5:URLLoader = new URLLoader(loader5);
var btn6:URLLoader = new URLLoader(loader6);
var btn7:URLLoader = new URLLoader(loader7);
var btn8:URLLoader = new URLLoader(loader8);
var btn9:URLLoader = new URLLoader(loader9);
btn_1.addEventListener(Event.COMPLETE, loadImage);
btn_2.addEventListener(MouseEvent.CLICK, loadImage);
btn_3.addEventListener(MouseEvent.CLICK, loadImage);
btn_4.addEventListener(MouseEvent.CLICK, loadImage);
btn_5.addEventListener(MouseEvent.CLICK, loadImage);
btn_6.addEventListener(MouseEvent.CLICK, loadImage);
btn_7.addEventListener(MouseEvent.CLICK, loadImage);
btn_8.addEventListener(MouseEvent.CLICK, loadImage);
btn_9.addEventListener(MouseEvent.CLICK, loadImage);
btn_1.load(myReq);
function loadImage (event:MouseEvent):void
{
switch (event.currentTarget.name)
{
case "btn_1" :
//trace ("button one");
//img_holder.addChild(new URLRequest("images/image1.jpg"));
img_holder.addChild(btn_1.content);
//img_holder.loader1;
//img_holder.htmlText = event.target.data;
break;
case "btn_2" :
trace ("button two");
break;
case "btn_3" :
trace ("button three");
break;
case "btn_4" :
trace ("button four");
break;
case "btn_5" :
trace ("button five");
break;
case "btn_6" :
trace ("button six");
break;
case "btn_7" :
trace ("button seven");
break;
case "btn_8" :
trace ("button eight");
break;
case "btn_9" :
trace ("button nine");
break;
}
}
View Replies !
View Related
Displaying Images From Xml
i am trying to display images taken from a mysql db in a text area inside flash 8. i can get the text taken from the db to display but for the images i just get null.
the xml sheet loaded into flash is generated from php running queries from the db. the images i want to be displayed are passed into flash from the xml sheet in the following format.
<image> <img src='image/thumbs/construction/internal/thumb87.jpg' /> </image>
i have now been trying to get this to work since last friday and would just like to know if it is possible to do this and if so where am i going wrong.
i can post any of the code i have created if needed.
View Replies !
View Related
Displaying Images At Random
Hi all,
Could someone please help me out with randomizing? I'm interested in displaying three to four graphic images one at a time and having them appear randomly (kinda like the banner ads we see on the Web).
How would I go about doing this? I'm fairly new to Actionscripting.
Thanks!
View Replies !
View Related
Displaying Images Using Actionscript
Please help! I am trying to display images using a while loop in Flash MX. I am trying to create a directory tree structure similar to what Microsoft Explorer is using. Depending on the data it would display different number of folders, sometimes maybe 20 other times maybe 75 and there might be subfolders. I have the folder image and the line image to make the connection between the folders, I just don't know how to display the images using a while loop. Is there a function to display images and pass parameters (x,y coordinates) where I would like the images to be displayed on the screen? Is there a better way? Is this even possible?
View Replies !
View Related
Images Not Displaying Correctly
I have several mc's which only contain small png images (with transparency).
When they are positioned over a background image, the ones at the sides appear normal, but the ones in the middle appear distorted. They are all instances of the original created with mc.duplicateMovieClip. I am using Flash 8 and have tried setting compression for the images in the library to Lossless and JPG 100%. Any suggestions appreciated, thanks.
The chips to the left look fine, but not so good on the middle of the table!
View Replies !
View Related
Displaying A Rating Using Images
What I want to do is display a rating for each article but using multiple pictures instead of a number. The articles are loaded in from sql and disaplyed using a browse or search, user ratings are sent with the article and displayed as a number.
I want the rating to display from 0 to 5 as pictures, so a rating of 2.5 would display as 5 little icons with 2 and a half of them normal and the other 2.5 with 30% opacity.
Just want to see how people would go about doing it, what kind of code would you write for it and would you load in movie clips for each half of an image and adjust the alpha with code or make movieclips that have all of the images already in them with the alpha pre set on them.
View Replies !
View Related
Displaying And Resizing Images
im trying to load some external photos through XML into a flash file, the photos ive got are quite big and it is going to take ages to resize them seperately,
im just trying to find out if there is a script which will resize and display my images ? ?
thanks for any help
View Replies !
View Related
Images Not Displaying In XML Slideshow - Please Help
I used the source from a XML Flash Photo Gallery tutorial and without making any changes, i uploaded it to test it -
http://mansfield-nursery.com/gallery/test.html
I could see no image. But when i run the swf file locally, i can see the images. I checked for the image location and path - everything seems to be fine. I am attaching the source files. Please check and let me know what's wrong.
Also in the gallery.as file, it has the line "ZigoEngine.register(Fuse, FuseFMP, PennerEasing);" - does the Fuse and PannerEasing gets registered automatically o do i have to install anything on the server ?!?
Thanks a lot in advance.
View Replies !
View Related
Displaying Dynamic Images Help
Hello, I have been fighting with this for days I think I've tried everything on the web and I'm just not either getting it or they are not good tutorials. Anyhow.
I have an XML database and my project is loading everything just fine. I have a node for an image thumbnail. I just can't seem to get the image to load into flash. Perhaps there is an issue with my holder? Not sure how to create one properly if someone could help me set that up I would really appreciate it.
View Replies !
View Related
Displaying Images From XML File
Okay -- so I am working on a project where I'll be using an XML file to parse info into the Flash movie. I've got the HTML formatting working great, but I can't seem to get the Flash movie to display the image I'm referencing in my IMG tag.
Here's my XML:
HTML Code:
<Rolodex>
<section id="0" name="COVER">
<blurb id="0" pagenum="1">
Quick Reference Guide 2006
</blurb>
</section>
<section id="1" name="Resources">
<blurb id="0" pagenum="2"><![CDATA[<img src="pagehead.jpg" width="778" height="55"><br><b>Contact Information</b><br>Blah,blah,blah<br>]]>
</blurb>
</section>
</Rolodex>
The <img src="pagehead.jpg" width="778" height="55"> won't display in my textfield, but the other HTML does. I'm trying to get the image to run off the local machine....am I missing something easy here? The image is in the same directory as my SWF. Thanks in advance!
View Replies !
View Related
Displaying Images For A Rating
What I want to do is display a rating for each article but using multiple pictures instead of a number. The articles are loaded in from sql and disaplyed using a browse or search, user ratings are sent with the article and displayed as a number.
I want the rating to display from 0 to 5 as pictures, so a rating of 2.5 would display as 5 little icons with 2 and a half of them normal and the other 2.5 with 30% opacity.
Just want to see how people would go about doing it, what kind of code would you write for it and would you load in movie clips for each half of an image and adjust the alpha with code or make movieclips that have all of the images already in them with the alpha pre set on them.
View Replies !
View Related
Displaying Images Dynamically
I have just configured php to work with apache. I'm totally new to php as well, which doesnt help.
What i want to be able to do is tell flash to load all my images that are linked from mysql in seperate MCs 3 rows high and 4 rows across. Id like to have a "next" button if there are more than 12 images in total as well.
I've attached a simple fla to show exactly what im trying to achieve.
Does anyone know of a tutorial or way to load movies in specific positions dynamically?
thanks for the help.
View Replies !
View Related
Displaying Images Dynamically
I have just configured php to work with apache. I'm totally new to php as well, which doesnt help.
What i want to be able to do is tell flash to load all my images that are linked from mysql in seperate MCs 3 rows high and 4 rows across. Id like to have a "next" button if there are more than 12 images in total as well.
I've attached a simple fla to show exactly what im trying to achieve.
Does anyone know of a tutorial or way to load movies in specific positions dynamically?
thanks for the help.
View Replies !
View Related
Images Not Displaying In TextArea
Hi,
I'm having difficulty getting an image to display in a textArea...
Here's the HTML:
<HTML>
<img src="../../../images/brief.gif" width="38" height="12" />
</HTML>
It works fine with displaying text and it's not anything to do with the file path as i've checked it in a browser.
The image is invisible, but does seem to displace surrounding text. I've tried putting it all in a BODY tag, but that doesn't help.
Thanks.
View Replies !
View Related
Flash 8 Dynamic Map Displaying XML Data, Problem With Displaying Text
Hello everybody...
I'm working on a project in which viewers can see a map with state parks highlighted as buttons. onRollOver a caption pops up displaying the name of the park, acreage and feet of shoreline. onRelease a movie clip is loaded into a holder. The data is being stored in an XML file integrated with a content management system... The AS for displaying the caption works fine, but I cannot get the XML data to display in the dynamic text fields contained within the caption MC. There are 37 buttons that need to display the popup and I am looking for some advice on how I can effectively navigate the XML nodes and display the data accordingly in the text fields. Below is my current code, I have not yet added the onRelease function because, I'm pretty sure that i'm going to run into the same issue that i'm having with the caption popup... The last obstacle will be that the caption is only displaying 3 of the child nodes, while the MC loaded into the holder will be displaying 7 of the child nodes. I'm guessing that using the attributes property and modifying my XML would be the easiest... but i'm relatively new to integrating XML data into Flash and am trying to minimize the work that I create for myself. If anybody could point me in the right direction, i would be immensly appreciative. Pura Vida. ~Anthony
//1st frame AS for the first button, and loading XML
var xmlPath = ("xml_mapinfo.xml");
/////////////////////////////////////
var locID:Number = 0;
/////////////////////////////////////
startDrag(this.caption, true);
/////////////////////////////////////
btn_1.onRollOver = function (){
set ("locID", 1);
RollOver();
ShowData();
}
btn_1.onRollOut = function (){
RollOut();
}
/////////////////////////////////////
function RollOver (){
trace("rollOver occured");
_root.x = 1;
this.caption.words = "Word!";
trace ("Location ID = " + locID);
}
function RollOut (){
trace("rollOut occured");
set ("locID", 0);
_root.x = 0;
this.caption.words= " ";
trace ("Location ID = " + locID);
}
/////////////////////////////////////
function ShowData(){
this.caption.location_txt.text=contentMain.owner['1'];
this.caption.acreage_txt.text=contentMain.acreage['1'];
this.caption.acreage_txt.text=contentMain.shorelin e['1'];
}
/////////////////////////////////////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
owner = [];
interest = [];
town = [];
established = [];
acreage = [];
shoreline = [];
thumbnail = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
owner[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
interest[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
town[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
established[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
acreage[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
shoreline[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;
thumbnail[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;
}
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(this.xmlPath);
//AS on actual caption MC
//////////////////////////////
onClipEvent (enterFrame) {
if (_root.x==1) {
this._alpha = 80;
} else {
this._alpha = 0;
}
}
_
View Replies !
View Related
Displaying Base64 Encoded Images
Hi Guys
We are writing an application which is heavily reliant on a PHP backend database which will be running oracle. We want to cut down the number of calls to this backend to the minimum to free up server resources.
One of the major calls to the backend is in loading jpg's and sw'f to display in the client flash movie. Most of these images are very small - some only a few bytes so we want to find a way of loading multiple images in one hit to the backend. At the moment the php interface returns the images in a base64 encoded format.
So my question is - how can I display an image that is returned in a sendandload request encoded as a base 64 string.
Can it be done?
Is there any other way of loading more than one image per back end hit?
Thanks
Giles Roadnight
View Replies !
View Related
General Question About Displaying Images In AS3...
So I'm trying to take the leap from time line coding to pure AS3 coding and it's been rough .
My question is what is the best way to display an image in AS3? I've read up on the Bitmap/BitmapData class but having trouble deciding if that's what I need because I'm having a hard time doing simple animations with my display objects such as fades and tweens. Is it even possible to do such things with Bitmap objects?
View Replies !
View Related
Preloading Images In An Array Without Displaying Them
How would I go about preloading the image links that are stored in an array without displaying them?
I'm thinking - use createEmptyMovieClip for however many images there are - and load them all offstage, but im sure theres a better way of doing this. caching? I dont know
(fyi, my objective is to have Flash know the dimensions of each image before it is displayed onstage. I know php can do this, but id rather find an alternative )
View Replies !
View Related
Displaying External Bitmap/Images
I tried using this code to display an External image, and I can load SWF file, but when it comes to image file(jpg, png, gif etc.), an error occurs saying that Loaded file is unknown, anybody knows why it happens?
Quote:
import flash.display.Loader;
import flash.net.URLRequest;
var request:URLRequest = new URLRequest("img/image1.jpg");
var loader:Loader = new Loader();
loader.load(request);
addChild(loader);
View Replies !
View Related
Loaded Images Displaying 1/2 Size
I've reworked the code in the load_images.fla from the Samples folder within Flash MX. It calls out to an images folder and loads a series of .jpgs into a defined area of the stage and fades them in and out. The stage is just a bit larger than the defined area
The images are all 160 x 120 pxls. When ever the .html page is viewed in any browser they all load in at about half that size. If you right click you can Zoom In and they appear at the correct size. I can also drag the images around on the stage.
I've tried all of the options in Publish Settings; Match Movie and Pixels and also the and also all of the Scale options but the movie always loads the same way. Too Small! I also want to "Lock Em Down" so they can't be moved or resized at all.
Any ideas, suggestions would be most welcome!
Belbz
View Replies !
View Related
Displaying Images Contained Within An Array
How would would you display all the images within an array? This is as far as I've gotten so far...
var images:Array = new Array;
images[0] = "1.jpg";
images[1] = "2.jpg";
for (i=0;i<images.length;i++) {
...
...loadMovie(images);
}
Edited: 12/14/2006 at 12:25:27 PM by fwitt
View Replies !
View Related
Images- Dynamic Loading/Displaying
I'm trying to create something that will load a bunch of images into an array and then be displayed whenever needed via using the attachMovie() function.
Code:
for (var i=1; i<list.length; i++) { //list is an array full of urls to images
_root.createEmptyMovieClip("img"+i,i);
loadMovie(list[i], "_root.img"+i);
}
I dont think this is what I want because I dont acually want the images to appear right here (this is the loading part). What I want is each image to be in a seperate symbol with a unique identifier so that I can create them dynamically during runtime.
I hope you can help me, I havn't worked with flash for about half a year so I've forgotten a lot of things.
Hope you can help, thanks in advance!
View Replies !
View Related
Displaying Images In A List Component.
Hey all,
I am trying to create a thumbnail viewer using a list component. I used list.cellRenderer to display a test image and it displays that image about 50 times vertically down the list component.
Can anyone direct me on how to use this component with images?
Thanks.
View Replies !
View Related
Images- Dynamic Loading/Displaying
I'm trying to create something that will load a bunch of images into an array and then be displayed whenever needed via using the attachMovie() function.
Code:
for (var i=1; i<list.length; i++) { //list is an array full of urls to images
_root.createEmptyMovieClip("img"+i,i);
loadMovie(list[i], "_root.img"+i);
}
I dont think this is what I want because I dont acually want the images to appear right here (this is the loading part). What I want is each image to be in a seperate symbol with a unique identifier so that I can create them dynamically during runtime.
I hope you can help me, I havn't worked with flash for about half a year so I've forgotten a lot of things.
Hope you can help, thanks in advance!
View Replies !
View Related
Xml Images Not Displaying When Viewed On Server
I'm loading several images via an xml file. When viewing the swf locally (Flash preview or embedded in html in a browser) everything displays perfectly.
However, once uploaded to any server (I've tried several) some of the images don't display. It seems very random, some display, some don't. In one instance the image appears briefly then disappears, so I know it is parsing the xml correctly and the image is getting into Flash, then something is causing it not to display.
Is this some known Flash bug? has anyone experienced this before and have a solution?
View Replies !
View Related
Displaying Images In Center Of User's Screen
Hello all,
I'm new to these forums and fairly new to Flash. I've learned quite a bit just from lurking here, and find that some of you experts are down-right heroic in the help you give newbies like me. So here I am with a question which I believe may be simple to answer for some of you.
I've been creating a simple portfolio for my freelance illustration business. So far I have an image scroller with a series of thumbnails which will eventually be used to display the larger version of each piece of work, which is where I need help.
I'm trying to achieve the following format/effect: When a user clicks the thumbnail in the image scroller, I would like the large version to "pop-up" in its own window in the center of the user's screen. As the "pop-up" of the larger version is displayed, the main movie behind dims down but is still visible. For a good example of what I mean, check out http://www.aeiko.net and go to the 'artwork' section.
Can anyone point me in the right direction to achieve this? I'm guessing it's simple, but I really am a true newbie.
Thanks in advance if anyone can at least give point me to a tutorial.
View Replies !
View Related
[FCS3] Firefox Not Displaying Loaded Images
BTW this is Flash CS3 Actionscript 2.0 though.
I have created a website, http://www.stephenkiers.com/, for a client and am now testing it live on the server after testing it on my local machines fine. The problem is that for some reason the images (contained in a xml document) won't display in firefox or safari. The flash document seems to load the image, it just won't display it. The more confusing part is it works fine in IE 7 on PC.
the code to load the images is below.
Sorry if it messy, most of it was written by me, and some is modified from anothers work....
Keyframe1
Code:
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
////////////////////////////////////////////////////////
if (picturenumber == 1) {
picturenumber = numberofpictures;
gotoAndPlay("set_variable");
}
else if (picturenumber != 1) {
picturenumber -= 1;
gotoAndPlay("set_variable");
} ;
////////////////////////////////////////////////////////
} else if (Key.getCode() == Key.RIGHT) {
////////////////////////////////////////////////////////
if (picturenumber != numberofpictures) {
picturenumber += 1;
gotoAndPlay("set_variable");
}
else if (picturenumber == numberofpictures) {
picturenumber = 1;
gotoAndPlay("set_variable");
};
////////////////////////////////////////////////////////
}
};
numberofpictures = 50;
picturenumber = 1;
loadVariables("pictures.asp","");
Keyframe 30- used to confirm how many pictures there are:
Code:
if (picture1caption == "none") {numberofpictures -= 1};
if (picture2caption == "none") {numberofpictures -= 1};
if (picture3caption == "none") {numberofpictures -= 1};
if (picture4caption == "none") {numberofpictures -= 1};
if (picture5caption == "none") {numberofpictures -= 1};
if (picture6caption == "none") {numberofpictures -= 1};
if (picture7caption == "none") {numberofpictures -= 1};
if (picture8caption == "none") {numberofpictures -= 1};
if (picture9caption == "none") {numberofpictures -= 1};
if (picture10caption == "none") {numberofpictures -= 1};
if (picture11caption == "none") {numberofpictures -= 1};
if (picture12caption == "none") {numberofpictures -= 1};
if (picture13caption == "none") {numberofpictures -= 1};
if (picture14caption == "none") {numberofpictures -= 1};
if (picture15caption == "none") {numberofpictures -= 1};
if (picture16caption == "none") {numberofpictures -= 1};
if (picture17caption == "none") {numberofpictures -= 1};
if (picture18caption == "none") {numberofpictures -= 1};
if (picture19caption == "none") {numberofpictures -= 1};
if (picture20caption == "none") {numberofpictures -= 1};
if (picture21caption == "none") {numberofpictures -= 1};
if (picture22caption == "none") {numberofpictures -= 1};
if (picture23caption == "none") {numberofpictures -= 1};
if (picture24caption == "none") {numberofpictures -= 1};
if (picture25caption == "none") {numberofpictures -= 1};
if (picture26caption == "none") {numberofpictures -= 1};
if (picture27caption == "none") {numberofpictures -= 1};
if (picture28caption == "none") {numberofpictures -= 1};
if (picture29caption == "none") {numberofpictures -= 1};
if (picture20caption == "none") {numberofpictures -= 1};
if (picture31caption == "none") {numberofpictures -= 1};
if (picture32caption == "none") {numberofpictures -= 1};
if (picture33caption == "none") {numberofpictures -= 1};
if (picture34caption == "none") {numberofpictures -= 1};
if (picture35caption == "none") {numberofpictures -= 1};
if (picture36caption == "none") {numberofpictures -= 1};
if (picture37caption == "none") {numberofpictures -= 1};
if (picture38caption == "none") {numberofpictures -= 1};
if (picture39caption == "none") {numberofpictures -= 1};
if (picture40caption == "none") {numberofpictures -= 1};
if (picture41caption == "none") {numberofpictures -= 1};
if (picture42caption == "none") {numberofpictures -= 1};
if (picture43caption == "none") {numberofpictures -= 1};
if (picture44caption == "none") {numberofpictures -= 1};
if (picture45caption == "none") {numberofpictures -= 1};
if (picture46caption == "none") {numberofpictures -= 1};
if (picture47caption == "none") {numberofpictures -= 1};
if (picture48caption == "none") {numberofpictures -= 1};
if (picture49caption == "none") {numberofpictures -= 1};
if (picture50caption == "none") {numberofpictures -= 1};
Keyframe 31
Code:
if (picturenumber == 1) {src = picture1;srcname = picture1caption;}
else if (picturenumber == 2) {src = picture2;srcname = picture2caption;}
else if (picturenumber == 3) {src = picture3;srcname = picture3caption;}
else if (picturenumber == 4) {src = picture4;srcname = picture4caption;}
else if (picturenumber == 5) { src = picture5;srcname = picture5caption;}
else if (picturenumber == 6) {src = picture6;srcname = picture6caption;}
else if (picturenumber == 7) {src = picture7;srcname = picture7caption;}
else if (picturenumber == 8) {src = picture8;srcname = picture8caption;}
else if (picturenumber == 9) {src = picture9;srcname = picture9caption;}
else if (picturenumber == 10) {src = picture10;srcname = picture10caption;}
else if (picturenumber == 11) {src = picture11;srcname = picture11caption;}
else if (picturenumber == 12) {src = picture12;srcname = picture12caption;}
else if (picturenumber == 13) {src = picture13;srcname = picture13caption;}
else if (picturenumber == 14) {src = picture14;srcname = picture14caption;}
else if (picturenumber == 15) {src = picture15;srcname = picture15caption;}
else if (picturenumber == 16) {src = picture16;srcname = picture16caption;}
else if (picturenumber == 17) {src = picture17;srcname = picture17caption;}
else if (picturenumber == 18) {src = picture18;srcname = picture18caption;}
else if (picturenumber == 19) {src = picture19;srcname = picture19caption;}
else if (picturenumber == 20) {src = picture20;srcname = picture20caption;}
else if (picturenumber == 21) {src = picture21;srcname = picture21caption;}
else if (picturenumber == 22) {src = picture22;srcname = picture22caption;}
else if (picturenumber == 23) {src = picture23;srcname = picture23caption;}
else if (picturenumber == 24) {src = picture24;srcname = picture24caption;}
else if (picturenumber == 25) {src = picture25;srcname = picture25caption;}
else if (picturenumber == 26) {src = picture26;srcname = picture26caption;}
else if (picturenumber == 27) {src = picture27;srcname = picture27caption;}
else if (picturenumber == 28) {src = picture28;srcname = picture28caption;}
else if (picturenumber == 29) {src = picture29;srcname = picture29caption;}
else if (picturenumber == 30) {src = picture30;srcname = picture30caption;}
else if (picturenumber == 31) {src = picture31;srcname = picture31caption;}
else if (picturenumber == 32) {src = picture32;srcname = picture32caption;}
else if (picturenumber == 33) {src = picture33;srcname = picture33caption;}
else if (picturenumber == 34) {src = picture34;srcname = picture34caption;}
else if (picturenumber == 35) {src = picture35;srcname = picture35caption;}
else if (picturenumber == 36) {src = picture36;srcname = picture36caption;}
else if (picturenumber == 37) {src = picture37;srcname = picture37caption;}
else if (picturenumber == 38) {src = picture38;srcname = picture38caption;}
else if (picturenumber == 39) {src = picture39;srcname = picture39caption;}
else if (picturenumber == 40) {src = picture40;srcname = picture40caption;}
else if (picturenumber == 41) {src = picture41;srcname = picture41caption;}
else if (picturenumber == 42) {src = picture42;srcname = picture42caption;}
else if (picturenumber == 43) {src = picture43;srcname = picture43caption;}
else if (picturenumber == 44) {src = picture44;srcname = picture44caption;}
else if (picturenumber == 45) {src = picture45;srcname = picture45caption;}
else if (picturenumber == 46) {src = picture46;srcname = picture46caption;}
else if (picturenumber == 47) {src = picture47;srcname = picture47caption;}
else if (picturenumber == 48) {src = picture48;srcname = picture48caption;}
else if (picturenumber == 49) {src = picture49;srcname = picture49caption;}
else if (picturenumber == 50) {src = picture50;srcname = picture50caption;}
MovieClip.prototype.fadeIn = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha += 5;
} else {
delete this.onEnterFrame;
}
};
};
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
_root.pictures._alpha = 0;
_root.bar._visible = true;
_root.loadtext._visible = true;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
_root.bar._width = (lBytes/tBytes) * _root.barwidth;
_root.loadtext.text = Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
//_root.pictures._alpha = 100;
_root.pictures.fadeIn();
_root.bar._visible = false;
_root.loadtext._visible = false;
trace(targetMC+" finished");
};
//default image
my_mc.loadClip(src, "_root.pictures");
_root.desctxt.text = srcname;
Keyframe 45
Code:
stop();
Please ask as many questions as needed, I would love to help you help me find an answer.
View Replies !
View Related
[CS3] Loading And Displaying Images Based On Tags Or
Hello there,
I work for a visual arts company in Derby UK and I am looking into creating an interactive installation. This is all just coming together in my head today and was wondering if anyone can give me a few pointers to get started.
I want to create a flash application that will:
a. Capture a user photo from webcam or from uploading an image (i think i've got this bit covered).
b. The user will then answer questions or input data. Name, age, sex etc.
c. The image and values will then be stored together in an external swf?
A second application will then load images based on selected value eg. people called Tom and display all the jpgs/swfs that match the criteria. The images will be placed randomly or in rows/columns.
I am sure this is possible with flash and may already be a similar application already out there. But if anyone can give me a point in the right direction then I would appreciate it and I can research deeper.
Alternatively if anyone is interested in developing this with me, it needs to be done by mid September, please let me know.
thanks
darius
View Replies !
View Related
Images Not Displaying In Basic Photo Gallery
I've scanned the forums for a similar problem but haven't found anyone else puzzled by this, so here goes:
When playing the .swf described in the basic photo gallery tutorial (not the one using xml), the first image displays but none of the others does. I'm using eight images; arrow-keying forward eight times brings me back to the first image with nothing in between.
I have not changed a period of the sample code except to exchange the image file names and the path to their destination folder. Here's how those two lines look:
Code:
this.pathToPics = "images/";
and
Code:
this.pArray = ["1912lumber1.jpg", "1912lumber2.jpg", "1912street1.jpg", "1912street2.jpg", "1945floodclip.jpg", "1956flood.jpg", "1990flood1.jpg", "1990flood2.jpg"];
The *images* folder is in the same folder as the .fla and .swf. And, yes, I've checked multiple times to make certain the image names are spelled correctly.
Using Flash MX (not 2004). Any help appreciated.
View Replies !
View Related
|