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








Flash Doesn't Load In Localhost


HI,

I have a swf embedded inot a HTML file, swf pulls data from an xml file.

works fine when testing CTRL + ENTER, also opening the HTML file directly..

but when i put all the files to the root folder and open the html file from localhost it doesnt load the swf???

cant figure out why




ActionScript.org Forums > Flash General Questions > Flash 8 General Questions
Posted on: 02-20-2007, 07:59 AM


View Complete Forum Thread with Replies

Sponsored Links:

Music Doesn't Play From Web But Works From Localhost
Okay, I'm using:

loading = true
mymusic = new Sound()
mymusic.setVolume(100)
mymusic.loadSound("mp3/music01.mp3", false)

and elsewhere:

if (mymusic.getBytesLoaded() == mymusic.getBytesTotal()) {
mymusic.start(0,100)
}

Now this works great from the local machine, but once it goes up on a site, it doesn't always start playing as soon as it's loaded.. but the thing is, sometimes it plays as soon as it's loaded, and sometimes I have to wait until it's loaded, then click on the play button a second time in order to hear anything.

Anyone able to help?

Thanx.

View Replies !    View Related
Load Images From Localhost And Upload Elsewhere?
I'm making a plugin for an application that uploads files, but I've run into a problem.

Basically, the applications sends XML via POST to a page, containing the URLs of the files hosted on a local (to the user) server.

I was initially going to tackle this through PHP, but it turns out that the local server will only accept connections through localhost, so no external IP access.

I then moved to javascript, but xmlhttprequest won't load files from localhost due to XSS issues.

Is this possible in Flash? I'd need to give flash the URL of images, then have flash upload them elsewhere.

View Replies !    View Related
Flash Doesn't Load
Hi I have a hosting website, http://www.exonhost.com and I recently bought a new Template from TemplateMonster. It will load in IE but when on IE 6 if you try to go on a different page it screws up the HTML.

Also it just comes as a blank white box in firefox. However when I open it up on my own computer like from my desktop to firefox it's all right. Any ideas?

View Replies !    View Related
Flash Doesn't Load It
i designed a program in which i load external swf files which have xml files attached to them into a main movie ie a central movie
problem is the xml files all have the same flie name so i put them in separate files but the main movie won't load the movies unless the are in the same file level but if i put them in the same file level i will have to change the xml file names which i can't do
hope you understand hope you can help

View Replies !    View Related
Flash Doesn't Load Completely In IE
I have an html page in which I have dropped a flash (used front page to insert the flash object)
Apparently when I launch the page in IE 6.0 I see that 1 item downloading in the status bar..
I dont see it in FireFox 2.0

TIA

View Replies !    View Related
Flash Player Doesn't Load
Hi,

My flash player doesnt load when I use a site like Myspace. Where the myspace music player should be there is only a white box and when I right-click it just states "Movie not loaded" and that's after waiting several minutes. I've tried uninstalling flash and I've tried older versions with both IE6 and Mozilla.

Hope some of you guys can help...

View Replies !    View Related
Flash Navbar Doesn't Always Load
Can someone help a Flash newbie? I redid our bands website and added a Flash navbar. Problem is that on some computers it comes up fine, on others they see nothing but a white box and have to hit refresh before the navbar is visible. Does anyone know why this happens? The site address is www.newcoatofpaint.nl The index page of the site is a photo, when you click it you come to the problem page.

I did put a small notice up to hit refresh if you don't see the navbar, but that's sooooo tacky. Thanks in advance.

Donna

View Replies !    View Related
Flash Socketserver Via Localhost
Is it possible to build both a flash client and a server in flash that communicate via sockets on the same PC/machine? In order to create a testing tool that will exercise our flash clients even when the network is absent, we've tried to create a socket server in flash that connects, via localhostortno, to another flash client on the same machine. It doesn't seem to work, and more surprizingly, we cannot find any examples of such a combo in any of the docs or boards. Help?

View Replies !    View Related
[F8] Flash Socketserver Via Localhost
Is it possible to build both a flash client and a server in flash that communicate via sockets on the same PC/machine? In order to create a testing tool that will exercise our flash clients even when the network is absent, we've tried to create a socket server in flash that connects, via localhostortno, to another flash client on the same machine. It doesn't seem to work, and more surprizingly, we cannot find any examples of such a combo in any of the docs or boards. Help?

View Replies !    View Related
Flash 8 Swf Loading On Localhost But Not Cs3?
i have a small swf file that i created with flash cs3. When i embed this file into the html page and run the page through the server. (iis 5) It doesnt seem to play the file. It does show where the file should be and recognises that the file is there, but doesnt play anything.

This is strange because it works fine when i embed a .swf file that has been created with flash 8.

The code looks like this...

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','415','height','235','src','images/intro','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','images/intro' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="

View Replies !    View Related
Flash Connect To Localhost ?
I am trying to make my swf connect to a locahost .cfm file (in the same folder on ISS web server) using sendToURL. No success though, it just continually says "transferring data from localhost".

Does anyone have any ideas ?

var myRequest:URLRequest = new URLRequest("forwarder.cfm");
myRequest.data = cardXML;
myRequest.method = URLRequestMethod.POST;
sendToURL(myRequest);





























Edited: 06/16/2008 at 07:23:18 PM by phil1943

View Replies !    View Related
Flash Sockets Via Localhost
Is it possible to build both a flash client and a server in flash that communicate via sockets on the same PC/machine? In order to create a testing tool that will exercise our flash clients even when the network is absent, we've tried to create a socket server in flash that connects, via localhost:portno, to another flash client on the same machine. It doesn't seem to work, and more surprizingly, we cannot find any examples of such a combo in any of the docs or boards. Help?

View Replies !    View Related
Flash & Php Won't Work On My Localhost
Yeah its me again with a similar problem...
well, i installed the Wamp5 sever on my computer and it works fine, however flash and php won't work together on it...
there can't be a mistake in my swf files, because i also tried those downloaded from a book that i'm reading and they won't work eigther.
Does anybody have an idea? could it be that wamp5 doesn't support flash in combination with php?

thanks in advance

View Replies !    View Related
Swfobject Doesn't Load The Flash Object
He doesn't have any message boards, so I'm hoping someone here can take a look at my javascript for the swfobject.js and see if they know why my flash isn't loading in the header. I did load it using normal code at the bottom, but that's just so you can see what should be loading at the top in the header.

Link: bgliving.com/index_new.php

Thanks!

View Replies !    View Related
[F8] The Swf File Doesn't Load Properly Outside Flash
When I try to load the .swf file directly from windows explorer (and not inside flash) almost none of the graphics is shown and all functionality is gone.

What could be wrong?

I am very grateful for any help!

View Replies !    View Related
[F8] Flash Site Doesn't Load In FireFox?
I built a site using flash, embedded the swf into an HTML file and posted it. It works perfectly in IE but when I try to view it using FireFox I simply get a blank screen!!

I've searched the adobe knowledge base and couldn't find anything. Has anyone else had this problem? How do I fix it?

View Replies !    View Related
Flash Movie Doesn't Load In Dreamweaver
I'm trying to center my flash movie withing a 3 row table in an HTML file that has the "Flash Detection" javascript embedded within it. I'm really not sure if I've put the table formatting HTML in the correct place or not. When I test the movie everything is fine but it doesn't load online. I'll attach the code to this post. The website is www.elkhornpeakcellars.com if you'd like to see what this code currently produces. Thanks








Attach Code

<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ep_master</title>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 7;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 0;
// the version of javascript supported
var jsVersion = 1.0;
// -----------------------------------------------------------------------------
// -->
</script>
<script language="VBScript" type="text/vbscript">
<!-- // Visual basic helper required to detect Flash Player ActiveX control version information
Function VBGetSwfVer(i)
on error resume next
Dim swControl, swVersion
swVersion = 0

set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))
if (IsObject(swControl)) then
swVersion = swControl.GetVariable("$version")
end if
VBGetSwfVer = swVersion
End Function
// -->
</script>
<script language="JavaScript1.1" type="text/javascript">
<!-- // Detect Client Browser type
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
jsVersion = 1.1;
// JavaScript helper required to detect Flash Player PlugIn version information
function JSGetSwfVer(i){
// NS/Opera version >= 3 check for Flash plugin in plugin array
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
descArray = flashDescription.split(" ");
tempArrayMajor = descArray[2].split(".");
versionMajor = tempArrayMajor[0];
versionMinor = tempArrayMajor[1];
if ( descArray[3] != "" ) {
tempArrayMinor = descArray[3].split("r");
} else {
tempArrayMinor = descArray[4].split("r");
}
versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
} else {
flashVer = -1;
}
}
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
// Can't detect in all other cases
else {

flashVer = -1;
}
return flashVer;
}
// If called with no parameters this function returns a floating point value
// which should be the version of the Flash Player or 0.0
// ex: Flash Player 7r14 returns 7.14
// If called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
reqVer = parseFloat(reqMajorVer + "." + reqRevision);
// loop backwards through the versions until we find the newest version
for (i=25;i>0;i--) {
if (isIE && isWin && !isOpera) {
versionStr = VBGetSwfVer(i);
} else {
versionStr = JSGetSwfVer(i);
}
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
tempArray = versionStr.split(" ");
tempString = tempArray[1];
versionArray = tempString .split(",");
} else {
versionArray = versionStr.split(".");
}
versionMajor = versionArray[0];
versionMinor = versionArray[1];
versionRevision = versionArray[2];

versionString = versionMajor + "." + versionRevision; // 7.0r24 == 7.24
versionNum = parseFloat(versionString);
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if ( (versionMajor > reqMajorVer) && (versionNum >= reqVer) ) {
return true;
} else {
return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false );
}
}
}
return (reqVer ? false : 0.0);
}
// -->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
loading assets
-->
<script language="JavaScript" type="text/javascript">
<!--
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
+ 'width="600" height="400"'
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
+ '<param name="movie" value="ep_master.swf" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
+ '<embed src="ep_master.swf" loop="false" menu="false" quality="high" bgcolor="#ffffff" '
+ 'width="600" height="400" name="ep_master" align="middle"'
+ 'play="true"'
+ 'loop="false"'
+ 'quality="high"'
+ 'allowScriptAccess="sameDomain"'
+ 'type="application/x-shockwave-flash"'
+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
+ '</embed>'
+ '</object>';
document.write(oeTags); // embed the flash movie
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Macromedia Flash Player.'
+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
// -->
</script>
<noscript>
// Provide alternate content for browsers that do not support scripting
// or for those that have scripting disabled.
Alternate HTML content should be placed here. This content requires the Macromedia Flash Player.
<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>
</noscript>
</body>
</html>

View Replies !    View Related
Flash 8 Video Components Doesn't Load
I'm trying to use the new video player components in flash 8 to play short video clips from an HTML page for a CD-ROM project. From my hard drive the page, components and FLVs work perfectly. Once I burn all of this to disk the HTML is still there, but the flash components don't show at all. I've installed and re-installed flash player 8 but still no luck. Any ideas where I might be going wrong here? In Dreamweaver 8 I simply dragged the swf files that contain my components into the HTML page. Everything lies in CD root.

Any help will be greatly appreciated...currently I have no solution for this problem.

View Replies !    View Related
Flash Not Reading PHP Variables On Localhost
I have PHP, Apache set up on my computer. The system works fine.

I have a flash file that I'm trying to import variables from. Both the flash and PHP file are located in the same directory.

I have a variable num. That variable is supposed to be input into Flash so I can run a for loop.

However, when Flash gets the variable, this is the value:


Code:
".$intImgs."
where in the script the line is:


Code:
echo "&num=".$intImgs."&c2_512_Files=";
Obviously the PHP is not compiling (though when I pull up the PHP page through my localhost on my browser, the output is fine (&num=128&c2_512_Files=...).

Everything works fine if I upload the PHP script to the internet.

Anyone had any problems like this and suggestions how to fix it? I'd really like to not have to upload my scripts in order to test my files.

Thanks.

Tim

View Replies !    View Related
Page 2 - Flash & Php Won't Work On My Localhost
Basically.

Anyway, thanks. I'll check out that .zip.

View Replies !    View Related
My Flash Website Gets Stuck And Doesn't Load Properly
I have developed a flash website that works perfectly well when i test it on my computer. when i have loaded it onto the web it seems to get stuck. www.adamdunnesculpture.com

if i do a hard refresh (Ctrl & F5) it will load properly. is there any code that will force the flash movie to fully load...

i am totally stuck and have worked hard on this to allow me to teach this at the school i work at. any advice would be very very gratefully received.

Thankyou in advance

View Replies !    View Related
Flash Video Doesn't Load Locally Or On Server
Hi, I don't know if this is related to Flash Media Server nor not (I doubt it since it's we're just discovered it's happening locally as well). We've recently purchased and been using Flash Media Server for all of our online video. We were using WMP and have been converting all of the old videos over to FLVs now. Several of my co-workers can view these videos fine, locally and on our sites. Some of us though, myself included, can't see the videos either way. I have Flash Player 9 and am on a Windows XP system. My co-workers who can see videos have a nearly identical setup to mine. I am able to view video that's using Flash on other sites though and can still see our old WMP videos. Any ideas? This appears to have just occurred relatively recently and I'm afraid I can't think of anything I could've done that may've triggered it. Thanks in advance!

View Replies !    View Related
Flash Remoting For DOTNET Localhost Vs Domain
Hi all


I am working on Flash Remoting for DOTNET Using the Windows 2000 Server as a Operating System. My task is very simple click on the flash button then button call the aspx page. to return text and display the text in the textbox.When I do this task in localhost its work fine and grab the result from aspx page.

But the scenario changed when I created domain in IIs and insert the domain info in host file. Neighter shows any error as per the requirement nor call the page. I have entered flashgateway.dll file in bin folder and enter <httpModules> element in web.config. Using action script 2.0 have dragged the RemotingConnector component on the authoring enviroment. Here is my files plz chk it and if someone know.


My Domain name http://www.urlproblem.com

Here is the directory Structure of my project.

[img][/img]

GateWayUrl.fla
==============
import mx.remoting.NetServices;
import mx.remoting.Service;
import mx.remoting.debug.NetDebug;
import mx.remoting.Connection;

if (inited != null)
{
return;
}
else
{
this.inited = true;
NetServices.setDefaultGatewayUrl("http://www.urlproblem.com:80/flashremoting/WebForm1.aspx");
var GateWayConnection:Connection= NetServices.createGatewayConnection();
//PageLocation="flashremoting";//After completing change this var into _global var
ASPXService = GateWayConnection.getService( "flashremoting.FileAnswer", this);

//getStrings();
}
localhost2.onRelease = function()
{
ASPXService.AnswerUrl();
}

function AnswerUrl_Result(result)
{
answer.text = result;
//trace(result);
}

function AnswerUrl_Status(Error)
{
answer.text = Error.code;
answer.text = Error.description ;
answer.text = Error.details ;
}
stop();
============================

AnswerUrl.aspx
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="AnswerUrl.aspx.vb" Inherits="flashremoting.AnswerUrl"%>
<%@ Register TagPrefix="Macromedia" Namespace="FlashGateway" Assembly="flashgateway" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>AnswerUrl</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<Macromedia:Flash ID="Flash" runat="server">
Hello from .NET!
</Macromedia:Flash></form>
</FORM>
</body>
</HTML>

View Replies !    View Related
Flash Movies Not Working On Localhost (Apache)
For some reason any Flash files embedded in my pages do not show on my local development machine. I have the latest Flash Player installed and I am running apache 2 on Mac OSX PC.

This just started occurring a couple weeks ago... I don't know what changed.

View Replies !    View Related
Flash Showing In Localhost But Not When I Post Up To Server
Hi guys,

I've created a FLV file, and when I open it up in Flash it asks me how I want to import it. I choose it as a location from the C: drive, then give it some start and stop buttons. Then I can Publish the file and move the published files to my local web server. I can then view the html file through localhost and it works great.

However when I take these same files and place them on my server (or any other computer) they do not work. I'm taking all the required files, the html, js, the original flv and the two swf's (one is the start/stop control)... but it just doesn't work.

Does anyone know what I'm missing here? Is there some sort of hard file link I've accidentally entered that's causing this weird behaviour?

Thanks for your time!

Alex

View Replies !    View Related
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…

View Replies !    View Related
Passing Variable Php To Flash, Can't Access File.php On Localhost
Hi,
i'm trying to put a variable in a flash movie using a PHP file.
I Did everything in the .php (print(filename=$file))...
I also coded the part for AS in the movie timeline:

loadVariables("http://localhost/test.php", this, "GET");

But on that line, flash 8 pop a message saying that my movie.swf try to communication with localhost, and this access is denied. So I'm redirected to the web setup where I must ADD the address wich I want to be allowed, but that change nothing, after reloading the application, it keeps doing the same thing, even if my new address(http://localhost/test.php) is indeed in the allowed list.

Please I really need help for this I can't find where to fix this anywhere!

View Replies !    View Related
Flash MP3 Player Doesn't Load Songs On Test And Live Site
Hi,

I've downloaded the files for the 'Flash MP3 Player 3' from the tutorial on this site and I can get the songs to play fine when I open up the .swf using the Flash standalone player (all the necessary files and songs are in the same folder), but I can't get it to work on my MAMP set up nor on my live site. Any ideas why that might be?

Do I need to set the target for the source files or something before publishing?

Thanks

View Replies !    View Related
[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…

View Replies !    View Related
Passing Variable From Php To Flash, Error: Can't Access File.php On Localhost
Hi,

i'm trying to put a variable in a flash movie using a PHP file.
I Did everything in the .php (print(filename=$file))...

I also coded the part for AS in the movie timeline:
loadVariables("http://localhost/test.php", this, "GET");

But on that line, flash 8 pop a message saying that my movie.swf try to communication with localhost, and this access is denied. So I'm redirected to the web setup where I must ADD the address wich I want to be allowed, but that change nothing, after reloading the application, it keeps doing the same thing, even if my new address(http://localhost/test.php) is indeed in the allowed list.

Please I really need help for this I can't find where to fix this anywhere!

View Replies !    View Related
Jpg Doesn't Load
This has never happened to me...
Trying to load a picture via loadMovie, and it doesn't show up.
What's wrong with 1.jpg? Because 2.jpg loads as expected.

View Replies !    View Related
Why Doesn't The .jpg Load?
Hi!
this question is almost as newbie as it gets
Many times, i've used the loadMovie action to load a .jpg into a .swf.
However, when i try the same now, with a target movie clip, it doesn't work!
I know that it finds the picture, cause if not, i would get an error output.
To check if it was something wrong with my script, i inserted a path to a .swf instead, and it loaded fine. So why doesn't the .jpg load when i, using the same script, can load .swf?

Hope you understand my english!

Magnus

View Replies !    View Related
Bar Doesn't Load All The Way
i have made a flash site: http://www.transgreenenergy.com and the bar stays at half way the whole time.. any ideas?





























Edited: 08/07/2007 at 07:26:38 AM by rapahelrjr

View Replies !    View Related
LoadVars Doesn't .load
My LoadVars object refuses to run it's load method.
I type:

newvars = new LoadVars();
newvars.onLoad = function () {
trace("Blah blah blah");
}
newvars.load("existing_file");

I run this thing, and nothing happens.
I scratch my head and insert a non-existing path in there.
Nothing happens (And I DO expect a 'cannot open file' output).

I think - "something wrong with the place" and put in a couple more LoadVars objects around the movie with the same parameters - none respond.

XML.load works fine.

Have you seen a problem like this before?

View Replies !    View Related
Every Other Picture Doesn't Load
Hi,

I've been strugling and searching for days with this problem:
I've build an application (runs as an exe) that makes use of an online database and dynamicly scaled pictures (php GD library.) Everytime a button is pushed two scaled pictures should appear. This works fine with the first button. The next button no pictures are loaded, no matter how long you wait. The next button the pictures are loaded again, and the next button nothing happens and so on. Look here to see some screen shots. When the pictures don't load the code stops at the loading... point, see code below.
I've tried all sorts of things including cache prevention in the php file and in the swf. I've posted this before at the scripting and backend forum but I think it's more of an actionscript problem.
This is the essential part of the flash code:

Code:
// LEFT CAM loads dynamic picture
// unload old cam pict first
left.cam.unloadMovie();
// set status text to nothing
_root.left.status_txt = "";
// generate random numbers to prevent caching
cache_killer = new Date().getTime();
// load cam picture left
left.cam.loadMovie("http://www.mysite.nl/scale_pict2.php?verschil="+dif_left+"&no_cache="+cache_killer);//
_root.my_status = "call server";
_root.left.loadVariables("http://www.mysite.nl/data.php?verschil="+dif_left, "POST");
_root.my_status = "load vars";
load_check_left();
//create interval for bytes check
_root.cam_loader_left = setInterval(load_check_left, 10);
_root.my_status = "set interval";
////////////////////////////
// check if all the bytes have loaded
function load_check_left() {
_root.my_status = "check 1";
var kb_loaded_left = Math.floor(_root.left.cam.getBytesLoaded());
_root.loaded_left = kb_loaded_left;
_root.my_status = "check 2";
var kb_total_left = Math.floor(_root.left.cam.getBytesTotal());
_root.total_left = kb_total_left;
if (kb_loaded_left >= kb_total_left && kb_loaded_left>500) {
_root.left.status_txt = "loading webcam...";
// cam is loaded completely
if (kb_loaded_left >= kb_total_left){
_root.my_status = "loaded!";
// put textfield below webcame image
_root.left.data_f_txt._y = _root.left.cam._height;
// make data field visible
_root.left.data_f_txt._visible = 1;
// stop checking bytes
clearInterval(_root.cam_loader_left);
_root.my_status = "clear interval";
// terminate
return;
}
}
else if (kb_total_left == -1){
_root.my_status = "load error";
_root.left.status_txt = "error: can't open webcam
e-mail will be send to numuseum";
// make data field invisible
_root.left.data_f_txt._visible = 0;
// stop checking bytes
clearInterval(_root.cam_loader_left);
// terminate
return;
}
else {
// here the execution stops
_root.my_status = "loading...";
_root.left.status_txt = "loading webcam...";
// make data field visible
_root.left.data_f_txt._visible = 1;
}
};
I absolutely don't have a clue what's wrong here. So any help would be greatly appreciated!
Thanks for your time, Danielle.

View Replies !    View Related
The Site Doesn't Load
hi!
I finished a few pages of a site I'm working on.
I've loaded the site on the server to have a preview, but it doesn't show anything; not even the preloader.
What am I doing wrong?
The first page has 11 kb.
please help meeeeeeeeeee!!!!!!!!!

View Replies !    View Related
Load Mc If Viewer Doesn't Do Anything
Hi all - Sorry if this is redundant but the other thread went way off and I really need help.

Is there a script that will load a mc or play a frame, etc... if the viewer doesn't do anything (respond - click anything) in a specified period of time??

I am thinking it an "if" thing but can't find any info that I understand on the "if". Everything I tried told me I had "trailing garbage".

Some of you gave me info but it was for MX and I am using Flash 5.

Thanks so much for any help!!

Dawn

View Replies !    View Related
Why Doesn't The Text Load?
Hi!

I'm making a website, and when the different buttons is pushed, the site load's different .swf-movies into the main .swf-movie.

My problem is that in these "sub-movies", i use the loadVariables to load text. It works fine there, but when these .swf-movies are loaded into other (the main-) .swf-movie, the text doesn't appear...

If anybody understood this, can you please help me?

View Replies !    View Related
LoadVariablesNum Doesn't Load?
Hi all,

I am trying to rebuild my web site. I try to use external datas on flash? When I finish my work it looked to me good offline. When I upload to my site all loadVariablesNum commands doesn't work. May be it works after 4 or 5 refreshes.


Code:
_level2:secondnumbere = loadVariablesNum("newsnumbers.txt", 2);
_level2:lastupdate = loadVariablesNum("lastupdate.txt", 2);


Am I doing something wrong?

Thanks

PS. Sorry about my poor English

View Replies !    View Related
Section Of Swf Doesn't Load?
This is a large swf embedded in html. but when you click on "our work" it doesn't load until you click a second time?

http://www.pattersonandsmith.com/

that's in firefox, in safari it doesn't open at all. It's the large section of the swf-could it be the preloader?

here's the code for the preloader
lastFrame = 1;

function loadedIndicatorFrame() {
var newFrame = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 65) + 2;
if (newFrame - lastFrame > 4) { //too far
lastFrame += 4;
loadedText = int(_parent.getBytesTotal() / 1024 * (lastFrame - 2) / 65) + "kb of " + int(_parent.getBytesTotal() / 1024) + "kb";
} else if (newFrame - lastFrame > 0) { //normal move
lastFrame++;
loadedText = int(_parent.getBytesLoaded() / 1024) + "kb of " + int(_parent.getBytesTotal() / 1024) + "kb";
} else { //update the text only
loadedText = int(_parent.getBytesLoaded() / 1024) + "kb of " + int(_parent.getBytesTotal() / 1024) + "kb";
}
return lastFrame;
}

View Replies !    View Related
Actionscript Doesn't Load
Hi; I'm really getting mad.

I have a movie which has some buttons who load images within another movie; I have two of them. One works good both online and offline; the other doesn't load any pictures online (but it loads 'em offline!)! Though, I just modified the former (just stripped it from some frames, which didn't got any working function; it was just frills removed) in order to build the latter!

WHY this happens? :-(

Please have a look!

I really don't know what happens. The owner is beating me for this movie doesn't work, and I don't know how to resolve this problem. I'm in a real problem. Please help!

View Replies !    View Related
Doesn't Load Images
I am trying sample files (gallery_tween.fla) in Flash 8 samples directory. I publish it run the .html file it is OK. But when I copy the .html file which includes the swf file to another directory and of course change its path to the swf file it doesn't. Please help because I want to use it in my site as picture gallery in headers of all pages in the site.

View Replies !    View Related
Image Doesn't Always Load
I have a sequence of images loading into a UILoader, timing is cued by video cue points. Most of the time the first image will load correctly, but sometimes the first image doesn't load at all. The first cue point is located at the very beginning of the video. Any ideas on what my problem might be?







Attach Code

import fl.video.VideoEvent;
import fl.video.MetadataEvent;
import fl.controls.List;

vid.addEventListener(MetadataEvent.CUE_POINT, loadit);


function loadit(e:MetadataEvent){
var cuePointName = e.info.name;
if(cuePointName == "mark15"){
ss.source = "images/Slide10.jpg";
}else if(cuePointName == "mark16"){
ss.source = "images/Slide11.jpg";
}else if(cuePointName == "mark17"){
ss.source = "images/Slide12.jpg";
}

View Replies !    View Related
Loadmovie Doesn't Always Load
I'm using Flash MX on Mac OSX. I've created a website which contains some thumbnail images, which when clicked on goto a frame number which in turn loads an external swf, using loadmovienum.

The external swf's are not all loading when viewed through a browser on a pc, but do all load when viewed on a mac (both IE5.1 and Netscape.). They all load when I "publish preview", but not when I "control-test movie"

They all have jpegs, which are all saved in the same way, all have identical publishing settings, all located in the same folder.... why oh why are some not loading?

any ideas?

thanks.

View Replies !    View Related
PDF Doesn't Load On Windows
hey there, anybody know why a PDF would load on mac and not on windows?

this is the code:

PDF_btn.onRelease=function(){
getURL("TermLifePDF.pdf", "_blank","GET")
}

thanks!!

View Replies !    View Related
External Swf Doesn't Load?
I have 4 movieclips that on rollOver should load an external swf, the problem is that it doesn't load.

the NN2_a.swf loads when its begins the external ad1.swf and on rollOver of the 2 button the container should load ad2.swf but for some reason it doesn't, can anyone help me out here? I can't figure out what i've done wrong or doing wrong

Flokkert

View Replies !    View Related
Loadmovie Doesn't Always Load
I'm using Flash MX on Mac OSX. I've created a website which contains some thumbnail images, which when clicked on goto a frame number which in turn loads an external swf, using loadmovienum.

The external swf's are not all loading when viewed through a browser on a pc, but do all load when viewed on a mac (both IE5.1 and Netscape.). They all load when I "publish preview", but not when I "control-test movie"

They all have jpegs, which are all saved in the same way, all have identical publishing settings, all located in the same folder.... why oh why are some not loading?

any ideas?

thanks.

View Replies !    View Related
Load JPG's Via LoadMovie Doesn't Work
Im trying to load JPG's via loadMovie("http://mydomain.com/twin.jpg", "_root.myMovieClip");

the .swf is in a diferent domain i think this is the problem
but it works when i tell it to load an other .swf file.
so whats the big deal? i can't load JPG's from a diferent URL?

What i want to do is load this JPG's files every 10Secs because i didn't find the way to make the live stream with liveCam = camera.get();
myCam.attachVideo(liveCam); <--- i know this way only works locally and when u publish the movie it says allow "local" to access blah blah blah.
but i've visited a few sites that says Allow "domain.com" to acces your camera blah blah blah.

http://pilotvideo.com/NewFiles/Compression.html

But if anyone can tell me how i can load the JPG's from URL i'll be pretty happy, thanks in advanced =)

View Replies !    View Related
My Preloader Doesn't Pre-load My Sounds
I've just learned how to add sounds to my Flash MX file, but now my pre-loader doesn't start until all my sounds have finished loading. The pre-loader is in a different scene and occur's before any refference to my sounds.

What am I doing wrong?

View Replies !    View Related
Load XML Doesn't Work On Scene 2
Hi all.
Can anyone explain why loading an XML file doesn't work when it is on scene 2?

If I have the code on scene 1, it works fine but when I switch it to scene 2 the load just fails.

On scene 1, there is a button that the user presses to switch to scene 2. The actionscript on the button is:

on(press){
gotoAndPlay("Scene2");
}

On scene 2, frame 1 I have:
pageLinks = new XML();
pageLinks.load("C:\text.txt");

On scene 2, frame 2 I have:
pageLinks.onData = function(pageLnks) {
trace(pageLnks);
}

On scene 2, frame 3 I have:
gotoAndPlay(2);

The trace never executes on scene 2, but if I change scene 2 to be scene 1, it works fine.

Any ideas?

Thanks in advance,
Damian

View Replies !    View Related
LoadVars & Asp Doesn't Load Data?
I cant seem to get the LoadVar section to work. so there must be something wrong with my actionscript on frame 1. The asp seems to work well enough when viewed from [ /localhost/flashvars.asp ] since it returns the correct string, but I dont get any results in the flash part?

thanks for any help.

.:AlphaOne:.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved