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








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?




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-03-2005, 08:16 AM


View Complete Forum Thread with Replies

Sponsored Links:

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
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
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
How Do I Display The Value Of A Variable
I'm trying to figure out why an event isn't being triggered by a variable. Could someone tell me how to display the value of a variable?

View Replies !    View Related
Display A Variable
hi

i want a text box to display a variable, and have it refresh every time the variable is changed or something to the same effect.

View Replies !    View Related
Display Variable
I am having trouble. Below you will find my post about preloading while playing a short clip. I figured that one out.

My new problem is that the intro clip is only so long. And the video is still loading. I want to display the percent loaded.

With the following command I can get the percent loaded to the output screen.

loadListener.onLoadProgress = function(loadTarget, bytesLoaded, bytesTotal) {
var percentLoaded = bytesLoaded/bytesTotal*100+"% of movie loaded ";
trace(percentLoaded);
};

On my stage, same layer and same frame as the above ActionScript I have a dynamic text box with the var feild filled in as percentLoaded

But is it not displaying anything.

WHY? This is extremely aggravating to me. I have displayed other variables before without a problem.

Thank you for any help in advance.

View Replies !    View Related
I Need To Display A Variable
This seems like this should be so simple yet, I can't figure it out. I just want to display the variable speed.







Attach Code

//spedometer
function speedUp(event:KeyboardEvent):void
{
if(angle > 0)
{
if (event.keyCode == 68)
{
Needle.rotation -= 1;
angle -= 1;
}
}
if(angle < 210)
{
if (event.keyCode == 83)
{
Needle.rotation += 1;
angle += 1;
}
}
}
//speed
var speed:Number = angle/2.1;
trace (speed);

View Replies !    View Related
How Can I Make A Variable Display This: 1,2 Instead Of: 1,223 ?
I hope the thread title is clear enough, just in case it isn't: I'm having a variable which is displayed, flash displays 4 numbers behind the coma, I only want 2 numbers to be displayed ...

THANK YOU.

View Replies !    View Related
The Display Changes Every Variable No. Of Mins
hello everybody,
i would like to let the user enter a number of minutes resempling transition speed ,

where the display changes every bla bla minutes (entered no.)
(i.e. if the user entered 6 the display will change every 6 minutes .. )

what is the best way to do so ?????

View Replies !    View Related
Display A The Contents Of A Variable From An MC
ok, so i would like to display the contents of a variable (the angle of an object as i move it) - the variable is in a movie clip by the name of head1 and the variable is angle and i would like to display angle in a text box

how do i go about doing this?

View Replies !    View Related
Text Variable Display
i cant seem to be able to control variable txt to display as a block. ie it currently runs on one line only so all the text is not displayed.

i have set the text field to multiline, so i'm not sure what is going on here.

rat

View Replies !    View Related
Display A Variable In A Text Box
I click a button:
code:
on (release) {
_root.v_ao = hello;
}


after that has been clicked.. when I rollover another symbol
code:
on(rollover){
_root.routegrade.text = v_ao;
}


I then have a dynamic text box with the instance name routegrades
that is suppose to display "hello"

I have a feeling its cause im missing quotations? but I cant quite get it

View Replies !    View Related
How Do I Display A Variable On The Screen?
Hi!

I'm trying to display a variable on the screen like you could with a dynamic text box in 2.0.

I'm sure it's easy, but I can't find anything on how to do it.

Please take it easy on me, I'm really new to AS3!

Thanks!

View Replies !    View Related
How Do I Display A Variable In A Frame?
I would like to display progress during the downloading of my Flash 5 (.swf) file from my website.

I have inserted a 'frames loaded' script test in a couple of places in order to delay execution until, I guess, that a sufficient number of frames have been downloaded so that the movie can start.

However, I would like to display progress to the viewer.

I would like to display the values of _framesLoaded and _totalframes and in some instances the value of the variable that I choose.

I would like to show,for example, something like - " 2265 loaded out of 5977 " ie: _framesLoaded 'loaded out of' _totalframes

Is there anybody out there that can help this old man by giving me the solution to my problem?

It seems such a simple thing that I want to do, but I am stumped.

View Replies !    View Related
Display Variable Information
I know how to import a variable from ASP to Flash, and how to get Flash to recognise the value of it. But I don't know how to display the contents of that variable within my SWF.

Can anyone help please?

View Replies !    View Related
Display Variable Information
I know how to import a variable from ASP to Flash, and how to get Flash to recognise the value of it. But I don't know how to display the contents of that variable within my SWF.

Can anyone help please?

View Replies !    View Related
Display Variable From Loaded Swf
i've got 2 files:
login.swf
load.swf
when i open login directly, it loads some vars: 'loadVariablesNum("file", 0);'. then the var appears in the main screen in a dynamic text field.
but when i open load.swf, it loads the login and the login.swf loads the var but it doesn't display it.
is there a way to display the var through the load.swf?

View Replies !    View Related
Php Flash Variable Does Not Display Value
I am a newbie and having a problem with the values returned from PHP to Flash. I have tried using third party codes and the problem still persists. I will try to make a brief description here of what I have done and what is happening.
==============================================
I have just used three controls on my flash form:

1) One Input box - variablename (firstname)
2) One button - clickHandler(go)
3) One dynamic Text box - variablename (message1)

In the Action for the Button I have put the following Code:

function go()
{
loadVariablesNum("hello.php",0,"POST");

}

In the hello.php I have put the following Code:
<?php
echo "&message1=".$firstname;
?>

In the dynamic text box I am getting the value as $firstname

In the debug window corresponding to Message I get th is value

"".$firstname;
?>"

Please inform me why is it so.
I am using Win2k Server with Flash MX and PHP server on Windows.

Thanks in advance.

View Replies !    View Related
Variable Display/calculation Failure
Hey guys -=-

I've only recently become a registered user of this board, I want to thank y'all for all the information I've gotten off this board just by using the "Surf & Search" method". And now? I'm stuck!

I've got a little score board deal I'm trying to build for a friend that I'm stuck on. Using key presses I can show when a question is answered correctly/incorrectly, but I can't get the current round or total score to display at all. I know this has to be a variable thing, [I think], but I can't find it.

If you get a second, find the FLA[ver. 5] at:
http://directionx.com/concepts/temp/dx_twl2a.fla

Thank ye kindly,

BWV

View Replies !    View Related
Display .jpg/.gif From Variable Name (loadVariables+MySQL+php)
Hi, I'm working on my online portfolio and want to show of "latest work" in flash. The content is in a MySQL database. I've actually got the loadVariables thing working, importing Customer name, url and name of pic file.

But, what do I have to do in order to display the pic file? (Btw, sorry for the bad language!)

Please help a designer in deep over is head

View Replies !    View Related
Masks Over Variable Display Boxes
Hi - thanks for looking at this.

I just wondered if anyone has had problems in trying to mast a MC that contains and variable text box. MX just blanks the text box out whenever its masked. All a bit weird - does anyone know a way round it?


Cheers
Render

View Replies !    View Related
Display Variable From File WITHOUT EDITING IT
Hey,

I was wondering how (or if it's possible) to display a variable declared in a separate swf file. eg. I have a game with a highscore variable called _level0.punteggio and I wan't to display that variable in a different flash file. I don't want to have to edit the original flash file with the variable I want to display. You see, I can't legally edit a .swf file that isn't mine and that I don't have permission to edit (and can't get permission for). I need a way to create a flash file that will call that certain variable I told you about and be able to do something with the variable without editing the file that holds it. Please, if you know anything about this, I encourage you to post a reply or even email me at ryanetjoel(at)wintallo(dot)com. If you don't know, ask someone else for me because chances are that any one of you knows way more people who know about actionscript than I do.

Ryan et Joel
www.wintallo.com

View Replies !    View Related
Display A Simple Php Variable In Flash
Hello
I have a php page with a simple variable:
<?php
$myVar="hello world"
?>
And a flash file embedded:
flash.swf

How do i display $myVar in the swf file?

Do i have to send it from php first?
Do i need to use loadVariables? If so, where? on the timeline (actions line) on a movieclip, in a dynamic text field

I did try to search the forums first, but could not find any help that i could understand. (ie it just said "use loadVars" without explaining how)

Any help would be greatly appreciated.
Many thanks,
Calum

View Replies !    View Related
LoadVars Variable Display Problems
Hi everyone. I am slowly picking up actionscript, and I have hit a wall. I have a PHP script called "login.php" that passes on a single variable to flash &name=$name, which is a username that has been passed into the login.php from a form. All I want to do is get flash to display the username using in a dynamic text field, which is a variable called "name". This is the AS I am using:



username = new LoadVars();
username.load("login.php");
username.onLoad = function(success){

if (username.loaded) {
name = username.load

}
}


and here is the PHP script (note that the echo passing the variables is towards the bottom of the script):


PHP Code:



<?php
session_start();
?>

<html>
<BODY bgcolor="#C21414"> <FONT COLOR="#FFFFFF">

<?php
include "db_login.php";

$name = $_POST ['usrname'];



$result = "select * from login WHERE usrname = '$_POST[usrname]' AND pass = '$_POST[pass]'";

mysql_query($result);

if(mysql_affected_rows() == 0)
{
print("<h1>You were not logged in. Please return to the login page and try again, or, if you do not have an account, create one using the online registration form.</h1>");
    }
else
    {
echo "<center><h2>You are now logged in! Please wait a few seconds while I load the members area for you. . .</h2></center>";
}

echo "&name=$name";

?>

<head>
<meta http-equiv="refresh" content="5;URL=http://www.webby.com">
</head>


</html>


<?php
session_start();
?>

<html>
<BODY bgcolor="#C21414"> <FONT COLOR="#FFFFFF">

<?php
include "db_login.php";

$name = $_POST ['usrname'];



$result = "select * from login WHERE usrname = '$_POST[usrname]' AND pass = '$_POST[pass]'";

mysql_query($result);

if(mysql_affected_rows() == 0)
{
print("<h1>You were not logged in. Please return to the login page and try again, or, if you do not have an account, create one using the online registration form.</h1>");
    }
else
    {
echo "<center><h2>You are now logged in! Please wait a few seconds while I load the members area for you. . .</h2></center>";
}

echo "&name=$name";

?>

<head>
<meta http-equiv="refresh" content="5;URL=http://www.webby.com">
</head>


</html>



When I try to run the scripts, all that appears in the variable is [type function]. . .Does anyone know what I am doing wrong? Thanks in advance for your time!

View Replies !    View Related
Display A Variable In FLASH Using LoadVars And PHP
What I'm trying to do:

Send a user input to PHP
Use this input to query a MySQL DB (This works fine)

Get the result back to Flash and put it in a dynamic Text Box - How???


The communication from Flash to PHP works fine. The variable I pass from Flash to PHP are used in the query as intended.

Then Im trying to send a variable back to flash. I cant display this variable in Flash, only in a new explorer window........

<?php

require 'Include.php'; //Data about $DBhost,$DBuser,$DBpass
$user=$_GET['name'];

// Connects to the database.
mysql_connect($DBhost,$DBuser,$DBpass);
mysql_select_db("$DBName");

// The SQL query.
$query = "SELECT * FROM $table WHERE user ='$user'" ;
$result = mysql_query($query);

/* This just gets the number of rows in the Query */
$numR = mysql_num_rows($result);

// If the number of rows is 0--> no hits on query
if ($numR>0) {
for($i=0; $i < $numR; $i++) {
$row = mysql_fetch_array($result);
print $row['fname']; //This prints 'Bruno' when user = 'test'
}
}
else {
print "not connected ";
}
?>

--------------------------

Actionsript:

on (release) {
var my_vars = new LoadVars();
//Get the text from Input Text
my_vars.name=userName.text;

//Send input (my_vars) to PHP and assign result to my_vars
my_vars.send("http://localhost/lms/Login.php",my_vars,"POST");

//Set the result in Dynamic Text box with Var name status
status=my_vars.name;
}

-------------------------------------------------------------

I've read all the tutorials I was able to find, looked at the macromedia site, and still not able to solve it.

This problem has been driving me crazy for one week now. I scanned through this forum, but haven't found anything useful for my case.

Hoping for replies, best regards
Jarle

View Replies !    View Related
Display Variable Information In Another Loaded MC
Hi guys,

I'm building a product page, here's the setup:

http://www.pikzel.nl/product_nav/

On the index.swf is the main navigation that'll open swf's for the different categories. Those products.swf fills with products via php. This is the working code for products.swf:

ActionScript Code:
var t = "";
var cat:String = "products";

function laadText(cat) {
stuurData = new LoadVars();
if (cat == undefined) {

}
_root.myData = new LoadVars();
_root.myData.onLoad = Fillvalues;
var file:String = "cms/__products_";
file += cat;
file += ".php";
_root.myData.load(file);
}

function Fillvalues() {
var max:Number = _root.myData.aantal;


max++;
for (i=1; i<max; i++) {
v = "cms/images/uploaded/thumb_";
v += _root.myData["id"+i];
v += ".jpg";

// id titel omschrijving artikelnummer prijs categorie visible status land

id = _root.myData["id"+i];
titel = _root.myData["titel"+i];
omschrijving = _root.myData["omschrijving"+i];
artikelnummer = _root.myData["artikelnummer"+i];
prijs = _root.myData["prijs"+i];
categorie = _root.myData["categorie"+i];
visible = _root.myData["visible"+i];
status = _root.myData["status"+i];
land = _root.myData["land"+i];

t += v;
var t:MovieClip = attachMovie("products", "products"+i, i+1);
t.i = i;
t.container_masked.loadMovie(v);

t.id.htmlText = id;
t.titel.htmlText = titel;
t.omschrijving.htmlText = omschrijving;
t.artikelnummer.htmlText = artikelnummer;
t.prijs.htmlText = prijs;
//t.categorie.htmlText = categorie;
//t.visible.htmlText = visible;
//t.status.htmlText = status;
t.land.htmlText = land;

t._x = t.i*200;
t._y = 0;

t.onRelease = function() {
_root.product_info._alpha = 0;
_root.product_info.alphaTo(100, 0.5, "Linear");
_root.product_info.loadMovie("product_info.swf");
//_root.product_info.current_id = _root.myData["id"];
//current.enabled = true;
//_global.current = _root.myData["id"];
};
}
}
laadText(cat);


When you click on a product in products.swf, it should display the product information (titel, omschrijving, artikelnummer, prijs, land) in the loaded product_info.swf.
Now my main issue is, I can't get the product_info.swf right.

The problem is I don't know how you can define the products within the products.swf with a name, so you can tell which product you should display in the product_info.swf

If someone could help, that would be great.

Kind Regards,

Baeshin

View Replies !    View Related
Display A Variable In FLASH Using LoadVars And PHP
What I'm trying to do:

Send a user input to PHP
Use this input to query a MySQL DB (This works fine)

Get the result back to Flash and put it in a dynamic Text Box - How???


The communication from Flash to PHP works fine. The variable I pass from Flash to PHP are used in the query as intended.

Then Im trying to send a variable back to flash. I cant display this variable in Flash, only in a new explorer window........

<?php

require 'Include.php'; //Data about $DBhost,$DBuser,$DBpass
$user=$_GET['name'];

// Connects to the database.
mysql_connect($DBhost,$DBuser,$DBpass);
mysql_select_db("$DBName");

// The SQL query.
$query = "SELECT * FROM $table WHERE user ='$user'" ;
$result = mysql_query($query);

/* This just gets the number of rows in the Query */
$numR = mysql_num_rows($result);

// If the number of rows is 0--> no hits on query
if ($numR>0) {
for($i=0; $i < $numR; $i++) {
$row = mysql_fetch_array($result);
print $row['fname']; //This prints 'Bruno' when user = 'test'
}
}
else {
print "not connected ";
}
?>

--------------------------

Actionsript:

on (release) {
var my_vars = new LoadVars();
//Get the text from Input Text
my_vars.name=userName.text;

//Send input (my_vars) to PHP and assign result to my_vars
my_vars.send("http://localhost/lms/Login.php",my_vars,"POST");

//Set the result in Dynamic Text box with Var name status
status=my_vars.name;
}

-------------------------------------------------------------

I've read all the tutorials I was able to find, looked at the macromedia site, and still not able to solve it.

This problem has been driving me crazy for one week now. I scanned through this forum, but haven't found anything useful for my case.

Hoping for replies, best regards
Jarle

View Replies !    View Related
Display Variable From Database In DateField.
I get a variable from a database and want to display that in the DateField. The DateField expects a Date Object.

When I create a DateObject with a date it works:

Code:
var thedate = new Date(2005, 01, 23);
datefield.selectedDate = new Date(thedate);
But it does not work when I try to convert a variable to a DateObject:

Code:
var thedate = "2005, 01, 23";
datefield.selectedDate = new Date(thedate);

How can I solve this?

View Replies !    View Related
Display Dynamic Text From Variable
Flash newbie here: I will try to be as specific as possible about what I am doing.

Background -
I am working on a map that dynamically places icons (locations) along with their unique corresponding numbers (referenced in a legend) onto the map.

Currently -
I have successfully loaded the location data from an xml file into my flash movie and am holding this data in a multidimensional array. I have verified that the values have loaded correctly via "List variables".

Problem -
The unique number for each location is to appear in a dynamic text object (Instance Name = iconId) that overlays the icons. This text object will display the legend number of each location. This text object pulls the number (communityIconid) from the array. When I test the movie the dynamic text is not showing up. My "arrow" cursor changes to a "text-selection" cursor therefore I know that the text object is there. If I change the dynamic text object to a static text object and specify a sample number, the number shows up perfectly.

Below are snippets from Debug-> List Objects (ctrl+L) / Debug -> List Variables (Ctrl+Alt+V). This flag (flag1) has a communityIconid of "8". This "8" is not showing up with the location's icon in the text field (iconId).


LIST OBJECTS:

Movie Clip: Frame=1 Target="_level0.allMap.mapMC.flag1"
Movie Clip: Frame=1 Target="_level0.allMap.mapMC.flag1.star"
Shape:
Shape:
Button: Target="_level0.allMap.mapMC.flag1.instance5"
Edit Text: Target="_level0.allMap.mapMC.flag1.iconId" Variable=_level0.allMap.mapMC.flag1.communityIconid Visible=true Text = 8"


LIST VARIABLES:

Movie Clip: Target="_level0.allMap.mapMC.flag1"
Variable _level0.allMap.mapMC.flag1.communityIconid = "8"
Variable _level0.allMap.mapMC.flag1.myBrand = "Legacy Homes"
Variable _level0.allMap.mapMC.flag1.communityNum = "253"
Variable _level0.allMap.mapMC.flag1.communityPrice = "From $148,900 to $224,900"
Variable _level0.allMap.mapMC.flag1.communityInfo = "Open Tuesday-Saturday: 10:00 AM-7:00 PM Sunday and Monday: 12:00 PM- 7:00 PM. Located in the City of Windcrest."
Variable _level0.allMap.mapMC.flag1.communityName = "Winnbrook Estates"
Variable _level0.allMap.mapMC.flag1.myDepth = 5
Movie Clip: Target="_level0.allMap.mapMC.flag1.star"
Button: Target="_level0.allMap.mapMC.flag1.instance5"
Variable _level0.allMap.mapMC.flag1.instance5.tabIndex = [getter/setter] undefined
Edit Text: Target="_level0.allMap.mapMC.flag1.iconId"
variable = "communityIconid",
text = "8",
htmlText = "8",
html = false, textWidth = 6, textHeight = 14, maxChars = null,
borderColor = 0x000000, backgroundColor = 0xFFFFFF, textColor = 0x03416E, border = false,
background = false, wordWrap = false, password = false, multiline = false,
selectable = true, scroll = 1, hscroll = 0, maxscroll = 1,
maxhscroll = 0, bottomScroll = 1,
type = "dynamic",
embedFonts = false, restrict = null, length = 1, tabIndex = undefined,
autoSize = "none",
mouseWheelEnabled = true, condenseWhite = false, styleSheet = undefined


Thank you ahead of time for any suggestions or direction.

j

View Replies !    View Related
Image Frame Resizes To Variable Image Size
Hey all, I've seen this effect on tons of sites and was wondering how hard it would be to do it myself. The effect is of an image frame that resizes to a variable image size such as at the following site:

http://www.thelotuseater.com/

Any help would be greatly appreciated. Thanks in advance.

View Replies !    View Related
Image Frame Resizes To Variable Image Size
Hey all, I've seen this effect on tons of sites and was wondering how hard it would be to do it myself. The effect is of an image frame that resizes to a variable image size such as at the following site:

http://www.thelotuseater.com/

Any help would be greatly appreciated. Thanks in advance.

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
How To Display Image In...
Hi everyone

I want to display image in scrollpane components.which is built-in in flash mx.

Please give me step by step.

Please reply soon.

waiting for reply.

best regrds,
ASIF

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
How To Display Image In...
Hi everyone

I want to display image in scrollpane components.which is built-in in flash mx.

Please give me step by step.

Please reply soon.

waiting for reply.

best regrds,
ASIF

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
Text Field Won't Display Loaded Variable
I've used loaded variables numerous times before, but lately, I've been getting nothing but
blank fields.
The variables are loading, and passed to text fields outside of MCs, but not visible in text
fields that 'are' inside MCs.


Movie Breakdown:
================================================== ===================

SCENE 2 'uk' / FRAME 'UK1'

UKCostGeneral = "ukpricing.txt";
loadVariables (ukcostgeneral, "");



SCENE 2 'uk' / FRAME 'UK1' / MC 'UKGen' / text field 'UKCostGeneral' (imported/shared font)


================================================== ===================



This has had me puzzled for some while . . . someone even mentioned that because MC 'UKGen'
is under a mask layer, that I'd have to (embed) the text, rather than (import) it!!?? . . .
a resolve would be very much appreciated.

Regards,

::bluemoth::

View Replies !    View Related
Display Variable Text Depending On Score
Hiyas,

I've got a simple quiz, in which the score sits in a variable and displays the score as you go along. This all works fine!

However, I'd like to change the text at the end of a quiz, depending on what score a person got.

I'm thinking something along the lines of...

If the score is higher or equal to 8 but less than 12 (8, 9, 10, 11), display "Captain".
If the score is higher or equal to 12 but less than 15 (12, 13, 14), display "Corporal".
And so forth.
Finally, if it's equal to 15, display "General".

Sorry, I'm really tired!

View Replies !    View Related
Global Variable To Display Html.text?
Hi all,

is it possible to load html formatted text into dynamic text box via a global variable?

Ive got the following ...


Quote:




_global.imageinfo = "<A HREF="http://www.macromedia.com">Macromedia's website</A>";




then it is called later via..


Quote:




_root.words.words.htmlText = _global.imageinfo;




but it dosent ssem to work


Quote:




**Error** Scene=Scene 1, layer=AS, frame=1:Line 4: Syntax error.





HELP?

View Replies !    View Related
Display Variable From Separate Flash File
Hey,

I was wondering how (or if it's possible) to display a variable declared in a separate swf file. eg. I have a game with a highscore variable called _level0.punteggio and I wan't to display that variable in a different flash file. I don't want to have to edit the original flash file with the variable I want to display. Please, i fiyou know anything about this, i encourage you to post a reply or even email me at ryanetjoel(at)wintallo(dot)com. Thanks

Ryan et Joel
wintallo.com

View Replies !    View Related
Display Variable From Flash In ASP Page Not Working
I've search high and low for a simple answer and am now at my wits end.

I just want to take a single variable from a flash file, and using getURL, send it to an asp file to display the results.

I have tried attaching the string in the URL:
getURL("webpage.asp?var=anything", "_blank)
This resulting URL seems to ignore everything from the "?" and on.

I have tried just using the web page link w/ both GET and POST methods and using request("var") and request.querystring("var"):
getURL("webpage.asp","_blank", "POST")
The result w/ POST is the web page comes up but launches the web page as if it were a text file, and GET doesn't even launch the web page at all.

Using loadVars or any of its counterparts does not seem to do anything at all...does not launch a web page w/ the results.

It's soooo simple to send a single variable from asp to Flash using the querystring ... why is it not the same going from Flash to asp??????

Please help!

View Replies !    View Related
Display Variable Undefined Form Application
In 2004 pro I am using a form applicaition template. I want to display contents from form1 on form2 . I have a fla for review. The problem is when go to form two the variable says undefined, however the trace gives the correct result. It also works on a button rollover in form2, but not on the inital load

I believe I can try listener but am not sure how to do it. Please check out this file.

Test File.

I really need some help here, I have been stuck on this for four days.

Thanks

Tom

View Replies !    View Related
Specifying Number Of Decimals To Display On A Numeric Variable
An onLoadProgress listener object is returning a variable I am using to tell the user what percentage of the movie has been loaded. I am happy with the results of
ActionScript Code:
myListener.onLoadProgress = function(empty10MC:MovieClip, loaded:Number, total:Number):Void{    //setText();    var percent:Number = loaded/total*100;    loadingTxt.text = beginTxt + percent + endTxt;
, however the number returned is like 15 digits long! Is there any way I can limit the variable to display only 1 or 2 decimal places?

View Replies !    View Related
Display Variable Undefined Form Application
In 2004 pro I am using a form applicaition template. I want to display contents from form1 on form2 . I have a fla for review. The problem is when go to form two the variable says undefined, however the trace gives the correct result. It also works on a button rollover in form2, but not on the inital load

I believe I can try listener but am not sure how to do it. Please check out this file.

Test File.

I really need some help here, I have been stuck on this for four days.

Thanks

Tom

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
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

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
Copyright © 2005-08 www.BigResource.com, All rights reserved