Actionscript 2.0 :: Exchange Different Xml Files From The Same Component?

Jan 27, 2010

You know how when you load xml you use this code.

Code: Select allxml.load("data.xml");

which is the file path to the xml. I would like to know how I could exchange different xml files from the same component. Their must be a way to do this. Like say-

Code: Select allbutton1.onPress = function(){
xml.load("data.xml");
}
button2.onPress = function(){
xml.load("data2.xml");
}

View 2 Replies


Similar Posts:


Data Integration :: Netdrims FlashSQL Component On Adobe Exchange?

Nov 11, 2007

i am having a problem with setting up the filpath and datasource using the component inspector for OFFLINE development.I am using Windows XP Pro Service Pack 1.I then installed Network Services although I am OFFLINE.I then installed IIS.I then installed mySQL 5.0 Community Server as a Windows service and client. I then installed PHP5.I am using Flash 8 Pro.I now have a c:php (the php did not create a c:phpwww directory as the instructions say to use)IIS created a c:Inetpub and c:Inetpubwwwroot directory [which I tried putting the flashsql_v51.php file in to no avail)

my component inspector window shows:

ASP_DB : MSAccess
ComponentInst:
dataSource : C:WebsitesFlashDevelopmentFlash with
SQLNetdrimsflashsqlmainflashsql

[code]....

I get different id numbers.how to set these parameters up ASAP for the filepath and filesource, esp this flashsql_v31.php that comes supplied with the component and encounters the above error.

View 1 Replies

Flash :: Data Integration - Exchange Information Between XML And Files

Jan 17, 2008

i'm remodeling a website i've done ([URL]). i want to exchange information between XML and Flash files. i almost did it, but where shoul display information about one item, the whole content of this 'field' is shown. i'll explain better. this swf displays works of an artist. but the field 'date' (or any other text field) display the content of all works (separated by commas). i'll post the xml code and the actionscript code.

View 2 Replies

ActionScript 3.0 :: Exchange Data Between ASP.NET And Flash CS3?

Aug 29, 2009

I was looking for data to be transferred from ASP.NET page to Flash CS3 with actionscript 3.0

View 5 Replies

ActionScript 3.0 :: Exchange One Image For Another With A Click?

Apr 8, 2010

I need to create an interactive web-based system which takes the user through steps to assemble something. One of the pages will have images of the tools needed. I want the user to be able to 'tick' off each tool, so that when they click on the image of a specific tool it is replaced by the image faded out and a big red tick over it. essentially it is replacing one image for another when it is clicked on.

View 1 Replies

ActionScript 3.0 :: Exchange Values Between ASP And Flash?

Mar 19, 2012

I want to exchange values between ASP and Flash. I don't want to send it as a querstring like :myswf.swf?var1=value.I don't want my user to see or edit this value.

View 4 Replies

ActionScript 2.0 :: Images Exchange On Mouse Over

Jan 12, 2009

I've bought a photo gallery flash template. It's easy to change the photos at this template, just need to put them into gallery folder. But what I need is when the user put the mouse over the other photo "before" version of the photo will pop up. I read this is called mouse roll over or something like this. My question is how can I do it and where should I do it?

View 9 Replies

ActionScript 3.0 :: Exchange Pixels In Bitmap With It From Another?

Nov 23, 2011

I got one bitmap with a (almost) one color background. i need to change all of this with pixels at same x,y from another bitmap.

I know i need to run it through a double for loop and then into an if sentence.

like this:

If (color at x,y is > redvalue && color at x,y is > greenvalue && color at x,y is > bluevalue)then exchange with pixel from the other bitmap.

View 1 Replies

ActionScript 3.0 :: Adobe Swatch Exchange (ASE) Loader

Jul 17, 2010

[URL]. You can use it to download and parse into an object the ASE files from sites like Kuler or ColourLovers, for those who want more control than their RSS feeds provide. You get all the group and color info for RGB, CMYK, and Gray color modes (Sorry, didn't do LAB). The object just needs the ByteArray representation of the ASE, so it can be used on embedded or dynamically loaded files.

View 1 Replies

ActionScript 3.0 :: Functions - Modifying To Exchange Information

Jan 26, 2009

I have nested functions, I have removed most of the code.

[CODE]....

LOTS and LOTS of code (pages of it) including multiple arrays, series of questions and prompts that run my tutorial and all are initiated by an initial button press and then act on key-press responses provided by the user. These key-presses are stored in arrays. I could not possibly explain it all without getting comments that I was providing too much information ***

[CODE].....

View 4 Replies

ActionScript 3.0 :: Flash - PHP - MySQL Data Exchange

Nov 6, 2010

I've been struggling with this for a few weeks, but I still can't get it right, and all the info I found is too ambiguous or uses AS2. What I want to do is to retrieve info from a MySQL database, using PHP, and send it to Flash; and in the other way, input info into the database from a Flash form. I want this to make a series of Flash tests for my website. show me a simple example code (on both PHP and Flash) of how to exchange data? PD: I know how to work with databases on PHP, so the only PHP code i need to see is the php-flash communication part.

View 3 Replies

Flex :: Exchange Strings Of Text Between It And Rails?

Dec 4, 2009

I want a Flex UI to send a string of text to Rails which will process and return a string of text. Wash, rinse, repeat. That's all I want. All of the examples I am finding are much more complex and not very informative given my noobiness.

View 1 Replies

ActionScript 3.0 :: Adobe Swatch Exchange (ASE) Loader?

Jul 17, 2010

You can use it to download and parse into an object the ASE files from sites like Kuler or ColourLovers, for those who want more control than their RSS feeds provide. You get all the group and color info for RGB, CMYK, and Gray color modes (Sorry, didn't do LAB). The object just needs the ByteArray representation of the ASE, so it can be used on embedded or dynamically loaded files.

View 0 Replies

IDE :: Download From Macromedia Exchange This Extension For Flash?

Aug 31, 2004

I just download from macromedia exchange this extension for flash, and all ready have a headache

can you see where my problem is: (i get the "undefined" message all the time)

[Code]...

View 2 Replies

Play .mov Files Through Flvplayer Component?

Aug 18, 2009

I want to play .mov video file in my flvplayer component.

I have to play that .mov file in that format only without any conversion to .flv.

View 7 Replies

ActionScript 2.0 :: Browse Files - Component?

Jul 16, 2003

Id like to know how to make a very simple script that uploads files to a server.The file should be accessed by a "browse"-button in the .swf-file, and then put into a folder.

View 5 Replies

ActionScript 1/2 :: Create A Live RSS Stock Exchange Feed?

Mar 2, 2012

how to create a live RSS stock exchange feed using AS2

View 2 Replies

Flash :: Php Parameters Exchange - Parameterize The Video To Select

Feb 9, 2011

I am new to flash, and I am trying to make a simple video player. I have a problem setting the source of video: In my action script I have this: [URL] where getVideo.php is:

[Code]...

View 1 Replies

ActionScript 1/2 :: Use The FLV Playback Component To Load Files?

Jun 30, 2010

Do i need to use the FLV playback component to load FLV files or can i load FLV files using loadMovie and use them like loaded SWF files? Can FLV files be loaded using ActionScript 1?
 
I searched for simple examples on how to load an FLV but i can't find any examples..

View 15 Replies

ActionScript 3.0 :: Loading JPG Files With Progress Bar Component?

Aug 27, 2009

trying to load a JPG. Here is my code:

import fl.controls.ProgressBar;
var pic_loader:Loader = new Loader();
var my_pb:ProgressBar = new ProgressBar();
my_pb.source = pic_loader.contentLoaderInfo;

[Code]....

The image loads but it does not "take the place" of the "pic_loader" movieClip like it did in As2. The main issue is I am getting this erroe message:

TypeError: Error #1034: Type Coercion failed: cannot convert loader@40fad881 to flash.display.Loader.

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display:isplayObjectContainer/removeChild()
at as3_test_file_fla::MainTimeline/finishLoading()

View 9 Replies

ActionScript 3.0 :: Slider Component With Joined .swf Files?

Nov 1, 2010

I have a long movie 22 000 frames at 30 fps so I had to split it into two parts. I have joined them with AS. Can I have a slider that scrubs the timeline from part1 to part2 of my movie? Is this possible?

View 7 Replies

PHP :: Flash Browser Game - Real Time Data Exchange

Feb 16, 2011

I am developing a non-real time browser RPG game (think Kingdom of Loathing) which would be played from within a Flash app. At first I just wanted to make the communication with server using simply URLLoader to tell PHP what I am doing, and using $_SESSION to store data needed in-between request. I wonder if it wouldn't be better to base it on a socket connection, an app residing on a server written in Java or Python.

The problem is I have never ever written such an app so I have no idea how much I'd have to "shift" my thoughts from simple responding do request (like PHP) to continuously working application. I won't hide I am also concerned about the memory and CPU usage of such Server app, when for example there would be hundreds of users connected. I've done some research. So, considering the fact I don't need real time data exchange, will it be wise to develop the server side part as socket server, not in plain ol' PHP?

View 1 Replies

Flex :: Exchange User Names And Peer IDs Between All Connected Users?

Feb 13, 2012

I'm building a chat using Flex. The problem is how to do that new user get the list off all users online and added to the lists of all users. I try to put this information in DataGrid through dataProvider "callerns"[code]...Exchange user names and peer IDs between all connected users

View 1 Replies

ActionScript 3.0 :: Making A Flash Website: Not Able To Exchange Info Between 'sections'

Aug 23, 2009

Let's say i have a class that simulates a 'button section'.The button bears a title. Like news. I click on it, i transfer the title in the button and the respective news to the body.The body exists outside the class. It's a textField variable. let's assume.

ActionScript Code:
public function xmlLoad()[code].....

keeps giving me an error.1067: Implicit coercion of a value of type Number to an unrelated type String.but i've seen this done before, except it was on a loader variable...but i don't see how that would be any different.

View 1 Replies

Playing FLVs Using FLVPlayBack Component When Files Incomplete?

May 17, 2009

I cannot get my sample program using the FLVPlayback component (using as2) to play back FLVs that are still in the process of being recorded. I have no problem playing back FLVs that are complete. Is this a practical limitation?

View 4 Replies

ActionScript 2.0 :: Loading External Swf Files In A ScrollPane Component?

Sep 21, 2011

I am developping a player with Articulate Presenter and Flash. I would like to put thumbnails that are in a special folder in swf, into a scrollPane. The scrollPane itself is in a clip loaded when I click on the Thumbnails Tab.

Here is my simplified code :

ActionScript Code:
//  I first preload the thumbnailsPanel containing the scrollPane
var thumbnailsPanelClip:MovieClip = completeMenu.attachMovie("thumbnailsPanel","thumbnailsPanel",completeMenu.getNextHighestDepth());
thumbnailsPanelClip._y = 35;

[code]....

Well, my problem is that the ScrollPane is not scrolling until the end of the thumbnails, so I don't know if all the thumbnails are loaded. And even worse, exactly one time on two, the Scroll Bar is not showing at all ... !is it a scrollPane pb ? I use it many times in other parts of my project without any problem ... or is it because there are too many thumbnails ? I have around 30 - 40 to load ..

View 2 Replies

ActionScript 2.0 :: Create An Array For Every Time Two Characters Exchange Three Lines Of Dialogue?

Jul 9, 2009

i'm creating a very linear game which will be dialogue-heavy. In fact, there will be little action involved at all. Think a game storybook. I'm using ActionScript 2 because AS3 is just too complicate for the type of newbie that I am. But all I'm trying to do is set up dialogue between two characters in my game with an image of the speaking character to the left of the textbox. Something very much like this:I considered creating arrays for the dialogue but my problem is that if I create an array for every time two characters exchange three lines of dialogue, I would end up with over 300 arrays. Not my cup of tea.

So, instead, I focused on this. I created a function called speak. Speak pulls two parameters: charNum and charText. CharNum is a number which specifies which frame of the charPic instance should be displayed, showing which character is currently speaking. CharText is simply the dialogue the character will speak, which will be displayed in the dynamic textbox with variable name 'dialogue'.The following code is an example of what I have at home. I'm at work trying to get help, so I don't have the actual coding. Therefore, small errors may be present. I'm looking more at the overall functions guiding my code.

[Code]...

You see, AS2 sees these as I believe what is called synchronous functions, meaning they run at the same time. Therefore, the second speak function overwrites the first one before the user presses the space bar to go to the next one. See the issue?I've tried to seek help on this issue (and other before), and I keep getting told about arrays and setInterval. But my problem is that I've tried it all. I don't see a good array tutorial about this type of thing, and setInterval doesn't function like I'd want as well. Instead, it seems that from what I've read and tried, setInterval is for setting a delay up for a certain amount of time. I don't want that. I want a delay to occur until a button (namely the space bar) is pressed.

Like I said, this seems like a fairly common thing to do (stringing together dialogue in a flash movie/game), but I have seen no tutorial nor other help through all my Google and forum searching. A little push in the right direction would be appreciated. Like I said, I've figured out everything else my game needs from preloaders to game inventory to animation effects.

View 1 Replies

ActionScript 2.0 :: Difference Between Loading External Files Into Loader Component

Jun 11, 2007

Using the MovieClipLoader class, what is the difference between loading the external files into a Loader Component or into an empty movie clip. Will one be quicker? They both worked for me, but I've read using the Loader Component is better. Can anyone confirm this? I would think that avoiding components would make things faster/less file size.

View 6 Replies

ActionScript 3 :: Imported Enabler Component In Both Parent / Child Asset Files

May 24, 2010

I've just started to work with DoubleClick Studio. I've successfully created a Flash expanding ad with CS4 that is mostly scripted and uses the Document class option. Now for some reason the back end of DoubleClick Studio thinks I've imported the Enabler component twice. I've checked my files numerous of times but can't find the root cause.

View 1 Replies

Flex :: Component That Uploads Multiple Files In A Multipart / Form-data

Aug 5, 2010

Is there a FLEX component that uploads multiple files in a multipart/form-data POST request?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved