ActionScript 2.0 :: Building GetUrl Querystrings W/variables?

Nov 23, 2004

i'm running into what seems to be a simple syntax issue i i have a querystring passing a var to my .swf. this var is getting into the movie fine and i can output it in a text box, but i'm having problems "rebuilding it" into my new getUrl. here's what i have:

Code:
on (release) {
getURL("index.cfm?searchtype=" & _root.searchtype & "");

[code].....

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Building GetURL Query Strings With Variables

Nov 23, 2004

I have a querystring passing a var to my .swf. This var is getting into the movie fine and I can output it in a text box, but I'm having problems "rebuilding it" into my new getUrl. Here's what I have:
Code:
on (release) {
getURL("index.cfm?searchtype=" & _root.searchtype & "");
}

What I'm looking to see interpreted by the browser is:
Code:
on (release) {
getURL("index.cfm?searchtype=OH");
}
(where the value of _root.searchtype is "OH"). [URL]

View 2 Replies

ActionScript 3.0 :: Add Variables Building On The Fly?

Oct 16, 2010

I remember reading somewhere how you can add variables building on the fly but can't find any references. What I have is a MovieClip in my library. I will use it to create several Menu Items.
 
This is what I have written:
LessonButton = new mcLessonBtn();LessonButton.name = "menuLesson"+i;this.addChild(LessonButton);

View 6 Replies

Using Variables Within GETurl?

Nov 9, 2009

I've created a 'flashvars' tag in my embed code (aid=test), which I simply wish to add to the end a GetUrl statement, contained in within a button (which is on the first level of the flash movie). This is the code I've added to the button...
 
on (release) {    getURL("http://www.platinumselect.com?id="+aid);}
 
But this doesnt seem to work!? Is there anything else I need to do?

View 8 Replies

Php :: Flash Using GetUrl To POST Variables?

Jun 26, 2011

I have been tyring to figure this out for a while now and no luck. I have some AS2 code below which works:

on(release)
{
var sendText = "../Flash/uploadVoteandFeed.php?";

[code].....

View 1 Replies

ActionScript 2.0 :: Using Variables In GetUrl Via JAVA?

Nov 26, 2010

I've got a picture gallery based on some flash code that reads an XML data from file and assign appropriate variable parameter.

So. I've got XML
<gallery>
<thmb="thumbnails/003_tmb.jpg" weblink="http://www.reverbnation.com/universeupsidedown"/>

[Code]....

Can I use a variable data instead of a straight url adress with a getUrl using JAVA code... As I understood a new floating window is possible to open just using JAVA code... Ho can I put varriable istead of adress on Java and ActionScript?

View 3 Replies

ActionScript 2.0 :: Virtual Tour Of Building - Global Variables?

Sep 18, 2009

I'm a student building a flash presentation in Actionscript 2.0 for a company wanting a virtual tour of a building. Each room in the building has clickable objects that need to trigger an action (by going to another slide), which we have happening; however, we don't know any way to code the flash so that it remembers where you have been, what has been clicked, etc. so that by the time you've clicked everything in the building, another slide plays saying "Congratulations!" or something. I've been told that we need to use something called a global variable to implement this function.

View 2 Replies

ActionScript 2.0 :: Passing Variables From Flash To PHP With GetURL

Mar 28, 2011

I am just trying to pass some variables from flash to php with getURL
getURL("CompSummary.php?url3=" + url3, "_self");
URL33 keeps coming back as undefined

However I printed out url3 using dynamic text in the flash movie just to check it and it does indeed exist, and is defined. I also tried creating a string and passing that to getURL
var path = "CompSummary.php?url3=" + url3;
getURL(path, "_self");
still no luck.

View 5 Replies

ActionScript 2.0 :: GetURL() Dynamic Variables As Url Target?

Mar 18, 2010

Here's my code:

Code:
// Set the position and nodecount variable here
var position = 50;

[code]....

View 6 Replies

Which Sends Variables To A PHP Page Through GetURL - Post Method?

Sep 22, 2009

I have a Flash Form, which sends Variables to a PHP page through getURL - Post method.

My requirement is that : i need to redisplay the Form variables (name, email and so on) back in Flash as a confirmation after the data has been entered into the database in the PHP page.

View 1 Replies

ActionScript 2.0 :: GetURL() And POST - Passing Variables To Server

Feb 15, 2005

I am having trouble passing variables to my server. The following code is on a button:

[Code].....

View 2 Replies

ActionScript 2.0 :: Using POST In A GetURL Just Grab Any Variables On The _root?

Dec 19, 2006

I need to send a variable (zipcode) to a coldfusion script and also load the cf page that displays the results (same script) in the browser window (_self) is getURL the appropriate choice for this? (never done it this way before). if so, does using POST in a getURL just grab any variables on the _root? where does it get its variables?

View 3 Replies

ActionScript 2.0 :: GetURL And Variables - Flash Movie To Begin At Particular Frame

Aug 18, 2009

I have 2 buttons in a flash movie with the following codes. They open a new URL that also contains a flash movie and it sends the variable "nFrame" and a value.

Button1:
Code:
on (release) {
getURL("goats.html?nFrame=1");
}

Button2:
Code:
on (release) {
getURL("goats.html?nFrame=2");
}

When the new URL opens I want the flash movie to begin at a particular frame depending on what variable "nFrame" is equal to. I tried placing this code in the first frame to do it but it didn't work, the movie just loops and loops and doesn't stop at any frame.

Code:
if(nFrame=1) {
gotoAndStop("cheese");
} else {
gotoAndStop("wine");}
}

View 1 Replies

ActionScript 2.0 :: Pass Flash Variables Through A GetURL Javascript Function Call

Dec 2, 2009

How To Run A Shadowbox Gallery From A Flash getUrl function Call..

This Is What I Have In My Flash:

btn1.onRelease = function() {
getURL("javascript:MyGallery([page1,app1]);", "_self");
}

I want to be able to declare my arguments in flash like so

var page1 = {
title: 'Google',
player: 'iframe',

[Code].....

View 1 Replies

Flex :: Specify Swc When Building A Swf?

Jul 7, 2010

I have implemented some utility classes in Flex that I want to use in multiple AIR projects. I have created a swc which contain these classes. I am working on a Linux machine and do not have FlashBuilder. So I am using the compc and mxmlc command line SDK tools. My problem is that I have not been able to find a way to specify the swc when building the standalone project. A tutorial suggested the following command: mxmlc -load-config /opt/flex/4.1.0/frameworks/air-config.xml -library-path=/path/to/utility.swc hello.mxml. However, using that gives me the error hello.mxml: Error: Unable to locate specified base class 'mx.core.WindowedApplication' for component class 'hello'. Everything works fine if I move all code from the swc to a single monolithic pro ject. The code for the standalone project is:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" windowComplete="completeHandler();">

[Code].....

View 1 Replies

ActionScript 3.0 :: Building A XML File?

Nov 25, 2009

I am creating a tool for use at the office. It has, at this point, about a dozen text fileds. From these textfields I want to build an XML document using AS. The way it needs to work is when a user enters text into these fields and hits the submit button that text is put into the propper tags. Each time the user hits the submit button another block of XML code is added to the file.

Here is most of the code. I am building this on another computer which is not online so I am only showing the important stuff here. It works so far but the only output I have seen is a trace. I could have the user manually copy and paste this output to the XML document but I would rather have the document built by the program each time the user hits the submit button. Am I even on the right track here? I have the correct output, now how do I add this output to an existing XML file?

function loadFile(){
var fileName:TextField = docName; //loading an existing XML file.
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.Complete, loadXML);

[code]....

View 2 Replies

Building An Item In Flash

Aug 18, 2009

I have no idea what to call it or where to start looking, so I am putting it in the generic and hopefully someone can point me to the right forum or area. Here is my project and I am trying to teach myself how to do these things. I had great help in making buttons on here a while back, now I am trying to build an object right in flash. The easiest thing for most to relate to is a computer that is being built from scratch. So, You start with a base picture of an open sided computer with a list of components underneath. By draggin those components to the box, it snaps them in place. You can also remove them the same way. When done, you click a tally button and it shows a list of all the components you added with product numbers.

View 2 Replies

ActionScript 3.0 :: Building An MP3 Player?

Sep 25, 2009

I have the below actionscript almost working for playing mp3s. This isn't dynamic or anything. Just links to songs (from buttons) that should null each other out when clicked on. The first song loads fine. However, the second song will not load. I must be missing something. Or maybe I took the wrong approach? Any help would be great.

[Code]...

View 2 Replies

Media :: Building Server For FMS?

Nov 30, 2010

I have built a flash app that utilizes an rtmp feed to stream video and I want to be able to stream my own content. I am looking into building the machine that will run Flash Media Server and was looking for some pointers before I get started.
 
My flash based application runs independently on a large touch screen and is going to be the only pc accessing this server, so I was wondering how beefed up the server needed to be. I would like to get it stream three live hd feeds. Can I run Flash Media Live Encoder and Flash Media Server on the same machine?

View 2 Replies

Building An App To Call A .swf Game?

Aug 7, 2011

I'm looking to build a flash application that acts as a "shell" around a flash game.I only need it to do some pretty basic functions:

1) Calls a PHP script I wrote to determine a few things (if user is logged in, what their userid is)

2) If the php file says the user is logged in, the "shell" should let the user play a .swf flash game that I wrote. And, after they are done playing my .swf game, I want the game to pass out a parameter (score). Again, the "shell" will call a prewritten php script to store the score.

3) If the php file says the user is NOT logged in, the "shell" should display a login box (username/password).

My main challenges have been getting one flash application to call another. (ie: the shell app calling my game). Is this possible?

View 1 Replies

How To Implement Interactive Building Map

Dec 16, 2009

I need to build an "interactive floorplan" for a shopping centre (or two). Many shopping centre websites already have this (eg Bluewater in the UK). Traditionally, the way to build such a floorplan / map is to do it in Flash. The actual floorplan is a Flash asset and the data that describes which retailer is in each location is fetched from the webserver as XML. That way editors can update the location of retailers without having to edit and recompile the SWF file. However if the floorplan itself changes (for example, a larger shop is split into two smaller ones) then the map has to be edited. Another disadvantage is that the data isn't readily available to third parties for mashups etc. So apart from Flash what would you consider using to achieve the same effect? I know of SVG but IE doesn't support it.

View 1 Replies

Actionscript 3 :: Building A New Dictionary Out Of An Old One?

Aug 31, 2010

I'm working with a large set of hierarchical taxonomic terms, where each term ("203") has a matching "term203" movie clip on the stage, and am having trouble getting a recursive function to return all of a given term's descendants.There is a main Dictionary() object with the following nested organization for each term:

{ [object Movie Clip] : { "tid":203, "parent":99, "name":"Culture", selected:false, "otherData":"etc" } }

...where the [object Movie Clip]'s instance name would be "term203". All of these object:subObjectArray items ("terms") are stored in a master taxonomy:Dictionary() object.I've been trying to make a recursive function (which is in itself already a little above my head) that takes the click.target of a movie clip and returns a new Dictionary() object with all of the children and grandchildren and great grandchildren (etc) of that term, in the same, nested organization described above.

The code below traces the right number of recursive loops, but the returned Dictionary() object only contains the first run's terms (only the immediate children of the requested term).

var taxonomy:Dictionary = new Dictionary();
// ...Term info is loaded into taxonomy from a JSON-style text file)
// ...MOUSE_OVER event listeners are added to each

[code]....

I certainly do not claim to be the most efficient AS3 programmer, so I am open to alternative configurations. However, after trying static and nested Arrays, I would prefer to continue using the Dictionary() object as my main pool.As noted, only the immediate children end up animating in the revealChildren() function. It's mystifying to me then, that in the getAllChildren() function, all of the descendants trace sequentially (well in no particular order) in the output window.Also I can't get any sort of name or property out of the subSet Object. That could be the problem.I've only tested it as far as 'two generations,' but it seems that only the first round of calling the function successfully adds those terms to the new Dictionary() object and returns it intact to the animating function.

View 1 Replies

Flash :: Building Exe And App Applications From Swf

Aug 20, 2011

converting my swf to exe and app. I know that there are several options available. My application will be frequently updated so update feature is essentions for me.

p.s. As another option, I can make app and exe out of a loader app that will load main application module every time it is updated.

my main concern is about build in update feature inside projector eg. Mac app will be able to check for new version of my app automatically...

View 4 Replies

ActionScript 3.0 :: Building And Using SWCs?

Oct 3, 2011

building and using a SWC.Essentially, my only goal is to put a bunch of assets in a library, and have those assets included when a different swf is compiled. Compile-time, not runtime.

In my assets FLA, I add an FLV to the timeline of a movieclip. In the movieclip properties, I select Export for ActionScript and give it a unique classname ("FLV_intro"). In Publish Settings, I choose "Export SWC" and click Publish.

In my main FLA, I goto Actionscript Settings, Library Path, and add the SWC. In the code for my main FLA's document class, I do this:

var VideoClass:Class = getDefinitionByName("FLV_intro") as Class;
_video = new VideoClass();
_videoHolder.addChild(_video);

The result is a SWF that does not have the increased filesize of the assets SWC (~30mb), and obviously, the video doesn't show up.Again, the goal here is to have large media assets, such as FLVs, external from the main FLA code, but the resulting SWF to contain everything when compiled - no external SWFs at runtime. The client requires a singe SWF. Additionally, I can use a different, smaller set of assets when developing to make development faster.

View 3 Replies

ActionScript 2.0 :: Building Array From XML?

Jun 27, 2006

I'm trying to dynamically build this structure from my XML file:

[Code]....

Now I know how to parse the XML file, but I'm just confused how I should build the array described above using this XML file.

View 8 Replies

ActionScript 2.0 :: Building Or Setting Up A Web-cam?

Mar 13, 2007

has anyone had any experience building or setting up a web-cam? i feel like this is old technology and should be easy to do. however i dont really even know where to start as far as company to go through for streaming it what to buy etc. this will be something that at points there could be 30,000 or more people watching because it is for a radio station in chicago. so i have to think about traffic?

View 2 Replies

ActionScript 3.0 :: Building RSS 2.0 Reader?

Oct 23, 2007

I'm building a RSS 2.0 reader and have only a vague idea of how to do it except use URLLoader and URLRequest to start everything. Can anyone point to a good tutorial?

View 1 Replies

IDE :: Building A Preloader In Flash?

Jan 2, 2009

building a preloader in Flash. It's about pre-loading swf files in the background while the visitor is watching a page. For instance, I have a start page built in HTML. It will have links to various swf-clips. I would like for those swf-clips to start caching immediately once the HTML page is loaded so that there is no (or little) delay once the visitor clicks on any of the links.

View 1 Replies

IDE :: Building A Site From Scratch

May 4, 2009

I need help building a site entirely on Flash from scratch. I am a beginner at the software, I know what most tools do, I know how to create basic tweens and stuff, but well, all in all, I'm a beginner. I know absolutely nothing on Action Script (be it 2 or 3), and I want very much to learn Flash now. To do so, I want to put online a portfolio site for me. I already know Photoshop, Illustrator and After Effects quite well, so I think now's the time to give it a shoot. On to business:

1. So, first, what size should it be? I wanted it to be something around 1024 x 768 maybe? Is it possible to set an adapative resolution for the site? (I don't know if that's the correct term, what I meant is that the site changes resolution according to the users who are accessing it.)

2. I heard that if you don't use ActionScript to animate things, the site gets mega heavy. Is that true? What should I use ActionScript for when building this website?

3. Is it possible to organize the loading priorities? As in, the order in which things load, so that the site gets a bit more dynamic allocating the user's connection?

4. Are there global standards for Flash-based websites?

For now, I guess this is it. I'm starting this project today, so I'm still not quite sure what other doubts may pop up.

View 1 Replies

ActionScript 3.0 :: Building An XML File ?

Nov 25, 2009

I am creating a tool for use at the office. It has, at this point, about a dozen text fileds. From these textfields I want to build an XML document using AS. The way it needs to work is when a user enters text into these fields and hits the submit button that text is put into the propper tags. Each time the user hits the submit button another block of XML code is added to the file.

Here is most of the code. I am building this on another computer which is not online so I am only showing the important stuff here. It works so far but the only output I have seen is a trace. I could have the user manually copy and paste this output to the XML document but I would rather have the document built by the program each time the user hits the submit button. Am I even on the right track here? I have the correct output, now how do I add this output to an existing XML file?

function loadFile(){
var fileName:TextField = docName; //loading an existing XML file.
var loader:URLLoader = new URLLoader();[code].......

View 1 Replies







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