ActionScript 3.0 :: Avatar Creator - Passing Variable To Flash

Jul 25, 2011

I need to create an avatar creator, the concept is simple. We have a base image for a head, on top of this we layer on other elements (eyes, nose, mouth), saving it converts the image on the flash widget into a .jpg. I'm confident in my ability to create the interface, I have basic knowledge of AS 3 and flash in general, but I'm unsure how to go about this. I want to pass a variable to flash to indicate who the user is who's editing his or her avatar. Then I want to pull some kind of db file to have the image re-construct itself in flash (maybe from an XML file - so it would need to create/update an xml file).

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Avatar/character Creator - Items Appear Over Other Items When The Corresponding Button Is Pressed?

Feb 9, 2010

I have a project underway where I am making an interactive game. It is a personal character creator game and I need Actionscript 3 help with this.Something similar here:http:[url]....
I have tried already with toggling visibility and 'gotoAndStop()' to make items appear over other items when the corresponding button is pressed, for example, when the user tries out different pants/shirts on their character.

View 1 Replies

ActionScript 3 :: Define Variable From Its Creator On Stage

Jul 3, 2010

I am trying to split up my code in classes. But there is a issue what really bothers me. When I create a class for functions I am giving its own stage. Like this:
dragf:Dragfunctions = new Dragfunctions(this)

And in the class i use this
var stage:Object;
public function Dragfunctions(stage:Object) {
this.stage = stage;
}

As you can see I can now call a variable of the stage using stage.var1 = "hi" but when I need to adjust that variable many times it gets a quite messy. There is a way to tell that when I call var1 he knows i mean stage.var1 without need to call stage.

Its:
var var1 = stage.var1
And then using
stage.var1 = var1
But that is quite unhandy too is there a better way?

View 1 Replies

Professional :: Flash - Slideshow Creator?

Aug 11, 2010

I have this flash slideshow on my that was created using a 3rd party software. I'm trying to find out does anyone know of 3rd flash creator  that creates a slideshow such as this one.I'm referring to the flash that's located in the bottom of the screen

View 2 Replies

Actionscript 3 :: Impossible With Flash To Get Instance Creator?

Apr 9, 2011

I want to add a listener to the parent of a slider which is receiving the event from a non-gui class the EventDispatcherManager. So I tried to get the parent of the slider which should return the main class but it doesn't work. How to get the object (here main class) which instantiates an other (here a slider class) ?[code] now I did cast to DisplayObject and use .parent.parent since the slider is within another class sliderSprite but now I get null! So Is it impossible with Flash to get the Instance Creator?[code]

View 1 Replies

Flash :: Access Creator Of A Class Instance?

Jun 6, 2011

What I want to do (and I have high doubts about the possibility of this) is access the creator of a class from within the constructor of that class (without parsing a reference to it).[code]...

View 1 Replies

Flash :: Passing A Variable From PHP To A SWF?

Aug 26, 2011

I'm trying to pass the file name of an image upload PHP script into Flash's UILoader component. So when a user uploads their image, the file name of the file is passed to flash so that the image displays within the Flash UILoader application. Here's the PHP variable I'm trying to pass: $filename= ''; And here's where Flash's UILoader gets it's source (ActionScript 3.0): uiLoader.source = "freshly uploaded file.jpg ($filename)?";

View 1 Replies

ActionScript 3.0 :: Passing Variable From Php Into Flash?

Sep 4, 2009

Here are what I'm having:

<?PHP
$testVal = "This is a test";
$test = urlencode($testVal);

[code].....

View 7 Replies

Php :: Passing Variable FROM Flash To HTML?

Mar 7, 2011

I have a rather simple flash application users can make a quick username when connected, and the username is created inside the flash swf.

Now, I have a cron job deleting inactive usernames every ten minutes (on my mysql database where these usernames are all stored and accessed by the other people online) which is fine. But it can still get cluttered up if a bunch of people sign off at once, there is still that 10 minute window before the cron job clears them.

The users have an option to click log out in the flash application which is fine and works great. But of course many choose not to click log off they just click the browser x.

I've looked into onbeforeunload and jquery's .unload but I still need a way to get the username variable that's IN flash INTO the HTML, then use a php script to run the delete username mysql query.

If not, any insight on how I might pass the username variable to the html to hold onto it after the user makes their username so it can be involved with the .unload function running the php script?

EDIT::::: Maybe is there a way to create a UNIQUE string of numbers with php then pass that var to flash to include with the mysql row then since i already have that var since it was created on the html side, just along with the unload, have it delete the row that has that unique id?

If anyone things this idea would be the best approach, and if i used something like md5(uniqid(microtime()) . $_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT']) to make a random iD how could i go about storing the result in a var i could place in the flash vars param then again in the jquery unload or javascript onbeforeunload if that would be better .

View 2 Replies

ActionScript 2.0 :: Passing Variable Into Flash ?

Aug 4, 2009

I need to have something like this in a html file

CODE:

And so on....

Then i must get values from "item1" and get them into a variable and sent it to flash. i probably will be using an array to store the values of "item1" but what can i use to create multiple param with the same name and have multiple values?

I don't really want to have any arrays like item1 = x,y,z because x,y and z are going to be html encoded, and the code of line would become enormusly confusing to read and edit.

View 1 Replies

ActionScript 2.0 :: Passing A Variable To Flash?

Sep 20, 2009

How doe I pass a variable to Flash? For example, I have a link, [URL] How do I grab this variable, "about" in Flash?

View 1 Replies

ActionScript 2.0 :: Passing Variable From Flash To PHP?

May 7, 2010

How can i pass user input Varibles from Flash to Php?

View 6 Replies

ActionScript 2.0 :: Passing Variable From URL Into Flash?

Apr 5, 2011

I have a flash map I have created years ago and I've recently done an update to the file and published it. Everything works perfectly locally and online except for when I pass variables into the movie online none of the variables are recognised. Locally the file works fine and the dummy variables are passed in. But even online the dummy fall back variables don't work.There are two files the main map movie and the preloader. The preloader determines the variables that are passed into the main movie from the html embed code.HTML EMBED CODE

Code:
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/media/flash/preloader-R10.swf?ShopLevel=<%= Request("ShopLevel")

[code].....

View 0 Replies

ActionScript 3.0 :: Passing Variable From Php To Flash?

Nov 19, 2011

I have written the code for passing the variable from a php file to flash.Below is my php code:

<?php
$comment = "abcd";
echo "values=$comment";
>

Actually I can successfully pass the variable from php to my flash file. However, when I change the value "abcd" t

View 2 Replies

ActionScript 3.0 :: Passing Variable From Sql / Php To Flash

Nov 21, 2011

I am writing the codes that can pass the value from the table of database when I click on a button. When I click on the button in the first time, I send the the number of click: clickNum = 1 to the php file and I want to select the first row from the table. When I click on the button in the second time, I send the clickNum = 2 to the php file and I want to select the second row from the table, and so on. I can successfully send the clickNum in that numerical order. However, I can't pass the corresponding row of result back to the flash. For example, when I send clickNum = 1, it pass the value of the second row of table back to flash, but not the first row. And the row that it pass back to flash is different everytime, seems it is random and I can't find a pattern. The second question is that I still can't read the chinese character from the table of database even I have included the header("Content-Type:text/html; charset=utf-8"); in the php file.[code]

View 8 Replies

ActionScript 2.0 :: Passing Variable In Flash

Mar 10, 2005

I am trying to pass a variable in Flash(MX2004) but struggling with it [code]where 'main' is a movie clip which conatins a variable called 'texts' to show the text entered in the html.

View 3 Replies

ActionScript 2.0 :: Passing A Variable To Flash From Php?

Nov 6, 2005

I have been reading all the post on this topic, but i just do not seem to get it! I am trying to send the variable "folder" to a flash file and get the flash file to recognize it. i am using the loadVariables() command to get the variable, but i am not sure how to process it to where i can use the variable later in the actionscript. can someone post an example script to show how to process a variable sent from php to flash?

View 1 Replies

ActionScript 3.0 :: Passing Variable To Flash?

May 19, 2009

what i'm trying to do is to pass a value to a flash from html page....(from html to_nameSWFVariable)following is my code :in html :

PHP Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab

[code].....

View 2 Replies

ActionScript 3.0 :: Passing PHP Variable Through Flash MC?

Jul 29, 2009

Need to get a flash banner to carry through PHP session download. The PHP code is below;

<a href="http://download.site.com/viperML/site/download.asp?file_name=site.exe&ul=<?php echo $_SESSION['language']; ?>&lang=<?php echo $_SESSION['language']; ?>&banner_tag=<?php echo $_SESSION['btag']; ?>">

The above carries through the affiliate ID together with Site Language which user has come to. The above works fine, what I need to now do is have my flash button call the same function...

View 3 Replies

ActionScript 3.0 :: Passing A Variable To Flash?

Nov 23, 2011

I am trying to place a SWF on a page and pass a variable to it. The variable would depend on which link that the user clicked on. I am toggling the visibility of the div containing the SWF (code at the bottom). What I need to do is, when I toggle the div 'on' I need to pass a variable to the SWF so that it knows which file to load. Would I use SWFObject for this?Here is the HTML code on the page.

Code:
<a class="popUpLink" href="#" onclick="showHidePUP();">Trojan Horse</a>
<div id="boxPup" class="box" style="left:225px;top:75px;"><!--style="left:400px;top:150px;--

[code].....

View 1 Replies

ActionScript 2.0 :: Passing Variable From Php To Flash?

Oct 20, 2009

I am using Flash CS4, as2.0

flash code:
code:
lv = new LoadVars();
lv.load ("miphp.php");

[Code]....

The output should be "anything" but instead of that, the output is ".$nombre."

View 2 Replies

ActionScript 2.0 :: Passing Variable In Flash?

Mar 10, 2005

I am trying to pass a variable in Flash(MX2004) but struggling with it.This is my code in html:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub...ersion=7,0,0,0" width="550" height="400" id="dtext" align="middle">[code]....

where 'main' is a movie clip which conatins a variable called 'texts' to show the text entered in the html.

View 3 Replies

Flash :: Dynamic Avatar Creation & Animation?

Nov 17, 2011

A rather large project (rich web application) has fallen into my lap and I am unfamiliar with how to accomplish a major functionality. in the right direction.I need users to be able to customize a 3D avatar and store it on the server somehow. The user can choose a body type, hair style, hair color, clothing, accessories, etc. The user can then choose from a number of different environments to place their avatar into, a specific animation (dance moves, playing an instrument, etc.), and an audio file. The audio file would then play while the avatar performed the animations within the selected environment.

How should we go about doing this? What technology should we use? Ideally, my colleagues and I would use MoCap software (w/ Microsoft Kinect) to complete 3D base models and animations for the avatars. Is it possible to then dynamically skin / texturize the models with the user's stored avatar? If so, how would I accomplish this? Does anyone have any other suggestions on how we would go about solving this problem?

View 1 Replies

ActionScript 2.0 :: Flash Avatar Maker That Can Save Out To GIF/JPG?

Mar 9, 2006

I'm interested in building an avatar maker in Flash, similar to the one seen here:[URL]The twist, though, is to allow users to save their work out as a JPG (or as an animated GIF, alternating between the created avatar and the client's logo and URL,) sized just right for a forum or LiveJournal avatar.

I haven't seen many examples of Flash outputing dynamic images... the best one I could find was, oddly enough, on a movie website for Starsky and Hutch. They have a Flash application that lets users build their own wallpaper and then offers it up as a JPG: [URL] I'm thinking Flash 8's bitmap features would allow this to happen, but then again, that movie came out two years ago... how did they make it work back then?

View 9 Replies

ActionScript 2.0 :: Get Flash To Recognized The Avatar As A User?

Oct 6, 2010

I am using a progam called Smart Fox Server and they said on the forum that It's not SmartFox related (and this forum is mainly for SFS related issues). You need to create these interaction within Flash. So I came here. I am trying to get the users Id if you click on them. I know the command to get the ID but i dont know how to get flash to recgognise the avatar as a user.

the command is user.getId()

View 1 Replies

ActionScript 3.0 :: URL Encoding Within Flash And Passing Variable

Oct 14, 2010

I am trying to send a twitter update when I press a button in flash. I get the twitter page to open from the flash file but when it passes the variables, it is passing it as the following into the browser address bar [URL] and on the twitter page text box it shows [URL]. The browser is rendering the percent sign and the number 20 as actual text and not as the space that I need it to.

Here is my code
function onTwitterButtonClick(evt:MouseEvent):void{
trace("Twitter button clicked");
var twitterShareURLPart1:String = "[URL]"
var shareUrl:String = "[URL]"+youtubeVidID;
var twitterShareURLPart2:String = "&text="
var escapedText1:String = encodeURIComponent("Check out this latest video from Me");
var gotoURL:URLRequest = new URLRequest (twitterShareURLPart1 + shareUrl + twitterShareURLPart2+escapedText1);
navigateToURL(gotoURL,"_blank");
trace(twitterShareURLPart1 + shareUrl + twitterShareURLPart2 + escapedText1);
}

View 1 Replies

ActionScript 2.0 :: Passing Variable From Aspx To Flash?

Aug 12, 2009

I've been having some trouble lately trying to get my flash movie to load variables being set in an aspx page, I'm new to asp and flash so I have a lot working against me.Here is the aspx onload code:

Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim tnumber As String = ""

[code]....

View 5 Replies

ActionScript 3.0 :: Passing Variable From Flash To PHP And Reverse

Oct 16, 2010

Well I just have to pass variables from flash to php then back from php to flash I've used the following sintax thousands times but now it has decided not to work any longer.

AS3 code:
import flash.net.URLVariables;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.MouseEvent;
import flash.net.URLRequestMethod;
import flash.net.URLLoaderDataFormat;
[Code] .....

View 1 Replies

ActionScript 3.0 :: Passing Variable Value From Captivate 5 To Flash CS5

Jan 9, 2012

I don't get it Why is it so difficult to pass a variable from Captivate 5 to AS3/Flash CS5. I have a variable (gpDone = 1) in Captivate 5 (it's a guided practice) on the last frame which will indicate that the learner has completed the guided practice file. Now I want to pass that variable back to Flash/AS3 so I can evaluate whether I should show the Continue button so they can continue. They have to complete the guided practice before they can continue. If it is equal to 1, the Continue button will display. If it is not equal to 1, the Continue button will not display, but a message will display telling them they have to complete the guided practice in order to continue in the course.

View 0 Replies

ActionScript 2.0 :: Passing Url Encoded Variable To Flash?

Jun 20, 2005

I found an old thread which showed how to get javascript to send flash a variable obtained from the URL which loads it's html page [URL].. It works a treat in Firefox but for some reason in IE it doesn't show the swf file it merely shows a white box where the swf should be and a scrollbar next to it.

[Code]...

View 2 Replies







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