Javascript :: Flex - SWF On Separated Domains?

Aug 30, 2009

I have an application with embed swf thatis called from javascript using handleEvent, This was working fine when they were both on same domain but now when i seperated them it returns an error .

View 1 Replies


Similar Posts:


Actionscript 3 :: Enter Multiple Mail Ids And Separated By ';' And Validation In Flex?

Oct 3, 2011

I was creating a form. Certian fields of the form store all of those IDs to a single field separated by a comma or semicolon. how to send the mail id's for email validation which is providing by flex by default.

View 1 Replies

Flex :: SWF Access Across Domains?

Nov 16, 2010

I have a SWF that contacts a php script all on the same domain. In the first case both are hosted behind the same domain and communicate with no problem. Everything is working great.However when I take the same markup that embeds the SWF and paste it on another site (using a full qualified path for the swf in both the locally hosted and remotely hosted code), the SWF no longer communicates with the php script I wrote. I added a cross domain file to my site which looks like this.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

[code]....

View 3 Replies

Xml - Populating A Cell In A DataGrid With Multiple Values Separated By Commas - Flex?

Jun 28, 2011

I have an XML file with this data.

<resultSet>
<MerchandiseAssortmentCategory>
<merchandiseAssortmentCategoryId>275</merchandiseAssortmentCategoryId>
<merchandiseAssortmentCategoryName>D21 Plywood</merchandiseAssortmentCategoryName>
<merchandiseSubordinateClass>

[Code]...

When i run this, only the category name is filled. the subordinateclass number is just blank.

View 2 Replies

Regex :: Regular Expression To Check Comma Separated Number Values In Flex

Mar 10, 2011

find the suitable regular expression to validate a string that has comma separated numbers, for e.g. '1,2,3' or '111,234234,-09', etc. Anything else should be considered invalid. for e.g. '121as23' or '123-123' is invalid. I suppose this must be possible in Flex using regular expression but I can not find the correct regular expression.

[Code]...

View 2 Replies

Flex :: Channel Security Error While Logging Into Two Different Domains From Single App

Jul 1, 2009

i need to connect to two different domains from a single flex application. the problem is the domain other than the current hosted domain is unable to login. letz say i hosted the application at LOCAL server. im able to login to the local server . From the existing application i need a login to the MAIN server too. The problem comes up here. flash security is not allowing login to MAIN server. in crossdomain we allow-access-from MAIN server. but i want access to the MAIN server from LOCAL server. is ther nything i need to put extra in [URL]?

View 1 Replies

Communications Between 2 Separated .swf Files?

May 11, 2009

I have spend hours searching it over internet but i have found only codes which solves this problem in Action Script 2.0 like this http:[url].........and i want to solve it out with action script 3.0. My problem is that i simply want to communicate between two separated .swf files in one HTML page.

View 4 Replies

Javascript :: Unable To Communicate With Javascript From Flex After Dymanically Loading A Swf?

Aug 1, 2009

for some reason, whenever I dynamically load a swf on a $(document).ready() by writing to a div, I am unable to make javascript calls to the browser. Specifically, all calls to the browser return "null". This does not occur when embedding the swf normally on the page load, but I would like to prevent loading of the swf until a specified point in time.

What the heck is going on here? Is there something special about dynamically embedding a swf that prevents the swf from talking to the browser? The methods ARE called (I've proven such by showing alerts), but all return values to any function, regardless of type returned, shows as null when it gets to flash.

View 3 Replies

Javascript :: Best HTML/JavaScript Framework For A Flex Application?

Oct 23, 2009

We're currently building a Flex application using the PureMVC framework with a shell.swf which loads/unloads modules dynamically. We're experiencing issues with memory and we're looking to replace the shell.swf with a JavaScript-based loader.Two questions:What would be a good framework to dynamically load the Flex components and allow the modules to communicate between each other?Would dynamically loading/unloading the modules via JavaScript take care of the typical memory problems associated with Flex/Flash applications?

View 1 Replies

Find Words Separated By Space And Hash?

Mar 29, 2012

I'm using a RegExp that finds words with a hash in front such as #example .

If there is a link in a text with a hash like example.com/#about it comes to problems. So how to extend it to find only words that have also a space in front of the #? (E.g.: hello #world)

View 1 Replies

ActionScript 2.0 :: Split My Variable Separated By Commas?

Jan 27, 2009

I have a variable that looks like this:

"one, two, three, end"

I want to split each value within the commas and sort it on multiple lines in a list component field. [code]...

View 9 Replies

ActionScript 2.0 :: Getting Values Separated By Commas In A String?

Aug 17, 2009

if I read a string from an external file, for example "51,42,7"

how would I break apart the string into a bunch of values?

View 1 Replies

ActionScript 3.0 :: After Separated Code From .fla File Don't See Objects On The Stage?

Jan 29, 2010

I have .fla file. There in library i have 3 movie clips cockroach0, cockroach1, cockroach2. I want show they random on the stage on .swf file.

working code:
var classNames:Array = ["cockroach0", "cockroach1", "cockroach3"];
var len:int = classNames.length;

[code]....

View 12 Replies

ActionScript 3.0 :: Create Event For Button When Code Is Separated From Fla?

Dec 8, 2009

I try to separate code from .fla file.[code]...

View 1 Replies

ActionScript 2.0 :: Searching A Text String Separated By Commas?

Oct 19, 2007

I'm trying to find if a text field with text seperated by commas contains certain text.

if (myText.text == "three") {
trace("true"); //if myTxt.text is "three"
} else {
trace("false"); //if myTxt.text is "one, two, three"
}

Is there a way to find in the above example, if "three" is contained within the text field?

View 2 Replies

ActionScript 2.0 :: Load Multiple Variables Separated By Enter?

Sep 10, 2008

I need to make something like login component... but only with "number codes" (not USER and PASSWORD). The user must insert a codenumber (let's say: "aHnjk68"), and, if this code number is in a txt file, then go to some frame, ok? Now, I use something like that (without using a TXT file):

on (release) {
if (codenumber eq "YujK3" or codenumber eq "KienK7") {
_level0.gotoAndPlay(215);

[Code]....

is there a way to make flash load or search for 1 of the numbercodes in the TXT? And when flash find the value (or numbercode) then go to some frame.

View 1 Replies

ActionScript 2.0 :: Keeping Multiple Nested Movies Separated?

Jan 22, 2005

Im making a game in which you controll some gattling AA guns..you start of with one and can later buy more...the gattling gun itself consist of 3 different movie clips and 1 text box (dynamic)WHen you buy more gattling guns later on , i just want to duplicate the original gattlinggun and let you place it anywere on the ground you want...

Firing is all good and dandy, each gun aims at mouse cursor and spews out bullets.. but for added realism ive made it so that each gun Can Jam (short delay befre can fire again)this does not work however because (as far as i can tell) what happens in 1 movie also happens in the others, so if 1 jams(the dynamic text box changes to JAM) all turrets get JAM in them(sticky i know)... now i want to know how do i make each movie completly separate , so they do not inherit properties from eachother...

View 2 Replies

ActionScript 3.0 :: Embed 2 Separated Swf Files In A Html - Make Them Talk With Each Other?

Dec 4, 2009

if i embed 2 separated swf files in a html, how can i make them talk with each other? does it use javascript?

View 3 Replies

ActionScript 2.0 :: Turn A Variable Of Strings (separated By Commas) Into An Array?

Feb 13, 2004

I'm wondering if theres a way I can turn a variable of strings (separated by commas) into an array?I'm using the loadVars object to import variables from a text file that I'd like to import to flash as an array.For example if the variable I import from the text file looks like this:&myVar=charlie,dog,cat,test&I'd like to get it into an array in Flash like thismyArray = new Array["charlie","dog","cat","test"];

View 14 Replies

Professional :: Separated Symbol From White Background But Now It Has Bits Left - How To Clean Up

Feb 21, 2012

I have a photo turned symbol on a white background. I'm not sure how I did it but I separated the symbol from the white background. but now I have all these bits around the edges left over that are white and I don't know how to clean it up. I tried the eraser, I tried painting over it, I tried selecting it to cut or delete. not one of these things worked.

View 3 Replies

Actionscript 3 :: Crossdomain.xml Across 3 Different Domains

Aug 6, 2011

I have

A.swf - located on sitea.com which loads B.swf

B.swf - located on siteb.com which loads some files from sitec.com

crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" to-ports="80" />
</cross-domain-policy>

I have placed the crossdomain.xml (above) file on each domain root but i still get a Security Error from sandbox when accessing A.swf

securityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: B.swf cannot load data from sitec.com"]

I do know that crossdomains problems are meant to be simple

View 2 Replies

Actionscript 3.0 :: SharedObject Over Different Domains

Jun 22, 2009

I am working on a project that uses SharedObject and I have a question. I've made a button that downloads a flash screensaver and at the same time also creates a SharedObject which stores a specific id for each screensaver being downloaded. When later the screensaver is installed and run, it should get the SharedObject and read the id from it. When tested locally it works perfect since both the buttons´ and the screensavers´Sharedobject are stored in the same localPath. But when the button is online and the screensaver is local the SharedObject paths don't match.

Is there a way to solve this and make the local screensaver swf read the SharedObject from the same path as the online download button has stored it's SharedObject in?

This is the relevant code in both my swfs:

var _mySo:SharedObject = SharedObject.getLocal("name", "/");

If this won't work, does anybody have another solution to my remote to local screensaver thingy??

View 1 Replies

ActionScript 2.0 :: GetURL From Different Sub Domains

Sep 9, 2007

My client's site exists on both http:// and http://www. and I have a flash navigation system on the site. All links are absolute values and work fine from the www subdomain but do not seem to work from the http:// domain. It seems strange to me as the links are absolute paths...

View 2 Replies

IDE :: Transferring Xml Data To Swf Across Domains?

Jun 21, 2009

I just recently created a news ticker using the tutorial on Kirupa; however, I have not been successful at getting my xml data to show up on the news ticker. I have my xml file stored on and my website will be stored on Savannah State University's server. I do not want to have my xml file on the same domain as my website because it will be on my school's server and they don't allow access to their server. I want to be able to update the news ticker freely.

View 5 Replies

Actionscript :: RegEx To Match Comma Separated Numbers With Optional Decimal Part

Oct 14, 2009

I've a regex that matches comma separated numbers with an optional two digit decimal part in a given multiline text.

/(?<=s|^)d{1,3}(,d{3})*(.d{2})?(?=s|$)/m

It matches strings like 1, 12, 12.34, 12,345.67 etc successfully. How can I modify it to match a number with only the decimal part like .23?

EDIT: Just to clarify - I would like to modify the regex so that it matches 12, 12.34 and .34

And I am looking for 'stand alone' valid numbers. i.e., number-strings whose boundaries are either white space or start/end of line/string.

View 3 Replies

ActionScript 1/2 :: Pass Variables Between Domains?

Apr 22, 2009

So I have an SWF8 file as a player on one domain (unsecure).  It loads and plays an SWF8 from another (secure) domain.  So far so good.  Trouble is, I need the player to send variables to the files it's playing so that links in that SWF will, well, link.  I also need the player to receive some movie control commands in return.  There must be a rule or two I'm violating, because while the file plays, anything that depends on a variable is just dead.

A note:  Both files started out as SWF6.  I understand I can only do what I'm trying to with SWF8, so I went through the code and fixed the case sensitive issues and did the conversion.

View 9 Replies

Actionscript 3 :: Loading One External SWF Into Another SWF Across Domains?

Apr 12, 2011

I have a.swf, which is the SWF file for my main application, and it's trying to load in b.swf, which contains some additional resources as well as some Actionscript. a.swf lives on sub1.domain.com and b.swf lives on sub2.domain.com (both on the same domain, just different subdomains.) In a.swf, I've loaded the crossdomain.xml from domain.com and also added the following code into both a.swf and b.swf:

Security.allowDomain("*");
Security.allowInsecureDomain("*");

Do I need to load crossdomain.xml in b.swf as well to prevent a security error or is having allowDomain/allowInsecureDomain enough?

Further info:
- Using Flash Player 9
- Using AS3

View 1 Replies

Actionscript 3 :: Share A Class Between Domains?

Dec 6, 2011

I have a Singleton class instantiated in Main.swf located at domainA. The file loads Game.swf from domainB via LoaderMax [URL]. When I try to access the Singleton I guess this is not the same as the on instatiated in Main.swf.

View 2 Replies

Flash :: Control It With Script When Different Domains?

Mar 21, 2012

I have a website on my server which loads a .swf file and then I want to be able and call functions in that file from javascript.

My server has domain [url]..

View 2 Replies

ActionScript 3.0 :: Loading Data From Other Domains?

Jul 9, 2009

I am testing a locally run SWF (in debug standalone player) that tries to load data from a remote URL using URLLoader class. I have enabled useNetwork flag in the SWF. As I said, the SWF is running in standalone player, it is not embedded in any page in any browser.As I understand, it still cannot load any external non-visual resource, if the site it tries to load from does not have a crossdomain.xml file, or if that file does not include the domain hosting my SWF. Correct?

View 0 Replies







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