Flash :: AS3 Cross-scripting Between 2 SWFs?

Aug 13, 2010

I have a movie with a document class (Main.as) wich load 2 SWF:

private var mainContainer:Sprite = new Sprite();
addChild(mainContainer);
var loaderx:Loader = new Loader();[code]....

Now I need to access some var/objects in PhotoLoader from PhotoViewer but anytime I compile PhotoViewer the compiler complains:

trace(root.loaderx.dbFields);

1119: Access of possibly undefined property loaderx through a reference with
static type flash.display:DisplayObject.

Notice I need communication between the 2 loaded SWFs, not from the movie that loaded them

View 1 Replies


Similar Posts:


Flex :: Preventing Cross Site Scripting Attack On Flash Container Pages

Jun 2, 2011

I have a website with a flex application. The flex application has no user input - except for clicks for navigation. The website also uses no scripting language - i.e. no php, asp, jsp or cfm.

The website just consists of one page which contains the flash file for the flex application. The source code of this page is here: [URL]

I have been advised (by a software program used by my client) that this website is vulnerable to a reflective type XSS attack and have been advised to 'sanitize' all user input.

respect to XSS and would respectfully like to ask that AFAIK there is no user input. What should I sanitize and how?

View 1 Replies

ActionScript 3.0 :: Cross-scripting And Type-casting?

Jul 5, 2010

I wrote a post a week ago but it seems no one is able to help or I didn't explain my problem well enough, so here I go again.I want to load an external SWF, get an object reference from it and add it to the PV3D scene of my main class. The problem is even though the types have the same names, they are not recognized as the same type.
 
---------------------------------pv3Dviewer--------------------------- -----------
package {
import org.papervision3d.objects.primitives.Sphere;
public class pv3Dviewer extends Sprite {

[code]....
 
When pv3Dviewer is run, it traces "no". If I try to assign shereRemote without type casting i get this error:TypeError: Error #1034: Type Coercion failed: cannot convert org.papervision3d.objects.primitives::Sphere@59930b1 to org.papervision3d.objects.primitives.Sphere.

View 7 Replies

ActionScript 3.0 :: Cross Domain Scripting: Error #2048?

May 13, 2009

This is my first entry in this forum but I already found a lot of answers by browsing it.However, altough many references seem to solve the problem I'm hurting on, it doesn't seem to work for me...Now, here's the case:I made a flash web site that will be hosted on an external web server (let's call it serverMy flash needs to get some info from my internal server don't have access to the root, only to the folder «myfolder» so my website reads like this

View 1 Replies

Professional :: Cross-Site Scripting To Embedding Page

Mar 23, 2010

Here is my situation:
 
I have a Flash file hosted at:
 
http://static.mydomain.com/flash.swf
 
I have a web page that embeds that Flash file at:
 
http://www.mydomain.com/embed.html
 
The <embed> code for that SWF has the "allowScriptAccess" parameter set to "sameDomain". Currently, I cannot put links in "flash.swf" that change the location of the embedding page, because they are on different domains, and making a getURL() or ExternalInterface call won't be permissible.
 
Changing "allowScriptAccess" to "always" is not an option. Putting both files on the same domain is also not an option.
 
Policy files don't seem to be the solution (perhaps I'm coding them wrong?) and changing the "document.domain" of the embedding page doesn't seem to work either.

View 1 Replies

ActionScript 3.0 :: Cross-scripting TypeError #1034 For The Same Type

Jun 28, 2010

I have the following problem. I am trying to load custom PaperVision3D objects from an externally loaded SWF in a simple FLARToolKit example project. The external SWF is compiled with the same libraries included in its path as the loading project. I will include only the pertinent functions in order to save some space. Both the external SWF and the loading project include security definitions to allow for access:

[Code].....

View 1 Replies

ActionScript 3.0 :: Placing .swfs In A Cross Sequence

Sep 16, 2011

the following script loads 48 .swfs in lines and columns....

var count = 0;
for (var rows=0; rows<8; rows++) {
for (var columns=0; columns<6; columns++) {
count++;

[Code]....

View 5 Replies

ActionScript 3.0 :: Publish Swfs For Cross-browser Support?

Feb 4, 2010

I've tried publishing CS4 swfs in both Flash 10 and 9, but the pages are acting strange in various browsers. For example:

On PC FF and IE when hitting back button in browser the site disappears.

Sometimes PC site won't load. Says "Done with errors."

In FF, the page is coming up blank.

What is the best way to publish swfs for cross-browser support?

View 4 Replies

ActionScript 3.0 :: Loading Cross Domain Asset SWFs

Jun 2, 2011

Yet another irritating technical issue, it's the first time I've tried loading assets from another server and it's not working.

Apparently having the loader context check policy file does nothing with SWFs, I've tried with and without, no difference.

I've tried Security.allowDomain("*"); and loading a crossdomain.xml file where the assets are located, and no joy. Every time I try it, I just get an error trying to load a class (that works fine from local SWFs).

I'm compiling from CS5 with access network selected. Also tried with Flex, same thing.

View 3 Replies

ActionScript 2.0 :: Scripting 3D In Flash?

Jul 28, 2007

I'm going to have a bunch of questions as I progress through the tutorial.http:[url]....At the bottom of the page, sen writes this:Finally the function to make it all happen.This will base camera movement off of the arrow keys and use

clip._x += Math.cos(angle)*radius;
clip._y += Math.sin(angle)*radius;However in his code he writes this:cameraView.x += Math.sin(cameraView.rotation)*movement;
cameraView.z += Math.cos(cameraView.rotation)*movement;what happens is he switches the sin and cos methods from what he said. However, for displaying all the "figures" those far and including this example, cos was used for "x" and sin was used for "y" like so:
var x = Math.cos(angle)*this.radius;
var z = Math.sin(angle)*this.radius;

View 2 Replies

ActionScript 2.0 :: Cross Domain SendAndLoad Via Cross Domain Script

Nov 5, 2010

My swf works fine when previewed locally but because of flash cross domain issues (link below) doesnt work live. [URL] Ive used a 'crossbrowser.php file to .load in xml but am not having success with the sendAndLoad command. [URL]

View 3 Replies

ActionScript 3.0 :: Scripting Language In Flash?

Dec 2, 2009

I'm using Flash CS3 with Actionscript 3, and I need to have a scripting language that the user can use. If they could type in their own actionscript and have it evaluated, that would be perfect. Another scripting language such as Lua would be fine too. I looked into lua alchemy, but it seems poorly supported so I'd rather not use that. The Eval command from actionscript 2 isn't available in as3, and some of the things I've heard indicate that it's functionality is pretty limited, although I've never used it before.

View 1 Replies

Scripting :: Recording From User Mic W/o Using Flash

Aug 11, 2010

Is there a way to not to use flash as a platform for mic recording based script?

View 1 Replies

IDE :: Flash Website Scripting And 1009 Error

Jun 27, 2009

I'm pretty new to flash and I'm trying to create a website in Flash CS3 using AS3. I've googled some tutorials and came up with a website that auto sizes to fit the browser screen. A full-browser website. I will add my sourcefiles as well as my code.

[Code]...

View 1 Replies

What Is The Recommended Scripting Language For Talking Between Flash And Facebook API

Dec 10, 2009

Currently I have a flash based application (game) which I need to put on facebook, the users could save their scores and resume their game. For the task I was wondering which scripting language would be appropriate. And are there any API's available which could in the process. Or does one has to make all of it from scratch.

View 1 Replies

Flash - Errors 1119 1120 On Button Scripting?

Feb 4, 2010

I'm am super new at this, and this is my first time ever using Adobe. I get the "joy" of doing a project in my school using The CS4 Suite. I was playing around and using this book to help me get a button to start an action. I have tried many different codings, but this one gets me the least amount of errors. This is what I have so far:

[Code]...

View 1 Replies

Flash :: Jquery - Effect Achieved With A Lighter Form Of Scripting?

Nov 24, 2010

I have this flash header in my website. On older computers the flash file askes a lot of recourses and that is not considered user friendly. Can this effect be achieved in a other way of scripting for example with ajax or Jquery?

View 4 Replies

Flash :: Load Facebook ID Vars Into Client Side Scripting?

Sep 2, 2011

I'd like to simply display the users name and photo inside a flash app. I hope to do this only in the client without using any backend scripting. The ActionScript 3 SDK for Facebook Platform is under construction for the next few weeks to comply with new facebook requirements so I don't trust the current build to be useful.

We have searched and built tests for a week with no luck. I have a feeling the answer is either very simple or not possible.

View 1 Replies

Flash :: Sending Information From Scripting Side To Video Player?

Mar 28, 2012

I don't know how to ask this, but the thing is that i was thinking that how does youtube or videofy.me like video blogs send the video path & all info to a flash video player i mean when e click on any video link how does it sets up everything and displays the chosen video, because actually i've created one but in that i had to set up the whole page via flash so that it can manipulate the information like path & name of the video, and cannot use html links, php and all.. so can u people tell me how do i start up & how this process is done & what i need to do & other important things on this.. i mean sending any info to a flash player via any scripting or server side language.

View 1 Replies

ActionScript 2.0 :: Flash Scripting Call The Sound From The Library At The Timeline?

Sep 12, 2002

I have a flash movie which has got 5 scenes and from scene 2 onwards i am using sound. In scene 1 I have made a prelaoder. My problem is that it starts loading sounding in scene 1 frame 1. Is there any way by which the sound starts prelaoding in frame 2.

Problem 2.I am using same sound in different scenes timeline. How can we by flash scripting call the sound from the library at the timeline.I am using F 5.

View 3 Replies

Javascript :: Possible To Access The Internal Elements Of An Embedded Flash Object Via A Scripting Language?

Nov 16, 2010

I would like to be able to access all the components of say a Flash image gallery on someone else's site. I want to be able to find the images, image coordinates, action script code, audio files, video, etc. I do not want to manipulate these elements, I just want to view them and their related information.

View 2 Replies

Program That Cross Over Of Flash Back Into Php?

Aug 23, 2010

I'm trying to make browser game and I was wondering if this is possible.99% of the game is html/php/mysql but I wanted one little mini game to be in flash.after playing the flash game if you win you get +1 of whatever to your account. So my question is can someone program that cross over of flash back into php?

View 2 Replies

Actionscript 3 :: Cross Domain In Flash

Dec 6, 2010

I have two swf files hosted on different domains [URL] and [URL]. a.swf is loading b.swf and trying to cast it to some interface. When both of these swf files are under the same domain everything works fine. But when they are under different domains I'm getting null after casting b.swf to the implemented interface IComponent. Both of these swfs are compiled with use-network=true and with the same IComponent.as.

[Code]...

View 5 Replies

Flash Cross Domain Policy For Apache

Dec 23, 2009

I was looking around but couldn't find it where can I add the cross domain policy of Adobe in Apache server. Because without it, its not letting me access my XML on another server.

View 1 Replies

Cross Domain Requests : Javascript Vs Flash?

Jan 25, 2010

As you might know, browser's security model does not allow a script loaded in a page from http:[url]... to make cross-domain requests (no AJAX calls to any other domain other than url...).The Javascript file itself could have been served from a different domain altogether (url....) and that is irrelevant. This is the Same-Origin Policy.

Flash also has something similar? But does Flash treat the origin to be the HTML page where the .swf file was loaded or origin is the domain which served the .swf file?

So http:[url]... loads a .swf file from http:[url].... Now .swf can load resources only from [url].... or only [url....? I'm assuming there are no cross-domain.xml files setup on either [url]....

View 1 Replies

Ruby On Rails :: Using Flash And Cross Domain?

Nov 14, 2010

I'm running a rails3 project with an external asset host for all javascript, images, swfs etc. This is on a completely different domain. So know I tried to embed some SWFs using swfobject. In development (same host) everything works fine, but in production (different hosts) it doesn't start the flash (firebug shows the file is loaded but nothing appears on the page). I already put this crossdomain.xml file in the root of the asset host but it does not change anything at all.

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

[code]....

What can I do to make it work? The SWFs I'm using are not developed by me, so I cannot change them. Some are simple sounds, others are videos and small "apps". I don't want to have to make rails serve the swfs.

View 3 Replies

SWF - Flash Links Do Not Work Cross Domain

Apr 6, 2011

I have a flash accordion embedded using SWFObject. The SWF and related XML file are hosted on one domain. I have about 10 sites embedding this SWF from it's hosted location, both the SWF and the XML. The accordion links to various pages of my domains. The domain in which the SWF and XML file are hosted, the links work as expected. The other domains that the SWF is not hosted on, the links do not work at all. I verified it's a cross domain issue by placing the SWF and XML files locally on each domain and they worked, but this is not how I want it setup. I attempted to use crossdomain.xml and allow access from all hosts but that didn't work either.

View 1 Replies

Flash - Cross Drag Behavior For Game?

Dec 27, 2011

I want to create a block game where you can drag blocks. I'm looking for the friendliest drag behavior. It should only move horizontal or vertical, and 1 block position only. It should snap (ease to desired target position), cause you cannot release it in the middle (in between blocks). It should kinda behave like an iPhone switch button, but in a cross. I have tried to do it by check the angle of the mouse to the original position of the block, to check which direction it should move. I want it always to go move through the center (original position). I mean; it cannot animate from the left position to the upper position, it should animate to the center first.The blocks are top-left aligned and there is spacing between the blocks.

UPDATE:This is my current code. It currently moves into upon the direction, but doesn't animate to the point.

package nl.stroep.games.behaviors
{
import flash.display.DisplayObject;
import flash.events.Event;

[code]....

View 1 Replies

Flash 9 :: Embed Fonts Cross Platform?

Nov 12, 2008

I'm working on a project in which I am writing code on a PC and someone else is creating graphics and animation on a Mac. We need to have embedded fonts to work w/xml and CSS. Is there a way to embed fonts so they work inside the fla on both platforms?

View 0 Replies

ActionScript 3.0 :: Flash Is NOT Cross-broswer Compatible

Aug 13, 2010

I recently uploaded my website graphicdesignnz.co.nz onto the server and noticed that the external swfs were not being loaded into the site� first I thought I had a linkage problem but then my friend tested the site on Opera and it worked fine!

View 4 Replies







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