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
Similar Posts:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Mar 2, 2012
how to create a live RSS stock exchange feed using AS2
View 2 Replies
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
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
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
Jun 25, 2003
I have the following question: How can i load a dynamic xml, i.e. the .xml file that will be generated automatically and thus gets different names.I want flash to "listen" to a variable "file", that is "file" represents the name of the xml-file to load. Like showXml.swf?file=abcd1234.xml. btw i don't exactly use the xml extension so it becomes showXml.swf?file=abcd1234
I using a general name = "XMLtoLoad" to load my xml.My AS right now is somthing like:
file = XMLtoLoad;
_root.xmlDocument.load("XMLtoLoad");
how can i exchange a filename/url (like "XMLtoLoad") by a more general variable? Or maybe i should ask how can i convert the name after "?file=" to a URL within AS
View 2 Replies
Dec 6, 2010
I've gotten these sliders to work but can't get the output values to add up. For instance, depending on the values for slider 1, 2 and 3, I need the total to show up in a separate text box. I keep getting a NaN message in the text box.Here's the code I have so far:
//item 1
sliderOne.width = 600;
sliderOne.value = 0;[code].....
View 3 Replies
Mar 17, 2011
Can I pass values from fla to AS3. Example I have fla file where the xml faile loaded. Now I want to make button "Button 1" and "Button 2" now if I press the button it sent to AS3 values/variables.
private var xmlURL:String = "xml/Button1.xml";
After buttone 2 is pressed is
private var xmlURL:String = "xml/Button2.xml";
View 1 Replies
Jul 13, 2011
I'm using YQL to try and find band photos for a project I'm working on. If an image is found, it is returned in an XML response, and my flash code posts it. But if one is not found, I'm not quite sure how to tell flash not to do anything. Here's my code:
XML.ignoreWhitespace = true;
var groupPhotoXML = new XML (e.target.data);
var imgRef = groupPhotoXML.results.img[0].@src;[code].........
An unsuccessful attempt traces out as empty.
View 2 Replies
Dec 7, 2011
how to post some variables to a URL. Let's say the user has played a Flash game, packaged as an EXE or SWF embedded in HTML stored on the user's computer, not from some webpage, and would like to register the score by completing a simple form with just an e-mail address and pressing a button.
Would it be possible to do it even thought the Flash application is not on an active webpage?
View 2 Replies
Mar 7, 2007
getting php values into flash?
View 1 Replies
May 18, 2010
I need to save email-id in my login form through the cookies. if I use shared object I am able to save but my requirement is need to save in cookies. How can I save? I got sample code from net. Attaching that code `package com {
import flash.external.ExternalInterface;
/**
* The Cookie class provides a simple way to create or access
* cookies in the embedding HTML document of the application.
[Code].....
View 1 Replies
Sep 4, 2011
I need to be able to compare the number of whole days between two dates in ActionScript, is this possible? I'd like to test if one date is 7 days or less after today, and if so is it one day or less (if it's before today this also counts).The workaround I have in place is using the .time part of the date field:
// Get the diffence between the current date and the due date
var dateDiff:Date = new Date();
dateDiff.setTime (dueDate.time - currentDate.time);[code].....
As I say - this is only a workaround, I'd like a permanent solution to allow me to check the number of whole days between 2 dates. Is this possible?
View 1 Replies
Jul 30, 2009
I want to create a Flash movie which displays four numerical values. I am a teacher and the four numbers are pupil teampoints gained during the week in class. Each friday I want to open the Flash movie and the four numbers to be displayed with a bit of music in the background for dramatic effect!I want the Flash movie to retrieve the four numbers from a txt file located in the same folder as the movie. I want this as other teachers at my school will then be able to come along and change the totals without having to fiddle around in Flash, and also so that the values can be entered before the children arrive in class. Is this possible? I think there are functions in Flash that retrieve information from txt files but I am not sure!
View 11 Replies
Jul 14, 2009
I have been given task and dont know where to start. I need to produce a small quiz that sends the selected values to an asp.net application form there populates the database with the values chosen.
Ive been told this is the best way to send values from flash to a database.
View 7 Replies