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





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

What Is Proper Schema For This Data?
In the Dataset component inspector what would i set the schema as, given this data example (array of xml)?:


Code:
<ep n="1">
<id></id>
<name></name>
<dt></dt>
<d></d>
<gs></gs>
<img></img>
</ep>,
<ep n="2">
<id></id>
<name></name>
<dt></dt>
<d></d>
<gs></gs>
<img></img>
</ep>,
<ep n="3">
<id></id>
<name></name>
<dt></dt>
<d></d>
<gs></gs>
<img></img>
</ep>,
.
.
.

Video Is Being Reduced ... Help
I am using Camtasia Studio to convert an AVI to SWF. When I do a loadmovienum or place it in a target it seems to go from looking great as a stand alone SWF to a distorted small MC in Flash. Anyone have any ideas?

Thank you !

Img Quality Is Reduced..why
well i'm facing a very strange problem....i have a 18 kb jpeg image in my movie

image looks fine if theres only 1 frame in my movie..

but the moment i add another frame ...the same image quality is drastically
reduced when i publish.



why is this happening...

pl help-

Now Reduced To Tears
Please help, this has now reduced me to tears..I posted this morning, but still no replies..I have changed the names of the variables in case something was wrong there...

ActionScript Code:
If (_global.mydogCheck=="isTrue" && _global.mycatCheck=="isTrue")
    {
                                      _level0.gotoAndStop(4);
    };
when the -global.mydogCheck and _global.mycatCheck are set to anything BUT "isTrue" this code executes anyway. Why?

I have set both variables to = "Jellyand Icecream" and still this statement runs. Please Please Please.... Its like the If statement doesn't exist!!

XML Schema And Such
OK! I am trying to make an RSS reader. In doing this, I want to press a button to go to an RSS link
The XML connector component is named rss for me.
it is results.rss.channel.item.[n].link
So I want to do:
on (release) {
getURL (thisiswhatIneedrighthere, "_blank"}
So how do I make this schema into a variable?

Thanks for your help.

XML Schema And Such
OK! I am trying to make an RSS reader. In doing this, I want to press a button to go to an RSS link
The XML connector component is named rss for me.
it is results.rss.channel.item.[n].link
So I want to do:
on (release) {
getURL (thisiswhatIneedrighthere, "_blank"}
So how do I make this schema into a variable?

Thanks for your help.

Color Schema?
Hello, im looking for a color schema if anyone have a nice one post it please it will help.

Thx

Schema In XMLConnector
Hello,

i am using Flash MX 2004 Pro and currently working with components. I realized that the build in XMLConnector build a XML Schema of the XML file you supply.

It seems to be possible to alther it in the Component Inspector, but I would like to load a predefined Schema into XMLConnector. I dont like the idea to supply an example file instead of a real Schema!

General questions: Is it possible to load a Schema (XSD) into Flash (maybe into another component)Is if possile to somehow validate an XML-file against a given Schema (XSD).Is it possible to access the XMLConnector-component from ActionScript. The API is pretty pretty simple! Any not documented methods available? Maybe its possible to inherit from XMLConnector and add a loadSchema class or something?Isnt it strange that Flash can reverse-engineer a Schema in the XMLConnector-Component but cannot (see above) take a custom Schema (XSD)?
Maybe its possible to load a Schema in MXML or something or maybe someone extended the XMLConnector-Class already?

It seems pretty strange to me that Flash MX 2004 pro supports advanced (Schema based) services such as Webservices, but does not give me a sophisticated API to the XMLConnector component or Schemas in general!

Yours,
Matthias

Schema Question
Hi,

Is it possible to access the data bound to the xmlConnector without using other components. Can I take a schema and apply it to a MovieClip?

Please advice, Thanks!

Justin

How To Make Enlarged Or Reduced Images Look Good?
So here's the deal; im trying to make an imported png image reduce or enlarge (doesnt matter which effect i try) its size and change opacity(brightness) when onRollOver...

But the reduced/enlarged image ends up looking like crap and all pixelated in its onRollOver state, so i tried to reduce the image size in photoshop and then import 2 different images - one onrollout version and one onrollover version, but this ends like looking like crap anyway (tried both move tween and shape tween)...

Ive seen websites using this effect (images changing size smoothlywhen onrollover), but i havent gotten the right look and feel of it.. how do they do it?

Maybe this effect can be done in actioscript but i dunno how in that case...

Help greatly appreciated!

Mp3 Issues, Chipmunks Reduced Runtime After Resampling
Hey Gang-

I have a problem with some mp3's, the original mp3 file is not able to be imported into flash, and if we try to stream it, it does not get recognized. Then take it into Sorenson to resample it. Any sample rate above 64 it comes out sounding like chipmunks and the run time is cut 10-15 seconds. Resampling at 64 or below, the quality is passable but again the runtime of the audio is reduced. I'm at a loss and would appreciate any guidance, ideas, suggestions...

Best regards,
Lance

Dataset Schema Set By User
Let me see how well I can explain this.

I have just started getting into Flash and mySQL integration, and have something working fairly well using one of Macromedias tutorials. What I have currently is a dropdown menu where someone can select a species of animal. Once selected they then get a Datagrid component which lists out the species of that type of animal. Meanwhile, I have a Dataset component which filters the results from whatever my database returned from dropdown selection and returns the Common Names of the animals for the Datagrid list. This is set by a schema that says "commonName : String" (commonName being the column name in my database).

Heres the question:
Is there a way to have a button on my stage change the "fieldname" in the schema in a Dataset so that a user could have the list show something else. i.e. they can click the button to change it from commonName to scientificName so the Datagrid will display the scientific names instead of common names.

XML Validation (DTD, Schema/XSD) In Actionscript 3?
I understand that AS3 now has the "XML" class which is a "validating parser". This means that the XML has to be well-formed. However, I am wondering if this also means that the AS3 XML class will validate the XML against an inline declared DTD or XSD Schema, or if it only checks for well-formed'ness?

If it doesn't actually validate an XML against the DTD, does anyone know how one would go about doing that with AS code? Is there any free classes that do this already?

Large Font Size In Reduced Dynamic Text
large font size in reduced dynamic text:

I am using an email form. The original size was 500x400 or something similar. I reduced the size to 160x100.

The problem is that the font size in a dynamic text field on the form which receives input from a php file is now HUGE. Even if i now set the font size to 8.

Do you know of a solution to this?

TIA

Problem Importing Image - Reduced Contrast & Saturation
I am using Flash 8. I have never had a problem importing images before. Today I imported a jpg and noticed that the contrast and saturation is significantly less than in the original image. Any thoughts?

Calling Web Services With External Schema
Hello!

Is there a way to import a schema from a WSDL? I'm trying to call a web service that has its schema on a separate .xsd file, and it's not working...

This is the response I'm getting from the Log object:


Code:
11/16 18:12:4 [INFO] : Creating stub for http://localhost:18181/InclusionDetailsDefnService/InclusionDetailsDefnPort?WSDL
11/16 18:12:4 [INFO] WSDL: Creating WSDL object for http://localhost:18181/InclusionDetailsDefnService/InclusionDetailsDefnPort?WSDL
11/16 18:12:4 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/1999/XMLSchema
11/16 18:12:4 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/2000/10/XMLSchema
11/16 18:12:4 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/2001/XMLSchema
11/16 18:12:4 [INFO] XMLSchema: Registering schema namespace: http://schemas.xmlsoap.org/soap/encoding/
11/16 18:12:4 [INFO] XMLSchema: Registering schema namespace: http://xml.apache.org/xml-soap
11/16 18:12:4 [INFO] XMLSchema: Registering schema namespace: http://rpc.xml.coldfusion
11/16 18:12:4 [INFO] WSDL: Successfully created WSDL object
11/16 18:12:4 [INFO] : Created stub for http://localhost:18181/InclusionDetailsDefnService/InclusionDetailsDefnPort?WSDL
11/16 18:12:4 [INFO] WSDL: Received WSDL document from the remote service
11/16 18:12:4 [INFO] WSDL: Parsed WSDL XML [0 millis]
11/16 18:12:4 [INFO] XMLSchema: Registering schema namespace: http://glr.com.br/wsdl/InclusionDetailsDefn
11/16 18:12:4 [INFO] : Made SOAPCall for operation SendEmployeeDetails
11/16 18:12:4 [INFO] : Set active port in service stub: InclusionDetailsDefnService : InclusionDetailsDefnPort
11/16 18:12:4 [INFO] : Invoking call SendEmployeeDetails
Element ns:InclusionResponse not resolvable
I'm pretty sure this problem is related to the schema, because the return element InclusionResponse is not being recognized.

Flex3---Reduced By Size Module Doesn't Show Button
Hi!
I have compiled module with 'MXMLC' command. Its size is more than 100 K. It contains only one button. when I call this module in main application, it is called perfectly and button is showed on the screen.

2nd Time:

Now I want to reduce the size of the module. And for this I do following....

I have complied the module using 'MXMLC' command using '-link-report' switch. It generates a XML file. Then I use again 'MXMLC' command using '-load-externs' switch.

All works well, but when I compile and run the same application through FLEX builder, I am unable to view the button [which was seen earlier before reducing the size of module].

Can some one guide me about the problem.

Thanks in advance

Smarter Schema For Tracking Player Actions
I'm trying to use excel to run through all the various combinations that can happen throughout a hand of poker, hoping to come up with some way to get flash to 'know' who's turn it is next, when to deal again, what to do when someone folds et cetera...

I'm messing around with something that spiders out from playerN, where before n is acted on, flash makes sure n is no higher than the number of players in the game (a variable), and if it is, it puts it back to 1 before continuing

so maybe I could send an initial value of N into the matrix or something based on who the dealer is - like I've got cd for current dealer and f2 for first to act, which is cd+3 (dealer, big blind, small blind, first to act)

I could just code every possible scenario in, there really are probably only a few dozen, but I'd rather find out if it's possible to create a method flash uses to have the process more automated.

like if a player bets, then before the next deal every player after that player and then him once more are given an opportunity to raise/check before the next round of cards is played like the flop, turn, river et cetera

but if in the string anyone bets, then the thing resets, and the 'check circle' starts with that player until all have had a chance to raise/check...

of course once checking is done, and no one else wants to raise, then the first to act after the next card(s) are dealt is still cd+3 again.

I suppose if I keep writing out all the scenarios I'll end up making the code in english. I just wish I could understand flash's capabilities well enough to know how to go about it all. Plus knowing the language would help.

anybody have any ideas, or situations where they needed to do something similar that could give me pointers/ideas?

EDIT:
sorry - just disorganized thinking. Once the dealer is known, I automatically know who is first to act. That person can also be set to "lastActor" because if no one bets/checks... the next card won't come until he checks it once more.
if along the way anyone bets - set them to "lastActor" and run through everyone again
when lastActor is reached - deal next card

I have a tendency to overcomplicate things.

XMLConnector To DataSet To DataGrid. How Do You Control The Schema And Binding?
Conider the tutorial from Macromedia, Data Integration: Using XML for a Timesheet (Flash Professional Only) which uses the XML file,


HTML Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<datapacket>
<row act="10" custId="0" date="05/12/2002" billable="true" duration="3" id="1" notes="Here is note(1)" projId="1" rate="45.50" servId="0"/>
<row act="9" custId="0" date="05/13/2002" billable="true" duration="8.25" id="2" notes="Here is note(2)" projId="1" rate="45.50" servId="1"/>
<row act="8" custId="0" date="05/14/2002" billable="false" duration="7.75" id="3" notes="Here is note(3)" projId="1" rate="45.50" servId="1"/>
<row act="7" custId="0" date="05/15/2002" billable="false" duration="6.5" id="4" notes="Here is note(4)" projId="1" rate="45.50" servId="2"/>
<row act="6" custId="0" date="05/16/2002" billable="false" duration="5.5" id="5" notes="Here is note(5)" projId="1" rate="45.50" servId="2"/>
</datapacket>
The tutorial carefully steps you through the process of creating the Bindings and the Schema in all three components. But now I'd like to try my own XML file and DataGrid, but my XML file is a little different. Here is a sample of what I am looking at,


HTML Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ROOT SYSTEM "CountrySample.dtd">
<ROOT>
<row>
<field name="Code">AFG</field>
<field name="Name">Afghanistan</field>
<field name="Continent">Asia</field>
</row>
<row>
<field name="Code">NLD</field>
<field name="Name">Netherlands</field>
<field name="Continent">Europe</field>
</row>
<row>
<field name="Code">ANT</field>
<field name="Name">Netherlands Antilles</field>
<field name="Continent">North America</field>
</row>
<row>
<field name="Code">ALB</field>
<field name="Name">Albania</field>
<field name="Continent">Europe</field>
</row>
<row>
<field name="Code">DZA</field>
<field name="Name">Algeria</field>
<field name="Continent">Africa</field>
</row>
</ROOT>
In the Macromedia tutorial, the data are attributes in the row element and the field names are the attribute names. In my example the child element is the field and the field name is the attribute "name".

I can find no documentation to help make the transition from the demonstrated XML to this new schema. I've seen Kirupa's excellent tutorial "Using the DataGrid Component", but I'd rather negotiate the user interface in Flash than create some kind of script. I haven't the slightest idea what to do.

How do you apply the Component Inspector and the Properties windows to display this data in the DataGrid?

Problems With Speed: Loading An Animation Dynamically...reduced Speed Why? W/exampl
Im loading an animating logo dynamically into a site. The animation works in normal speed if i access it directly:
http://www.ingerreime.no/David/thegl...ches/home.html
But, when i load it dynamically into the main site, the speed reduces drastically! Click "home":
http://www.ingerreime.no/David/thegl...achesmain.html

Everything is loaded dynamically, except the blue backgrounds.

Any thoughts?

Thanx!

Dave

What "Schema" Exactly Is?...
Hi, as title, what SCHEMA exactly is?...so many confusing things...-___-
maybe I'm too stupid to play with actionscript....

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;
}

Srollpane Scrolls When Loaded Data From XML, Not When Loaded Data From ASP
Hi,

I load into scrollpane a swf, which has a dynamicly loaded data. If I use the XML file, it works (the scrollbar is visible), but if I use a asp file, which creates xml, it doesn't work (the scrollbar is not visible). Any ideas?

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