ActionScript 2.0 :: XML & Flash, Getting Stuff To Fit In A Movieclip?

Sep 11, 2008

I'm sure it's been discused before ..but I can't seem to be able to find it in the masses of photo gallery questions..So here it is;I want to load pictures/swf's etc into flash ..no problem.However, i want them to resize (proportionally) so they fit inside the movieclip holder.I'm ok with a solution where you have to state the size in XML, aslong as they fit in the movie clip.Code:

Code:
delay = 10000;
function loadXML(loaded) {

[code]....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Rotating Stuff Around Other Stuff?

Jun 29, 2011

So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:

ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y

[code].....

View 4 Replies

ActionScript 3.0 :: Document Class Extends MovieClip Type Stuff

Mar 8, 2012

What I've done is I have an existing fla file I'm using on line, which I want to use a document class, something I've never done. The as file I have (using Alternativa 3D 7.8) extends movieclip - here's the basic structure:

package {
import alternativa.engine3d.containers.ConflictContainer;
import alternativa.engine3d.core.Camera3D;
import alternativa.engine3d.core.View; etc.
public class test5 extends MovieClip {
private var container:ConflictContainer;
private var cam:Camera3D; etc.
public function test5() {
// constructor code
}}}

The thing is, it works fine when I use a blank fla (class named test5) but when I apply it to my existing fla - which uses a a mile of actionscript - all of my dynamic images dissappear and I'm left with the image from my as file (test5).

View 0 Replies

ActionScript 3.0 :: Drag Stuff (a Movieclip) From Stage To The Movieclips Inside The Srollpane

Dec 17, 2010

I was working on a little code in which I am inserting a few movieclips within a scroll pane and then user is able to drag stuff(a movieclip) from stage to the movieclips inside the srollpane.

[Code].....

View 14 Replies

ActionScript 2.0 :: How To Do Stuff In Flash

Oct 27, 2005

I know how to do stuff in flash. Ok, so here's what I want to know..on this guessing game, I want the person to enter in their 1 - 3 digit guess, the the number they need to guess is 577 (later I want to make this random whenever they go to play it). If they guess under 577, I have a box to say their guess is too low. If they guess over 577, it says their guess is too high. However, I am not sure how to make it so that what they put in the text box, it takes it as the new variable. I know this may sound confusing, but here is the .fla file.URL...

View 5 Replies

ActionScript 3.0 :: Flash Do Stuff After The Swf Is Closed?

Feb 4, 2012

I'm writing a Flash game for a class that is supposed to test elementary kids' math skills. After each activity is completed, Flash sends the results to our database (e.g., that 8/10 math problems were answered correctly). If the user is in the middle of an activity and hits our Logout button, we'll send what results they had to the database anyway. But if the user closes out of the browser in the middle of an activity, is there a way to quickly send stuff to the database before the swf dies?

View 2 Replies

ActionScript 2.0 :: Use Math Stuff On Flash?

Apr 11, 2007

how to code where it should move towards (that's easy), and I know somewhat how to use math stuff on flash. But when I tried to implement it on this, it doesn't work. See code:

angleA = Math.atan2(TARGET._y-HERO._y, TARGET._x-HERO._x);
var degrees = angleA/(Math.PI/360);
BULLET._rotation = degrees;

It is correctly placed, don't worry about that.

View 4 Replies

ActionScript 2.0 :: Flash On / Onevent Handler And Other Stuff

Mar 24, 2010

This is a pain but Ok the On event stuff has errors but works. the main part that has me fustrated is this.[code]The bio works but the rest wont. EVEN the collect which I made go to the same fame as bio but it does nothing.

View 21 Replies

Simple Login Flash Stuff Not Working

Sep 21, 2010

I am fairly new to Flash and I am creating a simple Flash login programme in Flash. If I type in the correct password or even if I type in the wrong password it always goes to frame 3 which is "Login Failed! Username or password was wrong". I have attached .fla file. Note I created in Macromedia Flash 8.

View 8 Replies

ActionScript 3.0 :: Working On Stuff Using The Flash Sound API ?

Feb 13, 2010

Has anyone been working on stuff using the Flash Sound API recently? I like working on dynamic audio and was wondering what the progress is on it.

View 1 Replies

ActionScript 2.0 :: Loading Database Stuff Through PHP/Flash?

Feb 10, 2005

ok, i have a database with two tables. one table holds the following:table 1 name: lotscolumns: lot_id, number, description, status_idtable 2 name: statusi have a php script that goes as follows (i'm ignoring the description fields for now):

PHP Code:
<?php
// database connection variables

[code].....

View 14 Replies

ActionScript 2.0 :: Pre-load The Stuff Flash Loads From Xml?

Mar 5, 2010

how to pre-load the stuff flash loads from xml -.- (actually the thumbnails, that need to be ready at cache for the roll-over effects). After looking a few tutorials and scrpts i have found in the i came to some conclusions but, fortunately, what i found checks the loading process for the individual items, while i need to get the sizes all together to add them in the loader.... I'm pretty clueless right now how to do that.

What i think i need is to create an array for the thumb attribute of my xml's nodes, and find a way to process the size of that all together using something like a shift + a variable for total size.... but well... i right now only think " i need to do that" but i have no clue of how =.=.

View 6 Replies

ActionScript 2.0 :: Loading Database Stuff Through PHP / Flash

Feb 10, 2005

i have a database with two tables. one table holds the following:[code]i have a php script that goes as follows (i'm ignoring the description fields for now):[code]now i'm not 100% sure this script is correct, so if anyone sees problems in it, please do let me know. i know that it needs some additions to pull the linking table (status) to display the status_id, but i have no clue how to write that as im not familiar with php, i just took this script from a user on this forum (i apologize for forgetting your name) and edited it.

anyway, i want to be able to pull out all those fields and load them up in flash so i can use them in the scripts over there.i have a grasp on the LoadVars(); a bit but not sure how to pull all this out and if its correct so that i can use it in flash. the fields im most worried about using is the number field in the lots table and the status_id (in both i guess since its a linking table).

View 14 Replies

Insert Stuff Like Headers (<h1>) And Meta Keywords Into Flash?

Mar 25, 2009

Can I insert stuff like headers (<h1>) and meta keywords into flash?

View 1 Replies

Professional :: Get Stuff Off The Stage To Show In A Web Browser On Flash CS4?

Apr 24, 2010

I have a picture that I want to be my background.  So I put it around the stage, but when I test my movie in a web browser, only my stage shows.  Is there a way I can get it to all show?  I don't really care if my background is cut off, as long as you can see it, because it's a tile sort of picture.

View 4 Replies

Set Text In Flash File Containing Stuff In Html Code

Feb 27, 2011

I want to create a flash file containing some text given by HTML code. For example like this:[code]But i don't have such swf file. So how can i make an swf file like that? Is there any program for it? Or is there already an swf file for that?

View 1 Replies

Flash :: Cannot Paste Stuff Onto The Stage With Gaia Framework?

Sep 21, 2011

I'm a total noob to Flash, and I'm learning it because I want to make a website design that looks like this.

That's coming from a separate external .fla file not inside my Gaia project. I currently have a Gaia 3.2.6/FP10/AS3 project with Timeline animation that I just made up today.The problem is that when I copy and paste those graphic symbols (not the background), into the 1st frame of my home.swf of my Gaia project, the preloader freezes at 50% on the home page.

When I remove the forms from my seperate external .fla file, then copy and paste them into the 1st frame of my Gaia project, the preloader freezes at 100%.When I draw a square onto the first frame of home.swf, the page loads normally.

View 1 Replies

ActionScript 3.0 :: Adobe Flash And Making Some Stuff And That Export It To IPad?

May 30, 2011

Im trying to learn Adobe Flash and making some stuff and that export it to my iPad. It doesnt have to be Shared Object, just read on internet that it could be used. But i dont know.

I need a save and load function. Im gonna explain why and how. Im making a test game. When the player finish a level another level on the "Level select" screen should be unlock.

So, when player open my game first time. Level 2 is locked. When he finish Level 1 he can play Level 2.I got some help with this and got it to work like this:

[Code]...

That means if Player hits goal he get send back to frame 2 and "level2played" gets true and he can click and play level2. But this doesnt ofcourse get saved when the app get closed. So i kinda need it to be saved. So if Player hits goal in level 1, this "level2played=true;" gets saved.

View 2 Replies

Get Stuff To Stop When Using ENTER_FRAME?

Feb 6, 2010

I have a one-frame .fla with script on one layer and a movie clip on another. The movie clip has an instance name of "titleBar," which moves from left to right using dynamic tweening.The tween code moves it from an X position of 200 to a X position of 820.Then I have a function called "xChange," which waits for titleBar's X value to be 820. Once it does, I'd eventually want to load an external swf but I'm just running a trace for now.Again, Here's the code.

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

[code]....

View 4 Replies

ActionScript 3.0 :: XML And Dynamic Stuff In AS3

Apr 28, 2010

I've generated sample xml file:[code]This works ok. What the code is doing - its assigning each node of the xml file to one of the boxes in the fla file.My question is if we can assign to each of the node one box dynamicly? So bassicaly if i will have 5 nodes the code will -draw???- a box and putted the name of the node in the box.And so on, for each of the nodes? And if i will have 6 nodes, then it will draw 6 boxes and so on..

View 6 Replies

IDE :: Sine Waves And Stuff?

Aug 4, 2009

I have a specific request or a general pondering really.I know you can create a sine wave type thing with as, could you then perhaps create movie clips, letter by letter that would move along and up and down on this sine wave?could you then, instead of setting the size and scale of the sine wave have it react to the input levels of a mic.i've been hunting for something that will help for a while and have drawn a blank

View 5 Replies

IDE :: Return Scope Stuff?

Nov 16, 2009

I have a function, and inside of it is a LoadVars object to load a variable. The problem is that I need the outer function to return the results of the LoadVars' return.

View 2 Replies

ActionScript 3.0 :: How To Remove Stuff In Flex

Oct 9, 2009

but this is my first time using flex, and I am kindof confused on how to remove stuff.Say I use <mx:Panel title="test panel"></mx:Panel> to add a panel, alongwith some textfields and such to create form.....now how do I remove all this entirely and create something new like a tabbed navigator?

View 1 Replies

ActionScript 3.0 :: Accessing Stuff In A Child Swf?

Jul 20, 2009

I have a swf named home.swf  on the stage of home.swf I've added a Sprite with this code
var onStage:bc_sprite = new bc_sprite();addChild(onStage);another swf called menu.swf  loads home.swf into a loader which is added to a MovieClip named currentPage which is on the stage thusly.currentPage.addChild(swfLoader);

View 5 Replies

ActionScript 3.0 :: Loading Stuff From External SWF

Nov 14, 2009

Have a little homepage, where I load some of the stuff from external swf's. But I have some buttons which is gonna be on top of the external load content, but when I export it the buttons doesn't appear anymore. Underneath I have some AS which I use to load the the external content, and to control my buttons.

stage.addEventListener(MouseEvent.CLICK, clickHandler_contact);
function clickHandler_contact(event:MouseEvent):void{
if (event.target.name!=null){
switch(event.target.name) {
case "contact_back_btn": gotoAndStop("index");
[Code] .....

View 9 Replies

Actionscript 3 :: Get XMLList Stuff Dynamically?

Jul 17, 2010

I've a XMLList like:

<parent>
<one>
<child id="1" />
<child id="2" />

[Code]....

Where the _loc_1 would be "one" or "two". Is this possible with the getDefinitionByName() to do this?

View 1 Replies

ActionScript 3.0 :: Allows The User To Enter Stuff?

Aug 31, 2009

I have a free text which allows the user to enter stuff. But that text box needs to be a 24bit hex string ONLY.How do I restrict this so that it only allows 24bit hex strings.

Code:
000000
.
.

FFFFFF

I've thought about creating a regular expression to parse the whole string then return a message. But what would be even better is if the thing worked at run time so that the user can never enter an invalid string.

View 2 Replies

ActionScript 3.0 :: Place Stuff In One Layer And When Not To?

Aug 14, 2010

So I've a symbol in my library with 3 things in it: textfield, and 2 movieclips (background and icon).
Should I place each item in different layer or i can place them in 1 layer? When should I place everything in separated layers and when not?

View 3 Replies

ActionScript 3.0 :: Complicated Stuff With Servers

May 23, 2011

how can i make a store for a game where poeple can buy coins?can you guys give a step by step tutorial becouse i dont know nothing aBout MySQL servers.If you have a good book i could read to learn servers please give me the name.

View 2 Replies

ActionScript 2.0 :: [FMX] Random Animation Stuff?

Jan 4, 2003

I made a random animation based on the tutorial, but my randomized movie clip is a guy i grew in a wheelchair, and i was wonderign if there was a way to like make them bounce off of eachother, and add sound to it when they hit like an "oof" or something

View 1 Replies







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