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




Help Me Please With This Flash Config....



Dear Flash Reader,
I may need help here with Flash. I would be very grateful of you if you can assist me as I am still a novice in flash. To all profressionals out there, I seek your help and profressionalism in flash. I intend to make a flash clip that will play a background song in my web site. The idea is similar to this flash clip (http://redtamaulipas.hypermart.net/player/player.html) The configuration is to create a flash audio player that will preload a song in mp3 format, while preloading it will show the loading status. After finish loading, it will auto play the song and show a simple stop button that awaits the user to stop the song if he/she desires. The loading status doesn't have to be in loading bars but in percentage. The stop and play button will be small, simple and neat.

I hope you would be kind enough to make the above flash configuration in .fla for me to learn.
I greatly appreciate your help and kindness for assisting me. This will mean alot in my learning and progress in flash.

Thank You
I look forward to your positive reply.

Yours Always,
Daniel



FlashKit > Flash Help > Flash General Help
Posted on: 12-11-2003, 10:50 PM


View Complete Forum Thread with Replies

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

Flash Config File
Hi,

I have been asked to supply a config file for my banner so that when they place my flv they can change the congif file and it will direct it to the flv without having to touch the FLA. Can anybody shed some light on this?

How To Config A Cgi Script & The Action So That I Can Use Form In Flash
how to config a cgi script & the action so that i can use form in flash i have download a lot of cgi script but dont no how to configer please help, if dont mind can show me a example on what to change in the script & wat to put in for the actionscript in flash, have to hand in my work tomorrow and i know nothing about cgi

Config File - Customizable Flash Player
Hello all,

I want to make a customizable flash player for my users. For examle, i want them to be able to change color of frame, color of border, size, and other features etc.

How best can i do this, how can i do a config file for it? Using a text file, XML? I can use Flash with AMFPHP is this a good idea as a config file?

Thank you for any ideas and input

Flash Plugin Use PAC (Proxy Auto Config)?
Hi,

I know the flash plugin uses the browser proxy settings.
But is this still true if the browser is set to use PAC (proxy auto congifuration) files to do proxy settings?


Thanks,

Felix

Can I Use Config File To Change Images In Flash
New to flash,

Can I use flash with a config text file and then change the images by chaning the link in the text file like
image1=/images/pic1.jpg
image2=/images/pic2.jpg
image3=

thanks

Can I Use Config File To Change Images In Flash
New to flash,

Can I use flash with a config text file and then change the images by chaning the link in the text file like
image1=/images/pic1.jpg
image2=/images/pic2.jpg
image3=

thanks

Newbie Question: Special Server Config Needed For Flash?
I'm a newbie to flash (just in case it's not blazingly obvious). My question is: Are there any special configuration changes that need to be made to a server that will host flash movies/animations? Or, are they treated like any other image file? I just noticed that some web hosting services specifically say that they support flash and others don't mention it. Is this just saying "We support JPEG's"?

Thanks,
-Ron

Config ASP
All today i have spent trying to configure a flash chat program into my web site using asp with no prevail. I am using a free brinkster service (www.brinkster.com) as my asp provider and a flash chat program I downloaded here.(http://www.flashkit.com/movies/Scri...-6591/index.php)
Basically i dont no how to configure it with my web page provider. The asp script looks like this :
<%
'Yeah, my chance to use application locks!! Yum!

If Request.Form("Action") = "Add" Then
Application.Lock
CurrentChat = Application("FlashChat")
LatestMessage = Left(Request.Form("senddata"), 50)
LatestMessage = Replace(LatestMessage, Chr(13), "")
LatestMessage = Replace(LatestMessage, Chr(10), "")
LatestMessage = CleanText(LatestMessage)
If CurrentChat <> "" Then
CurrentChat = CurrentChat & Chr(13) & LatestMessage
Else
CurrentChat = LatestMessage
End If
'Now do the complexer bit, makes sure you don't need to scroll in the flash...
TextCount = Len(CurrentChat)
CRLFCount = 0
For I = 1 to TextCount
If Mid(CurrentChat, I, 1) = Chr(13) Then CRLFCount = CRLFCount + 1
Next
While CRLFCount >= 11
EndStrip = InStr(3,CurrentChat, Chr(13))
TakeAway = TextCount - (EndStrip)
CurrentChat = Right(CurrentChat, TakeAway)
CRLFCount = CRLFCount - 1
WEnd
Application("FlashChat") = CurrentChat
Application.Unlock
Response.Write "done=true"
Else
Application.Lock
CurrentChat = Server.URLEncode(Application("FlashChat"))
If CurrentChat = "" Then CurrentChat = Server.URLEncode("Welcome to FlashChat 1.2c :: " & Now())
Response.Write "currentchat=" & CurrentChat
Application.Unlock
End If

'Don't read past this line if you are offended by foul language, this is a filter for chat room!
'Stops nasty stuff being inserted to a degree...

Function CleanText(inputedStr)
'Modify These if you want, but don't blame me if it goes pear shapped!

BadWordsForRemoval = "(removed)"
RemoveWords = Split(BadWordsForRemoval, ",")

CleanText = inputedStr

For Counta = 0 to UBound(RemoveWords)
CleanText = Replace(CleanText, RemoveWords(Counta), "***", 1,-1,1)
Next
End Function

%>

It also come with a .swf and .fla flash file.

Please respond, all feedback is welcome.

Config For NAT
Hi all-
Maybe some out there can help me? My WAN people say "Your application needs to be configured to send a DNS name to the clients instead of the internal ip address"

My intrernal rmtp string uses the DNS name.

x_nc.connect(rmtp://servername:1935/application)

Is this right? Thanks.

XML With Config
Hi there,

I got a question about XML. Ive used kirupa's xml-photogallery and modified it a bit. Thing is is dont use the description for any picture i just use it once. At this moment i have to paste every time the same discription at each picture. I know its possible to this just once in the beginning of the XML file. But i dont know how. Below is the current XML-file, the one beneath it is how like should be. Could someone help me with this


Quote:




<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>PHOTOGALLERY/djchuckie/dd001.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd001.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd001.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd002.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd002.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd002.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd003.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd003.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd003.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd004.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd004.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd004.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd005.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd005.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd005.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd006.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd006.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd006.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd007.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd007.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd007.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd008.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd008.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd008.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd009.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd009.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd009.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd010.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd010.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd010.jpg</download>
<link></link>
</pic>
</images>




How it should be

XML With Config
Hi there,

I got a question about XML. Ive used kirupa's xml-photogallery and modified it a bit. Thing is is dont use the description for any picture i just use it once. At this moment i have to paste every time the same discription at each picture. I know its possible to this just once in the beginning of the XML file. But i dont know how. Below is the current XML-file, the one beneath it is how like should be. Could someone help me with this


Quote:




<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>PHOTOGALLERY/djchuckie/dd001.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd001.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd001.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd002.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd002.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd002.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd003.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd003.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd003.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd004.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd004.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd004.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd005.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd005.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd005.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd006.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd006.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd006.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd007.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd007.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd007.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd008.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd008.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd008.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd009.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd009.jpg</thumbnail>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd009.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd010.jpg</image>
<caption>DJ CHUCKIE</caption>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd010.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd010.jpg</download>
<link></link>
</pic>
</images>




How it should be

Quote:




<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<config>
<caption>DJ CHUCKIE</caption>
<beschrijving>HEINEKEN FULL MOON PARTY</beschrijving>
<date>VRIJDAG 5 JANUARI</date>
</config>
<images>
<pic>
<image>PHOTOGALLERY/djchuckie/dd001.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd001.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd001.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd002.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd002.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd002.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd003.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd003.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd003.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd004.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd004.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd004.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd005.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd005.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd005.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd006.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd006.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd006.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd007.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd007.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd007.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd008.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd008.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd008.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd009.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd009.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd009.jpg</download>
<link></link>
</pic>
<pic>
<image>PHOTOGALLERY/djchuckie/dd010.jpg</image>
<thumbnail>PHOTOGALLERY/djchuckie/THUMBS/dd010.jpg</thumbnail>
<download>PHOTOGALLERY/djchuckie/DOWNLOAD/dd010.jpg</download>
<link></link>
</pic>
</images>




Here's the link where yout see it working online. Goto archief and press the 3rd link, Dj CHuckie - Heineken Full Moon Party.

thnx

What Does This Mean _global.config = {};
I am lloking over som as files and I am trying to analyse what this means?

_global.config = {};

XML Config Misload ...
I have a flash object that reads text and pic urls from an XML file on load. Every once in a while, the flash page renders improperly. Eg. The text doesn't come out right and the pics don't show up.

It would appear to me that the flash object is either reading from the config.xml file incorrectly, or else there is some form of mistiming involved, whereby the flash page gets rendered before the xml is rendered.

Can anyone give me any insights into this problem ? Is it fairly common ? How do I stop it happening ?

Thanks,

Amfphp Config
Hi,

Do you change any of the settings on the gateway.php file after downloading amfphp?


Thanks in advance.

Bee

Passing XML Config
Is there a way to pass in XML configuration data through the EMBED/Object tag or something similar instead of loading the XML data from some URL?

Detecting System Config
My movies are playing slow in slower machine as a result the sound does not sync with the movie. I am thinking to create two flash files, 1 for the slower machines so that I give more loops and the other for the faster machine so that I give lesser loops and it ends snoothly. But mu problem is I need to autorun the file depending on the system config, like less than 64 mb play small file or more than 64 mb play big file. How can I detect the system config. SOme help would be grateful

Classpath Config File
Is there a config file for the global classpaths that you edit in:
preferences -> actionscript -> actionscript 2.0 settings

I'd like to be able to share my global class paths with others.

thanks, gianni

External Config.xml File
I need help renaming an .xml file used by a Flash movie.

I have created a series of animations using a template provided by the client. This template consists of a "master" file which contains logos, stop/pause buttons, sound slider etc., plus 3 .swf files that are launched when one of the 3 button options is clicked ("welcome", "view demo", "contacts").

The master file uses a file called config.xml to manage the relations with the individual .swf files. However, the client's website Content Management System renames .xml files as .html files, with the result that the 3 .swf files no longer play when the viewer clicks on the appropriate button.

The client has asked if we can rename the config.xml file and modify appropriately the actionscript in the master file. I have tried and failed and would appreciate some expert advice. I have attached the actionscript (below) for reference.

Best regards,
Garry

fscommand("allowscale", false);
productName = "";
welcomeFileName = "";
demoFileName = "";
contactFileName = "";
myXMLLoaded = false;


//Load XML ----------------------------------------
function myLoad(ok) {
if (ok == true) {
parseXML();
myXMLLoaded = true;
trace("XML LOAD OK");
}
}

config = new XML();
config.ignoreWhite = true;
config.onLoad = myLoad;
config.load("config.xml");
sectionArray = new Array();

function parseXML() {
productName = config.firstChild.firstChild.childNodes;
//trace ("productName: " + productName);
welcomeFileName = config.firstChild.firstChild.nextSibling.childNodes;
//trace ("welcomeFileName: " + welcomeFileName);
demoFileName = config.firstChild.firstChild.nextSibling.nextSibling.childNodes;
//trace ("demoFileName: " + demoFileName);
contactFileName = config.firstChild.firstChild.nextSibling.nextSibling.nextSibling.childNodes;
//trace ("contactFileName: " + contactFileName);
sections = config.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nodeName;
//trace ("sections: " + sections);
if (sections != null) {
//trace("NOT NULL");
sectionLength = config.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.childNodes.length;
//trace ("sectionLength: " + sectionLength);
for (n=0; n < sectionLength; n++) {
thisSection = config.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.childNodes[n].childNodes;
//trace ("section: " + thisSection);
sectionArray[n] = thisSection;
}
}
}


//-------------------------------------------------
Script = "Loading...";

//---Functions-------------------------------------
function forwardDemo() {
trace("FORWARD");
thisFrame = dropZone._currentframe;
dropZone.gotoAndPlay(thisFrame + 100);
_root.Navigation.gotoAndStop("playing");
}

function rewindDemo() {
trace("REWIND");
thisFrame = dropZone._currentframe;
n = 100;
if (thisFrame > n) {
dropZone.gotoAndPlay(thisFrame - n);
_root.Navigation.gotoAndStop("playing");
}
}

function pauseDemo() {
trace ("PAUSED");
dropZone.stop();
}

function playDemo() {
trace ("PLAYING");
dropZone.play();
}

Loading Config Settings From XML
So I have some code that needs a bunch of configuration settings to be set first before it executes.
Since I want the settings to be enviroment-specific and easily customizable I put them all in an XML file. The problem is that I need to ensure that the settings have completed loading into my class variables BEFORE any functions are invoked on the object (because otherwise it will break since the settings aren't done being 'set').

How can I accomplish this? Its like I need a preloader or initializer for my class?

What Thing I Have To Config On The Server To Run .FLV ?
I can't play .flv file with flash player on my server , but It can on Local , I don't known what the matter with my server, Which soft wave I have to setup or config ? .
Please help me,
Thanks





























Edited: 04/09/2007 at 02:29:19 AM by Quanghiep

How To Config <HttpUserInfo> Tag In Adaptor.xml?
As mentioned in Flash Media Server document, This tag specifies the physical location where the user-defined XML file is stored in the server. my configuration is:

<HTTPUserInfo enable="true"></HTTPUserInfo>
<Path>C:fmsuInfo</Path>

but the HTTP request doesn't work, for example:
http://server:1935/fms/uInfo/foo/bar.xml

Is there something worng? or missed something else?

How To Set Up Live Test? Where's The Config?
ok i set up the FMS, and i have it running on win2003

at winxp i have the encoder and is connected to the server, since i see an instance of it

now how do i set up the webclient??? wheres the config for the client? does it need to be in a webserver or does it run from where the flash server is installed??

Button Config Messed?
hey, i just created some buttons for my site. the problem is, is that you can click on the buttons from anywhere, meaning even if you arnt over the button, there is still the small hand. this posses a problem because my buttons are right next to each other and when you put the mouse over the button you want, it does the animation and click to the wrong one. i think its something to do with alignment and mouse over, but im not sure


please help

Little.. Application Config, Utility...
Another one of those utilities I have laying around, that I'm sure someone here can make good use of.

Let's say your developing an application and you want to be able to configure specifics of this application without editing code... well if you create a config file that is stored on the server that looks like the following...

Saved as, AppConfig.config

Code:
<?xml version="1.0"?>

<configuration>
<appSettings>
<!-- If you'd like to add a new app setting you simply have to add a new <setting> node..
always give your setting a name that is intuitive, because this is how you will access it -->
<setting name="image_dir" value="images/" />
</appSettings>
<userSettings>
<!-- If you'd like to add a new user setting you simply have to add a new <setting> node..
always give your setting a name that is intuitive, because this is how you will access it -->
<setting name="allowAll" value="true" />
</userSettings>
</configuration>
And you save the following class in your default class path as, AppConfigReader.as


ActionScript Code:
class AppConfigReader extends XML{    // ignore all white space in the xml file    private var ignoreWhite:Boolean = true;    // all listeners listeneing to this object    private var listeners:Array;        public function AppConfigReader()    {        listeners = new Array();    }        /* Returns the value of the Application Setting you specify */    public function getAppSetting(name:String) : String    {        var startNode:XMLNode = this.firstChild.firstChild;        for (var i:Number=0; i<startNode.childNodes.length; i++)        {            if (startNode.childNodes[i].attributes.name == name)            {                return startNode.childNodes[i].attributes.value;            }        }                return undefined;    }        /* Returns the value of the Application Setting you specify */    public function getUserSetting(name:String) : String    {        var startNode:XMLNode = this.firstChild.childNodes[1];        for (var i:Number=0; i<startNode.childNodes.length; i++)        {            if (startNode.childNodes[i].attributes.name == name)            {                return startNode.childNodes[i].attributes.value;            }        }                return undefined;    }        /* Register a listener to listen for onLoad events from this object */    public function addListener(listener:Object):Boolean    {        for (var i:Number = 0; i<listeners.length; i++)        {            if (listeners[i] == listener) return false;        }                listeners.push(listener);        return true;    }    /* Unregisters a listener from this object */    public function removeListener(listener:Object):Boolean    {        for (var i:Number = 0; i<listeners.length; i++)        {            if (listeners[i] == listener)            {                listeners.splice(i, 1);                return true;            }        }                return false;    }        private function invokeOnLoad(success : Boolean) : Void    {        for (var i:Number = 0; i<listeners.length; i++)        {            listeners[i].onLoad(success);        }    }    private function onLoad(success:Boolean):Void    {        invokeOnLoad(success);    }}


You can then access these values in the fla like this..

Fla Code:


ActionScript Code:
var app_configs_rdr = new AppConfigReader();app_configs_rdr.load("AppConfig.config");var my_obj = new Object();my_obj.onLoad = function(success:Boolean):Void{    trace(app_configs_rdr.getAppSetting("image_dir"));    trace(app_configs_rdr.getUserSetting("allowAll"));}app_configs_rdr.addListener(my_obj);


If something doesn't make sense, go ahead and ask and I will explain. Take Carre.

_Michael

Uploading Files (AS3, PHP, Config)
I'm trying to build a code framework for uploading, editing and downloading bitmap images. (You can see it at work here, though that version is a couple months old.) There's a memory leak somewhere that's been bugging me, so don't use it for more than half an hour. ;-)

I've gotten the downloading code to work already– the BitmapData is encoded using Adobe's PNG encoder class (it's on code.google.com), the PNG data is sent to a PHP program, and then the PHP sends it as a file to the client again, which triggers a download.

But uploading is another story. So far I haven't gotten anything to work– not only in the Actionscript sense, but also on the server. Code examples that work just fine on the site they're hosted on aren't working when I upload them straight to my server, and that suggests that the server needs to be properly configured in order for this to work.

Any insight at all would be appreciated. :-)

Calling Data From A Config File
Hello All,

I want to have two small parts of my actionscript called from a small text/ini/or config file, namely the clr lines, so these colors can easily be changed outside of the Flash file, to easily be changed by others.

Here is a snippet of my actionscript:

if(((i & 1) == 0))
clr = "0xCCCCCC"
else
clr = "0x91C7ED"

I want to have these in a text file somehow (or two small text files if it's easier), so they can be changed:
clr = "0xCCCCCC"
and
clr = "0x91C7ED"

Anyone know how to do this? I am a Flash and Actionscript newbie.

Thanks in advance,
Brian

Emitter Config Object Generator
Hi,

I've developed a particle FX API for AS3 called Emitter.
(I posted it here a couple of weeks ago.)

After several times using Emitter.
I found it quite time-consuming just simply setting up the parameters for a single Emitter object.
So I decided to create a tool for boosting the speed for working with Emitter.
It's called the Emitter Config Object Generator, or ECOG for short (ee-kog).

You can simply play with the parameters and see the instant change of the Emitter.
When you're satisfied with a set of parameters.
You can copy the "config object" code to your clipboard.
Then by pasting this code into your ActionScript, all parameters of your Emitter is set.
This is quite simple. There's a comprehensive help in the ECOG package.

You can download the latest ECOG package in the Emitter download page.

Emitter GoogleCode project homepage: http://code.google.com/p/emitter/
Emitter download page: http://code.google.com/p/emitter/downloads/list
Emitter basic usage: http://code.google.com/p/emitter/wiki/Usage

Hope you like it.
May you have a easier experience coding with Emitter.

Cheers

Renaming External Config.xml File
I need help renaming an .xml file used by a Flash movie.

I have created a series of animations using a template provided by the client. This template consists of a "master" file which contains logos, stop/pause buttons, sound slider etc., plus 3 .swf files that are launched when one of the 3 button options is clicked ("welcome", "view demo", "contacts").

The master file uses a file called config.xml to manage the relations with the individual .swf files. However, the client's website Content Management System renames .xml files as .html files, with the result that the 3 .swf files no longer play when the viewer clicks on the appropriate button.

The client has asked if we can rename the config.xml file and modify appropriately the actionscript in the master file. I have tried and failed and would appreciate some expert advice. I have attached the actionscript (below) for reference.

Best regards,
Garry

fscommand("allowscale", false);
productName = "";
welcomeFileName = "";
demoFileName = "";
contactFileName = "";
myXMLLoaded = false;


//Load XML ----------------------------------------
function myLoad(ok) {
if (ok == true) {
parseXML();
myXMLLoaded = true;
trace("XML LOAD OK");
}
}

config = new XML();
config.ignoreWhite = true;
config.onLoad = myLoad;
config.load("config.xml");
sectionArray = new Array();

function parseXML() {
productName = config.firstChild.firstChild.childNodes;
//trace ("productName: " + productName);
welcomeFileName = config.firstChild.firstChild.nextSibling.childNodes;
//trace ("welcomeFileName: " + welcomeFileName);
demoFileName = config.firstChild.firstChild.nextSibling.nextSibling.childNodes;
//trace ("demoFileName: " + demoFileName);
contactFileName = config.firstChild.firstChild.nextSibling.nextSibling.nextSibling.childNodes;
//trace ("contactFileName: " + contactFileName);
sections = config.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nodeName;
//trace ("sections: " + sections);
if (sections != null) {
//trace("NOT NULL");
sectionLength = config.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.childNodes.length;
//trace ("sectionLength: " + sectionLength);
for (n=0; n < sectionLength; n++) {
thisSection = config.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.childNodes[n].childNodes;
//trace ("section: " + thisSection);
sectionArray[n] = thisSection;
}
}
}


//-------------------------------------------------
Script = "Loading...";

//---Functions-------------------------------------
function forwardDemo() {
trace("FORWARD");
thisFrame = dropZone._currentframe;
dropZone.gotoAndPlay(thisFrame + 100);
_root.Navigation.gotoAndStop("playing");
}

function rewindDemo() {
trace("REWIND");
thisFrame = dropZone._currentframe;
n = 100;
if (thisFrame > n) {
dropZone.gotoAndPlay(thisFrame - n);
_root.Navigation.gotoAndStop("playing");
}
}

function pauseDemo() {
trace ("PAUSED");
dropZone.stop();
}

function playDemo() {
trace ("PLAYING");
dropZone.play();
}

Edge Origin And Vhost Config
Hello

I have two servers one edge and one Origin

How do i setup my edge server to connect to a specific vhost on the orgin server and not the _defaultVhost_

My Routentry on the edge looks like this
<RouteEntry>*:*;user02.stream.server:1935</RouteEnt ry>

On the Origin server i have one vhost (user02.stream.server) configd as local

How do i make my edge server to connect to this specific whost?

Emitter Config Object Generator
Hi,

I've developed a particle FX API for AS3 called Emitter.
(I posted it here a couple of weeks ago.)

After several times using Emitter.
I found it quite time-consuming just simply setting up the parameters for a single Emitter object.
So I decided to create a tool for boosting the speed for working with Emitter.
It's called the Emitter Config Object Generator, or ECOG for short (ee-kog).

You can simply play with the parameters and see the instant change of the Emitter.
When you're satisfied with a set of parameters.
You can copy the "config object" code to your clipboard.
Then by pasting this code into your ActionScript, all parameters of your Emitter is set.
This is quite simple. There's a comprehensive help in the ECOG package.

You can download the latest ECOG package in the Emitter download page.

Emitter GoogleCode project homepage: http://code.google.com/p/emitter/
Emitter download page: http://code.google.com/p/emitter/downloads/list
Emitter basic usage: http://code.google.com/p/emitter/wiki/Usage

Hope you like it.
May you have a easier experience coding with Emitter.

Cheers

Control Movie Clip Duration With An External Config File?
I have a stage with a few different movie clips placed one on top of the other, in different layers, one frame per clip. One is a day time scene, one a night-time scene, one is raining, one is just cloudy. I want to be able to change the duration they run before switching to the next clip, or maybe even prevent it from appearing (maybe if duration is set to '0'?).

I want to be able to make any adjustements to the clip lengths by simply editing a text or XML file.

Here is how I'm controlling the clip length now, although I'm open to better ways.

Code:
function sunnydayFrame() {
nextFrame();
clearInterval(myTimer);
}
myTimer = setInterval(sunnydayFrame, 8000); // calls the function to advance frame after 8 seconds

The next frame is the same except it is function rainydayFrame () and it is myTimer2 and so forth.

Thanks for any help you can provide,

HELP WITH "CGI" CONFIG FILE PLEASE
Well i know this doesnt realy have to do with flash but those of u experts in html please help. Im setting up a form for a site and i dont know how to set up a cgi file.It says i have to upload it to the servers cgi-bin, but i know know where the hell that is oh the site is currently hosted on geocities.. Thanks ALOT..

Flash Script? Is Writing Flash Code Possible? Without A Flash Builder Like Flash MX
I want to get into flash programming on my website, but i do not have thecash to buy flash MX 2004, it is 499 US thats a lot of money.

Basically what i want to know is, can flash be written as code, like HTML or do i need to buy a flash builder. And if so, what can i do about learning this code

Thanx from Fenton Multimedia Designs

Flash Script? Is Writing Flash Code Possible? Without A Flash Builder Like Flash MX
I want to get into flash programming on my website, but i do not have thecash to buy flash MX 2004, it is 499 US thats a lot of money.

Basically what i want to know is, can flash be written as code, like HTML or do i need to buy a flash builder. And if so, what can i do about learning this code

Thanx from Fenton Multimedia Designs

Flash Versions Order Of Sequence : Flash 5, Flash MX, FlashMX 2004?
some questions on FLash versions

After Flash 5 was FlashMX then followed by FLashMX 2004 ???

which means Flash MX is version 6??

thanks for answering.

Can You Open A Flash File Made With Flash Mx, Using Flash Mx 2004?
Hi,

I have recently purchased flash mx 2004. However when I go to open my old flash mx flies in flash mx 2004 all I get is unexpected file format! Why is this? Also when I open flash mx 2004 and try to open one of the sample files it comes up with the same message!

Also when you download and install an extension from macromedia exchange, how do you then use the extension feature in flash? Were do you find it?

Any help on these matters would be appreciated?

Thank you

How Do You Update A Flash Object Without Flash? Selling A Flash Site.
I am wondering what may be a large wonder. If I create a website with flash etc for somebody else, how can they update their own site? For example, if they have an 'updates' page, I don't want to have to keep on redoing it for them in Flash. I heard words like 'strings' and 'XML' kicking about, but don't really understand it. Thanks,

Alex

Making A Flash Website (flash In A Flash In A Flash Etc...)
I am working on a flash "database" as it's called and to make this possible I will need to have multiple flash documents that load within a flash to keep the loading time down, otherwise the filesize would be astronomical!

To see what I am working on go to http://www.axeldesigns.com/h2/helpdatabase then click "menu button" to open the project. Hopefully then you can get a good sense of what I am trying to accomplish...So when you click on the individual links, I want a flash within the main flash to load completely on top with it's own load bar and everything.

I'm not very experienced with action scripting, but I am quite experienced with the animation side of flash and drawing tools etc...

So, if anyone knows of any tutorials or examples that I could work off of, please help me out.

Alex

Will An Swf Made In Flash MX That Is Exported As Flash 4- Play On Flash 4 Cpu's?
Will an swf made in Flash MX that is exported as Flash 4- play on Flash 4 cpu's? How do I get my mx movies compatible with people who only have Flash 4???? I ask this because I exported a movie made in Mx to Flash 4, so I am just wondering if it will play on all Flash computers that have Flash 4, eventhough they may not have flash 5 or mx. Thanks...

Updating Flash 4 Code To Flash MX 2004 Or Flash 8
Can Flash MX or Flash 8 automatically update old flash code or update depreciated code? I have a flash 4 project that when resaved as Flash MX 2004, obviously starts to throw errors.

Flash 8: Button For Flash Paper In A Flash Presentation
I am new to Flash. I have a presentation I am putting together.  I need a button to open a Flash Paper (Flash Papers 2) .  

How do I do this?
Does anyone sell premade buttons?

Thanks!
 

Flash Over Html, Hide Flash Access Html After Flash Movie Ends
We've got a green screened video playing in a flash movie over top of our html content.

when the movie ends, flash uses external interface .api to call a javascript function which swaps the flash movie out with a 5 x 5 pixel flash movie (rewrites the <div>).

this works and you can interact with the html content after the flash movie in all browsers except firefox...!

anyone know of any work-arounds or is there a better way of handling flash over html in this fashion?

any input would be greatly appreciated!

HOW DO YOU CHANGE THE BG OF THE FLASH THING ON FLASH KIT W/OUT USING FLASH?
Plz tell me because I am making a little kid's website and they'll b sad if doesn't match the flash.

Yikes, Can I Go From Flash MX To Flash MX 2004 To Flash MX?
I have flash MX on my computer here at home, I went on campus to edit a file in a class in Flash MX 2004, now I am trying to reopen the file in Flash MX here at home again and it won't allow me to open it, saything there is an unexpected format error.

Is this caused from opening it in Flash MX 2004? Is there a way to revert the file back to Flash MX? Yikes!

Flash/CSS Question: Can Flash In A <div> Overlay Another <div> Containing Flash?
I'm guessing this answer is no but thought I'd ask anyway.

With the "wmode" set to transparent I can get my top div to overlay text/background images no problems but not on top of another flash movie.

Can it be done?

Flash 8 Function Not Working In Flash 8 But In Flash 9
I use this piece of Code from Senoculars Matrix Tutorial:


Code:
import flash.geom.Matrix;
function duplicateMovieClipImage(from, target){
var pics= new flash.display.BitmapData(from._width, from._height);
pics.draw(from);
target.attachBitmap(pics, 1);
}
duplicateMovieClipImage(this.viewer.picHolder, doubleSize.bigpic);
var my_matrix2 = doubleSize.bigpic.transform.matrix;
my_matrix2.scale(1, 1);
my_matrix2.tx = -2;
my_matrix2.ty = -2;
doubleSize.bigpic.transform.matrix = my_matrix2;

duplicateMovieClipImage(viewer.picHolder, normalSize.bigpic);
var my_matrix = normalSize.bigpic.transform.matrix;
my_matrix.scale(0.25, 0.25);
my_matrix.tx = 0;
my_matrix.ty = 0;
normalSize.bigpic.transform.matrix = my_matrix;
When I play this in a Flash 9 Player everything is made correct (A Pic generated in its Original Form and one in its 0.25/0.25 Size.

But when I watch this in a Flash 8 Player (8.0.22.0 that is)

the Script is ignored

any1 know why???

Firefox Recognizes Quicktime As Flash Player Instead Of Flash As Flash Player
I don't know why when I go to websites and all those old Flash sites don't work anymore, but I get the "Quicktime Question Mark" logo. I've tried reinstalling Flash Player so many times but the quicktime logo keeps coming up. I've tried this both with Firefox and Safari and it just doesn't work.

Nested Function Locks Flash On 2nd Frame. Cold Fusion Problem Or Flash MX ? Or Me?
It's been three days I don't sleep. Anybody,please,.....

// Flash MX code 2nd frame

stop();
validatePackage = new LoadVars();
validatePackage.onLoad = function() {
if (validatePackage.success == "0") {
setPackageCheck = new LoadVars();
setPackageCheck.onLoad = function() {
_root.packageCheck.text = setPackageCheck.packageCheck;
_root.unlockCheck.text = setPackageCheck.unlockCheck;
_root.gotoAndStop("exPrep");/* without this line
everything works perfectly !!!!!. WHY ! I mean I have other functions sending time line somewhere else accordint to if statments and it works fine!*/
};
setPackageCheck.accountID = _root.accountID.text;
setPackageCheck.sendAndLoad("setPackageCheck.cfm", setPackageCheck, "POST");
} else {
_root.packageCheck.text = validatePackage.packageCheck;
_root.unlockCheck.text = validatePackage.unlockCheck;
_root.vdDays1.text = validatePackage.vdDays;
_root.vdHours1.text = validatePackage.vdHours;
_root.vdMinutes1.text = validatePackage.vdMinutes;
_root.gotoAndStop("exPrep");/* without this line
everything works perfectly !!!!!. WHY !*/
}
};
validatePackage.accountID = _root.accountID.text;
validatePackage.sendAndLoad("validatePackage.cfm", validatePackage, "POST");


<--- "validatePackage.cfm"--->

<cfquery name="validatePackage" datasource="dsn">
SELECT packageCheck, unlockCheck
FROM accounts
WHERE accountID=#form.accountID#
</cfquery>
<cfif validatePackage.packageCheck lt 1>
<cfoutput query="validatePackage">
&success=0&
&unlockCheck=#urlencodedformat(validatePackage.unl ockCheck)#&
</cfoutput>
<cfelse>
<cfset vdDays=#DateDiff("d",#validatePackage.packageCheck #, now())#>
<cfset vdHours=#DateDiff("h",#validatePackage.packageChec k#, now())#>
<cfset vdMinutes=#DateDiff("n",#validatePackage.packageCh eck#, now())#>
<cfoutput query="validatePackage">
&packageCheck=#urlencodedformat(validatePackage.pa ckageCheck)#&
&unlockCheck=#urlencodedformat(validatePackage.unl ockCheck)#&
&vdDays=#vdDays#&
&vdHours=#vdHours#&
&vdMinutes=#vdMinutes#&
</cfoutput>
</cfif>

<--- "setPackageCheck.cfm"--->

<cfquery name="setValues" datasource = "dsn">
UPDATE accounts
SET packageCheck= #now()#
WHERE accountID=#form.accountID#
</cfquery>
<cfquery name="setPackageCheck" datasource = "dsn">
SELECT packageCheck, unlockCheck
FROM accounts
WHERE accountID=#form.accountID#
</cfquery>
<cfoutput query="setPackageCheck">
&packageCheck=#urlencodedformat(setPackageCheck.pa ckageCheck)#&
&unlockCheck=#urlencodedformat(setPackageCheck.unl ockCheck)#&
</cfoutput>

[MX04] Open A New Link In Html By Clicking Button In Flash (no Code In Flash).
Hi,

I'm facing problem while opening a new html window by clicking button created in flash.

For this i don't want to write single code in flash but want to handle this through the html only.

For this I have used <embed> tag to add swf file in html. but could not add click code in HTML on that button.

Could any one help me out?

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