ActionScript 3.0 :: Possible To Send String To Class That Isnt Included In Same Fla File

Dec 16, 2009

is it possible to send string to a class that isnt included in the same fla file.for example portfolio.fla is a main movie, it has an as file portfolio.as, work.fla is a secondary movie it has its own as file work.as, im loading work file into portoflio file and i want to pass a paramenter from portfolio.as to work.as

View 8 Replies


Similar Posts:


Media Server :: Send The String Value From .asc File?

Sep 29, 2009

I need to send the String value from .asc file to Flash AS3 in Application.rejectConnection();

[Code]...

View 2 Replies

ActionScript 3.0 :: Use Custom Class \ Specific Class Included?

Oct 3, 2009

Im trying to use an AS3 modification of gskinner's collision detection class, but this being the first custom class i've ever tried to implement, i dont what i'm doing.How do i implement it into my flash? Do I just put it in the same folder as my .fla and .as?Do i have to initiate it in the main class?From what i understand it creates a rectangle, what would i need to turn it into a simple true/false?

View 2 Replies

ActionScript 3.0 :: Create A Pdf File From An Image Path Included Into Xml File

Nov 17, 2010

I'm in flash cs3 project. I need to create a pdf file from an image path included into an xml file or if easy also in a written path as the code below:[code]

View 0 Replies

ActionScript 3.0 :: Are All Functions Included From A Static Class

Feb 7, 2012

To rephrase my question: if you have a class with a bunch of static methods and you use one of them in your code, does the whole class get compiled with your movie? I suspect that it would be and, if that's the case, wouldn't it be better (from a file-size perspective) to use packaged functions instead?

View 3 Replies

ActionScript 3.0 :: Send Off Multiple Variables In An Object (from A Class) To The FLA File?

Feb 13, 2009

I have the livedocs wide open and I still can't figure out how to send off multiple variables in an object (from a class) to the FLA file...[URL] The setup: I have a class that extends EventDispatcher. I created an Object called _pass, public var _pass:Object;. In my last function (everything is cool up until now), I have four variables that need to be passed to the main fla. Let's say they're param1, param2, param3, param4.

It was explained to me that I could use the public var _pass:Object; by first creating an instance of the object like so, _pass = { param1, param2, param3, param4 }; (each param is available in the function). Having setup an object instance, I could then dispatch the object to read from within my fla: dispatchEvent(new Event(Event.COMPLETE));.

But I get these errors:

1084: Syntax error: expecting colon before comma.
1083: Syntax error: rightbrace is unexpected.

As the livedocs show, you can use an associative array (with braces and a colon), but I don't need that. I just need to pass my variables that are pre-made to the FLA.

View 2 Replies

ActionScript 3.0 :: Call Function In Document Class From And Included .as?

Feb 6, 2010

I have a document class with functions that I want to access from .as files that are "included" from the timeline of movieclips.

for example, the Document Class "docClass.as":

PHP Code:

package{
public class docClass extends MovieClip
{
public function docClass():void

[Code].....

What is the correct way to call functions in the Document Class from and included .as file?

View 3 Replies

ActionScript 2.0 :: Use XMLSocket Class With Some Amount Of Server Code Included?

Nov 8, 2005

simple Tutorial showing the use of XMLSocket class with some amount of server code included?

View 1 Replies

Reducing File Size When .JPGs Are Included?

Dec 10, 2009

At my job I frequently have to create Flash banners for major newspaper's websites. The specs that usually come in require a max file size of 30k or so. Usually my art department will hand me 3 or 4 screens that they want to simply move through in a loop. No biggie, until they start adding images to the files.

When I complain to them that the images are making the file sizes too big I am usually queried as to how other advertisers on these sites have full video in their ads. I understand that there are pre-loaders as well as allowed larger file sizes if you pay more for the ads.

getting image sizes down in Flash so that the images don't end up looking horrible?

View 1 Replies

ActionScript 2.0 :: Global Include Directory - Upload It To Server With The Flash File Or Does It Compile The Flash File With The Included Info?

Sep 9, 2006

If you have an .as file in the global include directory do you have to upload it to your server with the flash file or does it compile the flash file with the included info?

View 2 Replies

ActionScript 3.0 :: TextFormatAlign - Included The Source File *.as Files?

Jul 24, 2009

I am trying to center align a caption for a Photo Gallery.But by default the captions are aligning to Paragraph Left.You can view the link here:

Photo Gallery

-------------------------------------------------

Here is the text format code from the accompanying *.as file:
-------------------------------------------------
var tf:TextFormat=new TextFormat();
tf.font='Verdana';
tf.color=0x3;
tf.align=TextFormatAlign.CENTER;
var t:TextField=new TextField();
t.embedFonts=true;
t.alpha=0;
t.selectable=false;
t.setTextFormat(tf);
addChild(t);

-----------------------------------------------

To have an idea i also included the source file *.as files.

View 6 Replies

Flex :: Air - Mobile - Open A File Included In Assets?

Aug 16, 2011

I am having trouble opening a file in the assets folder in my flex mobile application

var myFile:File = File.applicationStorageDirectory. ("@Embed('assets/file.txt')");
var myFileStream:FileStream = new FileStream();
myFileStream.addEventListener(Event.COMPLETE, glossaryFileOpened);

[code].....

View 1 Replies

ActionScript 2.0 :: Can't Load Variable From Text File - (fla Included)

May 17, 2010

I purchased template and trying to edit it, there is page called portfolio i managed to make it load images from external files, but when trying to do same for text description no success. I tried different techniques i found online, but none work, only work when i place textbox on main scene but never works when i place it on Portfolio page 3 (click portfolio button then click page 3) to go there in flash find "scroll2_4" page trough library right click and chose edit. I need to load description from text for items on that page. I really desperate now after many hours of failure. url to download fla file i working with is here [URL] i edited it to delete everything thats unrelated to question. Also secondary optional question how i create more pages like page 4, 5 etc?

View 0 Replies

ActionScript 2.0 :: Send Xml 2 Class >>> Send Result 2 Swf?

Nov 24, 2005

I am actually discovering Classes.I try to make a class that reads out an XML file and than converts it into arrays.the array is well created in the class file, but I can't send it back to the swf correctly: it only duplicates the first item of the array in an infinite loop, but when I trace it into the class the output displays it right..

with this code I call the class:

Code:
var myProduct:Product = new Product("gallery.xml");
this.onEnterFrame = function() {
trace(myProduct.getArray());

[code]....

View 1 Replies

Actionscript 3 :: Adobe AIR 3 Native Extensions - Android Res Folder Not Included In The .ane File?

Nov 9, 2011

I am trying to develop an android extension for air, but I have a problem with resources.According to this : Official adobe doc - FREContext and this Extending AIR by Oliver Goldman We simply have to add the resources we need in the res file of the Native part, then they are added inside the .ane file and passed to the final apk. In order to access them though we have to use getResourceId( "drawable.background_image" ) instead of R.drawable.background_image

But when I generate my extension, the res file is actually not even included anywhere inside the .ane file and also not inside the final apk. And I have found not a single extension on the net using resources (not even in the adobe samples)For this test I simply use the basic Hello world Vibrate test, but I added a new png in the drawable folder.As you can see while unziping the .ane file, then going to META-INF/ANE/Android-ARM the res file is absent.As a result, the program crashes when I try to access my resource FREContext.getResourceId("drawable.ppy_accessory_manage.png")

PS, here is my batch to compile the ANE :

set adt_directory=C:Program FilesAdobeAdobe Flash Builder 4.6sdks4.6.0in
set root_directory=C:UsershugoAdobe Flash Builder 4.6
set library_directory=%root_directory%HelloANELibrary

[code]....

View 1 Replies

PHP :: How To Send String From AS3 For Database Query

Oct 6, 2011

Im building this AIR app on Flash CS5, and I have this TileList that loads its data (images and names) from a database. I want to do a query with the name any item of the Tilelist when its clicked, so i need to send the name of that item to a PHP file that will execute the query. I am thinking of a function that loads the item name to a variable when the item is clicked. How can I send it to the PHP file and how would I load it to the query? The query I want on the php file goes something like this: Select lat, lon from mapdata where name=theVariable;

View 3 Replies

ActionScript 3.0 :: Object To String To Send To Php?

Aug 21, 2009

I am supper stuck I have a Object and need to send that to a php script as an associative array. When i send the object itself it.

View 9 Replies

SwfObject Html Centering Isnt Working?

May 17, 2009

Normally i would publish using Flash CS4, however SEO requirements dictate that i need to use SWFObject. now, i have all the same publishing settings as i would have using AC_FL_RunContent.however, it doesnt 'center':

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>[code].......

however when i use SWFObject, i doesnt not extend the dimensions, it does not scale to natual size, and it does not center in the browser. it just sits on the top left of the screen.either there is something very wrong with the javascript or i have made a mistake with the parameters.

View 1 Replies

ActionScript 3.0 :: Send String To Ip On Same Local Network?

Jan 7, 2011

I was wondering if it was possible to send a string to a flash application from a flash application on the same local network? Can i put the code requiered on a mobile (android) in air?

View 1 Replies

Actionscript 3 :: Send XML String With HTTP Post

Jan 15, 2010

I am having a little trouble sending an xml string to an HTTPService an Actionscript3 (see code below). Basically, I am trying to send a georss xml string for conversion into another format. I am getting an ioError and suspect the xml is causing havoc with the services parser. I know this approach is probably not the best, but this is where I am at.

[Code]...

View 1 Replies

ActionScript 3.0 :: Send Data Or String Value To Webservice?

Apr 27, 2011

i am newbie in flash and action script devlopment, i am stuck at some point don't know what to do, this look like stupid but i need help i have a registration form in which all the text value from "TextInput" is turned to string values

then these string values has to send to a webservice so that these values will be stored in the data base.

This is the url i am using for webservice

[Code]...

View 2 Replies

ActionScript 3.0 :: Convert The String Var Which Is A String To The Class Name?

May 24, 2010

how do convert the myString var which is a string to the class name?

var myString:String = "movieClipInTheLibraryClassName"
var t:myString = myString()

View 1 Replies

ActionScript 2.0 :: Send A String To A Function And Return A Object?

Mar 16, 2010

is it possible to send a string to a function and return a object??? here is the code, but it doesn't work

[Code]....

View 2 Replies

ActionScript 3.0 :: Creating An Array From A String Send Via POST From A Php Loop?

Oct 13, 2011

I need some help creating an array from a string send via POST from a php loop.The string looks sorta like this: keyword=key1val &

text=text1val & keyword=key2val & text=text2val
(spaces added for readability)

I have a little bit of control over how the string is sent. So I could add numbers to the keys in the string, so they read like this

keyword1=key1val & text1=text1val & keyword2=key2val

basically I want to then end up with an array

noteCards[0] = ["key1val", "text2val"];
noteCards[1] = ["key1val", "text2val"];

View 2 Replies

ActionScript 2.0 :: Random Animation - Use The ContinueTo() Method, That If() Statement Isnt Being Called?

May 24, 2007

I'm working on a animation for a charity and i need to make some birds fly around the stage randomly, and change _xscale depending which direction they are moving.I have an if() statement to check if the new destination point is smaller or bigger than the current _x position of each bird. This works perfectly, but when i use the continueTo() method, that if() statement isnt being called.here is the code for the birds.

function flight(){
for (var i=0; i<birds; i++){
var bird:MovieClip = attachMovie("crane","crane"+i,i+1);[code]....

View 6 Replies

ActionScript 2.0 :: Limit The Browser Scrollbar If The Extra Length Isnt Needed?

Jun 29, 2007

I have a movie that is 2000px in height and some objects are duplicating vertically adding up by 100px. Say I have 5 objects so there is only 500px of content, is there anyway to use javascript from flash to limit the scrollbar to 500px instead of the full 2000?

View 1 Replies

String :: Flex - Download A String Variable As A File To The Local Machine?

Sep 21, 2011

I have a String variable in my flex (flash builder 4) application containing CSV data. I need to allow the user to download this data to a local file. For example, giving them a "csv" button to click and it might present them with a save file dialog (and I would be sending the contents of my string variable).Is this possible / how ?I am using the ResuableFX component for the datagrid to csv. This the code I ended up with that works to save the string to a text file for the user (in a web browser):

var dg2CSV:DataGrid2CSV = new DataGrid2CSV();
dg2CSV.includeHeader=true;
dg2CSV.target=adgEncounters;

[code]......

View 1 Replies

ActionScript 2.0 :: Showing Entire XML File Display As String In Dynamic Text Field (XML To String)?

Nov 24, 2009

Basically I'm trying to output the contents of an XML document into a dynamic text field (as loaded - not just its node values and content - the entire thing - into a variable called _root.log). The text field is set to show the variable value of _root.log.This is the actionscript...

PHP Code:
var newProfileXML:XML= new XML("<contacts result='true'><contact name='John Doe'/><contact name='Jane Doe'/></contacts>");

[code].....

View 2 Replies

ActionScript 3.0 :: Flash - Send A String (or Number) From A Website To A Server Running A C++ Program

Jun 17, 2010

I have found little to no flash to C++ documentation, let alone Flash to C++ over the internet. What I want to do: -Have flash send a string (or number) from a website to a server running a C++ program -The C++ program will receive the data and do something with it -After that, the C++ program would send back a response -Flash would then accept the response My goal is to make a simple MMO, but I can't start it without a server program to handle the players. I don't need a super-complicated example, just something simple, kinda secure and coded in AS3 and C++.

View 0 Replies

ActionScript 2.0 :: Create A Class That Extends The String Class?

Jul 7, 2007

How do I create a class that extends the String class?

Lets say I've created an 'exString' class that extends String.

In my project file I do the following

Code:
var test:exString = new exString();
test = "Hello World";
text.someExStringFunction();

I get a type mismatch in my "Hello World" assignment because Flash sees it as a String and not as an exString.

View 3 Replies







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