Filling An Image Based On MySQL Percentage?

Aug 22, 2009

I want to set a maximum in the database and then for each row as a percentage of the maximum - it would fill the image based on the black volume.

Take the volume in flash of the lightning bolt (pixels), then fill it with a color as rows increase from 0 to the maximum number.

View 1 Replies


Similar Posts:


Flash :: Filling Playlist With XML Generated From MySQL Via Php?

Jul 22, 2011

I have an online flash video player fed by a playlist driven by XML. This XML is generated from a mySQL database via 'playlist.php'. The issue I am having is that when I feed the php generated xml into the player, it only reads the top level/hierarchy of xml information into the playlist (i.e. gallery level, when below that is category, and ultimately video).

When I copy the output of the php generated xml into a normal xml file (i.e. playlist.xml), the playlist is fed with all of the appropriate information, and is complete.

Can you tell me why my flash (as3) video player and playlist will recognise 'playlist.xml' but not 'playlist.php' information?[URL]..A link to the player, which is currently hooked up to 'playlist.php' is at the same address but with theater.html instead of playlist.

View 2 Replies

Flash :: RGB Gradient Based On Percentage Of File Loaded?

Jan 21, 2010

I'm working on my first Flash project, and for my preloader I'd like to do a really simple gradient based on the percentage loaded. The preloader says "77% loaded...", where the number 77 is a dynamic text instance called percentLoaded. I'd like the textColor of percentLoaded to change on a gradient from #000000 to #FFFFFF, in gray-scale.Therefore, I can't simply do:percentLoaded.textColor=(currentValue/100)*0xFFFFFF;This just converts the textColor to a multiple of FFFFFF, but outputs a color since it's not three separate components. Currently, here's what I've got:

View 4 Replies

ActionScript 3.0 :: Decreasing A Graphic Symbols Width By A Percentage Based On Two External Variables?

May 27, 2010

I am trying to decrease a graphic symbols width by a percentage based on two external variables.

Code:
var currentHealth:Number=70
var totalHealth:Number=70

[code].......

View 6 Replies

Filling Colors In Imported Image In Flash

Mar 5, 2011

I'm trying to make a very simple game in Flash. I have a map where you can see only the borders of the states. I want to make every state a symbol. Can I somehow fill it with different colors? Using paint bucket doesn't work...

View 1 Replies

ActionScript 3.0 :: Grabbing Info Based On Id# (php Mysql)?

Mar 19, 2010

I'm trying to create a website that will grab content from a MYSQL database, and display it inside of a dynamic text field in Flash. There are several buttons on the page, and I want each button to grab different information depending on id #. So far, I've done a few tutorials both here and elsewhere, and I've finally figured out how to get the Flash to connect to the database, but I'm not sure how to get info based on the id. My current database only has two columns: id & home_body with one row. I want to add more rows to this soon so I'll have something like this:

id | home_body
1 | info <-button 1 grabs this
2 | info <-button 2 grabs this

Here's my code thus far:

AS3:

// this code gets the home page data from the database for display
var homePageText:String;
// Assign a variable name for our URLVariables object
var home_variables:URLVariables = new URLVariables();

[code]....

View 3 Replies

ActionScript 3.0 :: Show Image At Certain Percentage?

Feb 24, 2010

Is there a way I can do it so at a certain percentage of the preloader a image shows up? Like lets say from 0-49% the background is black then once it hits 50% an image shows up as the background, and stays there until 100% so basicly 0-49% = black background and 50-100% = show an image as a background Is that possible? Also, here is my current code I would like to add that option to: [php]stop(); this.addEventListener(Event.ENTER_FRAME,

loading); function loading(e:Event):void { var total:Number = this.stage.loaderInfo.bytesTotal var loaded:Number = this.stage.loaderInfo.bytesLoaded; bar_mc.scaleX = loaded/total; 

[code].....

View 7 Replies

ActionScript 3.0 :: PHP And MySQL - Display Dynamic Text Fields Content Based On The Page

May 13, 2011

I'm creating a backend using flash, php and mysql. The problem i'm having is that i have 2 dynamic text fields on the stage that i want it to display their content based on the page i am. My txtTitle is showing both mysql rows together like this: Aboutabout_content=About from MySQL Here is my coding:

[Code]...

View 1 Replies

ActionScript 3.0 :: Pass A Collection A Variables And Return A Result Based On The Filtered Results Of A Mysql Table

Nov 28, 2010

I'm trying to develop a simple as3 flash program that passes a collection a variables and returns a result based on the filtered results of a mysql table. Here is my as3 file:

[Code]...

No value is returned. If I replace with '$test4' and '$test5' with numbers such as 1 and 17, a value is returned. Where am I making a mistake?

View 1 Replies

Mysql :: Migrate A Preexisting Flex/Java/Hibernate/MySQL App Onto A CD For Portable Distro?

Feb 2, 2011

I have a typical Flex-based application that was written to use a Java/Hibernate/MySQL backend. The client changed the requirements - now they want to distribute it on a CD where the user can just run the app without any installation or a network connection.

To do this, I certainly need to eliminate the web server and the database server and adapt my application (with as few changes as possible, of course) to a stand-alone application that will fit on a CD/DVD. I've managed to export the data to XML and read it into Flex, but I'm wondering if there's a way to recreate the Hibernate data structures in Flex so I could change as little code as possible. Failing that, is there any way to keep the existing Java/Hibernate external to the Flex code but retrievable without installing Apache Tomcat or MySQL?

View 3 Replies

Mysql :: Create An Insert Form With TextInput Containing ComboBox Provided By MySQL Database Table?

Jan 13, 2010

I have a Flex application which manage a database composed by 7 tables.I have created the insert form and all work great. Now I wanto to improve the Form performances; the idea is to replace the TextInput of the Form with ComboBoxes which are provided by the DataBase tables

View 1 Replies

Configure MySQL JDBC Driver Mysql-connector-java-5.1.12?

May 25, 2010

I have downloaded MySQL JDBC driver from [URL]... How do I configure it?

View 1 Replies

Mysql :: Accent MySQL-Flex/ZendFramework?

Oct 22, 2011

In my table the Collation is:latin1_swedish_ci (but i tried UTF8_unicode too).In my flex application when it shows the table,it displays it correct,with all accent and pointing correct,but in the table is like :

View 1 Replies

Display Image Based On Date?

Apr 29, 2009

I'm trying to figure out if it's possible to display a specific image based on the current date? for example, say I have something for sale 7 seven days, and I want to create an animation of images with numbers, countdown from 7 to 1, and have it stop on the number of days left.

The only place i've seen something like this is here

on the right side, just above the dark grey bar, a little calendar flash loads in and animates.

View 5 Replies

ActionScript 2.0 :: Swap Image Based On Variable?

Apr 13, 2011

What I'm looking to do is have an image swapped with another depending on the value of a variable, but I'd also like it to choose the image automatically.[code]...

what i want it to do is when a function is called if the var == 01 it will automatically swap that image with pic_01, if the var == 02 it will swap it with pic_02. However is there a way of doing this without having to actually write an if statement for each of the pics as there is going to be around 700 of them.

View 2 Replies

ActionScript 2.0 :: Flash 8 - Loading Image Based On Date

Mar 23, 2009

How would I load external images based on dates? The intent is to automate loading of date-specific clipart to a container. An example would be arrival of Spring (3/20) would load the sun.wmf.

View 1 Replies

Image At The Intro And The Rest Of The Presentation Is Vector Based?

Nov 3, 2009

I wonder if any body could help me. I am currently working on a flash presentation which will be running on a 40" Plasma Screen. What's the perfect size to set up my flash file. At the moment my file is 800 x 600 pixels. I only have one .jepg image at the intro and the rest of the presentation is vector based.

View 1 Replies

ActionScript 3.0 :: Image Change Based On Local Time?

Feb 8, 2010

I've been looking into trying to develop a flash application that has images that will change based off of the time on the clock. For example, if I had an image of a landscape with the sun in the sky, at 11:59am the image of the sun at the highest point in the sky would display. If it was 9pm, an image would display showing a night time setting of that landscape. I've seen plenty of PHP scripts for this idea but nothing in regards to flash (AS2 or 3 )

View 2 Replies

ActionScript 1/2 :: Image Selection Based On Criteria And Filename

May 28, 2009

Here is what I'm trying to do. I have a sunroom product that is available with several different options. I have created images of every possible combination of options, and named the files like this:
 
DeckFurniture_NoVisor_ClearGlass_View1.jpg
 
Hot Tub_Visor_TintedGlass_View3.jpg 
 
I want users to be able to choose their options, and have the appropriate picture be displayed. So to get the above image, they'd have to choose "Deck Furniture" "No Visor" "Clear Glass" and "View 1". Or to get the other one they'd choose "Hot Tub" "Yes Visor" "Tinted Glass" and "View 3"
 
It's not necessary to have it auto-update the image, so I was thinking they could choose their options and then click "Update", and that would in a sense pull up the correct filename from the options they've chosen. I'm not exactly sure how to tell Flash to change this master variable (the filename) whenever one of the sub-variables (pieces in the filename) change. Would I have to put a script on each option button telling it when it gets selected to change the master variable?

View 5 Replies

ActionScript 3.0 :: Animate From A Png Tile Based Image File?

Dec 17, 2010

Is there any way to animate from a tile based .png image file? I have multiple images in 1 png file having slight changes in each image, which if cropped and put into layers one over the other, will give the feel of animation or a character moving or walking etc.I want to know can we do that kind of animation in flash as we do it in C++ or Java and how can we do it.

View 4 Replies

Text To Image Mouseover On A Flash Based Website

Jul 25, 2009

I've done my fair bit of HTML coding and work fairly well with CSS but i've never ever done a mouseover in flash.. Now, the website's text, all of it, is simply located on a text.txt file that the flash file reads and incorporates onto the website.. All text and images come from this text file. This is what I want to do.

Click on Enter site, then when it loads, click on the "Selling" tab at the top of the site. On the "My Listings" section is where I want to have the mouseover text and the "Market Analytics" section (which we'll be renaming) is where we'd like the image to actually appear. My question to you is can this be done within this environment and how so?

I can edit JavaScript somewhat, though its been a while.

View 6 Replies

Javascript :: Photoshop-like - Embeddable Web Based Image Editor?

Dec 7, 2009

[URL] The above wasn't really the answer that I was looking for. I'm looking for an online image editor which I can embed into my pages, so users can edit images and submit them. I'm fine with it being Flash or Canvas/JS, no Silverlight or Java . Should have these features, or close to: File upload for image or remote url fetch Layer-based like Photoshop Magic Wand/Pen/Pencil/Brush/etc Text editing Cropping tool

View 4 Replies

Actionscript 3 :: Tools For Flash-based Image Manipulation?

Jan 4, 2010

I'm building a Flash app (as3) that allows users to embed photos of themselves in a scene--think carnival-style cutouts (or faceInHole). I like the interface design for image manipulation at FaceInHole, which puts anchor points and a skeleton around the boundaries of the uploaded image and lets users drag the image to change its position, resize it by dragging corners, rotate it, etc, similar to the free transform tool in photoshop.

Originally, I was planning on building the application with an interface that just used buttons in a control console to manipulate things like position, rotation, etc, but I find the FaceInHole approach more intuitive.I have two questions:

a) Will most users find the in-place skeletal manipulation tool more convenient than the button-based tool, or do I just find it easier because I'm used to things like Flash and Photoshop that use a similar interface?

b) Are you aware of any good open source classes / libraries that contain a solid implementation of the photoshop-style free-transform image manipulation interface?

View 1 Replies

ActionScript 2.0 :: Create An Image Gallery Based On An XML File?

Jan 8, 2009

I need to create an image gallery, based on an XML file, which displays both the thumbnails and the normal-sized images. Here's a link for you to get an idea of pretty much what I want to achieve, except for the fact that I don't want the thumbnails to slide to the left or right, I'd rather want them to be static, and if there are more thumbnails than, let's say 3, to display a "previous-next" controller. After following some tutorials, here's what I created so far:(you can also find all these files + the thumbnails in the attachment)The XML file (settings.xml):

PHP Code:

<slideshow>
<images>
<thumb tLink="th/01.jpg" desc="This is the first thumbnail" bLink="bigImgs/01b.jpg" />
<thumb tLink="th/02.jpg" desc="This is the second thumbnail" bLink="bigImgs/02b.jpg" />

[code]....

So far, so good, the script does trace what I told it to But I need to further improve this rather simple script. So, basically here's what I need:How do I load each thumbnail into a "container" movieclip, so I can further manipulate this movieclip's properties (do an easing for position, alpha, filters etc.)? There's one more thing I need to specify: I want to display only, let's say, 3 thumbnails at runtime, not all of them. how could I assign an instance name to each of them.

View 3 Replies

ActionScript 2.0 :: Making An Image Based Countdown Timer

Mar 28, 2011

making an image based countdown timer that counts from 30 seconds to zero showing seconds and milliseconds that begins counting down when loading. I know I could make this by basically animating it but im sure it would be far less work to code it. By image based what I mean is that instead of the timer simply being variable text that is constantly changing, I am aiming for each digit to be an image.

View 3 Replies

ActionScript 2.0 :: Debug Many Stuff From Xml Based Image Gallery?

Mar 16, 2009

i found a very nice tutorial about making an xml based gallery from oman3D which i use it as a base and change some codes abit for my own gallery project... but those modification comes with bugs that i can't figure out that makes me feel like stop learning this and kill myself T_T. among few things, i tried to add auto resize, auto center and a crossfade transition for the images but it has awesome bugs that i cant figure out why it happens..

most annoying bugs i got is that when i tried to center an image, which i did by substracting the default width and height of the gallery with the loaded image's width and height then divide it by 2 and adding the default position of the gallery so it should practically comes out with x and y that puts the image on the center of the allocated gallery space

well, it works but apparantly the image's height and width are rubbish, because sometimes the number is accurate and other times it may changes... i wonder is it accurate to get image's width and height property if that image is loaded with loadClip and the props are checked during onLoadInit

second bugs is that i tried to create a crossfade transition... or to the least a fade in-out transition, for the latter i manage to make it work by using tween script which starts fade out the old image and start the fade in of the new image using the onMotionComplete function

but after modifying other scripts it stops working for reasons i can't figure out.. also the tween script i added for reasons unknown will reset the position of the loaded images to 0,0 and i dont really have any idea on how to crossfade this ( the only thing i can think of is that i would duplicate the old image's mc then fade it above the new but it doesnt seem to work)

as for the auto-resize function i made, it did works perfectly until i figure out the original mc's size cannot be reverted back, so if i load a very large image, then unless the next image is as large or larger than the previous one, it becomes tiny... even after i tried to reset the mc's prop before every new images loaded..

View 1 Replies

ActionScript 3.0 :: Change Image Based On MouseX Position?

Apr 13, 2009

Code:
package
{

[code].....

View 3 Replies

ActionScript 3.0 :: Making First Image Not Fading On XML Based Slideshow

Jun 14, 2010

I am working on an xml based slideshow. Random images loading (only ones and no repeated image) and fade in-out effect. That's working fine, but the problem is that when animation starts it does it on white screen and then fades in to the first image. How can I keep my slideshow working the same way but starting with the first image already on stage (without fade in)?

My Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import com.greensock.*;
import com.greensock.easing.*;
[Code] .....

View 1 Replies

Professional :: Creating Text / Image Box Based On Current Date

Feb 25, 2010

I'm currently working in Flash mx 2004 and am creating a version of 'what happened in history today'. So my final layout will have the following iobjects.

Heading: 'current date'
Title: 'On this day in History'
Text box: Which displays the right description from a text file. history.txt
Image box: which displays a pic related to the current date.

I know basic Flash but have been playing around for ages am having real trouble getting things to work correctly. The main priority is to get the text loaded based on the current date. I have an images folderwhere the pictures are stored with files names related to date i.e. 14feb.jpg and my history.txt file is set out with a line for each date. i.e., 14feb=Valentines Day etc.

View 3 Replies

ActionScript 3.0 :: Automatically Rescaling Image Itself Based On The Document Size

Apr 12, 2010

I'm trying to run a function that determines the image size coming in, and automatically rescaling itself based on the document size, but don't get where I'm going wrong

[Code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved