Backend/db Image Display
Okay, dont know if this is actually possible but ill ask anyway....
Is there a way in which you can store an actual image or a pointer to the image in a dbase and then retrieve it for display in flash??
Or is there a workaround to achieve this???
Thanks to anyone who reads and/or responds
Flag
FlashKit > Flash Help > Flash MX
Posted on: 10-28-2003, 08:23 PM
View Complete Forum Thread with Replies
Sponsored Links:
Best Way To Display Spreadsheet Data In Flash? (no Backend)
i was wondering what anyone's advice would be on the best way to display spreadsheet data in flash? specifically, time series data i would preferably like to display in bar or line format. while i would like the user to be able to dynamically change the properties of the chart, the data itself will *not* be pulling off of a mysql, generator or other backend table. (perhaps xml?)
i know there is swiff chart and wa chart out there but if there this an extension (read: *free*) (also, i dont need it to be that comprehensive) that does all this, that would be much preferred.
any advice greatly appreciated.
yjk
View Replies !
View Related
Backend Scope/info Display Problem
I am using an Apache web server (last release) with a Win 32 OS. When i try to load data into my flash site dynamically on my local machine it works (this is the case for loading XML data from a file or retrieving info from servlets i query). Although when i try to run the site remotely (on a computer not on the network via the internet) it does not load or possibly it just doesnt display. I have absolutely no idea why this happens, so if any one has any ideas please let me know because it is very annoying, and its making my web site a bit.... errrr rubbish.
Thanks in advance!
View Replies !
View Related
Detect Flash / Display If Have / Display Image If Not.
Im using PHP so this is for "programmers" who use flash (or anyone who knows php enough to make a detection script).
I need to have a flash movie displayed on a page if it can determine whether or not the browser has the flash plugin. If it doesn't (ie can't tell what version, no plugin, etc) then I want it to display a GIF/jPg instead.
Using PHP and Flash 5
Help appreciated.
View Replies !
View Related
[F8] Display Inside MC A Bigger Image But Only Display Image Inside Size Of MC
Hey...
I have an easy question,
I want to display an image that is being loaded inside a Movie Clip which is working as a picholder...
This movie clip has borders and the size of the mc (the size that the borders create) is: 200 x 150
But the image that is being loaded inside the MC is bigger than the mc...how can i tell flash to only load just 200 x 150 of the picture ? AND/OR automatically resize the picture to fit the MC size
Any ideas?
Thanx for the reply!
View Replies !
View Related
Image Display
I got a link from flashkit somewhere that took me here once there click on ‘the space’ the way the images are displayed really stood out and im trying to recreate that effect. Here is what I have so far…
The problem I have been having is with the resizing of the buttons that I have used, they seem to freeze up the movie. any tips on how to add a speed / acceleration value to my clips as as they change would be nice.
As always, any help is greatly appreciated.
Thanks.
Oh.. flash mx 2004 only, sorry.
View Replies !
View Related
XML Image Display
I trying to display a single image and a couple lines of text in Flash . I have a XML script that updates itself and I just want flash to pull this updating info. I would like to have transitions but one step at a time here.
Okay here is the XML File I'm using:
Code:
<?xml version='1.0' encoding='utf-8'?>
<now_playing playing="1">
<song>
<title><![CDATA[Dance, Dance]]></title>
<artist><![CDATA[Fall Out Boy]]></artist>
<album><![CDATA[From Under the Cork Tree]]></album>
<genre><![CDATA[Alternative]]></genre>
<kind>Protected AAC audio file</kind>
<track>3</track>
<numTracks>13</numTracks>
<year>2005</year>
<comments><![CDATA[]]></comments>
<time>180</time>
<bitrate>128</bitrate>
<urlAmazon>http://www.amazon.com/exec/obidos/redirect?tag=Akersone-20%26link_code=xm2%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=B000929AU0%2526tag=Akersone-20%2526lcode=xm2%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/B000929AU0%25253FSubscriptionId=03AKJ1J6S0FY8K0WRER2</urlAmazon>
<imageSmall>http://images.amazon.com/images/P/B000929AU0.01._SCTHUMBZZZ_.jpg</imageSmall>
<image>http://images.amazon.com/images/P/B000929AU0.01._SCMZZZZZZZ_.jpg</image>
<imageLarge>http://images.amazon.com/images/P/B000929AU0.01._SCLZZZZZZZ_.jpg</imageLarge>
<file><![CDATA[03 Dance, Dance.m4p]]></file>
<artworkID>defecf1f0160862aa242443d91964d74</artworkID>
</song>
</now_playing>
Using the displaying XML data in flash tutorial I was abel to get the text that I want display using this ActionScript code:
Code:
function loadXML(loaded) {
if (loaded) {
_root.artist = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.title = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
band_txt.text = _root.artist;
song_txt.text = _root.title;
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("now_playing.xml");
I just want to be able to pull the imageLarge tag from the XML in to the flash movie. This XML changes everytime the song that I'm listening on
iTunes changes so I would like to have the Actionscript refresh say like every 4 minutes and have a transition for the new info. Any help to get me started in this direction would be great.
Thanks ahead of time.
View Replies !
View Related
Image Display In Xml ?
in my new site, the blog is in xml format. is there anyway to include a thumbnail picture if i were to do so through a link?? i want to be able to include an 80x80 thumbnail or somethin. aight, ill just let yall answer
thanks
View Replies !
View Related
Display Dynamic Image
Using Flash MX -- >I'm displaying a list of registered users, using duplicate movie from a database and asp... Now, I want to display a little icon according to the user status (online/offline).
Later, I would like to have a button for each user linking to a asp page (direct_message?user_id=15&from_user=72.....)
But FOR NOW MY PROBLEM IS
WITH ACTIONSCRIPT, cause I still using duplicate, how to display an image according to a boolean variable. Here is my code. Thanks for helping.
Merci beaucoup
for (i=0; i<Name_length; i++) {
duplicateMovieClip(Nom, "Nom" add i, profond);
setProperty("Nom" add i, _y, yposition);
Nom.Nom = Nom_tab[1];
set("Nom" add i add ".info", Nom_tab[i]);
...
duplicateMovieClip(Age, "Age" add i, profond);
setProperty("Age" add i, _y, yposition);
Age.Age = Age_tab[1];
set("Age" add i add ".info", Age_tab[i]);
yposition = yposition+18;
...
I'm stuck there, wanna display offline.gif or online.gif
depending on Status_tab[1] (boolean value)
View Replies !
View Related
Image Display Anomoly
Im working with 3 Movie Clips:
Parent 1
Child 2
Child of Child 3
The Parent also contains 4 buttons, each with the same code attached:
on (release) {
currentPresImage="liquidPics/large/plant2Large.jpg";
//currentPresImage="liquidPics/large/backbarlarge.jpg";
tellTarget(2){
gotoAndPlay(10);
}
}
The code changes the value of the variable "currentPresImage" to a string URL indicating the source of the image file corresponding to the released button.
Current pres image is then used in the first frame of the child clip "2" as follows:
loadMovie(_parent.currentPresImage, "3");
which loads the image indicated by currentPresImage into the cild of child clip 3.
Now for the problem.............
The code works fine for 2 out of the four images but for some reason the other 2 dont appear when I test the movie.
eg. the button with the following code works fine:
on (release) {
currentPresImage="liquidPics/large/plant2Large.jpg";
//currentPresImage="liquidPics/large/backbarlarge.jpg";
tellTarget(2){
gotoAndPlay(10);
}
}
but when the button with this code is released:
on (release) {
currentPresImage = "liquidPics/large/backbarlarge.jpg";
tellTarget (imageSwap) {
gotoAndPlay(10);
}
}
the loaded image isnt visible..??????????????
I have checked the value of currentPresImage and it is changed correctly.
Also, when I add the code from the "working" button to a "broken" one, it works but only to display the working buttons image.
The URL's are definately correct.
It seems as if its something to do with the images themselves.
Any suggestions??
View Replies !
View Related
Image Display Probs
Im working with 3 Movie Clips:
Parent 1
Child 2
Child of Child 3
The Parent also contains 4 buttons, each with the same code attached:
on (release) {
currentPresImage="liquidPics/large/plant2Large.jpg";
//currentPresImage="liquidPics/large/backbarlarge.jpg";
tellTarget(2){
gotoAndPlay(10);
}
}
The code changes the value of the variable "currentPresImage" to a string URL indicating the source of the image file corresponding to the released button.
Current pres image is then used in the first frame of the child clip "2" as follows:
loadMovie(_parent.currentPresImage, "3");
which loads the image indicated by currentPresImage into the cild of child clip 3.
Now for the problem.............
The code works fine for 2 out of the four images but for some reason the other 2 dont appear when I test the movie.
eg. the button with the following code works fine:
on (release) {
currentPresImage="liquidPics/large/plant2Large.jpg";
//currentPresImage="liquidPics/large/backbarlarge.jpg";
tellTarget(2){
gotoAndPlay(10);
}
}
but when the button with this code is released:
on (release) {
currentPresImage = "liquidPics/large/backbarlarge.jpg";
tellTarget (imageSwap) {
gotoAndPlay(10);
}
}
the loaded image isnt visible..??????????????
I have checked the value of currentPresImage and it is changed correctly.
Also, when I add the code from the "working" button to a "broken" one, it works but only to display the working buttons image.
The URL's are definately correct.
It seems as if its something to do with the images themselves.
Any suggestions??
View Replies !
View Related
Product/image Display
I need an intresting way to display images. I need to have a neat system with photos, and details of the same photos, for a product the company is trying to sell. I want to stay away from the basic like 25 box, thumbnail, you click, and the close ups come up that way. check out www.paperdenim.com and www.joesjeans.com I like how their galley sections work. Anyone have any ideas, or can help me in the correct direction of producing a similar effect.
Let me know.
-G.Guru.
View Replies !
View Related
Using A Variable To Display An Image
Hello everyone,
I was wondering if it's possible to display an image depending on the contents of a variable, for example; I am creating a quiz and if a user gets 7 or more out of ten they pass, less than 7 and they fail, i would like to display the image according to their results.
I was thinking maybe some kind of if statement
if (score>=7)
{
show image 1;
}
else
{
show image 2;
}
The problem is I don't know the code for displaying the images, can anyone help?
View Replies !
View Related
Background Image Display,
hello, I wanted to have a graphic display behind my flash movie,
so I looked at changing the html, that changed the background and the background of the movie changed to black, so that when the preloader started, it was just black, with a few colors showing, my question is if I wanted a background graphic to display behind the movie, could I create a larger file with the background graphic loading first, then I want to load movie, to a larger swf file, and I think from reading some other tutorials that I sould be able to make the background transparent allowing the background graphic to diaplay behind the main movie.
I am just a beginner so I know this may seem simple but to me I cant figure out the GUI, the action script makes the most sense to me, but the GUI Im lost.
I tried a variety of action scripting to try and get the background to load the main movie, http://www.musicforthemoment.net/fla...way/index.html
View Replies !
View Related
Loader That Display % Of An Image
how do i go about creating a loader that displays a % of an image as it loads
just say if it was the word load it would display L then after 25% of the movie loading it would Display LO etc is it done with a movie clip stoping on certain frames if so what actionscript would be required
thanks
View Replies !
View Related
How To Display Image In DataGrid?
anyone knows how to display images in dataGrid use AS 3.0 ?
what i wanna do is let one column to display thumbnail images.
In AS 2.0 , it's quit simple use DataGridColumn.cellRenderer="ImageRendererClassNam e" and create the ImageRendererClassName Class.But i don know how to do it in AS 3.0, or I should say i don know how to create the ImageRendererClass in AS 3.0, because i tried to do it in the AS 2.0 way, it doesn't work.I read on the adobe help liveDoc , it also says using DataGridColumn.cellRenderer="ImageRendererClassNam e" , but there 's no example of how to create that ImageRendererClass.
So, does anyone know how?
Thanks!!!
View Replies !
View Related
Dynamic Image Display
Hi!
I have several images with thumbnails and when i click to thumbnail then image display in specific area and between thumbnail i have 3 buttons (grow, shring and delete) i want these buttons performs in all images means when i click to thumbnail then image will display and when i click to seocnd thumbnail then one more image display and then i click to grow button then both images should be grow and when i click to delete button then select image should be delete.
Plz tell me how i can solve this problem.
Kamran
View Replies !
View Related
Dynamically Display An Image
Hey Guys,
Been searching and searching and I know this should be simple, but all I can find is loading of external images. For reference, I'm new to actionscript, but a programmer by trade, so catching on very quickly. Anyways, I have a frame in my movie where the user hits the end of the animation, and I need to change the background based on a variable. I have two PNG files in the library:
YOURSCORE_0.png
YOURSCORE_1.png
I need to display one of these two images based on a variable called "q1" equaling 0 or 1. I'll then be using the same actionscript to display other images such as the user's score and checks vs X's over top of it. I'm thinking there's got to be a way to make a symbol that I can swap the bitmap for on the fly, or something like that.
Thanks,
Ben
View Replies !
View Related
Display Dynamic Image
I am passing an object, a jpg in this case, to an actionscript function.
I need to take this image and display it.
What would be the best way to do this?
Create an MC or something else?
Thanks,
View Replies !
View Related
Lag Between OnLoadInit And Image Display
(may have been submitted incomplete by accident)...
Hi. This is a stripped down version of my slide show for trouble shooting.
Setup:
I have a slide show that dynamically loads images one after the other.
MovieClipLoader is used to monitor image download
onLoadInit initiates setInterval to delay a function called doIt(), that in turn, uses MovieClipLoader to load the next image.
Problem: If the image is large (many of them are 1MB+), there exists a significant lag between when onLoadInit is fired, and when the image actualy displays.
This results in an image effectively being "skipped over", since the setInterval call has been made during this lag, and if the lag is greater than the setInterval delay, the image flashes for a fraction of a second and continues on with the next load...
Code:
var myImageLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
var interval:Object = new Object();
myListener.onLoadInit = function(target_mc:MovieClip) {
//image loaded and ready... delay upload of next image.
interval.id = setInterval(doIt, 2000);
};
myImageLoader.addListener(myListener);
// array of image paths
var arr:Array = new Array("img/01.jpg","img/02.jpg","img/03.jpg","img/04.jpg");
// counter to cycle through the array of images
var p:Number = 0;
var total:Number = arr.length;
var target_mc = this.createEmptyMovieClip("target",this.getNextHighestDepth());
function doIt(){
clearInterval(interval.id);
// increment and loop p
p = (p>=total-1) ? 0 : p+1 ;
// stop the show after a number of slides... used to make sure clearInterval is working.
if(interval.id < 6){
myImageLoader.loadClip(arr[p], target_mc);
}
};
// load the first image... kicks off the slide show
myImageLoader.loadClip(arr[p], target_mc);
what needs to be done so that I can assure that an image will actually be displayed for a certain period of time, before the next one is loaded?
i.e. in addition to onLoadStart, onLoadProgress, onLoadComplete, onLoadInit, and onLoadError, there should be something along the lines of a "onYouAreActuallySeeingThis"
Thanks for any help.
View Replies !
View Related
Display Image W/ Actionscript?
I have a button that displays an image on the 'over' event. This was done through the Flash GUI, as in double-clicking the button.
I also have added a stop command on mouse-rollover and play command on mouse-rollout for the same button. This was done through Actionscript.
The button works as I want it to; however, inadvertently the image has the same characteristics as the button. If I mouse over the image or the area where the image should be the image appears.
I'm thinkin' that I need to need to display the image programmaticaly......
Any suggestions??
View Replies !
View Related
Image Display Bug In Flash 9?
hello all,
i'm having a strange image display problem where i load an external image onto the stage, then at runtime if i put a sprite over part of that image, say a pulldown menu covers the image temporarily, after the sprite goes away the image repaints with a 2 or 3 pixel offset from the uncovered part of the image.
this happens regardless of any dpi adjustment in the image or the image format (.jpg, .png, .gif). this happens regardless of whether i load from an external file or from the library.
any clues?
michael
View Replies !
View Related
Display Image If No Cam In AV Chat
I'm working on a chat program that can have up to four clients. Each client attaches its camera to a netstream, publishes the netstream, and plays the netstreams for the other three users. If a client does not have a camera, how can I display an image instead? It still needs to pass a netstream with the audio to the other clients. My ideal would be to encode a jpg into the netstream, but I don't know if this is possible.
View Replies !
View Related
Upload And Display Image
Hello,
I am trying to allow a user to upload a file and then have this file displayed in Flash.
Currently I have:
ActionScript Code:
import flash.net.FileReference;
var progressBar:MovieClip;
var reference:FileReference = new FileReference();
var referenceListener:Object = {};
var scriptLocation:String = 'uploader.php';
var progressBarHeight:Number = 10;
var progressBarY:Number = 650;
var progressBarColor:Number = 0xF9A61A;
uploadButton_mc._visible = false;
reference.addListener(referenceListener);
referenceListener.onSelect = activateUploadButton;
referenceListener.onProgress = updateProgress;
referenceListener.onComplete = restart;
referenceListener.onHTTPError = handleError;
referenceListener.onIOError = handleError;
referenceListener.onSecurityError = handleError;
chooseButton_mc.onRelease = choose;
uploadButton_mc.onRelease = uploadCurrent;
update_percent._visible = false;
function activateUploadButton():Void {
display_txt.text = reference.name;
uploadButton_mc._visible = true;
}
function choose():Void {
reference.browse([{description:'Image Files (*.jpg;*.gif;*.png)', extension: "*.jpg;*.gif;*.png"}]);
}
function handleError(errorName:String, detail:Object):Void {
restart();
if (arguments.length === 2) {
if (typeof detail === 'number') {
display_txt.text = 'HTTP Error #'+detail;
} else {
display_txt.text = 'Security Error: '+detail;
}
} else {
display_txt.text = 'IO Error';
}
}
function makeProgressBar(x:Number, y:Number):MovieClip {
var bar:MovieClip = createEmptyMovieClip('progressBar_mc', 0);
bar._visible = false;
bar.beginFill(progressBarColor);
bar.lineTo(180, 0);
bar.lineTo(180, progressBarHeight);
bar.lineTo(0, progressBarHeight);
bar.lineTo(0, 0);
bar.endFill();
bar._width = 0;
bar._visible = true;
bar._x = x;
bar._y = y;
return bar;
}
function restart():Void {
removeMovieClip(progressBar);
display_txt.text = '';
uploadButton_mc._visible = false;
update_percent._visible = false;
chooseButton_mc._visible = true;
}
function updateProgress(fileReference:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
update_percent._visible = true;
uploadButton_mc._visible = false;
update_percent.text = Math.ceil((bytesLoaded/bytesTotal)*100)+'%'
display_txt.text = fileReference.name;
progressBar._width = Math.ceil(180*(bytesLoaded/bytesTotal));
}
function uploadCurrent():Void {
chooseButton_mc._visible = false;
progressBar = makeProgressBar(5, progressBarY);
reference.upload(scriptLocation);
}
And then in the PHP file I have:
Code:
<?php
if ($_FILES['Filedata']['name']) {
move_uploaded_file($_FILES['Filedata']['tmp_name'], 'upload_directory/' . basename($_FILES['Filedata']['name']));
}
?>
Now all of this works fine, however, what I wish to do now is load this uploaded movie into a clip on the stage to preview what has been uploaded.
I have an attached an FLA of what I have done so far.
Another member has done something similar here. But I am not sure how to adapt that into mine.
Any help would be appreciated.
Cheers
View Replies !
View Related
Image Display Bug In Flash 9?
hello all,
i'm having a strange image display problem where i load an external image onto the stage, then at runtime if i put a sprite over part of that image, say a pulldown menu covers the image temporarily, after the sprite goes away the image repaints with a 2 or 3 pixel offset from the uncovered part of the image.
this happens regardless of any dpi adjustment in the image or the image format (.jpg, .png, .gif). this happens regardless of whether i load from an external file or from the library.
any clues?
michael
View Replies !
View Related
Display Image From Variable
I have a bar on my website which displays the last 10 SMS messages that have been sent to the website by the users. [click here]
The sender's nickname and message are dynamically loaded from a PHP-file. I also want to display the user's picture next to the message. The URL to the picture is sent from the PHP-file, just like the nickname and message, but I don't know how to display that picture in my flash-movie.
So, how do I display a picture in flash when I've only got a dynamically loaded URL?
View Replies !
View Related
Image Display & Rotation
I found this, which is truly inspired and a lovely smooth rotation 'thing' for a set of images.
http://www.levitated.net/daily/levCy...geDisplay.html
Can any one help me out as I want to modify it so that when you click an image to enlarge it, it stops the rotation and keeps the image central to the frame/scene until you click to reduce ... and then the rotation begins again??
Thanks, in advance.
View Replies !
View Related
Upload Image And Display?
Hey all,
something I have always wondered is how to upload images through a flash movie and have them displayed as thumbnails on another page. I know there is probably some database interaction involved for referencing the images, I just don't know where to start looking. Any suggestions would be greatly appreciated. thanks
View Replies !
View Related
Display Image From Database
Below is the code that I have for a flash 8 document. 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 can display the path of the image that is located in the db, but I can't get the image to show. 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.
Code:
/*This defines the location of the files we are going
to use in this program. */
_global.mypath = "http://www.producttestsite.com/flash/"
//This defines the datagrid columns
import mx.controls.DataGrid;
import mx.controls.gridclasses.DataGridColumn;
var column = new DataGridColumn("j1");
column.headerText = "Product Name";
column.width = 200;
tf.align = "center";
products.addColumn(column);
var column = new DataGridColumn("j2");
column.headerText = "Price";
column.width = 60;
products.addColumn(column);
var column = new DataGridColumn("j3");
column.headerText = "Color";
column.width = 75;
products.addColumn(column);
var column = new DataGridColumn("j4");
column.headerText = "Interior Color";
column.width = 150;
products.addColumn(column);
products.addEventListener("headerRelease", headerListener);
products.dataProvider = r_string;
products.scrollToTop();
products.dataProvider = r_string;
//set Column text property
//var tf = new TextFormat ();
//tf.italic = False;
//tf.bold = False;
//tf.align
// This reads the data from the PHP script and populates the datagrid.
var sendData = new LoadVars();
var r_string = new LoadVars();
r_string.onLoad = getResponse;
sendData.addr = propDgrid.selectedItem.j2
job_id_num=custDgrid.selectedItem.cust_id;
mypath89 =_global.mypath + "products.php";
sendData.sendAndLoad(mypath89, r_string, "post");
function getResponse(result){
if (result == true) {
var r_string = new Array();
for (var i:Number=0; i < this.n; i++) {
r_string.push(
{ productid:this["productid"+i],
j1:this["model"+i],
j2:this["price"+i],
j3:this["color"+i],
j4:this["interiordesc"+i]
})};
}
products.dataProvider = r_string;
}
//Populate the form
//==============Show Customer Details=========================
custf=function(){
var sendData = new LoadVars();
var recData = new LoadVars();
recData.onLoad = getResponse1;
sendData.productid = products.selectedItem.productid;
mypath81 =_global.mypath + "productform.php";
sendData.sendAndLoad(mypath81, recData, "post");
}
function getResponse1(result){
if (result == true) {
model.text = this['model'];
price.text = this['price'];
material.text = this['material'];
interiordesc.text = this['interiordesc'];
this.ref['holder_mc'+i].loadMovie(this['picture'+i])
picture.text = this['picture'];
feature1.text = this['feature1'];
feature2.text = this['feature2'];
feature3.text = this['feature3'];
feature4.text = this['feature4'];
}
}
products.addEventListener("cellPress",custf);
/*I have not shown all fields in the database on the form but if you wanted to
show more of the fields you would just add then to the list above.*/
View Replies !
View Related
Display Swf Image After Flv Completes
Hi,
I am displaying some flv's on websites via the media component in a swf.
Example at: www.ubicasting.com KOR under UbiCast Clips menu
When the flv completes, the last frame, which is black, stays in view. How can I have the media component window vanish so that the swf image shows.
Regards,
Doktor G
View Replies !
View Related
XML Random Image Display
I am trying to make a random image loader for xml importing images into flash.
I have been utilizing the photo gallery xml code found on this site. Thank you very much by the way for that.
The thing is, on one of the pages, I want the image displayed to be randomly selected and for there to be no thumbnails (my homepage).
I want to use this preloader code:
Quote:
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
And then have a jpgrotator alternate between different images when you load the site in a consecutive session. I hope what I am after makes sense. I don't have the first clue what to do with the actionscript for this.
View Replies !
View Related
Display Image Effect
Hey everybody
tryind to redo the effect on this site (http://alextrochut.com/) but can't get it done....
to display the image under the link... moving the other ones below
any ideas?
View Replies !
View Related
Image Display Bug In Flash 9?
hello all,
i'm having a strange image display problem where i load an external image onto the stage, then at runtime if i put a sprite over part of that image, say a pulldown menu covers the image temporarily, after the sprite goes away the image repaints with a 2 or 3 pixel offset from the uncovered part of the image.
this happens regardless of any dpi adjustment in the image or the image format (.jpg, .png, .gif). this happens regardless of whether i load from an external file or from the library.
any clues?
michael
View Replies !
View Related
Display Image From Variable
I have a bar on my website which displays the last 10 SMS messages that have been sent to the website by the users. [click here]
The sender's nickname and message are dynamically loaded from a PHP-file. I also want to display the user's picture next to the message. The URL to the picture is sent from the PHP-file, just like the nickname and message, but I don't know how to display that picture in my flash-movie.
So, how do I display a picture in flash when I've only got a dynamically loaded URL?
View Replies !
View Related
Cylinder Image Display
hey y'all!
I've been messing with the "cylinder image display" from levitated.net, and I really admire his work!
I'm trying to make the rotation go from a vertical rotation to a horizontal!
Is this possible?
View Replies !
View Related
Image Display & Rotation
I found this, which is truly inspired and a lovely smooth rotation 'thing' for a set of images.
http://www.levitated.net/daily/levCy...geDisplay.html
Can any one help me out as I want to modify it so that when you click an image to enlarge it, it stops the rotation and keeps the image central to the frame/scene until you click to reduce ... and then the rotation begins again??
Thanks, in advance.
View Replies !
View Related
Image Display In Mp3 Player
I'm building an mp3 player with sound spectrum and basic playback functions that is driven by external xml file. I want to add a image from the xml file that dynamically displays with the next and previous buttons. Images are loading, stuck on removing. Code below
//constants for Sprectrum
const PLOT_HEIGHT:int = 165;
const CHANNEL_LENGTH:int = 188;
//Sound variables
var music:Sound = new Sound();
var channel:SoundChannel = new SoundChannel();
var position:int;
var currentSound:Sound = music;
var currentIndex:Number = 0;
var playing:Boolean = true;
//XML declarations
var xml:XML;
var songlist:XMLList;
var loader:URLLoader = new URLLoader();
//Button listeners
pp_btn.addEventListener(MouseEvent.CLICK, togglePause);
next_btn.addEventListener(MouseEvent.CLICK, nextSong);
prev_btn.addEventListener(MouseEvent.CLICK, prevSong);
//Sprectrum listener
addEventListener(Event.ENTER_FRAME, onEnterFrame);
music.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
//XML loaded listener
loader.addEventListener(Event.COMPLETE, whenLoaded);
//load XML file.
loader.load(new URLRequest("songs.xml"));
//Functions
//Load and walk through XML file.
function whenLoaded(e:Event):void
{
xml = new XML(e.target.data);
songlist = xml.song; //accesses to song tag in xml file
getMusic = new URLRequest(songlist[0].url);//get music from songlist
music.load(getMusic);//load music
imageLoader = new Loader();//Declare new loader
imageLoader.load(new URLRequest(songlist[0].img));//accesses file from song list
addChildAt(imageLoader, 1);//Render image to stage, set coords and transparency
imageLoader.x = 25;
imageLoader.y = 35;
imageLoader.alpha = .3;
soundChannel = music.play();//plays the music
songTXT.text = songlist[0].title; //gets song name from xml
soundChannel.addEventListener(Event.SOUND_COMPLETE, nextSong);//runs the next song function when a song completes
}
//Skip forward
function nextSong(e:Event):void
{
if (currentIndex < (songlist.length() - 1))
{
currentIndex++;
}
else
{
currentIndex = 0;
}
var nextReq:URLRequest = new URLRequest(songlist[currentIndex].url);
var nextTitle:Sound = new Sound(nextReq);
soundChannel.stop();
songTXT.text = songlist[currentIndex].title;
var nextImage = new Loader();
nextImage.load(new URLRequest(songlist[currentIndex].img));
nextImage.x = 25;
nextImage.y = 35;
nextImage.alpha = .3;
addChildAt(nextImage, 1)
removeChild(imageLoader);
soundChannel = nextTitle.play();
songPlaying = true;
currentSound = nextTitle;
soundChannel.addEventListener(Event.SOUND_COMPLETE, nextSong);
}
//Skip backward
function prevSong(e:Event):void
{
if (currentIndex > 0)
{
currentIndex--;
}
else
{
currentIndex = songlist.length() - 1;
}
var nextReq:URLRequest = new URLRequest(songlist[currentIndex].url);
var prevTitle:Sound = new Sound(nextReq);
soundChannel.stop();
songTXT.text = songlist[currentIndex].title;
var nextImage = new Loader();
nextImage.load(new URLRequest(songlist[currentIndex].img));
var prevImage = songlist[currentIndex - 1].img;
addChildAt(nextImage, 1)
nextImage.x = 25;
nextImage.y = 35;
nextImage.alpha = .3;
soundChannel = prevTitle.play();
songPlaying = true;
currentSound = prevTitle;
soundChannel.addEventListener(Event.SOUND_COMPLETE, nextSong);
}
//Play-Pause button
this.pp_btn.pauser.visible = false;
function togglePause(e:MouseEvent):void
{
if(playing)
{
position = soundChannel.position;
soundChannel.stop();
songPlaying = false;
this.pp_btn.pauser.visible = true;
this.pp_btn.player.visible = false;
}
else {
soundChannel = currentSound.play(position);
this.pp_btn.pauser.visible = false;
this.pp_btn.player.visible = true;
}
playing=!playing;
}
//Stop and replay button.
ss_btn.addEventListener(MouseEvent.CLICK, stopHandler);
this.ss_btn.starter.visible =false
function stopHandler(e:MouseEvent):void
{
if(playing)
{
soundChannel.stop();
this.ss_btn.starter.visible = true;
this.ss_btn.stopper.visible =false;
}
else {
soundChannel = currentSound.play();
this.ss_btn.stopper.visible = true;
this.ss_btn.starter.visible = false;
}
playing=!playing;
}
//Draw sprectrum
var bytes:ByteArray = new ByteArray();
function onEnterFrame(event:Event):void
{
SoundMixer.computeSpectrum(bytes,false, 0);
var g:Graphics = this.graphics;
g.clear();
g.lineStyle(0, 0x6600CC);
g.beginFill(0xFFFFFF);
g.moveTo(0, PLOT_HEIGHT);
var n:Number = 0;
// left channel
for (var i:int = 0; i < CHANNEL_LENGTH; i++)
{
n = (bytes.readFloat() * PLOT_HEIGHT);
g.lineTo(i * 2, PLOT_HEIGHT - n);
}
g.lineTo(CHANNEL_LENGTH * 2, PLOT_HEIGHT);
g.endFill();
// right channel
g.lineStyle(0, 0xCC0066);
g.beginFill(0x663330, 0.5);
g.moveTo(CHANNEL_LENGTH * 2, PLOT_HEIGHT);
for (i = CHANNEL_LENGTH; i > 0; i--)
{
n = (bytes.readFloat() * PLOT_HEIGHT);
g.lineTo(i * 2, PLOT_HEIGHT - n);
}
g.lineTo(0, PLOT_HEIGHT);
g.endFill();
}
function onPlaybackComplete(event:Event)
{
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
}
View Replies !
View Related
On Rollover Display Image
I am trying to use some of the code from the tutorial scrolling thumbnails to make a simple rollover and display image without the scrolling thumbnails, i want them just static not moving.
User can simply click on a sheep and than the wool will show in the middle. I already have had a go at it, and dont know where i have gone wrong, please help, my flash file is here;
http://www.pay4advertising.com/tests/yarn_14.fla
Oh this is the error message;
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Symbol=panel, layer=Layer 2, frame=1:Line 4: Syntax error.
_parent.newname1._y = 170;// on the stage.
Total ActionScript Errors: 20 Reported Errors: 20
thankyou
View Replies !
View Related
Embedded Image Won't Display
Hello,
I'm trying to create a flash movie that's basically a wrapper for various html pages. Is it possible to embed entire HTML pages in dynamic text boxes? I started by trying to embed a random JPEG image into a dynamic multiline (wrapped) text box, and it loads but doesn't display in the box. It is definately smaller than the text box. Why is this so?
View Replies !
View Related
Backend
I am trying to decide in which direction to expand my skills with database integration, etc., both in Flash and regular HTML. I have very little experience with programming (a little Perl/CGI - but far from utilizing it effectively). From what I can see it is between Coldfusion, ASP, PHP, and Perl. Does anyone have any suggestions as to how to maximize my efforts? Is it worth learning PHP when there is Coldfusion?
I can't say I enjoy programming, and am a visually driven designer. But I'll learn whatever is necessary. I would also like to utilize the same language in HTML and Flash (maybe with Ultradev). Thanks.
View Replies !
View Related
Backend.........help.
hi,
I would like a flash email piece/web page link that has a back end to capture information. 1. Build a flash page 2. A back end data base.
i need help for this very urgently.
any helps will be appriciated.
sudheer.
View Replies !
View Related
Backend
I'm making a site for a friend with a band. I want to have the calendar dates and photos able to be uploaded by him, from his computer, at his convenience...so I don't have to manage it once it's built. How do I do that?
Oh... I'm using Kool Moves.
View Replies !
View Related
HOW DO I DISPLAY AN IMAGE IF FLASH IS NOT INSTALLED
Hello All,
I have to create an ad to go on a major site and their requirments state:
* There should be a 'sniffer' program included in the flash file to check for the correct plug-in.
* If the user does not have the flash pug-in installed, a back up image should be provided and served in its place (all should be included whithin the flash file submitted)
Any help would be apriciated
Thanks
Andy
View Replies !
View Related
|