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




Displaying Flash On Server



I have a flash header for my website that has clickable buttons to other pages in the website. I used the direct path because the whole website is not made in flash and I wanted to test it to make sure it worked. Clicking the home button let me know that it was working fine, ON MY MACHINE ONLY. It works fine in flash when I insert it in a Dreamweaver page it works great, however: when I upload it to the server I see nothing. I exported the flash directly to Dreamweaver folder, I uploaded all three components. The script Dreamweaver generates, the swf and the fla. I added several mime types flv, fla and a few others I found that were associated with flash. Anyone know why this is not displaying when uploaded to the server.



FlashKit > Flash Help > Flash Newbies
Posted on: 06-11-2008, 12:19 AM


View Complete Forum Thread with Replies

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

Displaying A .html File In Flash From The Server
Ok PLEASE tell me this is possible. Ive displayed .swf files in a scroll pane box from the server but how could I display .html in it? It dosent seem to work when I try. I set the content path for the .html file (just like I would set it for a .swf file) and nothing displays in it. I made this entire site (makingtheclan.com) in flash and its been working out greate but I need to be able to display HTML in windows or im going to have to convert the entire site to HTML (witch ive been haveing major problems with). This has to be possible to do!!!

Flash Videos Not Displaying In Swf (when Uploaded To Server)
Hi all,

I have a number of flvs which are displayed in a swf app, which inturn is embedded into an html page.

It all works fine on my local machine, problem is that when i upload it to our server the videos are no longer displayed (yet the rest of the swf works fine). Its a windows server with IIS.

Here is a snippet of the code im using to load the videos.


PHP Code:



lagTime = 1;
endTime = 10;
urlPath = "../videos/intro.flv";
loadVideos(urlPath, lagTime, endTime);

function loadVideos(urlPath:String, lagTime:Number, endTime:Number):Void{    

        var listenerTimeObject:Object = new Object();
        listenerTimeObject.playheadUpdate = function(eventObject:Object):Void {

            var playerTime:Number = mcVideos.video1.playheadTime;            
            digitalTimer(lagTime, playerTime, endTime);
        }
        
        var listenerObject:Object = new Object();
        listenerObject.cuePoint = function(eventObject:Object):Void {
                if(eventObject.info.name == "flashNav"){
                    mcNav.btn1.gotoAndPlay("lblHigh");
                }
        }
        var listenerStopObject:Object = new Object();
        listenerStopObject.stopped = function(eventObject:Object):Void {
            loadWaiting();            
        };
        
        mcVideos.video1.addEventListener("stopped", listenerStopObject);
        mcVideos.video1.addEventListener("cuePoint", listenerObject);
        mcVideos.video1.addEventListener("playheadUpdate", listenerTimeObject);
        //loads the movie
        mcVideos.video1.contentPath = urlPath;        





Thanks

Flash Project For School Not Displaying From Server
I have to build a page using a flash element for school. The flash part of
the page displays fine when viewed locally (it's just a static image), but
when I upload everything to the web, the content doesn't display in Firefox
or Internet Explorer. But when I access on the web the SWF file directly,
it displays fine. What am I missing here? I've spent three hours on this
problem tonight and I'm no closer to a solution now than I was when I
started.

Here are the two links:

Flash Embedded in HTML
http://www.illuminus.org/anthem/dd170/u3/p1/vox/voxGTRZ.html

Standalone SWF File:
http://www.illuminus.org/anthem/dd170/u3/p1/vox/swf/voxGTRZ-finished.swf

Thanks

Displaying Server-side PHP.
Long story so I won't explain, but I need Flash to look at the source of a PHP page in the same directory on the server. The only problem is that the server parses the PHP so Flash doesn't look at it! I'm using Flash MX but I also have Flash 8 Pro if needed. Here's my code on the first (only) frame. It works client-side but not executed from the server (it parses first).


ActionScript Code:
loadText = new LoadVars();
loadText.onData = function(raw) { myField.text = raw };
loadText.load("index.php");

I believe one of those is undocumented, so it may not be recognized. It works fine running it on a local computer and for other files.

Here's the example I have right now: http://www.cindex.webhop.net/Test/index.swf to show the source on cindex.webhop.net/Test/index.php

Thanks
-Cindex

Displaying Text From A Server
This is supposed to be a list of games coming from the server. I know they are they because I can see them in the output window. How to I see them on the stage or in a swf?







Attach Code

var sampleLH:SampleLobbyHandler = new SampleLobbyHandler();
var lobbyRx:LobbyReceiver =
new LobbyReceiver(sampleLH, "127.0.0.1", 16002);

lobbyRx.initialize();

Dynamic Content Not Displaying On Server
Any help will be appreciated;

I have a flash movie that displays news stored in my MySQL db. If I test the movie in FLASH MX 2004 it works, but after uploading to my server the news doesn't display in the .SWF file.

Here are the steps I took:
- I placed a movie clip named NEWS in the main timeline.
- I gave news the following action:

Code:

onClipEvent (load) {
loadVariables(ttp://www.eeminder.com/comp_images/flash/main_content/news.php");
}


- Inside NEWS I have a dynamic textfield called news_content
- Inside news.php I have this code:
Code:

<?php
print("&news_content=TESTING");
?>


I test it and it runs fine, after uploading it doesn't. I had a similar error with the same file where I load and unload movies at certain frames in the main timeline, whenI test locally it works but after uploading the movie plays without loading the specified .swf files.
Can anyone help me please? Is it my script or it a server error or something?

-rea

Xml Images Not Displaying When Viewed On Server
I'm loading several images via an xml file. When viewing the swf locally (Flash preview or embedded in html in a browser) everything displays perfectly.

However, once uploaded to any server (I've tried several) some of the images don't display. It seems very random, some display, some don't. In one instance the image appears briefly then disappears, so I know it is parsing the xml correctly and the image is getting into Flash, then something is causing it not to display.

Is this some known Flash bug? has anyone experienced this before and have a solution?

Displaying Server Date And Time Permanently
How do I create a clock using Flash MX to permanently display the server's date and time ?

Thanks,
Raymond

Flash 8 Dynamic Map Displaying XML Data, Problem With Displaying Text
Hello everybody...

I'm working on a project in which viewers can see a map with state parks highlighted as buttons. onRollOver a caption pops up displaying the name of the park, acreage and feet of shoreline. onRelease a movie clip is loaded into a holder. The data is being stored in an XML file integrated with a content management system... The AS for displaying the caption works fine, but I cannot get the XML data to display in the dynamic text fields contained within the caption MC. There are 37 buttons that need to display the popup and I am looking for some advice on how I can effectively navigate the XML nodes and display the data accordingly in the text fields. Below is my current code, I have not yet added the onRelease function because, I'm pretty sure that i'm going to run into the same issue that i'm having with the caption popup... The last obstacle will be that the caption is only displaying 3 of the child nodes, while the MC loaded into the holder will be displaying 7 of the child nodes. I'm guessing that using the attributes property and modifying my XML would be the easiest... but i'm relatively new to integrating XML data into Flash and am trying to minimize the work that I create for myself. If anybody could point me in the right direction, i would be immensly appreciative. Pura Vida. ~Anthony

//1st frame AS for the first button, and loading XML
var xmlPath = ("xml_mapinfo.xml");
/////////////////////////////////////
var locID:Number = 0;
/////////////////////////////////////
startDrag(this.caption, true);
/////////////////////////////////////
btn_1.onRollOver = function (){
set ("locID", 1);
RollOver();
ShowData();
}
btn_1.onRollOut = function (){
RollOut();
}
/////////////////////////////////////
function RollOver (){
trace("rollOver occured");
_root.x = 1;
this.caption.words = "Word!";
trace ("Location ID = " + locID);
}
function RollOut (){
trace("rollOut occured");
set ("locID", 0);
_root.x = 0;
this.caption.words= " ";
trace ("Location ID = " + locID);
}
/////////////////////////////////////
function ShowData(){
this.caption.location_txt.text=contentMain.owner['1'];
this.caption.acreage_txt.text=contentMain.acreage['1'];
this.caption.acreage_txt.text=contentMain.shorelin e['1'];
}
/////////////////////////////////////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
owner = [];
interest = [];
town = [];
established = [];
acreage = [];
shoreline = [];
thumbnail = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
owner[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
interest[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
town[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
established[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
acreage[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
shoreline[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;
thumbnail[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;
}
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(this.xmlPath);

//AS on actual caption MC
//////////////////////////////
onClipEvent (enterFrame) {
if (_root.x==1) {
this._alpha = 80;
} else {
this._alpha = 0;
}
}
_

Flash Displaying Of Html Not Displaying Spans Right
I have a swf that calls a php script. The script outputs html and then the html is displayed in a dynamic text box. The textbox is set to display html.

My problem is this. The
HTML Code:
<b>Concealed Weapon Law </b>
will print bold on the dynamic text field, but
HTML Code:
<span style="font-weight: bold;">Badges</span>
will not display bold on the dynamic text field.

I have an admin section built that allows a user to use a wysiwyg editor (js) to create the text and it does the span style way.....

I have no way of changing that or I would.

Is there a way in flash to recognize that span style info to print out bold?

SOAP, C++, C#, Or Other Access To Flash Media Server Server Management ActionScript API,
I'm writing code to manage a farm of Flash Media Servers, and I need to call some Flash Media Server APIs from languages other than ActionScript.

I'm happy to write some of my code in ActionScript subroutines, and just use the NetConnection remote call API to invoke those functions. But I can find no way to do this.

I was initially enticed by the alleged support for Web-Services, but was disappointed to find that it only (appears) to support consumption of web services - not PROVISION of web services.

I saw that there was an external API accessible from flash media player itself, but that appears to require embedding the media player in a web browser, etc.

Is it - perhaps - possible to directly invoke the flash-media-player from a C# application using their COM-bridge in .Net? And then use that to invoke remote connections - without having any client side actionscript?

Any other ideas?

Flash Media Server 3 And Windows 2003 Server Help For Live Streaming
Hi
I installed FMS 3 (developer) on my Windows 2003 Web Edition.server online
I booted the FMS 3 and it seems that it works correctly (I did the port scanner and is ok)
But I can not see the live streaming applications.
I followed the guidance of Tom Green
http://www.adobe.com/devnet/flashmediaserver/articles/beginner_vod_fm3.html

In local everything works, but in windows server 2003 does not see the movie: I see only the green bar.

Please, someone has had similar problems to my and resolved?
What should I do on Windows servers?
The firewall is open on port 1395, but I do not have results.

Also, if using Flash Media Encoder 2.5 (locally) and use <Stream to Flash media Server> after entering the username and password I have this error
Primary - [ AccessManager.Reject ] : [ authmod=adobe ] : ?reason=needauth&user ...


Someone can help me?
Thank you

Flash Media Server Only Works Local On Server
i just installed a developers version of the flash media server on a windows server.
i don't have any problems while starting my applications on the server itself.
the problem only appears when i try to connect from a different computer which is not located in this network,
at least a connection from "outside".

there is no firewall right now on that server that this can't be the problem.

when starting the media server by the managment console i also do login with the domain-name of the server and not with localhost...locally all is working well...but not from outside.

i also try to test port 1935, 443 and 80, but none succeed from outside.

what i also tried is to run a version of the flash communication server 1.5 on my home pc also running a windows server. in this case i had the same problems: could only get a connection locally but not from outside...i.e. the connection to the server failed.

anyone an idea?

Immitating Flash Streaming Server With Development Server
We have an FMS 2 application that we are getting ready to port to FMS 3. It works on the development server, which I understand, is full featured like the Flash Interactive Media Server. Since our customers are primarily K-12/colleges, and our application only streams very low quality audio we would like to suggest that our customers purchase the cheaper FMS Streaming Server 3.

The question:

Is there a way to make our Flash Media Development Server act like Flash Media Streaming Server with out purchasing a license, in order to test application compatibility? We don't want to have to purchase the streaming server only to find out it won't work and then pay another $3,500 in order to upgrade to FMS Interactive, when we could just pay $2000 to upgrade our existing FMS 2 license to FMS Interactive.

LoadVars With Server Side ActionScript (Flash Com Server)
I'm making a simple login application. I want to send a username/password while connecting to FCS, and have the SSAS of main.asc connect to a PHP document that will lookup the username/pass and make the necessary checks for the information in a mySQL database.

I'm trying to use the LoadVars() object, maybe you can't do this with SSAS? Or maybe i need to include some other actionscript file (I know when you use components you have to specify load("components.asc"); at the top of the main.asc file --- i'm hoping it's something that easy )

This is my first FCS app, I've done a lot of research but this one's sort of stumping me. I keep getting an error that looks like this:

/opt/macromedia/fcs/applications/my_app/main.asc: line 9: ReferenceError: LoadVars is not defined

Here is my code for main.asc:

ActionScript Code:
application.onAppStart = function(){    this.userCount = 0;    this.users = [];}application.onConnect = function(thisClient, username, password){    thisClient.username = username;    //authentication functions    var my_lv:LoadVars = new LoadVars; //line 9 where error happens    my_lv.load("http://10.10.1.200/_websites/quickconnect/verify.php?username="+escape(username)+"&password="+escape(password));    my_lv.onLoad = function(success){        if(success == true){            thisClient.username = my_lv.username;            thisClient.email = my_lv.email;            thisClient.firstname = my_lv.firstname;            thisClient.lastname = my_lv.lastname;            thisClient.usertype = my_lv.usertype;            this.users[this.userCount] = thisClient;            this.userCount++;        }    }    //if login is okay         //add user to users list    this.acceptConnection(thisClient);  }

LoadVars With Server Side ActionScript (Flash Com Server)
I'm making a simple login application. I want to send a username/password while connecting to FCS, and have the SSAS of main.asc connect to a PHP document that will lookup the username/pass and make the necessary checks for the information in a mySQL database.

I'm trying to use the LoadVars() object, maybe you can't do this with SSAS? Or maybe i need to include some other actionscript file (I know when you use components you have to specify load("components.asc"); at the top of the main.asc file --- i'm hoping it's something that easy )

This is my first FCS app, I've done a lot of research but this one's sort of stumping me. I keep getting an error that looks like this:

/opt/macromedia/fcs/applications/my_app/main.asc: line 9: ReferenceError: LoadVars is not defined

Here is my code for main.asc:

ActionScript Code:
application.onAppStart = function(){    this.userCount = 0;    this.users = [];}application.onConnect = function(thisClient, username, password){    thisClient.username = username;    //authentication functions    var my_lv:LoadVars = new LoadVars; //line 9 where error happens    my_lv.load("http://10.10.1.200/_websites/quickconnect/verify.php?username="+escape(username)+"&password="+escape(password));    my_lv.onLoad = function(success){        if(success == true){            thisClient.username = my_lv.username;            thisClient.email = my_lv.email;            thisClient.firstname = my_lv.firstname;            thisClient.lastname = my_lv.lastname;            thisClient.usertype = my_lv.usertype;            this.users[this.userCount] = thisClient;            this.userCount++;        }    }    //if login is okay         //add user to users list    this.acceptConnection(thisClient);  }

Flash Media Server Vs PROXY Server/firewire
Hi All,

Can anyone help us, we have a multiway communication app developed in flash utlising FMS for audio communication. But now we find out that the end client is sitting behind a proxy server. What are the best ways of being able to send the communication through their poxy server without making major changes to the server itself? Otherwise this whole project is floored because no connection can be made.
note: it works fine when the client is not behind the firewall.

Any help would be greatly apreciated.

Gz

Flash Media Server And Flash Comm Server Where 2 Start?
hey all,

i'm wanting to stream video or even just load it into my flash sites and not lag them....anyway i have had a few people tell me to look at flash media server and flash comm server.

i have but i am really confused with it all...WHERE DO I START?? WHAT TO KNOW?? HOW TO DO IT??? etc

any help would be great!! thanks peeps

Flash Media Server / Proxy Server / AS 2 Help
I was wondering any of you guys on the board can help me with an issue I'm having on this project I'm working on...

I'm working on this flash video player that loads .flv's stored on a Flash Media Server through a proxy server. So the swf that's on server A loads a .flv on server B through a proxy server. The thing is that I built the player in AS 2.0 -using the FLVplayback component (I know I know, but I'm just learning 3.0) , and it's not working right now, and we have diagnosed that it's most probably because the ProxyType is not set and it needs to be HTTP i think. I know you can do it in 3.0, but I'm not sure of an equivalent way to do it in 2.0? Would I have to write something to extend the class?

Help!

Thanks in advance

Flash Media Server, Does It Need Server Side?
Ive been importing my videos and selecting flash media server, which I thought was streaming. However its always worked fine and I dont understand what these extra files are that are needed on the server? Are my videos just converting to progressive video? Because I never knew they needed special files yet they have always worked or so it seems!

Flash Media Server Not Connect With Server
Hi I'm newbie to Flash Media Server,

I just trying to make a video saving tool with webcam, Its possible at only with FMS (found with google..).

Now Started to learn basic thinks, But I'm struck in the basic level, Thats, After install FMS, I'll go to ...//Adobe/Flash Media Server 3/fms_adminConsole.htm (in local system). for change administrator tool, At this position, I have one problem.

I have attached my error jpeg, Please give me the solution and push me to the right way.

Thanks...

Window Media Server And Flash Server
hi experts,
I am rather new to Flash Media Server, but quite impressed with what flash server can do. however, i have a few questions which i could not find any answer on the website:

1) Could Flash Media Server co-exists on the same server with Window Media Server? Can both run at the same time?

2) Could Microsoft cluster service support Flash Media server or Window Media server? If not, is there any other way for high avail support?

Thank you guys in advance.

Accessing Flash Media Server From Another Web Server
Hi,

I have installed Flash Media Server 3 Developer Edition on a server to test out some flv files but cannot seem to access the files from another web server. I have not created an application in FMS3 but have placed the videos files in the VOD Media folder. Could this be a firewall issue and if so what port do I need to open up?

Kind regards

James (UK)

Flash Media Server / Proxy Server / AS 2 Help
I was wondering any of you guys on the board can help me with an issue I'm having on this project I'm working on...

I'm working on this flash video player that loads .flv's stored on a Flash Media Server through a proxy server. So the swf that's on server A loads a .flv on server B through a proxy server. The thing is that I built the player in AS 2.0 -using the FLVplayback component, and it's not working right now (works if it doesn't have to go through the proxy server), and we have diagnosed that it's most probably because the ProxyType is not set and it needs to be HTTP because Proxy servers only recognize HTTP. I know you can do it in 3.0, but I'm not sure of an equivalent way to do it in 2.0? Would I have to write something to extend the class?

Help!

Thanks in advance

Stream Works From Local Desktop To Server But Not Server To Server
I have flash media server running on linux. If I launch a test application from my desktop that points to the flash media server (rmtp://myserver.com/live) it works beautifully. However, If I launch an application from my server(http://myserver.com/myapp) and have it point to my flash media server (rmtp://myserver.com/live) i get a rejected from server error. Does anyone know why this would behave like that and how it might be fixed? Thank you.

Flash Media Server Vs. Com Server?
I'm on a Mac, and am researching the Flash Media Server options.

I have downloaded some of the authoring kits available for the Mac, but am a
bit confused about the demo/trial of one that says
Flash Communications Server.
Is that different or the same thing as the Media Server?

Jeff
~~~~~~~~~~~~
Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.com

Save "Shareobject" Data In A Server Without Flash Media Server.
Hi there!

I´m Triyng to save "shareobject" data in a server from a Flash Game, in order to save each player score or any data. I´ve heard that it's made doing "sharedobject.getRemote". So each player would logg in and save their score wherever they are (from any PC conected in a server). So the Flash cookies should be in the server.

The problem is that to make that user would need to have the Flash Media Server installed...

So it´s possible to save "Shareobject" data in a server without Flash Media Server.

Thank you in advance

Server Support The Application But Outside Of Server Does Not To Com Server ?
hi ,

does any body guide me in problem? I have upload my application having video conferencing. It works on the server where i uploaded , but it does't work outside the side(only swf could not connect to com server). Is there any solution ?


Regards
Abdul Ghafoor

Streaming Media Server Vs Flash Media Server
We have a streaming server here. Can this be used to stream flv files on its own? Or do we need to add Flash Media Server to it in order to to this?

Right now, I'm thinking something needs to be done, because I try to post flv files, and I try to use this code to access them:

var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.play("http://video.[myURL].com/testSTream/streamVideoTest2.flv");

stream_ns.onStatus = function(infoObject:Object) {
trace("NetStream.onStatus called: ("+getTimer()+" ms)");
for (var prop in infoObject) {
trace(" "+prop+": "+infoObject[prop]);
}
trace("");
};

and the trace I get from onStatus is always, NetStream.Play.StreamNotFound

Any help is always appreciated.

Thanks
Chris

Help With Making A Flash Form/Saving Text To File/and Displaying In Flash
I'm trying to make a flash movie that has a form (with a textbox, textarea, and a submit button) that would save to a file and display it in a textbox. This is going to be a small site so MySQL isn't required.

I'm trying to do this completely in flash, without any outisde html forms. I know you can use php in flash but I wasn't sure how (and i've searched). And I'm not sure how to go about with making forms in flash. Is this possible, and are there any similar tutorials you could point me to?

Regards

VideoError: 1000: Unable To Make Connection To Server Or To Find FLV On Server
I've spent a lot of time in the past couple of weeks learning Flash. I developed a Flash (swf) file that plays a Flash video (flv) with cue points. It all works very nicely locally, but when I put it on the server and try to access the html file, the Flash control is white (nothing visible) and a popup error message comes up with this error. I've looked all over the web (including non-English sites), tried playing with all the Publish settings I could think of (version check, local/network access, omit trace, enable debugging) and tried adding error handling code to the swf file itself. I've also tried changing the path for the flv file to be relative, absolute and somewhere in between, but nothing works.

Does anybody know what can cause this error?


VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/play()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::showFirstStream()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::setState()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::httpNetStatus()



Thanks in advance,
shovavnik

How To Load Images From Client Side When The Swf Is Hosted On A Server Without Uplaoding It To Server?
I'm trying to build a online image resize tool.
problem i face are:

1. I build a button that allow user to browse the file. Once file is selected, it doesnt show full path.
2. lets say if it shows fullpath, but i try to load it into a movieclip, and it doesnt work because the swf file is located at the server and not the client's place.
3. as far as i know, flash can only load images which is located in the same server or internet.
4. if i use php, asp, cgi.. it can only allow me to 1st upload the image then resize later, but this is not wat i want.
5. I need to 1st resize then upload later, because if i have 100 and more photos taken from digicam, it's going to be very slow and heavy.

What i have tested:
1. upload "image3.jpg" into the same directory as the "viewer.swf", and it works.
2. do not upload the swf to the server, but run locally from the user's computer and open "image3.jpg" and it works.
3. upload the swf to the server and open "image3.jpg" from the user's computer and IT DOESN"T WORK!

please help me out.

Thanks~!










Attach Code

//---------- Import -------------
import flash.display.BitmapData
import flash.net.FileReference;

//---------- objects -------------
var dlgOpen:FileReference = new FileReference();
var dlgOpen_Listener:Object = new Object();

//---------- _root.value -------------
//Value transfer from <object> or <Embedded> tag.
var strOutputFileField:String = _root.OutputFileField;
var iMaxPPI:Number = eval(_root.MaxPPI);
var iMaxWidth:Number = eval(_root.MaxWidth);
var iMaxKB:Number = eval(_root.MaxKB);
var bDebug:Boolean = eval(_root.bDebug);
lblNo.text = "Picture " + _root.PictureNo;

//---------- Variables -------------
//var bCropProcess_Flag:Boolean = false;
//var bIsValidFormat_Flag:Boolean = false;

//---------- Listener -------------
//dlgOpen_Listener
dlgOpen_Listener.onSelect = function(selectedFile:FileReference):Void
{
//Flag the crop process has been started
bCropProcess_Flag = true;

//update filename, cannot get full filename because flash don't allow
txtFilename.text = selectedFile.name;

//Create into a movie clip or a bitmapdata
_root.tmpBitmap.loadMovie(selectedFile.name);
CreateBitmap();

};


//---------- Functions-------------
//OpenImage
function OpenFileDialog(event:Object):Void
{
dlgOpen.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png;*.bmp;*.tif"}]);
//_root.tmpBitmap.loadMovie(txtFilename.text);
}
//Load Image into Bitmap Object
function CreateBitmap()
{

}
function sendData(pixels:Array, h:Number, w:Number){
//Create the LoadVars object and pass data to PHP script
var output:LoadVars = new LoadVars()
output.img = pixels.toString()
output.height = h
output.width = w
//The page (and this movie itself) should be in a server to work
output.send("jpeg.php", "output", "POST")
}



//---------- Others -------------
//Add Events and Listener
dlgOpen.addListener(dlgOpen_Listener);
btnBrowse.addEventListener("click", OpenFileDialog);

//Clean up and stop
stop();

























Edited: 11/23/2007 at 07:34:09 PM by zerodevice

Flash Not Displaying In IE
Hey everyone,

I recently added a flash banner to a site but the flash is not displaying in IE. It will display fine in FireFox but not IE. This is happening on more than one PC. I have tried using various other snippets of code but I just cannot get it to display.

One note, if I have the html file on a local computer, it will display fine, once I upload it, the swf will not display.

Does anyone have any suggestions?

Thanks in advance for your help!

Wes

Just Displaying Flash In Asp
hi all

a really simple problem that i cant seem to work out, my flash animations refuse to show up when im using asp, i dont think its the linking of the file issue as the pages show up fine on my network server just not on my external web server. the files look like they are loading as in i.e is showing progress all but really slow progress. it only seems to be doing this under asp (not net) pages. example code:


HTML Code:
<%
IF Session("userlevel")=1 THEN
Response.Write("<td align='left'>")
Response.Write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='500' height='118' id='banner'>")
Response.Write(" <param name='allowScriptAccess' value='sameDomain' />")
Response.Write("<param name='movie1' value='winticketsbanner.swf' />")
Response.Write("<param name='quality' value='high' />")
Response.Write("<param name='bgcolor' value='#ec3c21' />")
Response.Write("<embed src='winticketsbanner.swf' quality='high' bgcolor='#94a1c3' width='500' height='118' name='intro' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />")
Response.Write("</object>")
Response.Write("</td>")
ELSE
Response.Write("<td align='left'><img src='images/officialsite.gif'></td>")
END IF
%>
Thanks for any help
alex

Displaying Php In Flash
im sure its a simple problem i am having but i still need some help, here is the problem i have some script to write to a text file using php.. is as follows

(mouse action)

ActionScript Code:
on (release) {
    time = new Date();
    url = "./store.php?time="+time.getTime()+"&myGroup="+
        escape(myGroup)+"&myScore="+escape(myScore);
    loadVariablesNum (url, 0);
    nextFrame();

}
This from what i understand adds the data to a php file which is as follows...

PHP Code:



<?
// store the variables passed by POST
$fp = fopen("data.txt", "a");
if (!$fp) die ("cannot open the file");
fputs($fp, "&myGroup=".$myGroup, 4096);
fputs($fp, "&myScore=".$myScore, 4096);
fclose($fp);
?>




this saves the text to a file called data (it appends the file everytime someone enters details!) after a few goes this is the contents of data.txt

&myGroup=sam01&myScore=score01&myGroup=sam02&mySco re=score02&myGroup=sam03&myScore=score03

ok so thats fine, now all i need is to is display them results from the text file in flash as
sam01 score01
sam02 score02
sam03 score03

any ideas?? it should just load in a dynamic movie clip should it not, one after another??

sorry for the long post

sam

Displaying XML Value In Flash
I'm having trouble setting the value of a dynamic text field (elevation) equal to a value from an external XML source.



Here is a snippet of the XML source:<?xml version="1.0" encoding="utf-8"?><WeatherReport xmlns:xsd="http://www.w3.org/2001/...">
<station>
<elevation>6</elevation>
</station>
<WeatherReport>
I load the XML source into Flash using:var weatherQuery = http://www.bgxcomponents.com/webservices...;var weatherXML = new XML();
weatherXML.ignoreWhite = true;
weatherXML.onLoad = displayResults;
weatherXML.load(weatherQuery);
Then I try to set the dynamic text field "elevation" equal to the "elevation" value in the XML using the following code, but nothing happens:

function displayResults() {
elevation.text = airportXML.WeatherReport.station.elevation.text}
PLEASE HELP!! THANKS!!

Displaying XML In Flash?
I have some statistical data that is in xml form, and I tried to use this tutorial to display it in my flash file, but my xml structure is different and I am having trouble modifying the actionscript to work with my information. I was wondering if anyone could help me out. My xml looks like this:

Code:
<hits><hit startdate="11/13/06" enddate="11/19/06" monday="780" tuesday="788" wednesday="662" thursday="693" friday="629" saturday="523" sunday="663" winnermessage="You show them, Tuesday." /></hits>
Can anyone take the actionscript from the tutorial and modify it for me? or is there an alternate method I should use?

Thanks!

Displaying Ë,ç,Ç,Ë In Flash...
Hello!

Can anybody tell me how to display non-latin characters such as ë,ç,Ç,Ë, etc. in dynamic text fields in flash? I use php to generate the texts, and I try every kind of embeed, but it doesn't work.

Thanks in advance,
I.

Displaying XML In Flash
Okay, so I have a basic flash file with a button, when you hover over it, an object with dynamic text appears...

Now I want text from an XML file to be pulled from it into my dynamic text box...

this is what my code in my actionScript looks like so far...


Code:
function DisplayInfo()
{
var title = items[i].firstChild;
var items = channel_xml.firstChild.firstChild.childNodes;
box.text1.text = title.firstChild.firstChild.nodeValue;

menu_md._visible = false;
box._visible = true;
box.text1.text = this.location_text;
}

button1.onRollOver = DisplayInfo;

box.closeButton.onRelease = function()
{
menu_md._visible = true;
box._visible = false;
box.text1.text = "";
}

box._visible = false;

var america = new XML();
america.ignoreWhite = true;

america.onLoad = function(success)
{
if (success) CreateMenu(this);
else trace("Error loading XML file");
}
america.load("america.xml");
Its this part I cant figure out...


Code:
{
var title = items[i].firstChild;
var items = channel_xml.firstChild.firstChild.childNodes;
box.text1.text = title.firstChild.firstChild.nodeValue;

menu_md._visible = false;
box._visible = true;
box.text1.text = this.location_text;
}
My XML looks like this:


Code:
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>
Travel Warnings
</title>
<link>
http://travel.state.gov/travel/cis_pa_tw/tw/tw_1764.html
</link>
<description>
TEXT HERE
</description>
</channel>
</rss>
Anyone know how to simply grab the info in the description tags and whack it in my dynamic text field?

Displaying Flash Within An <a></a> Tag
I want to include a small swf file within an href link on my site and have the link activated when the user clicks on the swf as well as on additional text. However, just putting the OBJECT and EMBED tags as generated from Flash with the <a> tag doesn't work.

I know some folks would say, well just put an action in the SWF to handle the click event and then navigate to your URL, but the URL will be dynamic based on the generated ASP page. Any ideas? Here's my HTML code:



PHP Code:



<a target='candlcart' href='doorcart.asp?action=add&doorid=1&glassid=2'>
<<Add door to cart

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/
shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="50" HEIGHT="50" id="AddToCart" ALIGN="">
<PARAM NAME=movie VALUE="AddToCart.swf"> <PARAM NAME=quality VALUE=high>
<PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE="#FFFFFF">

<EMBED src="AddToCart.swf" quality=high bgcolor="#FFFFFF"
WIDTH="50" HEIGHT="50" NAME="AddToCart" ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"
</EMBED>

</OBJECT>

</a> 

Displaying XML Value In Flash
I'm having trouble setting the value of a dynamic text field (elevation) equal to a value from an external XML source.



Here is a snippet of the XML source:<?xml version="1.0" encoding="utf-8"?><WeatherReport xmlns:xsd="http://www.w3.org/2001/...">
<station>
<elevation>6</elevation>
</station>
<WeatherReport>
I load the XML source into Flash using:var weatherQuery = http://www.bgxcomponents.com/webservices...;var weatherXML = new XML();
weatherXML.ignoreWhite = true;
weatherXML.onLoad = displayResults;
weatherXML.load(weatherQuery);
Then I try to set the dynamic text field "elevation" equal to the "elevation" value in the XML using the following code, but nothing happens:

function displayResults() {
elevation.text = airportXML.WeatherReport.station.elevation.text}
PLEASE HELP!! THANKS!!

Flash MX Site Is Not Displaying On Some Machines With Flash Player 6 Installed
Has anyone experienced this? I am authoring in Flash MX on a Mac. When I put my movie in an html page (go to http://www.bradleybrowndesign.com/bbdg/alpha/ and click on the link) I can see the movie fine on my Mac and on the two PCs I use for testing, but there are other Mac systems, including my Mac at home, that can't see the movie. It loads briefly -- our company name and the main menu appear for a split second -- and then the screen goes white.

I say "Mac systems" because the bug affects _all_ browsers on the machine, even though they have Flash 6 installed. (I haven't tested this extensively, but it is at least true of IE 5.1, Safari and Netscape 6 and 7.)

Hopefully someone has solved this riddle before.
Thanks!
P.S. If you _are_ able to see the opening page, please pardon the opening animation there because it is a work in progress and needs to be fixed (after I solve this display problem!).

Swf Cannot Display In Apache Http Server. Is It My We Browser / Server / Script
hi there,
i'm using dreamwerver , apache (xampp) on my computer.

the problem is anytime i embed a flash swf in my web pages it does not show / display. i checked the mime types and its there

Quote: application/x-shockwave-flashswf

this is also my embeded script in my html,


Quote:
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent( 'codebase','()=7,0,0,0','width','488','height','277','id','services','align','middle','src','slidesh ow/services','play','false','quality','high','bgcolor','#ffffff','name','services','allowscriptaccess', 'sameDomain','allowfullscreen','false','pluginspage','() ); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="()=7,0,0,0" width="488" height="277" id="services" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="slideshow/services.swf" />
<param name="play" value="true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="slideshow/services.swf" play="false" quality="high" bgcolor="#ffffff" width="100%" height="277" name="services" align="middle" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="" />
</object>
</noscript>



please any help will be welcomed.


thanks
ally

Displaying HTML In Flash
Help!!

I have a swf that collects various data (email address, urls, name, ect.) in variables. I want to insert the variables into HTML code and then display the entire code in a (possibly) dynamic text field.

I keep getting an error when I try to display the HTML code with the inserted variables. The following is the error the typical errors that I receive:

Scene=Scene 1, Layer=Layer 8, Frame=25: Line 2: ';' expected
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

Scene=Scene 1, Layer=Layer 8, Frame=25: Line 5: Operator '>' must be followed by an operand
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



How can I accomplish the insertion of the variables and the display of the HTML code (so that some one can copy and paste the code)?


Carp

Displaying HTML Within Flash
Situation:
A lady I am building a site for wants Flash AND the ability to update some of the content (mostly the gallery) herself. She does not know how to use Flash to make movies but she does know HTML and could update such a page.

Questions:
Can Flash MX "pull" an HTML page and display it within a Flash movie? NOTE: The HTML page would contain IMAGES and TABLES, not just text.

Do you know of any other solution or workaround?

I had tried a DHTML layers trick found in the Tutorials section, but that simply didn't work.

Any help would be greatly appreciated.

Flash Displaying Asp File?
I am using Flash MX and when I perform the Control/Test Movie, my asp file name blinks at the top. The flash file seems to be in a loop. I am using the bar chart component with only 3 frames. Can anyone help me with this?

Smith3

Displaying / Publishing Flash
can someone tell me how to force flash to open in it's own window once the initial html page link "enter" has been reached?

(you know the kind where there is no browser window. None of the "back" and "forward" and "refresh" stuff.

thanks in advance.

Displaying Flash Variable Value
This should be a simple one.

I am making a simple game for a halloween party. I want to keep a count of the number correctly answered by each team. I want to keep a running count of the score of the team currently answering the questions on the screen. I know how to keep the count but I dont know how to show it on screen.

Anyone?

Thanks
Mrs B

Displaying A Flash Banner Just Once
I'm trying to figure out how to display a banner just one time across several pages of a website.

Once it loads I'd like to display just the final image in the banner. That way if my members go from one page to another or return to the main page they will only see the final graphic and not have to reload the entire banner.

Is this possible and if so how would I code it in HTML?

Thanks for any help!

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