Asp.net :: Load An In Memory XML Returned By A Linq To SQL Query To An SWF Object?

Nov 12, 2010

Can i load an in memory XML, returned by a linq to SQL query, to an SWF object? And here comes the long version. The purpose is loading an in-memory XML file, to an SWFobject via a querystring.

Currently i read and load the XML file from an absolute path.

[Code]...

View 1 Replies


Similar Posts:


Actionscript 3 :: Stop A Returned Object Being Modified?

Oct 29, 2010

If an AS3 method returns a reference to a complex type, is there any way to make that 'readonly', like how you can have const member functions in C++? An architecture I want to use calls for a class building itself from a passed template object... and really the template object should not be modifiable. I'm currently forced to add call-back enumerators and/or lots of extra accessor methods.

View 4 Replies

ActionScript 3.0 :: Check If The Value Returned Is A Null Object Reference?

Jul 10, 2009

I have a form where a user can select up to three radio buttons and click submit. however if they don't select a radio from one of the groups (they dont care to answer the question or just missed it) the value of the radio button (I think) is null and gets returned as such using this code:
 
function Question1():Object{    return RadioButtonGroup(Q1R1.group).selection.value;}
 
Then, when they hit the submit button it sends the values to the database. This works fine, but only if they select a radio button for each group. If they missed one I get the following error:
 
"TypeError: Error #1009: Cannot access a property or method of a null object reference.    at mid_fla::MainTimeline/Question1()    at mid_fla::MainTimeline/clickHandler()"
 
When I did a trace on the value of Question1() it returns function Function() {}
 
how to check if the value returned is a null object reference or whatever and give it a default value if it is?

View 3 Replies

Java :: Access The Principal Object Returned By A LoginCommand?

Jun 10, 2011

How can I access the Principal object in a Flex client that was returned by the doAuthenticate() method in the LoginCommand?

Adobe's LCDS Custom Authentication page isn't much help in this matter, as this is the only example they show for a successful login:

// Handle successful login.
private function LoginResultEvent(event:ResultEvent, token:Object=null):void {
switch(event.result) {

[Code].....

I can return a strongly typed object as the Principal from the doAuthenticate() method, but how do I access it in the client's result handler?

Update: I've read the LCDS documentation twice now and there is no mention of accessing the Principal in the client. The only data I can retrieve from a result is the string 'success'. Anyone know if this is this the only result available from a custom authentication?

View 1 Replies

Data Integration :: XML Object - Status Returned Varies Between Calls

Nov 25, 2007

Sometimes I get "success", sometimes I get "no success, no error" What gives? Same results across the wire as far as I can see...

[Code]....

View 2 Replies

Java :: How To Call Method On Remote Class Returned By Object

Nov 5, 2009

I have a RemoteObject returning a 'Schedule' class. I've created a client side RemoteClass to map to it. All properties of the class instance are coming in fine. I just not clear on how I go about calling methods on the class. How would I call a setter on startdate?

package classes.remote {
[Bindable]
[RemoteClass(alias="com.site.data.schedule.Schedule")]
public class Schedule {
public var id:int;
public var modifydate:Date;
public var startdate:Date;
public var enddate:Date;
}}

View 2 Replies

Asp.net :: Fluorine TransientAttribute And Linq-to-SQL?

Jul 9, 2010

I've found a workaround, but I had trouble earlier this week working with FluorineFx, where I had a Linq-to-SQL-generated object I wanted to send over the wire to Flash. This object contained a property that Flash didn't need:

[Association(Name="User_UserEntry", Storage="_UserEntries",
ThisKey="UserID", OtherKey="UserID")]
public EntitySet<UserEntry> UserEntries { ... }

But Flex couldn't handle reinflating this type, throwing: ArgumentError: Error #2173: Unable to read object in stream. The class flex.messaging.io.ArrayCollection does not implement flash.utils.IExternalizable but is aliased to an externalizable class. Now I didn't need to send the property over the wire, so I tried the steps that Marc Gravell suggested in issue 456624, firstly adding attributes to it using the MetadataTypeAttribute in System.ComponentModel.DataAnnotations (found from JasonW's comment on issue 393687:

[MetadataType(typeof(UserMetadata)]
public partial class User { }
internal class UserMetadata[code]....

Unfortunately it seems that FluorineFx doesn't support metadata attributes yet (which isn't very surprising, tbh, they are quite new). What I ended up having to do was create a dedicated DTO, with all the properties that Flash cared about and none of the properties it didn't. Not the most elegant of solutions.

View 1 Replies

Actionscript 3 :: In Flash Does Extending An Object Use More Memory Even If The Object's Methods Aren't Used

Jul 20, 2011

I am creating an object pool to cache some recyclable objects in memory at the outset of my application in order to avoid (as much as possible) the performance issues caused by GC running; if possible I'd like to minimize the memory my object pool reserves, so I'm attempting to pool generic forms of the objects (with no methods) and then casting the generic variants to more specific and complex object types which extend the generic form when I actually want them on the stage.

The trouble is that to do this requires the generic variant class to import/extend MovieClip (because the more complicated objects are themselves MovieClips and make use of DisplayObject methods)-- does simply importing and/or extending a class add to the memory an object takes up when instantiated even if it never uses methods from the inherited class? It makes sense that it would, and some light profiling seems to suggest that it does, but I'm not 100% certain. About how large should an 'empty' MovieClip instance be in bytes?

View 1 Replies

Load And Display Images Provided As A Query?

Sep 14, 2009

I am trying to write a small flash app which will load and display images provided as a query. My flash app works fine when I provide the image path directly in the browser address bar, but it is not working when I do the same using html.Here is the direct link to the flash appThe Html code is attached with the post.I know my app is getting invoked and it appears to work fine when I hardcode the image url into the flash app. But the query method just does not seem to be working!!This is hosted on a linux site supporting php.

View 1 Replies

Flex :: Search Interface: Load XML Or Query DB?

Dec 30, 2010

For a Flex application that is used to search and display results (no write operations), I am currently storing data in a relational database, but rather than querying the DB via the app, I am doing a nightly write of the data, including its relationships, to an XML file.Then, through Flex, I am loading that XML file, parsing it into custom Objects, and "querying" those objects as necessary.

It works well basically filtering an ArrayCollection of these Objects based on search criteria. Versus querying the DB, full text search, for instance, is extremely fast in this scenario.But what are some potential drawbacks? How valid is this approach?

View 1 Replies

ActionScript 2.0 :: Query - Incorporate Random Load?

Mar 21, 2005

I have this script assigned to a button.

homebutton.onRelease = function() {
if (_root.section != "home.swf") {
_root.section = "home.swf";[code]....

I'd like the "home.swf" to be a random clip chosen out of three .swf's. Is there a way to expand this script to include a random choice script?

View 4 Replies

ActionScript :: Flex - An Object Returned From A Function Call Changed The Next Time The Same Function Is Called?

Jan 10, 2012

I have an AS3 program that calls a function multiple times. The function must return multiple variables, so I created a class for the function to declare an object containing all of these variables. For example, here's my class:

package
{
public class PER
{
[Code].....

Let's say the calling program calls the function, which returns the variables into data_set1 (where data_set1 depends on input variables arg1, arg2, arg3) using:

var data_set1:PER = function_name(arg1, arg2, arg3);

The calling program does some stuff, then calls the function again, but returns the variables into a new variable name, data_set2:

var data_set2:PER = function_name(arg4, arg5, arg6);

My intention is that data_set1 and data_set2 are different (e.g. not linked together).

My question is, given that arrays are passed by reference, will data_set1 be modified to agree with data_set2 upon the 2nd function call? Why or why not?

View 1 Replies

Query - Run A Sqlite Query In Flex To Count The Total Number Of Records?

Apr 16, 2010

I'm trying to run a sqlite query in flex to count the total number of records I believe its working fine but I just can't figure out how to display the results - all I get back is [object Object].

private function overviewOne():void{
var stmt:SQLStatement = new SQLStatement();
stmt.sqlConnection = sqlConn;
stmt.text = "SELECT COUNT(user_id) FROM tbl_user WHERE status_status ='Away'";

[code]....

So how do I make a reference to the COUNT(user_id)?

(flash.data::SQLResult)#0
complete = true
data = (Array)#1

[code]....

View 1 Replies

Flash :: Object Won't Recognize Query String If Set Through Mod_rewrite?

Sep 16, 2010

If I load an SWF with a query string at the end, like:

object.swf?this=that

then "this" is properly recognized as a flashvar within the flash object.But, if I set "this" via mod_rewrite, as in:

RewriteRule ^object$ lib/object.swf?this=that [QSA,NC,L]

then "this" is undefined.I even wrote a little PHP script to dump the contents of $_GET (changed the rewrite target temporarily), and I'm positive that the rewrite rule is working.

mod_rewrite clarification:

To demonstrate the strangeness of the problem, let me temporarily change the rewrite target to "object.php", so the rule now reads:

RewriteRule ^object$ lib/object.php?this=that [QSA,NC,L]

I created object.php in the /lib/ directory with the following line:

<?php echo '<pre>'.print_r($_GET, true).'</pre>'; ?>

Then, when I navigate to /object, I get the following output:

Array
(
[this] => that
)

This demonstrates that the rewrite rule is working as expected.Still, when I change the rewrite target back to the SWF, "this" is not recognized as a flashvar.(I'd definitely check the rewrite log to make sure, but I don't think I have access to it on the Media Temple server I'm using.)

View 2 Replies

ActionScript 3.0 :: Load Swf By Passing Query String In Flash Cs4?

Oct 1, 2009

my Problem is that i want to load a external swf in the main swf main by passing Querystring from flash cs4(AS3) and get variables from html page...... but Not working Iam attaching the fla files folder

View 0 Replies

ActionScript 2.0 :: SWF To Load The Query String And Display It In A Custom Font?

Aug 25, 2006

Similar to PHP and GD Library I want the SWF to load the query string and display it in a custom font.for example

header.swf?word=NEWS

And it would display NEWS in my certain font that is embedded in the clip How do i load a query string?

View 1 Replies

ActionScript 3.0 :: FLVPlayback Source With Query Strings (parameters) Doesn't Load

Aug 31, 2010

I'm currently trying to use the FLVPlayback component and pass a source FLV that's living on a cloudfront webserver. The problem is that the cloudfront requires authentication in the form of query strings in the source FLV. For example:[code]It adds on "&FLVPlaybackVersion= 2.1" to the end.I saw a different article that said I should add a dummy variable at the end like "&dummy=.flv" because I was told that Flash is basically looking for an .flv extension at the end and you can trick it, but it doesn't work because they add on additional code.

View 9 Replies

ActionScript 3.0 :: Object Not Deleted From Memory?

Oct 11, 2009

what I have is:

- listener added with weak refference, therefore it shouldn't keep the GC away

- object set to null

- trace of the object m shows null

- debugger shows the value of m as null

But the "frame" trace still keeps on appearing, so where exactly is that object and how to check for it, how to delete it and kill it. I know that listeners keep objects in the memory, but then how to find them, and at the end of the day also used weakReference=true while assigning it, so that should take care of it. What exactly is going on here?

View 2 Replies

ActionScript 3.0 :: Get Object By Memory Reference?

Dec 18, 2008

When debugging, I see an objects memory reference next to its value. Is it possible to get that as a string or assign a variable based off memory location?

var myInt:int = 5; debugger shows(@afff222)
var copy:int = memor(@afff222);

View 2 Replies

ActionScript 3.0 :: Removing Object From Memory?

Aug 5, 2011

I have this line

Code:
this.parent.removeChild(this);

So basicaly the object is removing it self from the parent object,but I still think that it exisits in memory and doing its backend job.How can I remove it completely from memory?

View 8 Replies

Flash :: Load Video To Memory?

Nov 10, 2011

I have 3-4 3 sec flv files and I need to play them multiple times I dont want to import the flv's and I cant load them dynamically everytime. can I load them at the beginning of my swf ONCE and play it anytime I want ?

View 2 Replies

ActionScript 3.0 :: How To Remove Previous Object From Memory

Jun 9, 2010

I am getting problem of memory of having repeating object. Below is my code.

import flash.system.System;
var counter:Number=0;
var systemMemory:TextField=new TextField();
systemMemory.x=200;
stage.addEventListener(Event.ENTER_FRAME,showNext);
function showNext(event:Event){
[Code] .....

Above code does repeat textField Object continuously. Now I want to destroy previous created textField Object. So that my memory will not be hang. I got some where in the blog that with System.gc() could clear garbage collection. But currently I am not working with system.gc any more I want to clear previous object in programatically way. Is there any way that I could destroy previous created object?

View 2 Replies

Actionscript 3 :: Merging XML Object In Memory Files

Jan 15, 2010

There are a number of posts on here about merging XML with Java, but I can't seem to find any reference to Actionscript for the same task. I have a group of XML files that I need to load. I want them to sort into one XML Object in memory. For example, let's say these were my XML files:

[Code]...

View 1 Replies

ActionScript 3.0 :: Memory Management With An Object Pool

Sep 8, 2009

I've been trying to figure out how Flash does its memory management regarding object declarations but haven't found anything that describes declarations themselves. [code]Basically I want a pool of declared variables that get instantiated only when a certain type is set. I'd have logic in other functions that figures out what the type is and then does certain things to it, but for now I just wanted to know what kind of memory management Flash does with something like this. Does it do nothing until I actually instantiate it (= new Object()) or will space be set aside once I simply declare it (someObj:Object)?

View 2 Replies

ActionScript 2.0 :: [FMX] Deleting A LoadVars Object From Memory?

Mar 26, 2004

Is it possible to delete a LoadVars object from memory, as well as its contents? Say I load 20k of data into a LoadVars, and I delete the LoadVars Object, does it stop loading variables into memory, and does it delete the memory that it importing?

View 1 Replies

ActionScript 2.0 :: [FMX] Deleting A LoadVars Object From Memory

Mar 26, 2004

Is it possible to delete a LoadVars object from memory, as well as its contents? Say I load 20k of data into a LoadVars, and I delete the LoadVars Object, does it stop loading variables into memory, and does it delete the memory that it importing?

View 1 Replies

ActionScript 3.0 :: Load External SWF Memory Usage?

May 4, 2009

Did a website, but at the end of it... i needed to translate everything So I simply made a duplicate translated all the text, and added a button on each that will jump between the languages. Button added to main stage. Inside button on DOWN action:

if (MovieClip(parent).mainContainer.numChildren!=0)
MovieClip(parent).mainContainer.removeChildAt(0);
var ii:int=parent.numChildren-1;
trace(ii);

[code]...

I have tried to remove all children from the stage, but then upon loading, I get an error; looks like I removed the stage,timeline etc. So I had to leave the parent.numChildren at -1 to leave the mainContainer (but clean it inside). It works, but now Firefox memory increases each time I click on the Language Change button:

126K
208 K
288.5K
369.7K
450.0K

EDIT: The line stage.addChild() creates error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at final_webMon_fla::MainTimeline/frame1()

View 3 Replies

ActionScript 3.0 :: Using .load() And .unload() In Regards To Memory Usage

Aug 13, 2010

I'm struggling to understand this, so I'm hoping someone can explain how to further enhance the functionality of my simple unload function, or maybe just point out some best practices in unloading external content. The scenario is that I'm loading and unloading external swfs into my movie(many, many times over) In order to load my external content, I am doing the following:

[Code]...

View 2 Replies

Actionscript 3 :: Load An Image In Memory With Flex?

Sep 25, 2011

So I'm trying to load an embedded image this way:

[Bindable]
[Embed(source="path")]
private var cls_img:Class;

[code].....

View 1 Replies

Flex :: Print Out An Object Memory Address At Runtime?

Feb 20, 2010

How to write an AS3 object's memory location for example to a label?

View 3 Replies







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