Como Criar Um Arquivo De Som Data.swf ?
Algu'em poderia me ajudar? Preciso criar um arquivo de som para utilizar em um Flash tarck que peguei aqui no site, mas não consigo. Pois toda vez que crio o arquivo a o player fica dando a mensagem Loading. Ajudem-me !!!
FlashKit > Flash Help > Flash MX
Posted on: 07-09-2002, 12:58 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Como Publicar (for Portuguese People)
Boas pessoal de Portugal,
Alguém que me possa dar uma ajudinha. Tou-me a passar com esta brincadeira e não consigo de forma alguma publicar uma página que fiz em Flash na net. Costumava fazer isto pelo FrontPage através do botão Publish Web que me pedia logo a morada e a password. Com o Flash penso que seja um processo diferente e não consigo encontrar maneira de publicar isto.
Sei que é uma pergunta básica mas não percebo muito disto.
Agradeço desde já toda a ajuda que me possam dar.
Cumprimentos,
Pedro Guerreiro
Como Hacer Una Chat En Flash?
Quisiera saber si es posible crear desde flash un chat para montarlo y utilizarlo en una pagina web?
Este no es del tipo messenger comun, sino que corre directamente en la pagina.
En caso de ser posible, cuales serian las pautas a seguir y cuanto tiempo tardaria en realizarlo un programador novato?
Gracias.
siddin@cantv.net
Como Hacer En Chat En Flash?
Buenos dias...
Quisiera saber si es posible crear desde flash un chat para montarlo y utilizarlo en una pagina web?
Este no es del tipo messenger comun, sino que corre directamente en la pagina.
En caso de ser posible, cuales serian las pautas a seguir y cuanto tiempo tardaria en realizarlo un programador novato?
Gracias.
Como Hacer En Chat En Flash?
Buenos dias...
Quisiera saber si es posible crear desde flash un chat para montarlo y utilizarlo en una pagina web?
Este no es del tipo messenger comun, sino que corre directamente en la pagina.
En caso de ser posible, cuales serian las pautas a seguir y cuanto tiempo tardaria en realizarlo un programador novato?
Gracias.
Como Hacer En Chat En Flash?
Buenos dias...
Quisiera saber si es posible crear desde flash un chat para montarlo y utilizarlo en una pagina web?
Este no es del tipo messenger comun, sino que corre directamente en la pagina.
En caso de ser posible, cuales serian las pautas a seguir y cuanto tiempo tardaria en realizarlo un programador novato?
Gracias.
Controlar Pelicula Flash Igual Como Controlas Video
Hola, tengo una pelicula en flash y quiero ponerle los controles de pausa, y retroceder... tal como los de una pelicula de video... lo transforme a video y queda demasiado pesada, asà es que decidi quedarme ocn el flash....
saluditos, gracias....
Como Aumento La Capacidad Del Buffer, Increase The Buffer Keepin
quiero saber como hago para que las canciones que pongo en streaming comiencen a sonar un poco mas retardadas para hacer que el bufer pueda almacenar mas kilobytes?
i wanna know how do the songs that i put in streaming begin to play later for that the buffer can keep more kilobytes.
xcuse my englich!
Como Aumento La Capacidad Del Buffer, Increase The Buffer Keepin
quiero saber como hago para que las canciones que pongo en streaming comiencen a sonar un poco mas retardadas para hacer que el bufer pueda almacenar mas kilobytes?
i wanna know how do the songs that i put in streaming begin to play later for that the buffer can keep more kilobytes.
xcuse my englich!
Mx.data.components - Unable To Declare Data Component Types In External Class Files
Hi all,
FlashMX 2004, v7.2:
I am trying to declare instances of data-components (DataSet and DataHolder) in external classfiles, but Flash can't find the sourcefiles for any of the data component classes in the classpath.
According to the help-files, the classname for the DataHolder component is:
Code:
mx.data.components.DataHolder
Similarly, the classname for the ComboBox component is:
mx.controls.ComboBox
Code:
mx.data.components.DataHolder
In the following, the ComboBox gets declared, and the DataHolder generates a "Class can't be loaded" error:
Code:
class my_class extends MovieClip {
var my_cbox:mx.controls.ComboBox;
var my_data:mx.data.components.DataHolder;
function my_class() {
// constructor function
}
}
Sure, it fails because there is no "components" folder in the mx.data folder (at least on my system), and I have been unable to find any DataHolder.as file anywhere either, even though the documentation gives examples that reference the mx.data.components-folder for various data components. I even tried re-installing to make sure I had not accidentally deleted any classfiles, but still no luck.
Am I missing something really obvious here? Does anyone know how to successfully import, declare or otherwise make use of data-components in external class files? Any help greatly appreciated.
Send Form Data To A Php Script Which Writes The Data To A .txt File
Hi!
Ok, this might be very easy but I´m new to both AS and PHP so I´m struggling here and I havent found any useful tutorials to use only small bits here and there.
What I want to do: I have a form which send data to a php script which then writes the data to a .txt. This .txt file is then used by a .swf file to display certain values.
I also have 1 field that I want to use as a validation field as a simple(but yes, not very safe) way to make sure only the right persons submit information.
I have got the .swf file to read the .txt file so thats no problem.
Has anyone got any suggestions about how I do this?
I have an idea of letting the validation field be checked against a .txt file and if one of the lines in the .txt file matches the validation field the rest of the information is submitted and sent to the php script.
Difficult?
Many thx in advance!
Is There Anyway To Read Data In From A Text File And Populate An Array With The Data?
hello,
i'm new to flash, and i'm trying to create a photo gallery. however, the photos may not always be the same, and i need to have a way to easily change the pictures without having to go back into flash to change the code everytime. i thought a good way to do this would be to read the names of the pictures in from a text file and then use those names to populate an array, similar to the tutorial on creating a photo gallery on kirupa.com. the problem is, i have no idea how to do this. anyone have any ideas?
thanks
Converting Internal Array Data Into External XML Data [renamed]
I have this code inside my flash to name my navigation menu. Now I want to put this outside flash and load it via XML. How do save my different arrays into a variable for later use in my code?
In my nav fla (what i want to load from XML):
Code:
// MAIN MENU ARRAY
var mm_array:Array = ["MAIN1", "MAIN2", "MAIN3", "MAIN4"];
// SUB MENU ARRAY
var sm1_array:Array = ["sub1", "sub2"];
var sm2_array:Array = ["sub1", "sub2", "sub3"];
var sm3_array:Array = ["sub1", "sub2", "sub3"];
var sm4_array:Array = ["sub1", "sub2", "sub3", "sub4"];
var submenu_array:Array = [];
XML loading code
Code:
// LOAD MY XML
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function (success:Boolean):Void {
if (success) {
// what goes here to define: mm_array, sm1_array, sm2_array etc
myXML.load("myXML.xml")
XML file something like this:
PHP Code:
<navigation>
<menu>
<mm_array>main1</mm_array>
<sm_array>sub1</sm_array>
<sm_array>sub2</sm_array>
</menu>
<menu>
<mm_array>main2</mm_array>
<sm_array>sub1</sm_array>
<sm_array>sub2</sm_array>
<sm_array>sub2</sm_array>
</menu>
</navigation>
XML Data Displayer, Help Adding Multiple Data Fields Relating To XML
I recently used the Displaying XML Data tutorial, but cant seem to figure out how to add more dynamic text fields and populate them with more <person> and <comment> attributes.
Here is my code:
function loadXML(loaded) {
if (loaded) {
_root.inventor = this.firstChild.childNodes[2].childNodes[0].firstChild.nodeValue;
_root.comments = this.firstChild.childNodes[2].childNodes[1].firstChild.nodeValue;
name_txt.text = _root.inventor;
comment_txt.text = _root.comments;
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("inventors.xml");
and xml:
<?xml version="1.0"?>
<inventors>
<person>
<name>Thomas Edison</name>
<comment>Inventor of many things such as the incandescent lightbulb.</comment>
</person>
<person>
<name>Doug Engelbart</name>
<comment>Invented the mouse at the Stanford Research Institute</comment>
</person>
<name>Patrick</name>
<comment>did this xml file</comment>
</person>
</inventors>
I am trying to display Patrick - and did this xml file.
Could you please help me figure out what I am doing wrong here?
Is There Anyway To Read Data In From A Text File And Populate An Array With The Data?
hello,
i'm new to flash, and i'm trying to create a photo gallery. however, the photos may not always be the same, and i need to have a way to easily change the pictures without having to go back into flash to change the code everytime. i thought a good way to do this would be to read the names of the pictures in from a text file and then use those names to populate an array, similar to the tutorial on creating a photo gallery on kirupa.com. the problem is, i have no idea how to do this. anyone have any ideas?
thanks
Help Me Define My Search.. ( Sound Data To Graphic Data)
I don't know what the actual terminology is so my searches are tanking. What I want to do is to take an audio file and based on the tones and whatnot generate graphics that move with the music. The visualizations in Windows Media Player do exactly what I want but I don't know what it is actually called.
Any help to point me in the right direction is much appreciated.
Thanks
Scroll Bar Works For External Data But Not Internal Data
Howdy,
I have a dynamic text box named 'outputbox'. This is set for multiline. I have an associated scroll bar.
I make a lot of these kind of calls:
PHP Code:
history.onPress = function() {
outputbox._visible = true;
loader = new LoadVars();
loader.load("history.txt");
loader.onLoad = function() {
outputbox.text = this.history;
};
This works great, the scrollbar becomes active when the text goes beyond the outputboxes boarders.
In addition, this 'outputbox' also has a variable (Var) associated with it named 'myTally'. At some particular frames I am generating content for this variable thusly:
PHP Code:
for (receipt = 0; receipt<23; receipt++) {
description = _root["config"+receipt][1];
price = _root["config"+receipt][2];
if (description != 0) {
mytally = (mytally+"
" +description+" "+ price); }
}
Indeed, the outputbox certainly gets populated but the scrollbar does not work. When I select-and-drag the text it definitely goes beyond the boarders of the outputbox. If I change the font size of this outputbox (8pt to 16pt) then the scrollbar *does* work.
Why does the scrollbar react to an external file and not my dynamically generated variable? Is something not scoped or in focus? I really have no idea. Anyhow, any suggestions of where to look for resolution would be greatly appreciated.
Thanks,
Cheez
Flash Data Intergratino Useing Xml Data Bases
im not huge newbee to this , iv overcome the majority of the studid little qustions but i ask you this , how do you create adatebasse of say mp3s thru flash using a xml database. first, how do you embeed say mp3 files into a xml document and so on and so on
How To Drag Column Data From One Data Grid To The Anther?
How to drag column data from one Data Grid to the anther?
Hi,
I build an application in mx2004 and I have 2 dataGrid instants containing data.
I am looking for a way to let the user drag a row of data from a data grid and drop it in anther data grid.
I have an “EventListener” on “myListener.cellPress” caching the data, but I could not find a way to determine where to drop the data and how to insert it to the destination dataGrid.
Thank
Nimrod
Flash Sends Data To PHP, Browser Waiting For Data
Hi,
I have the following problem. I'm implementing a flash form mailer using PHP to send out the mail. I'm doing this in the actionscript to sed out the data:
_root.mcDataField.loadVariables("form.php", "POST");
Then my PHP script looks like this:
$sendTo = "xyz@server.com";
$subject = "Some title here";
$headers = "From: " . $_POST["Name"]. "<" . $_POST["Email"] . ">
";
$headers .= "Reply-To: " . $_POST["Email"] . "
";
$headers .= "Return-Path: " . $_POST["Email"];
$message = $_POST["Message"];
$retVal = mail($sendTo, $subject, $message, $headers);
When I sendthe data, it gets emailed, but the browser shows (in the bottom left corner): "Waiting for xyz.com", where xyz.com is the server I have my files on.
Any idea would be greatly appreciated! Thank you!
How To Drag Column Data From One Data Grid To The Anther?
How to drag column data from one Data Grid to the anther?
Hi,
I build an application in mx2004 and I have 2 dataGrid instants containing data.
I am looking for a way to let the user drag a row of data from a data grid and drop it in anther data grid.
I have an “EventListener” on “myListener.cellPress” caching the data, but I could not find a way to determine where to drop the data and how to insert it to the destination dataGrid.
Thank
Nimrod
MyComboBox.addItem(label [,data]) How To Add Data?
The Flash help says to add an item to a ComboBox using myComboBox.addItem(label [,data]). I have no problem adding the label but my data is two items: unit and value. How do I add these two pieces of data?
An example of a comboBox listing might be:
Label: Rope
Unit: Feet
Value: 2.00
So if a user selects Rope, they will see it's $2.00 a foot.
Thanks for any help.
Data Connection/Data Holder Comps
I do a lot of developing with SQL->PHP->XML->FLASH, and end up having to deal with a LOT of data that I both recieve and send. I really just noticed the Data Connection/Data Holder comps like...today and I dont really see how they are all that much better than just using my own array's and objects. Perhaps my limited understanding of them prohibits my appreciation. Anyone care to enlighten?
AS2: Data Bind SQL Query Data To ComboBox
Can anyone point me in the right direction - I'm using Flash remoting with CFCs and I'm trying to pull query data from SQL and populate a ComboBox with AS2 components.
I have a CFC called "states.cfm" and Flash Remoting is set up and connecting properly (AS2 components). It's pulling 2 columns from the states table, "state" and "stateValue". In the flash movie there's a dropdown with an instance name "dd_states". I've searched all over (Using Flash,macromedia,google,flashkit) and I can't find a clear example using the AS2 databinding components using data from a SQL Query....
ThxInAdv
Data Grid Versus Data Connection Kit
can anybody explain me an advantage of data connection kit
over data grid, is it realy better? there is no test version of firefly so u can not test it.
i mean does anybody used the data grid and than chaned to
firefly?is this connector-resolver stuff that usefull? is it worth 299$
thanks nermin
AS2: Data Bind SQL Query Data To ComboBox
Can anyone point me in the right direction - I'm using Flash remoting with CFCs and I'm trying to pull query data from SQL and populate a ComboBox with AS2 components.
I have a CFC called "states.cfm" and Flash Remoting is set up and connecting properly (AS2 components). It's pulling 2 columns from the states table, "state" and "stateValue". In the flash movie there's a dropdown with an instance name "dd_states". I've searched all over (Using Flash,macromedia,google,flashkit) and I can't find a clear example using the AS2 databinding components using data from a SQL Query....
ThxInAdv
Saving Data And Loading Data From A .txt File...
Hi,
I know there's a way to do it but i just couldn't get the right tutorial around..
I have read through Shared Objects but i couldn't get it work...
I just have to save my data, maybe array into .txt file and later on
retrieve from the same .txt file...
Anyone here have an example or some source code so i can have reference on it?
Thanks for the help provided....
Regards,
Lacus
AS2: Data Bind SQL Query Data To ComboBox
Can anyone point me in the right direction - I'm using Flash remoting with CFCs and I'm trying to pull query data from SQL and populate a ComboBox with AS2 components.
I have a CFC called "states.cfm" and Flash Remoting is set up and connecting properly (AS2 components). It's pulling 2 columns from the states table, "state" and "stateValue". In the flash movie there's a dropdown with an instance name "dd_states". I've searched all over (Using Flash,macromedia,google,flashkit) and I can't find a clear example using the AS2 databinding components using data from a SQL Query....
ThxInAdv
Referencing Data Vs Duplicating Data
This is a question that keeps coming up for me, but I've never been able to find an adaquate answer. I'm probably not looking in the right places.
When setting properties of an object, what exactly is being stored: the location of the property or the actual information for that property? For example, if I have the following code:
_root.createEmptyMovieClip( "mcEmpty", 0 );
tarClip = mcEmpty;
What exactly is being stored in tarClip? Is it a string denoting the location of mcEmpty or some other reference to mcEmpty?
All I know is that for some objects (ie. arrays, strings, numbers) the actual data from one object is placed in the second resulting in two instances of the same information. Yet for other objects (ie. movieclips, xml nodes) a reference to the data seems to be placed in the inheriting object such that only one copy of the data exists.
So in general, my question comes down to the following: in what instances is information duplicated when one property is set equal to another and when is a reference to the information set? Is there a general rule for this?
Thanx for any help you can provide.
How To Use Data Component To Bind Data From Sql
i'm having problem.is there any one can guide me and show me step by step to bind data from sql using data component such as data set and xml connector.I relly don't have idea how to done that.tq?
Getting Data From A Php Script That Gets Data From A Database
Hello,
I am trying to get information for a database, and the php script works fine. The php script outputs the data in flash format, and with traces the flash appears to be working fine.
The only problem is when I try to call any value out of the array, it comes back undefined, even though while going through the loop the traces said the values were in fact defined.
Here is my shortened script:
ActionScript Code:
var path = "http://localhost/rpg/web-content/";
var terrainurl = path + "getterrain.php";
terrain.load(terrainurl);
terrain.onLoad = function() {
for (var i:Number = 0; i < this.ttotal; i++) {
terid = this["tid" + i];
terrainpicture[terid] = this["terrainpicture" + i];
}
}
var terrainpicture:Array = new Array();
loadMovie(path + terrainpicture[1], _root.t1);
stop();
The last load movie returns an undefined value. I have other queries going on in the script but I commented them out. Every value comes back undefined.
Any ideas?
Thanks,
Cameron
List Item W/ Multiple Data Items - How To Select Data Items?
I have a list component (myListBox) that is showing the labels for some data items read in from an XML file. Each item in the list has an associated name, description, and path (they're mp3 files) and they are named accordingly in the XML tags.
Using myListBox.selectedItem.label gives the correct label but myListBox.selectedItem.data is undefined. I've tried using the XML tags after the data selector (e.g. myListBox.selectedItem.data.path) but those don't work, either. All of the examples I've found in the docs show only a single data element associated with each list item.
So, if a list item has multiple data items associated with it, how do you select them using the listBox.selectedItem property?
TIA,
rgames
Data In Data Out In Flash MX
Can anyone help me with this. How can I pull data into flash a flash ap? Like quarry data from a database to change text in flash. For example, if I was to work on a bracket for a tournament, I would want to quarry the teams in the tournament from a database and have them appear in the ap.
Any clue on how to do that?
thanks!
How Do Get Data From Data Binding
I have an XMLConnector attached to a xml file and bound to a label. This is working fine.
My question is:
How do I access the values in either the label or the XMLConnector through actionscript. Whatever I try returns null for the value.
import mx.data.binding.*;
var dataTypeObj:mx.data.binding.DataType = this.xmlConn.getField("results", "rack.positions");
var test = dataTypeObj.getAsNumber();
Link In Xml Data To Other Xml Data
Hi,
Boy, I'm not even sure I can describe this; I get dizzy.
Picture a dictionary project.
I start with an xml file containing terms and definitions.
My movie creates a list of the terms.
When rolling over a term, the definition appears.
So far so good.
Now some of the definitions contain other terms that appear in the list.
I would like to be able to mouseover the words in the definition that are also in the list and have the definition from the xml file appear as a sort of tooltip.
For instance, animal and cat are terms in the list.
I rollover cat and the definition appears in a dynamic textbox to the left of the list. The definition is: A cat is an animal. I'd like to rollover the word animal and have the definition of animal appear as a tooltip.
See why I get dizzy?
Is this possible,
Thanks a bunch,
Debbie
AS2 - Data Set Not Storng Any Data?
Maybe I am a bit dense, but I have been trying to make this work all day and I can't get it to, so I would kindly request some assistance.
Basically what I am trying to do is to read data from a database containing a number of products and showing them on the stage.
Of course it is a work in progress and I have a lot of lines commented for later implementations, still the problem I am facing here that the data loaded in the first part of the code fails to show up later when I try to retrieve it via the _root.datacontainer.items[j].xxx method. All I get is a number of "undefined" on the screen.
Where am I going wrong? Any help is appreciated.
Code:
directory="public/";
lista=new LoadVars();
lista.load("http://www.agricolabaldi.com/tuttiProdotti.php");
lista.onLoad=function(success){
function carica(){
i = 0;
var totale=lista.t;
var elenco:Array=new Array();
for (i=0; i<(lista.t); i++){
elenco.push({
id:lista["id"+i],
nome:lista["nome"+i],
descrizione:lista["descrizione"+i],
nomeFoto:directory+lista["nomeFoto"+i],
novita:lista["novita"+i],
tipologia:lista["tipologia"+i],
confezionamento:lista["confezionamento"+i]
});
}
_root.datacontainer.dataProvider=elenco;
}
carica();
}
var thumbWidth:Number = 120;
var thumbHeight:Number = 75;
var MainTL:MovieClip = this;
var selected_thumb:MovieClip;
var thumbs:Array = new Array();
var thumbMCLoader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
thumbMCLoader.addListener(listener);
initThumbScroller();
function initThumbScroller(targetBtn:MovieClip, workCategoryID:String){
var counter:Number = 0;
for(var j:Number=0;j<20;j++){
var thumb = MainTL.thumb.duplicateMovieClip("thumb"+counter,counter);
thumb.thumb_title_mc._visible = false;
if (j==0){
xbase = 5;
ybase = 5;
thumb._x=xbase;
thumb._y=ybase;
} else {
if (xbase == 505){
xbase = 5;
ybase = ybase + 110;
thumb._x=xbase;
thumb._y=ybase;
} else {
xbase = xbase+ 125;
thumb._x=xbase;
thumb._y=ybase;
}
}
thumb.ID = counter;
thumb.title = _root.datacontainer.items[j].nome;
thumb.pictureURL = _root.datacontainer.items[j].nomeFoto;
counter++;
thumb.titleInitializing = true;
thumb.title_mc._visible = true;
thumb.title_mc._width = thumbWidth;
thumb.title_mc.theTitle.multiline = true;
thumb.title_mc.theTitle.wordWrap = true;
thumb.title_mc.theTitle.autoSize = true;
thumb.title_mc.theTitle.text = _root.datacontainer.items[j].nome;
thumb.title_mc._x = 0+Math.round((thumb.holder._width-thumb.title_mc._width)/2);
var thumbMCLoader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
thumbMCLoader.addListener(listener);
thumbMCLoader.loadClip(_root.datacontainer.items[j].nomeFoto,thumb.holder.thumb);
listener.onLoadComplete = function(target:MovieClip){
target._parent.preloader._visible = false;
}
listener.onLoadInit = function(target:MovieClip){
target._width = thumbWidth;
target._height = thumbHeight;
var tempMC = target._parent._parent.createEmptyMovieClip("tempSwapMC",target._parent._parent.getNextHighestDepth());
target._parent._parent.title_mc.swapDepths(tempMC);
}
thumb.holder.onRollOver = Delegate.create(MainTL,onThumbnailOver,thumb);
thumb.holder.onRollOut = thumb.holder.onDragOut = Delegate.create(MainTL,onThumbnailOut,thumb);
thumb.holder.onRelease = Delegate.create(MainTL,onThumbnailClick,thumb);
thumbs.push(thumb);
}
MainTL.thumb._visible = false;
}
function onThumbnailOver(thumb:MovieClip){
setSelectedThumb(thumb);
}
function onThumbnailClick(thumb:MovieClip){
//if( site_xml.firstChild.childNodes[thumb.ID].attributes.link != undefined ){
//_global.mcwidth = site_xml.firstChild.childNodes[thumb.ID].attributes.mcwidth;
//_global.mcheight = site_xml.firstChild.childNodes[thumb.ID].attributes.mcheight;
//_global.picname = site_xml.firstChild.childNodes[thumb.ID].attributes.link;
//win = PopUpManager.createPopUp(_root, Window, true, {closeButton:true});
//win.title=" Azienda Agricola Baldi Paolo";
//win.contentPath=('showpic.swf');
//win.setSize(mcwidth,mcheight);
//var alto:Number = ((Stage.width-mcwidth)/2);
//var destra:Number = ((Stage.height-mcheight)/2);
//win._x = alto;
//win._y = destra;
//lo = new Object();
//lo.click = function(){
//win.deletePopUp();
//}
//win.addEventListener("click", lo)
//}
}
function setSelectedThumb(thumb:MovieClip):Void{
selected_thumb = thumb;
}
function getSelectedThumb():MovieClip{
return selected_thumb;
}
Data.swf Help
hello guys,
i just NEED to know how to make the data.swf files run without using flashtrak.... please help me.. pretty please?
How Do I Get Data?
I input a password in 1.swf.
I must utilize the password data in another .swf file.
How do I get data of password from 1.swf?
Please help me and point me in the right direction.
Any help would be greatly appreciated. Thanks.
Best regards,
softip
Getting Data From Asp
Hello,
In flash, I used ....
loadVariables ("summary.asp", "", "POST");
to retrieve the data from DB table.
I also found the data I need using following code in asp.
=====================
do until ra.EOF
i = i + 1
a = ra("a1")
b = ra("b1")
c = ra("c1")
d = cint(ra("d1"))
Response.Write "&a_"&i&"="&a&"&b_"&i&"="&b&"&c_"&i&"="&c&"&d_"&i& "="&d&""
ra.MoveNext
loop
=====================
but I can't see the data in flash.
Even, I created dynamic text fields such as a1, b1, c1, d1, a2, b2, c2, d2 and then I set the condition in asp to retrieve only two records.
Still I can't see the data in my flash application.
What did I wrong?
Thanks in advance.
Yung
In And Out Data...
Hey all,
I'm trying to let the user change a variable from 50 to somewhere between 1 and 100.
The value is shown in an input text box. The changing can be done either by writing a new number in the box or by pressing buttons (1+, 1-).This works fine.
The problem:
If u write a number in the box it ads the number 1 after the value not to the value when u press the + button. When u press the - button it subtracts 1 (as it should).
Exampel: 1 (press +) = 11
: 1 (press -) = 0
The code:
+ button: on (press) {a = 1;}on (release) {a = 0}
- button: on (press) {a = 2;}on (release) {a = 0}
the buttons r pu in an mc with this code:
onClipEvent (load) {var q = 50;}
onClipEvent (enterFrame)
{if (a == 2){q = q-1;}
if (q<0){q = 0;}
if (a == 1){q = q+1;}
if (q>100) {q = 100;}
Any ideas?
/z
Data.swf
When using a music player within flash, i have noticed a couple of things on
flashkit.com regarding data.swf. How does this file actually work or better yet the purpose of it? And how to you "import" the sound files into the data.swf file.
Data From Xml
I want to take data from xml
menu_item1-> submenu_items -> url
------------ submenu_items -> url
-------------submenu_items -> url
menu_item2-> ..................
menu_item3-> ..................
Tell me if I should push every item to corresponding array
fg mainMenuArray subMenuArray subMenuArrayUrl or I can take directly
from XmlObject and how?
Maybe I can make 3-dimesional array?
On Data
I have an empty clip in which I load an external Text file with variables.
Is it safe to say, that when
myHolder.onData = function(){
}
is invoked that the entire text file has been loaded/read, or should I do an onEnterframe to make sure the last line/variable of that text file is in?
Thank gurus
Getting Data.
Hello,
I want to get names from a MySQL table into my flash movie. So I used some php to combine the two.
Now what I want to do is by clicking a button, I want to receive the names in a array or something else. the problem is I don't know the most correct way to do so.
I thought I use a variable i post it to my php get the first value out of en array. return it to flash.Put it there also in an array. increase i and sent it back to my php file, and so on and so on.
I used myVar.sendAndLoad, but it doesn't work. Mostely because I don't know how to use it.
can someone explain me in a pretty simple way the steps I have to take???
thank you
How To Use This Data?
how can i use the numberofPics value (eg 5) to prevent the _parent.loader.gotoAndPlay(2) script from firing IF the numberofPics value has already been 5? i'm not sure how i would code this.
on (press) {
if (numberofPics<_parent.project1) {
numberofPics++;
} else {
numberofPics = 1;
}
}
on (release) {
loadMovie("project1/"+numberofPics+".jpg", _level0.photoholder);
_parent.loader.gotoAndPlay(2);
}
Data
emmm..
yah...
ee need a data saver... with flash
i sow one in Flashkits movie.. parts.. while i searched for saver..
i sow there a mc.. that was saving data on the computer and loading data from the same text file.. and listing tham but was made with flash 5 soo i want annyone help me on that make anny with flash MX....
plss help meeee plss... help annyone
XML Data Help
I have some data loading from an XML file into a DataHolder. I need to be able to set variables from the data. I've been using a DataSet and binding it to the DataHolder and then setting variables from the DataSet. However, the latest XML that my IS team sent me has nested levels of information and I'm not sure how to get past the first level. I will post the XML data below. Any help would be most appreciated.
Code:
<Schema1>
<Topic>
<Topic_Name>Action</Topic_Name>
<Game>
<Game_ID>1</Game_ID>
<Game_Source_Type_ID>8</Game_Source_Type_ID>
<Game_Code>TG001</Game_Code>
<Game_Name>Test Game 1</Game_Name>
<Game_Description>Testing</Game_Description>
<Game_Path>games/</Game_Path>
<Game_Filename>test_game_1</Game_Filename>
</Game>
</Topic>
<Topic>
<Topic_Name>Adventure</Topic_Name>
<Game>
<Game_ID>1</Game_ID>
<Game_Source_Type_ID>8</Game_Source_Type_ID>
<Game_Code>TG001</Game_Code>
<Game_Name>Test Game 1</Game_Name>
<Game_Description>Testing</Game_Description>
<Game_Path>games/</Game_Path>
<Game_Filename>test_game_1</Game_Filename>
</Game>
<Game>
<Game_ID>2</Game_ID>
<Game_Source_Type_ID>8</Game_Source_Type_ID>
<Game_Code>TG002</Game_Code>
<Game_Name>Test Game 2</Game_Name>
<Game_Description>Testing</Game_Description>
<Game_Path>games/</Game_Path>
<Game_Filename>test_game_2</Game_Filename>
</Game>
</Topic>
</Schema1>
Xml Data
i have an xml menu and i have a mc thats visability is set to false but on a click of certain menu items i want it to show. and i cant get the code right to do it.
i have a button that loads a particular gallery and i want the navigation to show so i have
Code:
ssp.loadAlbum(this.variables);
and in my xml this is a snippit
Code:
<item name="COMMERCIAL" action="" variables="3"/>
so basically that controls my gallery.. i want to add something like this to the mix but cant
Code:
thumb_mc._visible = (this.nav);
and have my xml like this
Code:
<item name="COMMERCIAL" action="" variables="3" nav="true"/>
Xml Add Data?
i can add data to XML file but not in the right place.
i load this from a file and want to add another author and title. I can do this but not in the correct place. How do i copy data back to a file?
input
------
<books>
<book>
<author>mark twain</author>
<title>huck finn</title>
</book>
</books>
function showData():Void {
//trace(sXML);
xmlVal.ignoreWhite =true;
xmlVal.parseXML(sXML);
var xRootNode:XMLNode =xmlVal.firstChild ; //books
var bookTag:XMLNode =xRootNode.firstChild; //book
// var att:Object =bookTag.attributes ;
var xNew:XMLNode =new XMLNode (1, "author");
var xNewText:XMLNode =new XMLNode (3, "marcus ee");
var xNew2:XMLNode =new XMLNode (1, "title");
var xNewText2:XMLNode =new XMLNode (3, "mytitile");
xRootNode.appendChild (xNew);
xRootNode.insertBefore (xNew,xRootNode);
xNew.appendChild (xNewText);
xRootNode.appendChild (xNew2);
xNew2.appendChild (xNewText2);
var aChild:Array =xRootNode.childNodes ;
for (var i:Number=0 ;i<aChild.length;i++)
{
trace(aChild[i].toString());
}
output- last 2 lines should be inside book tags.i use insertBefore but it fails.
------
<book><author>mark twain</author><title>huck finn</title></book>
<author>marcus ee</author>
<title>mytitile</title>
|