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




Loading JPG's ... One Works, The Other One Doesn't... Why? Flash 2004 MX Pro



Hi...

I'm using the Loader component, List component,XML connector and getting info from a XML file. Using "testing" images (jpg's I simply got from the web to test quickly), everything works fine. If I go into the XML file and change the name of the jpg's into some I've made myself, they don't show up.

It's like there is something wrong with the JPG itself... I don't get it. They are in the same folder, I didn't type the names wrong, it IS a Jpg, the size of the picture and of the file is not the problem either... I tried messing with the one I got from the web, I resized it to see what would happen... it still works, and yet my own jpg's don't!

It's problably something very dumb... yet what??

Nicky



FlashKit > Flash Help > Flash General Help
Posted on: 07-07-2004, 10:50 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

MX 2004...what Works In Test Doesn't Work In Publish
I have a video clip in a screen that works fine in debug and in test, and even in publish preview...but when I publish, it won't play...just hangs on the first frame...

any suggestions?

basic details:
creating a self-contained projector project for mac/win...
about 24 scenes interlinked with gotoandStop, with the exception of this scene, which contains a movie...it gets gotoandPlay
ALL moving between scenes works fine EXCEPT that one, and it only fails in actual publish...not in debug or test, OR publish preview...

Loading XML But CSS Doesn't Do His Works...
Hi people,

I have the following problem:

I have an .fla and .swf that loads a .xml in several tekstfields. Also serveral other variables for things that I need.

Everything works so far but the CSS doesn't !!! The CSS is external.
I loaded the .xml through an XPATH script but that isn't the problem with the loading of the CSS I think...

For a better see an explanation of my problem see my .fla and so on, on:
http://www.rovecon.nl/xpath.rar

I hope you can help me, because I am really stuck !

I commented the loading of the CSS in my script, I began to try to apply my CSS to my headline at first...

Remoting Issues. Loading Works, Sending Doesn't...
Do gateway connections stay open until you close them, or the swf?

Edit, There is actually a problem with my PHP... Not the actionscript. Can I have this post moved, please??

What did I do wrong here...

Code:
$sql="INSERT INTO userInfo (userFeeds,userFeedTitles) WHERE user = '$ownerId' VALUES ($urlArray,$titleArray) ON DUPLICATE KEY UPDATE userFeeds= $urlArray, userFeedTitles= $titleArray";

Accentuation Works In Action Panel And Doesn't Works In A Class.
Try attached code in Action panel and in a class.
The same code works in Action panel (F9) and doesn't works in a class.
For GOD!!!!
How can it be????
It's seems that someting is missing when a class is instantiated.
I and thousands of developers that writes with special characters won't have solution for this problem?
I mean that thousands of swf 8.0 version won't be migrated to flash9.
Adobe is concerned about that?
Any idea?









Attach Code

//Action panel works fine
import flash.text.*;
var txt:TextField=new TextField();
addChild(txt);
txt.text="áéíóú";

//class doesn't works
package
{
import flash.display.*;
import flash.text.*;

public class TestAccentuation extends MovieClip
{
protected var txt:TextField=new TextField();

public function TestAccentuation ()
{
addChild(txt);
txt.text="áéíóú";
}
}
}

Flash 5 Wording Works, MX Doesn't
Hi,

I have a movie clip which I have the following attached:

code:
on(rollOver) {
this.over = true;
this.off = false;
}

which works fine. From what I understand, this wording is from Flash 5, which requires either "on" or "onClipEvent" handlers.

Also from what I understand, the MX lingo for the same thing is as follows:

code:
this.onRollOver() {
this.over = true;
this.off = false;
}


When I write it this way, I get an error message, saying that I'm missing a ";" at on the first line. I seem to get this error message alot. I know that I'm not missing that character, so what is the problem? Anyone know?

Flash Player Works Then Doesn't
I have installed and re-installed the flash player probably 5 times now. It works for a while then stops working, it is still installed, it just doesn't want to run. What is the problem?

XML In Flash MX 2004 / Works Partially. Help
First of all, I thought Flashkit was the bomb - I was wrong KIRUPA is the shiznit (BOMB DIGITY) the best forum. ok wooo had to get that out.

Following on Tutorial: http://www.kirupa.com/developer/mx20...otogallery.htm

I love it i was able to figure it out, but I realized something. The counter and getting back and forth through the gallery. Say I have 200 pics and I hit next all the way to see the last pic; Instead of clicking prev all the way to number one. I was trying to add another button - that would take me all the way to 1/200.

//This code added by Pixelone to to jump right to 1/200.
function frontImage() {
if (loaded == filesize) {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie (image [0], 1);
desc_txt.text = description[0];
picture_num();

}

The buitton works and it takes to the first image in the set, but the counter remains unchanged. So I will be at the front and the counter will say 5/200 still for thats how far I had scroll to.


Not sure if it is making sense.

Here is the entire Code:

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
if (Key.getCode() == Key.LEFT) {
frontImage();
}

}
};
Key.addListener(listen);
back_button.onRelease = function() {
prevImage();
};
next_button.onRelease = function() {
nextImage();
};
// This function was added by Pixelone to enable front button
Key.addListener(listen);
front_button.onRelease = function () {
frontImage();
};
/////////////////////////////////////
p = 0;
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;
}
}
};
//This code aded by Pixelone to activate front button.
function frontImage() {
if (loaded == filesize) {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie (image [0], 1);
desc_txt.text = description[0];
picture_num();

}
}
}

function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}

Printing:works..doesn't Work...works..?
I have a Print button with this code:
Code:
on (release) {

Code:
print ("print_movie_x", "bmax");
}
Nice and straight forward...Users drag a number of cards round on the page then type in their name in an input box. Problem: When I click print, not only does all pages print(have 2 frames) but the cards appear as they did when you load the movie..they haven't moved...scary! What am I doing wrong? Any ideas people?Gab

Printing:works..doesn't Work...works..?
I have a Print button with this code:
Code:
on (release) {

Code:
print ("print_movie_x", "bmax");
}
Nice and straight forward...Users drag a number of cards round on the page then type in their name in an input box. Problem: When I click print, not only does all pages print(have 2 frames) but the cards appear as they did when you load the movie..they haven't moved...scary! What am I doing wrong? Any ideas people?Gab

Div Font In Flash Works But Doesn't After Publication
I am using the font Bank Gothic in Flash 8 to create a DIV rollover effect. The problem is that when I publish it, it uses a different font.

My first attempts involved altering the code in the php file holding the flash, but when I opened index.php, there was no information regarding DIV. This, plus the fact that the DIV shrinks WITH the flash when I make it smaller leads me to believe this DIV information is limited only to the Flash itself.

Is there a way to rasterize the DIV information in the flash or keep it consistent even after publication so that everyone can see it as Bank Gothic?

Here is a link to the website I am working on.

http://www.flyfilms.com.cn

follow the link to corporate, click on a client thumbnail and then after they shrink to the bottom right proceed to hover over the other mini-thumbnails. The DIV here SHOULD be Bank Gothic but it ain't.

Help! I need somebody... Help! Not just anybody... Help!

Love,

Edward

Does The Text._rotation Actually Works In Flash MX 2004 ?
I am using this code in my first frame:

_root.createTextField("txt", 1, 100, 100, 150, 100);
txt.text = "Flash MX 2004!";
txt._rotation = 90; // makes all crush


and the:

_root.createTextField("txt", 1, 100, 100, 150, 100);
txt.text = "Flash MX 2004!";

works perfectly. How do I use the txt._rotation in Flash MX 2004 ? [I don't want to attach it to an MC and rotate the MC] ????

thanks

[CS3] Flash Game.. Works But Then Doesn't When Copied Into Another File?
Hi,
I have a simple game where you have to guide a circle to a goal. The circle controlled by the mouse (replaces the mouse pointer).
If you hit a wall then you have to try again.

Had the game working fine but when I try to bring it into another file I've made I get the following...

symbol=controller, layer 1, frame=2, line 10 ')' or ',' expected
symbol=controller, layer 1, frame=2, line 11 ')' or ',' expected
symbol=controller, layer 1, frame=3, line 3 ')' or ',' expected
symbol=controller, layer 1, frame=3, line 4 ')' or ',' expected

and also...

Target not found: Target="/control1" Base="_level0.instance21"

Can anyone help me fix this I've been rakkin' mi brains!
Thanks loads in advance!!
Stefan

Script Works In Flash, Doesn't Work Online
I have a Flash movie that is broken into two parts, and each part has a STOP command at the end of it. What I would like to do is to have a part play based on the current date. So, if the day of the month is greater than "7" part ONE plays, if not, part TWO plays.

When I Preview the movie within Flash it works correctly. However, once I load it to my server it does not. It always plays Part One; it's as if it is ignoring the Actionscript.

I've attached the code below, which I have on its own dedicated track in Flash. Any assistance with this will be greatly appreciated.

Thank you for your time.







Attach Code

var now=new Date();
trace (now);

var myDate = new Date();
trace(myDate);

Check = myDate.getDate();
trace(Check);


if (Check >'7') {
gotoAndPlay(25);
} else {

gotoAndPlay(5);
}

Flash MX 2004 Remoting: Works On Localhost, But Not On Web Server
Hello,

I’ve been working on developing a remote widget using flash remoting to my coldfusion server. I’ve gotten it to work properly on my localhost (http://localhost:8500/) but it does not work when I upload it to my website (www.mywebsite.com for example). The .swf looks right when I access it from my website, but fails to pull the information in from my coldfusion server and display it. Any help is GREATLY appreciated… this has been a long struggle.

For development, I am using:

Flash MX 2004 Professional
Dreamweaver 8
Coldfusion MX7

I took an example in Ben Forta’s book, Macromedia ColdFusion MX 7 Web Application Construction Kit, to use as a test for my flash remoting. As so, I have modified it a bit to suit my needs. I am simply having it retrieve and display an image and description (just for testing).

Below is a breakdown of my codes, and the directory locations of each of the files.

For localhost testing:

MerchBrowser.fla is located in C:CFusionMX7mywebsite
emoting
MerchProviderCFC.cfc is located in C:CFusionMX7mywebsite
emoting
MerchDetailProvider.cfm is located in C:CFusionMX7mywebsite
emoting
MerchRecordsetProvider.cfm is located in C:CFusionMX7mywebsite
emoting
Mydatabase.mdb is located in C:CFusionMX7mywebsitedb

MerchBrowser.fla


Code:
// Include support for Flash Remoting Components
#include "NetServices.as"

// uncomment this line when you want to use the NetConnect debugger
// #include "NetDebug.as"

// --------------------------------------------------
// Handlers for user interaction events
// --------------------------------------------------

// --------------------------------------------------
// Application initialization
// --------------------------------------------------

if (inited == null)
{
// do this code only once
inited = true;

// set the default gateway URL (this is used only in authoring)
NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway")

// connect to the gateway
gateway_conn = NetServices.createGatewayConnection();

// get a reference to a service
// In this case, the "service" is the /ows/26 directory in web server root
myService = gateway_conn.getService("mywebsite.remoting.MerchProviderCFC", this);

// Call the service function that fills the ListBox with a list
// of products (from ColdFusion) for the user to browse through
myService.MerchDetailProvider();
}

// This function retrieves the detail information about the selected product.
// It is executed when the last frame of the movie is reached
// (when the detail view has finished hiding itself under the product list)


// --------------------------------------------------
// Handlers for data coming in from server
// --------------------------------------------------

// This executes when a merchandise detail record has been received
function MerchDetailProvider_Result(result) {
// The result variable is a recordset that contains just one row
// The detailRecord variable will represent the row of data
var detailRecord = result.getItemAt(0);

// Display detail information in text boxes

_root.DescriptionTextBox.text = detailRecord.MerchDescription;
loadMovie("../images/" + detailRecord.ImageNameSmall, _root.ImageMovie);

// If the ImageNameSmall column contains an image filename, display it

// Now that the information about the merchandise has been placed,
// make the display slide back into view, revealing the information

}

// Stop here, so animation doesn't occur until user selects a product
stop();

MerchProviderCFC.cfc


Code:
<!---
Filename: MerchProviderCFC.cfc
Author: Nate Weiss (NMW)
Purpose: Creates a ColdFusion Component that supplies data about products
--->

<cfcomponent hint="Provides data about merchandise records." output="false">


<!--- merchDetailProvider() function --->
<cffunction name="merchDetailProvider" returnType="query" access="remote"
hint="Returns details about a particular item in the Merchandise table."
output="false">



<cfset var merchQuery = "">

<!--- Query the database for merchandise records --->
<cfquery name="merchQuery" datasource=" Mydatabase.mdb" maxrows="1">
SELECT MerchID, MerchName, MerchDescription, ImageNameSmall, MerchPrice
FROM Merchandise
WHERE MerchID = 12
</cfquery>



<!--- Return the query --->
<cfreturn merchQuery>
</cffunction>

</cfcomponent>


MerchDetailProvider.cfm


Code:
<!---
Filename: MerchDetailProvider.cfm
Author: Nate Weiss (NMW)
Purpose: Provides film detail to a Flash movie
--->

<!--- We are expecting a MerchID parameter to be passed from Flash --->


<!--- Query the database for merchandise records --->
<cfquery name="MerchQuery" datasource="Mydatabase.mdb">
SELECT MerchID, MerchName, MerchDescription, ImageNameSmall, MerchPrice
FROM Merchandise
WHERE MerchID = 12
</cfquery>



<!--- This will be available as the “result” variable in the --->
<!--- MerchDetailProvider_Result handler within the Flash movie --->
<cfset FLASH.result = merchQuery>


MerchRecordsetProvider.cfm


Code:
<!---
Filename: MerchRecordsetProvider.cfm
Author: Nate Weiss (NMW)
Purpose: Provides data to a Flash MX movie
--->

<!--- Query the database for merchandise records --->
<cfquery name="merchQuery" datasource="Mydatabase.mdb">
SELECT MerchID, MerchName
FROM Merchandise
ORDER BY MerchName
</cfquery>

<!--- This will be available as the “result” variable in the --->
<!--- MerchRecordsetProvider_Result handler within the Flash movie --->
<cfset FLASH.result = merchQuery>

For website testing:

MerchBrowser.fla is located in http://www.mywebsite.com/remoting2/
MerchProviderCFC.cfc is located in http://www.mywebsite.com/remoting2/
MerchDetailProvider.cfm is located in http://www.mywebsite.com/remoting2/
MerchRecordsetProvider.cfm is located in http://www.mywebsite.com/remoting2/
Mydatabase.mdb is located in http://www.mywebsite.com/db/


MerchBrowser.fla


Code:
// Include support for Flash Remoting Components
#include "NetServices.as"

// uncomment this line when you want to use the NetConnect debugger
// #include "NetDebug.as"

// --------------------------------------------------
// Handlers for user interaction events
// --------------------------------------------------

// --------------------------------------------------
// Application initialization
// --------------------------------------------------

if (inited == null)
{
// do this code only once
inited = true;

// set the default gateway URL (this is used only in authoring)
NetServices.setDefaultGatewayUrl("http://www.mywebsite.com/flashservices/gateway")

// connect to the gateway
gateway_conn = NetServices.createGatewayConnection();

// get a reference to a service
// In this case, the "service" is the /ows/26 directory in web server root
myService = gateway_conn.getService("mywebsite.remoting2.MerchProviderCFC", this);

// Call the service function that fills the ListBox with a list
// of products (from ColdFusion) for the user to browse through
myService.MerchDetailProvider();
}

// This function retrieves the detail information about the selected product.
// It is executed when the last frame of the movie is reached
// (when the detail view has finished hiding itself under the product list)


// --------------------------------------------------
// Handlers for data coming in from server
// --------------------------------------------------

// This executes when a merchandise detail record has been received
function MerchDetailProvider_Result(result) {
// The result variable is a recordset that contains just one row
// The detailRecord variable will represent the row of data
var detailRecord = result.getItemAt(0);

// Display detail information in text boxes

_root.DescriptionTextBox.text = detailRecord.MerchDescription;
loadMovie("../images/" + detailRecord.ImageNameSmall, _root.ImageMovie);

// If the ImageNameSmall column contains an image filename, display it

// Now that the information about the merchandise has been placed,
// make the display slide back into view, revealing the information

}

// Stop here, so animation doesn't occur until user selects a product
stop();
MerchProviderCFC.cfc


Code:
<!---
Filename: MerchProviderCFC.cfc
Author: Nate Weiss (NMW)
Purpose: Creates a ColdFusion Component that supplies data about products
--->

<cfcomponent hint="Provides data about merchandise records." output="false">


<!--- merchDetailProvider() function --->
<cffunction name="merchDetailProvider" returnType="query" access="remote"
hint="Returns details about a particular item in the Merchandise table."
output="false">



<cfset var merchQuery = "">

<!--- Query the database for merchandise records --->
<cfquery name="merchQuery" datasource=" Mydatabase.mdb" maxrows="1">
SELECT MerchID, MerchName, MerchDescription, ImageNameSmall, MerchPrice
FROM Merchandise
WHERE MerchID = 12
</cfquery>



<!--- Return the query --->
<cfreturn merchQuery>
</cffunction>

</cfcomponent>

MerchDetailProvider.cfm


Code:
Same as above example on localhost…

MerchRecordsetProvider.cfm


Code:
Same as above example on localhost…

[MX04] Flash MX 2004 Remoting: Works On Localhost, But Not On Web Server
Hello,

I’ve been working on developing a remote widget using flash remoting to my coldfusion server. I’ve gotten it to work properly on my localhost (http://localhost:8500/) but it does not work when I upload it to my website (www.mywebsite.com for example). The .swf looks right when I access it from my website, but fails to pull the information in from my coldfusion server and display it. Any help is GREATLY appreciated… this has been a long struggle.

For development, I am using:

Flash MX 2004 Professional
Dreamweaver 8
Coldfusion MX7

I took an example in Ben Forta’s book, Macromedia ColdFusion MX 7 Web Application Construction Kit, to use as a test for my flash remoting. As so, I have modified it a bit to suit my needs. I am simply having it retrieve and display an image and description (just for testing).

Below is a breakdown of my codes, and the directory locations of each of the files.

For localhost testing:

MerchBrowser.fla is located in C:CFusionMX7mywebsite
emoting
MerchProviderCFC.cfc is located in C:CFusionMX7mywebsite
emoting
MerchDetailProvider.cfm is located in C:CFusionMX7mywebsite
emoting
MerchRecordsetProvider.cfm is located in C:CFusionMX7mywebsite
emoting
Mydatabase.mdb is located in C:CFusionMX7mywebsitedb

MerchBrowser.fla


Code:
// Include support for Flash Remoting Components
#include "NetServices.as"

// uncomment this line when you want to use the NetConnect debugger
// #include "NetDebug.as"

// --------------------------------------------------
// Handlers for user interaction events
// --------------------------------------------------

// --------------------------------------------------
// Application initialization
// --------------------------------------------------

if (inited == null)
{
// do this code only once
inited = true;

// set the default gateway URL (this is used only in authoring)
NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway")

// connect to the gateway
gateway_conn = NetServices.createGatewayConnection();

// get a reference to a service
// In this case, the "service" is the /ows/26 directory in web server root
myService = gateway_conn.getService("mywebsite.remoting.MerchProviderCFC", this);

// Call the service function that fills the ListBox with a list
// of products (from ColdFusion) for the user to browse through
myService.MerchDetailProvider();
}

// This function retrieves the detail information about the selected product.
// It is executed when the last frame of the movie is reached
// (when the detail view has finished hiding itself under the product list)


// --------------------------------------------------
// Handlers for data coming in from server
// --------------------------------------------------

// This executes when a merchandise detail record has been received
function MerchDetailProvider_Result(result) {
// The result variable is a recordset that contains just one row
// The detailRecord variable will represent the row of data
var detailRecord = result.getItemAt(0);

// Display detail information in text boxes

_root.DescriptionTextBox.text = detailRecord.MerchDescription;
loadMovie("../images/" + detailRecord.ImageNameSmall, _root.ImageMovie);

// If the ImageNameSmall column contains an image filename, display it

// Now that the information about the merchandise has been placed,
// make the display slide back into view, revealing the information

}

// Stop here, so animation doesn't occur until user selects a product
stop();

MerchProviderCFC.cfc


Code:
<!---
Filename: MerchProviderCFC.cfc
Author: Nate Weiss (NMW)
Purpose: Creates a ColdFusion Component that supplies data about products
--->

<cfcomponent hint="Provides data about merchandise records." output="false">


<!--- merchDetailProvider() function --->
<cffunction name="merchDetailProvider" returnType="query" access="remote"
hint="Returns details about a particular item in the Merchandise table."
output="false">



<cfset var merchQuery = "">

<!--- Query the database for merchandise records --->
<cfquery name="merchQuery" datasource=" Mydatabase.mdb" maxrows="1">
SELECT MerchID, MerchName, MerchDescription, ImageNameSmall, MerchPrice
FROM Merchandise
WHERE MerchID = 12
</cfquery>



<!--- Return the query --->
<cfreturn merchQuery>
</cffunction>

</cfcomponent>


MerchDetailProvider.cfm


Code:
<!---
Filename: MerchDetailProvider.cfm
Author: Nate Weiss (NMW)
Purpose: Provides film detail to a Flash movie
--->

<!--- We are expecting a MerchID parameter to be passed from Flash --->


<!--- Query the database for merchandise records --->
<cfquery name="MerchQuery" datasource="Mydatabase.mdb">
SELECT MerchID, MerchName, MerchDescription, ImageNameSmall, MerchPrice
FROM Merchandise
WHERE MerchID = 12
</cfquery>



<!--- This will be available as the “result” variable in the --->
<!--- MerchDetailProvider_Result handler within the Flash movie --->
<cfset FLASH.result = merchQuery>


MerchRecordsetProvider.cfm


Code:
<!---
Filename: MerchRecordsetProvider.cfm
Author: Nate Weiss (NMW)
Purpose: Provides data to a Flash MX movie
--->

<!--- Query the database for merchandise records --->
<cfquery name="merchQuery" datasource="Mydatabase.mdb">
SELECT MerchID, MerchName
FROM Merchandise
ORDER BY MerchName
</cfquery>

<!--- This will be available as the “result” variable in the --->
<!--- MerchRecordsetProvider_Result handler within the Flash movie --->
<cfset FLASH.result = merchQuery>

For website testing:

MerchBrowser.fla is located in http://www.mywebsite.com/remoting2/
MerchProviderCFC.cfc is located in http://www.mywebsite.com/remoting2/
MerchDetailProvider.cfm is located in http://www.mywebsite.com/remoting2/
MerchRecordsetProvider.cfm is located in http://www.mywebsite.com/remoting2/
Mydatabase.mdb is located in http://www.mywebsite.com/db/


MerchBrowser.fla


Code:
// Include support for Flash Remoting Components
#include "NetServices.as"

// uncomment this line when you want to use the NetConnect debugger
// #include "NetDebug.as"

// --------------------------------------------------
// Handlers for user interaction events
// --------------------------------------------------

// --------------------------------------------------
// Application initialization
// --------------------------------------------------

if (inited == null)
{
// do this code only once
inited = true;

// set the default gateway URL (this is used only in authoring)
NetServices.setDefaultGatewayUrl("http://www.mywebsite.com/flashservices/gateway")

// connect to the gateway
gateway_conn = NetServices.createGatewayConnection();

// get a reference to a service
// In this case, the "service" is the /ows/26 directory in web server root
myService = gateway_conn.getService("mywebsite.remoting2.MerchProviderCFC", this);

// Call the service function that fills the ListBox with a list
// of products (from ColdFusion) for the user to browse through
myService.MerchDetailProvider();
}

// This function retrieves the detail information about the selected product.
// It is executed when the last frame of the movie is reached
// (when the detail view has finished hiding itself under the product list)


// --------------------------------------------------
// Handlers for data coming in from server
// --------------------------------------------------

// This executes when a merchandise detail record has been received
function MerchDetailProvider_Result(result) {
// The result variable is a recordset that contains just one row
// The detailRecord variable will represent the row of data
var detailRecord = result.getItemAt(0);

// Display detail information in text boxes

_root.DescriptionTextBox.text = detailRecord.MerchDescription;
loadMovie("../images/" + detailRecord.ImageNameSmall, _root.ImageMovie);

// If the ImageNameSmall column contains an image filename, display it

// Now that the information about the merchandise has been placed,
// make the display slide back into view, revealing the information

}

// Stop here, so animation doesn't occur until user selects a product
stop();
MerchProviderCFC.cfc


Code:
<!---
Filename: MerchProviderCFC.cfc
Author: Nate Weiss (NMW)
Purpose: Creates a ColdFusion Component that supplies data about products
--->

<cfcomponent hint="Provides data about merchandise records." output="false">


<!--- merchDetailProvider() function --->
<cffunction name="merchDetailProvider" returnType="query" access="remote"
hint="Returns details about a particular item in the Merchandise table."
output="false">



<cfset var merchQuery = "">

<!--- Query the database for merchandise records --->
<cfquery name="merchQuery" datasource=" Mydatabase.mdb" maxrows="1">
SELECT MerchID, MerchName, MerchDescription, ImageNameSmall, MerchPrice
FROM Merchandise
WHERE MerchID = 12
</cfquery>



<!--- Return the query --->
<cfreturn merchQuery>
</cffunction>

</cfcomponent>

MerchDetailProvider.cfm


Code:
Same as above example on localhost…

MerchRecordsetProvider.cfm


Code:
Same as above example on localhost…

Flash Mx 2004 Help Panel Doesn't Work
Does anyone know why my Help panel in Flash MX 2004 will not show any information when I click on a help topic? I clicked the Update button, but it said it is up to date. I can do a search for a topic and the list of topics appears, but when I click on one nothing else shows up.
I am using Mac OS X 10.3.2
Thanks.

Spacebar In Flash MX 2004 Doesn't Repsond?
Anybody else have this problem?

I open a Flash MX .fla in Flash MX 2004 and all the text has no spacing!

Thereisnospacebetween words as static text. I can't even use the spacebar to correct this. Hitting the spacebar does nothing! I have to hold down the option key and then hit the spacebar.

I'm running MX 2204 on a Mac w/ oS 10.3.5.

Thanks!

J

Why Centered Pop-up Window Works In Flash 5 But DOESN'T In Flash 7 ?
Why centered pop-up window works in Flash 5 but DOESN'T in Flash 7 ?
Tutorial for this is here:
www.kirupa.com/developer/mx/centered_popup.htm

Sound Object Doesn't Play In Flash MX 2004
Since I upgraded to flash MX 2004, I'm experiencing a sound issue.

The sound plays fine when I publish in Flash version 6 but doesn't play when I publish in version 7. The reason I need to publish in version 7 is because I use flash mx 2004's new CSS and <img src> support.

I defined a sound object in an actionscript in the 1st frame of the timeline using the following code:

audio=new Sound();
audio.attachsound("audio1");

The sound object "audio" in the library has a linkage id of "audio1" .

Later down the timeline the sound object is loaded using the following code:

_root.audio.start(0,999);


Again, this script works fine when I publish in flash verson 6 but then I loose my css support. In flash 7 I regain my css support but I loose my sound.

Anybody have a clue about this?

Sound Object Doesn't Play In Flash MX 2004
Since I upgraded to flash MX 2004, I'm experiencing a sound issue.

The sound plays fine when I publish in Flash version 6 but doesn't play when I publish in version 7. The reason I need to publish in version 7 is because I use flash mx 2004's new CSS and <img src> support.

I defined a sound object in an actionscript in the 1st frame of the timeline using the following code:

audio=new Sound();
audio.attachsound("audio1");

The sound object "audio" in the library has a linkage id of "audio1" .

Later down the timeline the sound object is loaded using the following code:

_root.audio.start(0,999);


Again, this script works fine when I publish in flash verson 6 but then I loose my css support. In flash 7 I regain my css support but I loose my sound.

Anybody have a clue about this?

AS2 Flash Movie Call To JavaScript Function Works In Firefox, Doesn't Work In IE6, IE7
I have a Flash 8 (actionscript 2.0) movie advertisement that exists inside a floating html div controlled by javascript. When you click an html link in the div ('X', top left corner), a javascript function called 'disappear()' is triggered, which makes the advertisement div and the flash movie inside it disappear, as the function name suggests. My goal is to call the same disappear() function from inside the flash movie instead. I've created the code; the actionscript exists on the button itself.

I've tested the disappear function in the link for IE6, IE7, and Firefox. It works in all three. I believe it works in Safari as well.

When I test the function called from inside the Flash movie, it works in Firefox. The problem is that IE6 is blocking the javascript call; my cursor responds as if the close_btn (close button) is a link, but nothing happens.

Please help me figure out a way to get around IE6 blocking the js call from Flash and ensure that the call works in all browsers, same as it does in the regular html link calling the same function. I'd prefer the solution come from actionscript, but if it must come on the javascript side, I'll take what I can get. To debug, all you need is a 500 x 300 flash movie with a close button and the following code:

---------------------FLASH BUTTON (closeHTML_btn; instance of close_btn)---------------------

on(press){
getURL("javascript:disappear();"); //
}

---------------------HTML/JAVASCRIPT PAGE---------------------

<html>
<head>

<script>
var timeout;
function appear(){
var the_style = getStyle("floatingflash");
if (the_style) {
var current_top = parseInt(the_style.top);
var new_top = current_top + 5;
if (document.layers) {
the_style.top = new_top;
} else {
the_style.top = new_top + "px";
}
if (new_top < 150) {
the_timeout = setTimeout('appear();',10);
}
}
} // appear
function disappear() {
var the_style = getStyle("floatingflash");
the_style.display = 'none';
} // disappear
function getStyle(ref) {
if(document.getElementById && document.getElementById(ref)) {
return document.getElementById(ref).style;
} else if (document.all && document.all(ref)) {
return document.all(ref).style;
} else if (document.layers && document.layers[ref]) {
return document.layers[ref];
} else {
return false;
}
} // getStyle
</script>
<style>
#floatingflash {
position:absolute;
border:1px solid red;
background:white;
}
</style>
</head>
<body onload="appear();">
<div id="floatingflash" style="top:-400px;left:-150px;margin-left:50%;">
<a href="javascript:disappear();">X</a>
<p>&nbsp; </p>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="

Flash 5 / Flash MX Problem. Works In 5...it Doesn't In MX
Hello,

i have this code which zooms a MC in an elastic way. It works fine in Flash 5 but it doesn't work in Flash Mx. Could someone indicate me what is the problem?

Frame 1:

Movieclip.prototype.elasticScale = function(target, accel, convert) {
xScale = xScale * accel + (target - this._xscale) * convert
yScale = yScale * accel + (target - this._yscale) * convert
this._xscale += xScale
this._yscale += yScale
}

In MC:

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
elasticScale(150, 0.9, 0.1)
} else {
elasticScale(100, 0.9, 0.1)
}
}

Thanks,
Miguel

SWF Works But SWT Doesn't
Hello... I'm new to Generator, and am doing some initial experiments.

This is very simple, attached to a button, and works when just a .swf is published.

on(release)
{
testt = "testmc"+ n;
_root.attachMovie("s_testmc",testt,n);
testt = eval(testt);
testt._x = (n*30);
testt._y = 200;
n += 1;
}
Yet when I choose to publish a .swt, the attachMovie does not work (I have inserted trace statements and proved that the function is actually running)
I haven't used the server package of Generator to produce the .swf - is this necessary? I have just used the Flash 5 publish with .swt checked in the publish options.

There is no dynamic data content as yet... does anyone know why the .swf works when published on its own and not when made from a .swt?


Sorry to use this board rather than the Generator one, but I'm not getting any replies. Can anyone suggest any other good resource sites for Generator?

Thanks,
Paddywall esq

Mac: It Works/PC: It Doesn't
With the generous help of some of the members here, I've been able to get a project I'm working on about 90% completed...and on my Mac I was marvelling at how cool everything was working together. I was happy UNTIL...I checked it out on a PC.

I've got a main.swf file with several placeholders...and I'm using loadMovie to load clips into the placeholders with the click of a button. Like I said, it works fine on my Mac. When I click the same button on the PC, though...you see a one frame flicker of the loaded clips, but it looks like the original placeholders comeback immediately. Every click of the button, just one flicker of the clips that are supposed to be loaded.

Anyone have any ideas what's up with this?

[F8] PC Works ... Mac Doesn't?
Gday,

I've uploaded a prelim version of my website to see if everything works, and on PC's everything works fine, HOWEVER, I got a friend of mine to check to see if it all works on mac, and there's a glitch - the links to external urls that open in new windows don't work...
I think what it does is this...

for example, the domain name is http://www.leecrockford.com
on a pc if you click on the link with the url (say):

http://www.leecrockford.com/Music%20files/Edwin.mp3

a new window comes up with that address in it. But on a mac if you click on that link it opens up the page:

http://www.leecrockford.com//leecroc...iles/Edwin.mp3

It seems to be that on macs it the address it tries to open is the address required PLUS the domain name again....

Anyone know what to do?!?!

Cheers!!!!

How Come It Works In MX Pro And Doesn´t In MX?
Im using this as for two buttons, pause and play:



ActionScript Code:
//this is the pause buttonon (press) {_root.myMusicPosition = _root.sonido1.position/1000; _root.sonido1.stop(); sonido1 = new Sound(photo);}//this is the play buttonon (press) {_root.sonido1.stop();_root.sonido1.start(_root.myMusicPosition);}
It works ok in Flash MX pro, but doesn´t work in the MX.
Does somebody know why?

Tanks! :p

Why Doesn't It Works?
I have 2 swf files. one is A and other one is B
B has a button when I clik on it,it speaks (.wav) and that works well..
but when I call B to A ,B load but that doesn't work
so why that button doesn't work?
Thanks all!

How Come It Works In MX Pro And Doesn´t In MX?
Im using this as for two buttons, pause and play:



ActionScript Code:
//this is the pause buttonon (press) {_root.myMusicPosition = _root.sonido1.position/1000; _root.sonido1.stop(); sonido1 = new Sound(photo);}//this is the play buttonon (press) {_root.sonido1.stop();_root.sonido1.start(_root.myMusicPosition);}
It works ok in Flash MX pro, but doesn´t work in the MX.
Does somebody know why?

Tanks! :p

Why Doesn't This Works?
Last edited by fappy : 2002-05-14 at 02:59.
























I still can't figure it out. I've created a external swf that is gonna be loaded into the main movie. The external swf is proved with 2 scenes. In the first scene is the preloader that preloads the content of scene 2. but i doesn't preload the content when i call it into the main movie... Why doesn't this work... and how can i get it to work that it does preload the external swf....

Does anybody knows what the script is to preload external swf's into the main movie or where i can find information/recources for this to work?

HTML Preview Works, But Flash Preview Doesn´t
I made a little app. with some display containers and tween (regular) alpha effects. It works fine in the html preview (& file) but it doesn´t in the flash one (containers/layers order/alpha/transitions doesn´t works correctly).

When I upload the files to my server, I have the same problem.

Any ideas about what's going on?

Button Doesn't Works Well
HI !

Now my problem is the buttons. Always I have to do a double click on the buttons to work well. Otherwise it does the half work.
Why why why???
for example

on (press, release) {
_root.gotoAndStop("prodotti");
}
In this case, often I need do another click on the button to go in the label "prodotti".

on (press, release) {
setProperty ("sostituire", _visible, "true");
loadVariables ("descCB500.txt", modelli);
_root.modelli = descCB500;
loadMovie ("borse.swf", _root.sostituire);
}
In thes case, first I see the photo, then, with another click, the button shows the text.

Why WhyWhy??

Thanks evebody!

IfFrameLoaded Doesn't Works?
Hi, I have a strange problem 2day... I made a movie and the last frame of that movie contains a jpg picture and I want that if the whole movie is loaded (execpt that pic) that there is a message with loading pic... and when it's loaded the picture wil be shown. Now I've made this code:

ifFrameLoaded (65) {
gotoAndStop(65);
}
gotoAndPlay(57);


But this doens't works?!?! When the pic isn't loaded it will show my message 'loading pic' but when it's loaded is doens't quit looping and doesn't show my pic... what's wrong with the script???

Grtz
Joost

SWF Works... HTML Doesn't
does anyone why would an SWF work when published, but wouldn't function well when called within a flash site? I had this working fine a couple of hours ago, and now I'm pulling whatever is left of my hair to figure out why it's not anymore. the SWF shows when called, but doesn't scroll!

see for yourself...

site: http://www.mikeaqel.com > navigate to Projects button

fla:

One ComboBox Works, One Doesn't
I have a main movie with buttons that load external swfs in higher levels.

One of the external movies has a combo box that works just fine, and changes content on that movie's level.

I am trying to do the exact thing with another external swf/level and combo box. This combo box appears (and is properly populated), but you can never select a value. It doesn't even try to trigger the ChangeHandler. Curiously, this DOES work when testing locally on my PC, or when testing the swf by itself (not within the main movie).

In numerous posts, I saw an issue where the MAIN movie should have the component loaded into the library (drag component then delete off stage). I did this and it didn't help.


If anyone could help, it would be most appreciated!! Thanks in advance.

Sometimes Works, Sometimes Doesn't Work?
Hi guys,

I've been building this simple XML based gallery system. And there is one problem bugging me all day.
This gallery system is scripted to automatically resize the border to fit each image. However, this resize function works perfectly sometimes, and sometimes not, which is the problem.
I've attached the whole system with FLA source file including AS files. Please have look at it, and keep moving around from one to another image by clicking left or right side of the entire flash. Then, you will find out that the resize function doesn't work sometimes.
Please help me on this... I can't sleep 'coz of this random problem..

p.s. I could not include the file 'photo05.jpg' in the images folder, 'coz there was an attachment size limit.

DispatchEvent - One Works; One Doesn't - Why?
I have a Shell.as class set to my project's document class. In Shell.as, I instantiate one instance each of Background.as and Navigation.as. Background.as uses BulkLoader to load all the project's background images and what not. When it's done, it dispatches a custom event up to Shell.as:


ActionScript Code:
private function onAllComplete(e:Event):void
{
    trace(":: Background.onAllComplete() ::");
    // instantiate content background sprite
    _bgContent = new Sprite();
    // position the content background sprite
    _bgContent.x = BG_CONTENT_X;
    _bgContent.y = BG_CONTENT_Y;
    // draw content background sprite
    with (_bgContent)
    {
        graphics.beginFill(BG_CONTENT_COLOR);
        graphics.drawRect(0, 0, BG_CONTENT_WIDTH, BG_CONTENT_HEIGHT);
        graphics.endFill();
    }
    // get background bitmap
    _bgBitmap = e.target.getBitmap("background");
    // get team logo bitmap
    _teamLogoBitmap = e.target.getBitmap("team_logo");
    _teamLogoBitmap.x += BG_MARGIN_X;
    // get market logo bitmap
    _marketLogoBitmap = e.target.getBitmap("market_logo");
    _marketLogoBitmap.x = BG_WIDTH - _marketLogoBitmap.width - BG_MARGIN_X;
    _marketLogoBitmap.y += BG_MARGIN_Y;
    // set instance names
    _bgContent.name = "background_content";
    // add children to display list
    addChild(_bgBitmap);
    addChild(_teamLogoBitmap);
    addChild(_marketLogoBitmap);
    addChild(_bgContent);
    // dispatch BG_COMPLETE event to Shell.as; set bubbling to true
    dispatchEvent(new Event(BG_COMPLETE, true));
    // remove BulkLoader event listeners
    bgLoader.removeEventListener(BulkLoader.COMPLETE, onAllComplete);
    bgLoader.removeEventListener(BulkLoader.PROGRESS, onAllProgress);
}

Navigation.as does the same thing -- but it's not loading a bunch of things. I just want to be notified when it's done. Probably instantly, since it's just using the drawing methods in Flash 9:


ActionScript Code:
private function renderNav():void
{
    trace(":: Navigation.renderNav() ::");
    var nav_tab:NavTab;
    var nav_shift:Number = 0;
    _navItems = new Array();
    for (var i:uint = 0; i < TAB_ACTION.length; i++)
    {
        // create new instance of tab graphic sprite
        nav_tab = new NavTab(
_tabLabels[i].toUpperCase(),
_actColorTop,
_actColorBottom,
_inactColorTop,
_inactColorBottom);
        // give each instance an incremental instance name
        nav_tab.name = "nav_tab_" + i;
        // shift each new instance to the right to create overlapping tabs
        nav_tab.x += nav_shift;
        // incremement the cumulative x shift until you reach the last tab
        if (i < TAB_ACTION.length)
        {
            nav_shift += TAB_SPACING_X;
        }
        // set the sprite button mode to true
        nav_tab.buttonMode = true;
        nav_tab.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
        nav_tab.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
        nav_tab.addEventListener(MouseEvent.CLICK, onMouseClick);
        // add each sprite button to the navigation items array for easy reference
        _navItems.push(nav_tab);
        // add the tab instance to the display list
        addChild(nav_tab);
    }
    // dispatch NAV_COMPLETE event to Shell.as; set bubbling to true
    dispatchEvent(new Event(NAV_COMPLETE, true));
}

Background.as dispatches fine. But Navigation never gets received by Shell.as. No errors. Nothing. Here are the event handlers from Shell.as:


ActionScript Code:
addEventListener("onNavComplete", onNavComplete);
addEventListener("onBackgroundComplete", onBackgroundComplete);

// event handler - "onNavComplete" custom event
private function onNavComplete(e:Event):void
{
    trace(":: Shell.onNavComplete() ::");
    // make _navigation visible when it is complete
    _navigation.visible = true;
}
       
// event handler - "onBackgroundComplete" custom event
private function onBackgroundComplete(e:Event):void
{
    trace(":: Shell.onBackgroundComplete() ::");
    // make _background visible when it is complete
    _background.visible = true;
}

Any ideas why I can't make the Navigation.as dispatchEvent work? Is it just being processed too fast?

IronChefMorimoto

GetURL - One Works - The Other Doesn't?
Hi all,

I am completely stumped, and looking for a bit of advice.

I have 2 'getURL' functions on one keyframe, one a text (converted) button, the other an image. They are both next to one-another however only the text (converted) one works. The top bit of code is the text (converted) button:

bt_url.onRelease = function (){
getURL("http://www.mstgroup.co.uk","_blank");
};
bt_ethicaltrading = function (){
getURL("http://www.ethicaltrade.org","_blank");
};

The code for each is exactly the same, i have checked instance names, tried different url's and even created an invisible button for the image based one. I have also tried putting the buttons on the same layer. All of this to no avail.

I could understand if neither worked but i can't see the problem.

Please help!

Many Thanks,
Hyperlogic

GotoAndPlay Works And Doesn't
Hey all...
I've got a couple of functions on frame 1 of the main timeline. If I call one of them, the gotoAndPlay works fine. If I call the other, it doesn't (but the rest of the function works). It's driving me crazy.

popdownAll() works, regardless of where it's called from (main timeline, deep inside MC) while popDelay() does not - tho the increment and trace work fine. Ugh...


PHP Code:



function popdownAll() {
    var which = eval(_global.upBtn);
    which.gotoAndPlay("popdown");
}

function popDelay() {
    var which = eval(_global.upBtn);
    which.gotoAndPlay("popdown");
//other stuff to see if function is called
    z++;
    trace("popDelay: " + which);
    trace("popDelay: " + z);





Thanks for any help.
- Chris

Export Doesn't Works
Hi
First sorry for my bad english, i'm french

I have a problem with swf export in Flash 8 on MacOSX 10.4. When I try in an admin session it's works but not in user session. I choose publish, it began but Flash crash after. There is a .swf file beside the .fla file but it's not valid.

I have trashed the preferences and reinstalled Flash 8, but it's the same thing.
I have set read and write autorisations in the /Applications/Macromedia Flash 8 folder, but it's the same thing.

Have you an idea because it's obstructing...
Thanks

The TUTORIAL IN HERE Doesn't Works
just try how to make 'Warp Text' in the tutorial there..
ive tired already but can someone tell me how to do it?

Preloader, Works, But Doesn't...
I am feeling like such a n00b today, I can't get anything to work. Anyway, I have this preloader, it's supposed to make the bars go accross, but it doesn't for some reason, it changes the _x value, which i know because i traced it, but the bars don't move...? Any ideas, here's the code i used.

ActionScript Code:
onClipEvent(enterFrame) {    this._x = -55+_root.getBytesLoaded()/_root.getBytesTotal()*269.3;    trace(this._x)}

btw, the reason there isn't an if/then statement in it is cuz I have a % preloader too, and it covers that.

Swf Works, Html Doesn't
hi.

i'm having a strange problem that i don't understand. when i publish my .fla the swf works -- it calls in my other external files, connects to my FlashComm server...everything is good.

as soon as i embed the .swf in an html page, it doesn't work. it'll connect to my FlashComm server and then it dies.

anyone else have problems like this before?

thanks.

fumeng.

1 Instance Works, 2 Doesn't
Hey guys/gals,
I posted a while back about tweening vertices and prg9 had some great links. I used the Fuse example he posted and started to convert it into a class. Here is what I came up with, which works great. However, as you can see in Main.as, it only works one instance at a time, and the last instance that gets called to tween in the onRelease is the one that works. I can't figure out why I can't make more than one instance at a time, so if anyone can help out a bit, that'd be great.

I'm only attaching the two classes that make this run as it depends on some other classes that i have linked up as libraries in eclipse and I don't want to put together a whole package of it, but if its absolutely necessary then let me know and i'll repost a package of files.

Thanks.

EDIT: Sorry, here is the link to the other thread: http://www.kirupa.com/forum/showthread.php?t=264670

Masking Works And... Doesn't...
I see this masking just fine, but one I push Ctrl+Enter to preview, it displays itself as if not masked, what am I doing wrong?

Here's the fla

Preloader, Works, But Doesn't...
I am feeling like such a n00b today, I can't get anything to work. Anyway, I have this preloader, it's supposed to make the bars go accross, but it doesn't for some reason, it changes the _x value, which i know because i traced it, but the bars don't move...? Any ideas, here's the code i used.

ActionScript Code:
onClipEvent(enterFrame) {    this._x = -55+_root.getBytesLoaded()/_root.getBytesTotal()*269.3;    trace(this._x)}

btw, the reason there isn't an if/then statement in it is cuz I have a % preloader too, and it covers that.

Swf Works, Html Doesn't
hi.

i'm having a strange problem that i don't understand. when i publish my .fla the swf works -- it calls in my other external files, connects to my FlashComm server...everything is good.

as soon as i embed the .swf in an html page, it doesn't work. it'll connect to my FlashComm server and then it dies.

anyone else have problems like this before?

thanks.

fumeng.

[XML] Works In FireFox, Doesn't In IE
Okay, this is extremely odd.

I've broken down the problem to as simple XML load/display I can, and I cannot figure this one out.

Have one test.swf, one nav.xml, both in the same folder on the same server.

test.swf contains a textbox "debug_txt"

test.swf populates the XML object like so in the constructor:

ActionScript Code:
debugXML = new XML() ;
debugXML.ignoreWhite = true ;
var owner = this ;
debugXML.onLoad = function(success){
    _root.debug_txt.text += success +"
";
    _root.debug_txt.text += this ;
};


test.swf loads nav.xml with the code below:

ActionScript Code:
debugXML.load("nav.xml") ;


Again, these files are in the same folder.


The weirdness begins:

In the Flash MX2004 Pro IDE, this works fine.

On Server 1 (*nix, Apache) Internet Explorer cannot load the nav.xml file. success is false, and this = null. Firefox works perfectly.

On Server 2 (Unix Apache) Same as server 1



On Server 3 (windows, iPlanet) Both Firefox and IE work fine.

Anyone have a clue here?

LoadVariables... .txt Works; .asp Doesn't...
I'm trying to get a simple Flash test page working to display variables for a website I'm developing.

I have an .asp page pulling values from my SQL db, then writing out a Flash variable string using response.write.

The weird thing is: if I cut and paste the ASP-generated Flash variable string into a .txt file and use
loadVariables("test.txt") to get the variables from my Flash page, everything works just fine...

BUT... if I use .asp to generate the variable string and use loadVariables("test.asp") instead, then I don't get my variable values (even though the resulting string works fine if I cut and paste it into a .txt file).

'my .asp file:

<%@ Language=VBScript %>
<!-- #INCLUDE file="dbconnection.asp" -->
<%
'test.asp
dim strFlash
strFlash=""
strSQL = "SELECT states.state_name, state_statuses.state_status FROM states, state_statuses WHERE states.state_status_id = state_statuses.state_status_id"
set rs=Server.CreateObject("ADODB.recordset")
rs.Open strSQL,conn
while not rs.eof
varName = trim(rs.Fields("state_name"))&"_status"
varValue = trim(rs.Fields("state_status"))
strFlash = strFlash & "&" & varName & "=" & server.URLEncode(varValue)
rs.MoveNext
wend
response.write strFlash
rs.close
set rs = nothing
conn.Close()
set conn = nothing
%>

'my resulting generated .txt file:

&Alabama_status=solid+Republican&Alaska_status=toss%2Dup&Arizona_status=toss%2Dup&Arkansas_status=toss%2Dup&California_status=toss%2Dup&Colorado_status=toss%2Dup&Connecticut_status=toss%2Dup&Delaware_status=toss%2Dup

(I truncated the string for brevity here.)

It's really got me stumped, but I figure it has something to do with URLEncode, even though I think I've tried every URLEncode variation I can think of... any suggestions?

Gracias

Same Script, Different Scene. One Works, One Doesn't What Tha?
Hello anybody...

I have a movie clip on my main timeline that has a script on it's first frame that says:

current = 1
if (textDisplay == current) {
stop ();
}
On the main timeline I have a frame action that states:

movieclipname.textDisplay = 1;

This effectivley stops the mc from playing itself.

In a different scene I have everything set up the same with another symbol but now it dosen't work. I've even renamed all the variables to prevent confusion.

Any ideas?
[Edited by kevin@webwizmedia on 09-17-2001 at 11:33 AM]

Copyright © 2005-08 www.BigResource.com, All rights reserved