ActionScript 2.0 :: Code Generates Buttons (MC's Actually) Which Get A Name And A Url From A XML File?

Apr 16, 2010

This code generates buttons (MC's actually) which get a name and a url from a XML file. The problem is that the url assigned to the buttons is the same for all buttons, namely the last entry of the XML file. I can't seem to figure it out.Here's the XML file:

Code:
<buttons>
<button title="Google">http://www.google.be</button>

[code].....

View 3 Replies


Similar Posts:


ActionScript 3.0 :: URLLoader Generates Error #2048 Depending On File Contents

Jun 7, 2010

I've developed a preloader for an ActionScript 3 application that uses URLLoader to load an encrypted swf. This has been tested on different OSs, Flash Players and browsers and everything works as expected except for a series of PCs being used by a colleague on a corporate network. The PCs at fault use Flash Player 10.0.22.87 with IE6 on WinXP and get security sandbox error #2048 depending on the contents of the file being loaded! Some of the tests and results include:removing 99% of the contents but keeping first 6k (works)replacing contents with 4 bytes 00 (works)inserting 16 bytes: EF BB BF <html></html> at beginning of file (works)inserting 16 0s at the beginning of the file (fails)xor FF all bytes (fails)I've tried other tests such as different file extensions, Security.allowDomain(¯), crossdomain.xml, Security.loadPolicyFile(¦), dataFormat = URLLoaderData Format.BINARY etc but I think these are all irrelevant due to the fact that the app sometimes works.The code is just the standard new URLLoader(), adding event listeners, then calling load(new URLRequest(¦)). The test app doesn't include the loadBytes() so this isn't the issue either.

The PC at fault could be behind a firewall or using a proxy. At this stage my only theory is that their antivirus, firewall or proxy is examining the contents and sometimes decides to intervene, perhaps with a redirect. This would also explain why (according to the web server logs) the files are being requested even though the security sandbox error is generated. However, this does not explain why Flash generates the error in the first place, depending on the contents.It's not possible for me to visit on site or get them to modify their settings or configuration, but I can ask them to run various Flash Apps for testing.URL...I can come up with a workaround (such as ensuring the file always starts with dummy <html> tags and then strip them before decrypting), but I'd prefer to get to the bottom of this issue if possible to be confident it won't occur again; this is for a Facebook application so it's possible it will be used in a large variety of environment

View 11 Replies

ActionScript 3.0 :: Make One .as File Code Interact With Another .as File's Code?

Mar 16, 2010

I am trying to find out how to make one .as file code interact with another .as file's code.like, if I had one .as file that specified options of movies and then when the user clicks on a movie (loaded through xml) it uses code from another .as file to load the correct movie.

View 5 Replies

SWF That Generates A SWF?

Apr 23, 2009

Is it possible to have an application (a SWF file) that the user could manipulate and would be able to generate, like a "Save As", another SWF?

View 2 Replies

ActionScript 3.0 :: Timeline Code And Separate AS File Code Working Together

Dec 27, 2010

Is there a way to make code on the timeline and code in a separate AS file communicate with each other?I have two buttons, a yes button and a no button.I have a confirm box which is a movie clip. In the movie clip I have the two buttons on it and code so that every time one of the buttons is clicked it runs a function.I have the rest of my code for the movie (so the code to make the confirm box appear) on a separate AS file.Is there a way I can define the functions on the movie clip and run the functions with the separate AS file?

View 7 Replies

ActionScript 2.0 :: Php Generates Xml - Flash Reads

Aug 23, 2005

i'd like to know if this is possible: currently i have a file menu.xml which contains menu information 2 levels deep (main menu, sub menus). this i am reading into flash and generating the menu. i would like to change this process:

1. call a php script which creates the xml output and using headers sends that data back into flash. sending and loading vars is no problem.

2. use flash to generate the menu

[Code]...

View 1 Replies

ActionScript 3.0 :: 60 Sec Upload Generates Error

Jun 5, 2009

I'm uploading multiple files to my server with the fileReferenceList.But it seems like if the upload takes more than 60 sec I get a error message.

View 2 Replies

ActionScript 3.0 :: Write A Class File Using A .as File Instead Of Writing Code Into The Script Tab Of A .fla File?

Feb 4, 2010

I am trying to write a class file using a .as file instead of writing code into the script tab of a .fla file.When I write stage.addChild(img); I get an error that stage is null. When I take out stage, and just write addChild(img); the code runs fine, but nothing appears on stage. Do I need to do something to set a stage active?
 
Is this because I don't have a Main class? My class is named after the file and I don't have a file named Main.Here is the code. As it is, it runs and I get the two trace outputs, but no graphic on my screen.
 
package  { import flash.display.DisplayObject; import flash.display.Sprite; import flash.display.Loader; import flash.events.*; import flash.net.*;  public class HelloWorldImage extends Sprite {  private var background:DisplayObject, foreground:DisplayObject;  private var url:String = "hw_jpg.jpg";  private var loader:Loader = new Loader( );    public function

[code].....

View 7 Replies

Distribute To Layers Generates Unknown Error?

Nov 20, 2009

I am trying to breake apart text in flash (CS4) and distribute it to separate layers. The breaking apart works fine, but when I want to distribute the letters into layers, I get this: "could not complete operation because of an unknown error".

View 7 Replies

Professional :: Flash Self Generates Tween Graphics

Oct 11, 2010

I noticed this thing that Flash self generated graphic symbols and names it Tween1, Tween2, etc. I am not sure why it happens. Usually it happens when I tween something and then this accompanying graphic symbol appears in the library. Do I really need them, is it a flash mulfunction and I can safely delete them? why they are happening, am I making all the wrong steps in tweening and thus they appear?

View 1 Replies

Actionscript 3 :: Flash CS5 Generates Unwanted Preloader?

Jul 1, 2011

One of our external developers has created a minigame in Flash CS5 which we are embedding in our container by loading the SWF. The minigame's document class (Icegame) should and does implement a specific interface DreambearMinigame.However, it appears that when that game is published some kind of preloader is generated, since when loading the game in the container and casting loader.content to DreambearMinigame we get the error cannot convert Icegame__Preloader__@blabla to DreambearMinigame

View 1 Replies

ActionScript 2.0 :: Mp3 Player That Generates User Data?

Sep 15, 2010

i want to make my mp3 player generate some sort of a xml/txt file or e-mail that will store which song has been downloaded and the number of times it has been played and add date stamp to it so i can view it when required. i think parts of this can be achieved in a simillar way as a flash ''contact form''.how to start this.links and examples would do very well. I am not sure if most of this can be possible but i would like to try it.below is the action script i have on my player...

var song_folder:String = "songs/";
var song_list:Array = new Array();
var code_list:Array = new Array();[code]....

all i want is when the download btn is pressed, it has to generate the necessary data.

View 0 Replies

ActionScript 3.0 :: Class Generates Random Data ?

Dec 17, 2011

I'm creating I created a generic class I thought would be useful to others, too. So I wanted to share it. But before I need some opinions on it and whether there's something handy that it's missing.This class generates random data and all its usable code is static. Here is the structure:

ActionScript Code:
package com.inhan {
public class Random {
public static function get boolean():Boolean {}[code]...........

View 8 Replies

C :: Adobe Alchemy Compiler - It Generates .l.bc Files - Turn Them Into Swc's?

Jun 13, 2011

So I try to compile ffmpeg as I described here after this patch I started seeing .l.bc files but no .swc files. So how to use alchemy completion suite to turn .l.bc into .swc?

View 1 Replies

Professional :: Test Movie Generates Blank White Screen

Jun 14, 2010

Not sure why this is happening but everytime I test a movie (CTRL+ENTER) in Flash movie it produces a blank white screen. I even created a new Flash file with a simple Shape but it still gives me that blank white screen when I run test movie. It does, however, run correctly when I click the *.swf that got generated. I'm not sure if my work recently upgraded me to a newer version of Flash Player.

[Code]...

View 1 Replies

Actionscript 3 :: Finding Target's Id When Its Parent Generates Event In Flex?

Aug 10, 2011

I'm trying to get the id of the target in showMe(). For example, when I click button or image panel's showMe() function executes first. Here I want to capture the button/image's id.

private function init():void
{
pnl.addEventListener(MouseEvent.MOUSE_DOWN,showMe);
}

[code]....

View 2 Replies

ActionScript 3.0 :: Adding To Library Path Folder With Swc Want To Use Generates Error?

Apr 19, 2010

I'm trying to compile a project using compc from command line.[code]Any ideas why adding to the library path a folder with the swc I want to use generates an error?

View 1 Replies

Flex :: Web Applications - When Export A Release Build, It Generates A Whole Bunch Of Files?

Jan 19, 2011

I made an application in Flex 4. When I export a release build, it generates a whole bunch of files. (including the skins used, etc, etc.)How do I make those plentiful files except the container HTML file, get compiled into a single SWF file?E.g.My folder should only contain:

my_app.swf
my_app.html

But my_app.swf should still run like a normal Flex 4 app, only this time, all the files, images, skins, etc are inside that one SWF file.

View 2 Replies

ActionScript 3.0 :: Make A Reset Button That Re-generates Stars For User To Count Again

Aug 3, 2009

I made this simple AS3 game that generates a random amount of stars on the stage. The user has to count the number of stars, punch that number into the input box and hit submit.The problem is that if the user wants to play again, he/she will have to go through the hassle of closing and re-opening game. That's why i'm now wondering how to make a reset button that re-generates the stars for the user to count again.URL...

View 1 Replies

Add A GetURL Code To The Buttons?

Jul 27, 2009

I have a pre built flash navigation menu. I am trying to add a getURL code to the buttons. The code looks like this:

function butnClick(event:MouseEvent):void {
if (event.target.num == 0) { // For the 1st button:
// Add your button click actions here[code]............

Im getting syntax errors and I know its wrong but thats the only way I know how to write it so far.

View 5 Replies

AS3 :: Code For Next- And Back-buttons

Mar 28, 2011

I am building a image presenter in Flash with as3 but i need a piece of code to make the two buttons work correctly. The code i have is as2 and i get 10 errors using it.[code]

View 3 Replies

ActionScript 1/2 :: ClickTAG Code In A Flash Banner Be Changed If Only Have The .swf File And Not The .fla File?

Oct 26, 2009

Can the clickTAG code in a flash banner be changed if you only have the .swf file and not the .fla file?

View 1 Replies

ActionScript 2.0 :: Optimize Code For Several Buttons?

Sep 4, 2009

So I have 10 buttons, and I would like them to all do similar actions, but I was wondering if it's possible to optimize the code somehow.

When you rollover the button I would like it to alpha IN, and then when you rollout I'd like it to alpha OUT. Lastly, onPress I'd like to go to a different keyframe in the scene.[code]...

View 4 Replies

ActionScript 3.0 :: Code For Buttons & Text?

Nov 17, 2009

I would like the code or links to the code to help me make buttons and plain text to navigates to various pages in a flash site.

View 1 Replies

ActionScript 3.0 :: How To Assign Code To Buttons

Sep 13, 2011

the current code I have on the timeline now (where the buttons reside) is:

stop();
function playLifeboy(event:MouseEvent):void
{

[code]......

View 9 Replies

Flex :: Declaring Buttons In Code?

Dec 23, 2010

How to declare the buttons in the following AS code What is the library that needs to be included

package
{
public class caml extends Sprite

[code].....

View 1 Replies

ActionScript 2.0 :: Accordion Code That Uses XML For The Buttons

Mar 10, 2010

I am using an accordion code that uses XML for the buttons. Here's an example of one of the buttons:

[Code]....

View 2 Replies

ActionScript 2.0 :: Next / Previous Buttons Code

Mar 27, 2010

Im trying to make a slide show with a next and previous button. I have name these two buttons next_button and previous_button.[code]

View 1 Replies

ActionScript 2.0 :: Get The Line Of Code To Run Without And Buttons?

Jun 1, 2005

We all know that you can make a frame lable in a movie clip and call it on press,rollOver ect...

_root.some_mc.gotoAndPlay("scene1") - won't play
on (press){
_root.some_mc.gotoAndPlay("scene1") - will play
}

My question is how to get the line of code to run without and buttons. I have made a few sites and never had to do this. I have tried making a function. But to no avail. I just want it to load when the frame reads the code..

View 12 Replies

IDE :: Buttons Inside Mc Affecting The Code?

Oct 27, 2009

I have this code that makes a menu with two buttons appear following the mouse when the mouse rolls over a movieClip:

Code:
var imgOptions:menuMC = new menuMC();
//Makes the image options follow the mouse
function showImgOptions (e:Event):void
{

[code]..

The problem is that the buttons are children of imgOptions, and when the mouse is over these two buttons, the movie reacts like the mouse is not over the imgOptions movieclip.

View 1 Replies







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