ActionScript 3.0 :: Retrieve Info About The Site Or Location The Flash (swf) Is Being Requested To Be Loaded/run?

May 18, 2011

Im sorta beginner at AC3 and i've made a little FLA file wich i a want to compile and upload to a host for load it to my website.However, before i compile it i would like to put restrictions for it not to be loaded from other sites it might be requested by flash insert methods or whatever.Is there a way to retrieve info about the site or location the flash (swf) is being requested to be loaded/run?

View 2 Replies


Similar Posts:


Actionscript 3.0 :: Using RegExp To Retrieve Info From Web Site

May 29, 2010

I am wondering if it is possible to use RegExp to retrieve info from a web site. I want to retrieve hurricane information from a web site by "scanning" the site for longitude, latitude information and have it return it to a text box on my app. Any ideas?

View 2 Replies

ActionScript 3.0 :: MySQL, Php: Post A Variable, And Retrieve Info From Db In Flash?

Aug 2, 2009

Currently I'm setting up a webservice, which includes a login to access the member area.I'm testing all components seperately, and I've ran into a problem. When the user logs in I want flash to retrieve the user_id as a variable, so that I can use this user_id for member related database access. However, I'm having problems with retrieving the user_id.The login is done by inputting the email and password of the user. If these variables match the data in the database the user is send to the member area. I want to get the user_id by posting the email variable to a php file. In the php file the following code is responsible for this:

PHP Code:
$email = mysql_real_escape_string($_POST["email"]);

View 2 Replies

Actionscript 3 :: Retrieve Twitter Xml For Flash Site Via Php Properly?

May 18, 2010

Am I using TwitterScript to retrieve Twitter data for inside a Flash site. Due to Twitter's crossdomain policy, I need to setup a php proxy...Firstly I made a simple one

<?php
$url = $_GET['url'];
readfile($url);
?>

but I then get this error

URL file-access is disabled in the server configuration

which is only resolved by getting my host to turn fopen() on, which I don't want to do.

Then I found this

<?php
function get_content($url)
{
$ch = curl_init();

[code].....

How do I get the XML data out of that string?

View 1 Replies

ActionScript 3.0 :: Write And Retrieve Info From Textfile Using It?

Jun 8, 2010

I am creating a CBT course using Flash CS4 As3. I need to capture progress information from the user as they complete each unit in the course so that the next time they access the course they can pick up where they left off.

To do this I need to know how to write and retrieve this information to and from a text file or a cookie so that it can be retrieved re-enters the course.

View 1 Replies

ActionScript 2.0 :: [FMX] Flash 4 Pro - MX - Receives XML Info From A Specific Site

Dec 16, 2002

I'm trying to write an application that receives XML info from a specific site (stats for my Live365 webcast actually). This is my first MX project. I've read through the Macromedia support topics and have come up empty handed.

View 1 Replies

ActionScript 3.0 :: Retrieve Cell Info DataGrid On Click?

Jan 3, 2010

I have the following code

Code:
//import fl.events.ListEvent
myDataGrid.addEventListener(ListEvent.ITEM_CLICK, clickHandler);
function clickHandler(e:ListEvent):void

[Code]....

When I run this I get an error on the first click and any next click on a row will give me the cell data of the previous click (so I'm one step behind).

What should I do to get the data from the cell to show up in my text field?

View 2 Replies

ActionScript 2.0 :: Obtain Viewers IP / Location And Other Info

Mar 1, 2006

I would like to write a flash program that obtains the viewer's IP address, then obtains the viewer's state, and then according to the state it shows a particular picture. So if I put this flash on my website and someone from Massachussetts looks at my website they will see a picture of a MASS license plate, but if someone from NJ looks at the same site they will see a picture of a NJ license plate. I am familiar with some PHP, HTML, java-script and I have done alot Flash graphics work but I have not done any ActionScript which will need to be used here.

View 4 Replies

ActionScript 3.0 :: Complex Flash Form Info Not Passing Through Whiled Embedded A Dreamweaver Site

Dec 20, 2010

Okay, there is something that I don't quite understand. I built a flash contact form in Flash CS4 and embedded the swf in my webpage using Dreamweaver CS4. I upload the files in my server but why it's not working? I created a test folder in my folder and it does work... (It doesn't work here) [URL] The problem is that I'm not receiving the information when the user enters and submits the information on the contact form. I do receive the information on the test link. I'm posting the Flash AS and PHP Code to see if anyone can point out any mistake that I'm doing.

[Code]...

View 1 Replies

ActionScript 3.0 :: Emulate Drag / Drop Program From Flash / Math Site Dragdroptour Snap To Location Tutorial

Jan 12, 2012

I have been trying to emulate a drag n drop program from flash and math site dragdroptour snap to location tutorial.It uses a placed variable set at the beginning of the script and updates it with a function used elsewhere. For some reason my version of the code will not update this variable could someone tell me where I've gone wrong? I've done this before in AS and think I used globalvars but I know you cannot do this in AS3 and I'm trying not to go down that route as I know it's bad practise.Its the paper1,2,3 vars that won't update with the release to drop functions.[code]

View 5 Replies

ActionScript 3.0 :: Create A 'register For Info' Form On My Site Without Php/mySQL?

May 6, 2010

I want to collect email addresses on my Flash/AS3 site for a project.I just have basic web hosting (just FTP upload space) and do not have access to a LAMP server.I assume this is what I need to be able to run PHP/MySQL etc.Does this mean there is no way of me making a form that will allow visitors to input their email addresses to sign up for a newsletter I send out?

View 2 Replies

Flash :: - Xml - As3 - Can't Get Loaded Image To Attach To The Proper Location On The Stage

Feb 21, 2011

I'm trying to figure out what's wrong with this code:

[Code]....

I have a sample XML file with two images. If I remove either of the items from the XML, it everything displays fine, but with 2 items in the XML, the first item doesn't show an image, but the second does (maybe the first is being attached in a position behind the second?)

View 2 Replies

Professional :: Load Flash Only When Requested?

Jun 23, 2010

I have a SWF that is 7mb and I don't want it to start loading until someone actually clicks on it to play it. I don't want it to load on opening the browser because it slows the page draw too much.The SWF is already set to load and then require a click to begin playing.

View 6 Replies

Jquery ::Internet Explorer Won't Load Flash That's Requested With AJAX?

Jul 1, 2010

I have a piece of jQuery that requests a file (using .load() method) with some HTML and an embedded Flash video player. IE7 doesn't seem to load the Flash video player, but it does load all the HTML and applies proper CSS to the elements. It works at least on FF3.6.6. I've tried both static embedding [1] and SWFObject [2]. I've also tried several different Flash video players and neither works. Both of the flash players load just fine if I don't request them with AJAX. Now is this is even possible? Are there any tricks to make this work? Or do I have to implement another way for IE?[1]:

<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="400" height="315">
<param name="movie" value="player.swf" />

[code].....

View 1 Replies

Retrieve The File Name From A Variable Loaded With An Swf?

Feb 25, 2012

I am trying to place a condition statement so that it will only do an action if the swf loaded into the varaible is the same or empty. I start of with loading the sample1.swf into the movieclip swf_holder

Code:
var loadSwf:Loader = new Loader();
swf_holder.addChild(loadSwf);
loadSwf.load(new URLRequest(sample1.swf));
loadSwf.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);

In order for me to get the sample1.swf to play, I create a variable so that I can just call on it

[Code]....

View 1 Replies

ActionScript 3.0 :: Retrieve Data From Loaded Swf?

Dec 22, 2009

I have 2 swfs. One of them called "main.swf" and the other called "test.swf"
Main loads test using the code below

ActionScript Code:
//create loader and url request
var contentLoader:Loader = new Loader();

[Code]....

What I'm trying to do is to trace the x-coordinates of a Movieclip called "dot" inside test.swf.

But I keep getting the error: "1119: Access of possibly undefined property dot through a reference with static type flash.display:Loader."

How do I get the x coordinates?

View 2 Replies

Flash :: Not Showing Online / When Loaded To Hosting Site

Nov 16, 2009

My Flash file works fine on local file, but when loaded to hosting site, nothing shows. Zilch. Not had this problem before, but I've not tried with this hosting service before, which is GoDaddy. Could that be the problem? Or is there something wrong with my coding? Here's the URL: [URL] The Flash is 1020 px wide, 350 px high, and its supposed to be right under the spry menu (which isn't working either for some reason! No drop and wrong color for rollover!).

View 2 Replies

ActionScript 3.0 :: Called Before Info Is Loaded

Nov 17, 2010

In my document class I have the following.
 
var mainBoards:LoadXMLData = new LoadXMLData("Main_boards.xml");
var test:XML = mainBoards.getXMLData;
 
In the LoadXMLData class I have an event listener and a getter that will return the XML data. 
 
_urlLoader.addEventListener(Event.COMPLETE, onDataLoaded);
_urlLoader.load(new URLRequest(file));
//and

[Code]....
 
is there a better way to wait until the data from the XML is loaded into the LoadXMLData object before the mainBoards.getXMLData is assigned to the test variable in my document class?

View 5 Replies

ActionScript 3.0 :: Send Info From Loaded Swf To Parent?

Jul 17, 2009

Making the move from AS2 to AS3 and need a little assistance/guidance.

In AS2 I have been using the below to send instructions to parent[code]...

View 2 Replies

ActionScript 3.0 :: Retrieve Information About Size (in Pixels) Of Loaded FLV File?

Feb 25, 2009

how to retrieve information about size (in pixels) of loaded FLV file? Video object returns 2 pairs of parameters (width,height) which are useless because returns always parameters passed in constructor of Video() object. Another pair is (videoWidth,videoHeight) which is always (0,0). I gave up...


I need this information to scale proportionally video clip to size of area designed to display this video.

View 3 Replies

ActionScript 2.0 :: Populate An Array With Info Loaded In From An Xml File?

Nov 27, 2006

I'm trying to populate an array with info loaded in from an xml file. I've got the xml loading fine and I can trace everything but cannot seem to access the info outside of the function...here's my code:

Code:
myXML.onLoad = function(success) {
if (success) {
populateNav(myXML);
} else {

[Code]...

My trace inside of the populateNav function works great...all the info is there and image_path returns all of my...image paths. So my XML is fine...what I can't seem to do is pass that info outside of the populateNav function. My imageholder trace returns undefined. I think it's got something to do with the fact that the imageholder trace is being performed before the xml is fully loaded...not sure what to do about that though.

View 2 Replies

ActionScript 3.0 :: Apply Basic Text Formatting To TextField / XML Loaded Info?

Mar 8, 2010

I'm workin' on a cool project for school. I'm loading up some text from an external XML doc, and bringing it in to a flash textField.

It's working great, but I want to do a little formatting, first off, apply a bold tag or a bold font to some headings.

Here's the .text field as I have it now:

Actionscript Code:
motorcycleInfo.text = "Make: " + bikeMaker[evt.target.selectedIndex] + "
" + "MSRP: " + bikeCost[evt.target.selectedIndex] + "
" + "Ride Category: " + bikeCategory[evt.target.selectedIndex] + "
" + "Engine Size:

[Code]....

(ps I finally figured out how to wire up my mp3's so they play, and pause, I just haven't loaded that swf up to my server... so if you press the music buttons and they don't play, that's the reason.)

View 5 Replies

ActionScript 2.0 :: Full Browser Flash Site \ "The Class Or Interface 'flash.events.Event' Could Not Be Loaded."?

Jun 18, 2010

I am working on a full browser flash site and just realized the coding was as3. I really need this to work with AS2 and I am a noob at flash. I have figured it out mostly except I keep getting one error. "The class or interface 'flash.events.Event' could not be loaded." Here is the script:

stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

[code]......

View 2 Replies

ActionScript 2.0 :: ScrollBar Dragger To Be Positioned In Relation To The Info._y As The User Scrolls Info?

Jun 24, 2010

I have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...

Actionscript Code:
var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........

also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.

View 1 Replies

ActionScript 2.0 :: Movie Clip Not Hiding As Requested?

Oct 26, 2010

I have movie clips I'm attempting to hide/show on click of seperate links... with one of the movie clips loading on default.My problem is, when I click the button to show the "non-default" movie clip, the default movie clip is still visible! .fla attached below with images (was not sure if images are required for future uploading of .fla's??)

View 1 Replies

ActionScript 3.0 :: How To Render Requested Page In Same Window

Aug 15, 2010

Any Way to render requested page in same window instead of new one every time I hit button which I have created using actionscript 3.0. Code is
import flash.events.MouseEvent;
var get_page:URLRequest = new URLRequest("C:/Documents and Settings/Administrator/Desktop/lifeline/healthtips.html");
tips_btn.addEventListener(MouseEvent.CLICK,tipsClick);
function tipsClick(event:MouseEvent):void{
navigateToURL(get_page);
}

View 1 Replies

Media Server :: File Was Requested When Play() Is Ran On The Client?

Feb 3, 2010

I have been looking for a way to tell what file was requested from within a VOD app when a video is played.  I want to use the file name for something else but I dont want to have to send it with a second argument in connect().
  
Is it possible to tell what file is requested??? If so how can I do this??

View 6 Replies

ActionScript 1/2 :: Make An Object Tween From Its Starting Location To The Location Of A Mouse Click?

Apr 27, 2009

I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.

View 16 Replies

Professional :: Button File Opens In Saved Location / But Won't Open In New Location

Aug 21, 2011

I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?

View 13 Replies

Flex :: Access Crossdomain Files Outside The Originally Requested Domain?

Jul 2, 2009

Flash Player 10 specifies:

"Redirects to policy files outside the originally requested domain will continue to cause policy files to be ignored by Flash Player."

Is there a way to access policy files outside the domain?

View 4 Replies







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