Could it be a mistyped i == 1 ?
And for that matter:
function checkPlaying(e:TimerEvent) : void if (1 == 1) {
should be
function checkPlaying(e:TimerEvent) : void {
if (1 == 1) {
Karina
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
Hi;
I have this in an external xml file:
PAGE pg_name='index'
DETAILSThis is some more of the home page./DETAILS
/PAGE
My objective is to use a switch statement like this:
switch (xmlda...@page_name.tostring())
{
case index:
Hi,
Your switch uses page_name, but your XML says pg_name.
Not sure about the other question at the moment, but it looks like you
are repeating your self in the switch statement - if all your pages have
DETAILS, do you need to switch? I am guessing you may have pages that
differ?
HTH a
On 05/05/2010 13:49, John Singleton wrote:
Hi;
I have this in an external xml file:
PAGE pg_name='index'
DETAILSThis is some more of the home page./DETAILS
/PAGE
My objective is to use a switch statement like this:
switch (xmlda...@page_name.tostring())
{
i'd also recommend having a root node and an xml type declaration at the
start
a
On 5 May 2010 14:05, Paul Andrews p...@ipauland.com wrote:
On 05/05/2010 13:49, John Singleton wrote:
Hi;
I have this in an external xml file:
PAGE pg_name='index'
DETAILSThis is some more of the home
Hi
I met situation with AS3 that I can not explain or even understand
where I should look answer.
Simple example.
In library I have simple movie clip with linkage class name nav. This
mc has mc2 with two frames. In frame 1- stop().
On the stage I add this nav
function init():void{
var
- Original Message
From: allandt bik-elliott (thefieldcomic.com) alla...@gmail.com
i'd also recommend having a root node and an xml type declaration at
the start
Right. Ok, here's my revised code:
?xml version=1.0?
SITE
PAGE pg_name='index'
DETAILSThis is some more of the
You forgot your break; statements, sir.
On Wed, May 5, 2010 at 11:12 AM, John Singleton
johnsingleton...@yahoo.comwrote:
- Original Message
From: allandt bik-elliott (thefieldcomic.com) alla...@gmail.com
i'd also recommend having a root node and an xml type declaration at
the
anyone got ExternalInterface calls working in chrome/safari on linux?
or know why mine might be failing? they work on everything else seemingly...
tia,
tom.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Your switch statement doesn't work because it should look like this
instead:
PAGE pg_name='index'
DETAILSThis is some more of the home page./DETAILS
/PAGE
switch (xmldata.pa...@pg_name)
{
case index:
pageDetails =
Hi list...
I have a TextArea component used for inputting text. Also, the stage has a key
listener where something happens if the user keys i.
The issue arises when the user starts inputting text into the TextArea. If she
types i, the stage event fires. I don't want that to happen if the
It's not just about missing break, your switch statement
fundamentally does not make sense (sorry ;)
switch (xmldata.pa...@pg_name.tostring())
... this evaluates to indexcontact as your trace shows, therefore
none of your cases will pass the test.
In order to make this work you have to iterate
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html
Flash Player for Linux version 9.0.31.0 and later supports the
ExternalInterface class in the following browsers:
Browser
Mozilla 1.7.x and later
Firefox 1.5.0.7 and later
SeaMonkey 1.0.5 and
- Original Message
From: jonathan howe jonathangh...@gmail.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wed, May 5, 2010 11:23:25 AM
Subject: Re: [Flashcoders] XML Question
You forgot your break; statements, sir.
You're right, however it makes no difference
Why would anyone in their right mind want to run Safari on a Linux box :'(
On 05/05/2010 16:25, tom rhodes wrote:
anyone got ExternalInterface calls working in chrome/safari on linux?
or know why mine might be failing? they work on everything else seemingly...
tia,
tom.
- Original Message
From: kennethkawam...@gmail.com kennethkawam...@gmail.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wed, May 5, 2010 11:53:53 AM
Subject: Re: [Flashcoders] XML Question
It's not just about missing break, your switch statement
fundamentally
ok, currently got probs with firefox as well on linux. the swf thinks
ExternalInterface is available but nothing gets called in the JS
On 5 May 2010 18:00, Mattheis, Erik (MIN - WSW)
ematth...@webershandwick.com wrote:
Say for example you are in the home section and obtaining the data for
it, you'd do:
var pageData:XML = xmlData.PAGE.(@pg_name == index)[0];
Then build the page based on pageData XML.
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
On 5 May 2010 17:30, John Singleton
I think you just need a root node.
var xmlData:XML = new XML (rootPAGE pg_name='index'DETAILSpage/DETAILS
/PAGE/root);
trace(xmldata.pa...@pg_name.tostring() == index); // true
var xmlData:XML = new XML (PAGE pg_name='index'DETAILSpageDETAILS
/PAGE);
trace(xmldata.pa...@pg_name.tostring() ==
On 05/05/2010 17:43, tom rhodes wrote:
ok, currently got probs with firefox as well on linux. the swf thinks
ExternalInterface is available but nothing gets called in the JS
Maybe it's really a problem with the code. The most common error is
trying to call Flash functions before the swf is
I think you just need a root node.
No way. Your first example traces true just because there is only one
pg_name attribute.
Consider this:
var xmlData:XML = root
PAGE
pg_name='index'DETAILSpage/DETAILS/PAGE
PAGE
Hi
Is it possible to have mc1 manually placed on stage be over mc2
created dynamically
mc2=new MovieClip();
addChild(mc2)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
now i'm testign with a super simple test swf in AS2 like this...
import flash.external.ExternalInterface;
if(ExternalInterface.available)
{
statusTXT.text = External Interface is available;
ExternalInterface.call(alert, Called from flash);
getURL(javascript:alert('alternative JS call'););
}
- Original Message
From: kennethkawam...@gmail.com kennethkawam...@gmail.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wed, May 5, 2010 12:48:28 PM
Subject: Re: [Flashcoders] XML Question
Say for example you are in the home section and obtaining the data for
Hi,
//Assumes mc1 is on the stage and has linkage set to mc1
var mc2:MovieClip = new MovieClip();
addChild(mc2);
addChild(mc1);
hth,
Bob
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
Look into getChildByName to get a reference to the MC on the stage, ie
getChildByName('instanceName').x.
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
Weber Shandwick
Advocacy starts here.
PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The
Quick question... my document class is in FB4 and it's linked with my FLA in
Flash CS5. Every time I save the document class, it publishes the FLA in the
IDE. Is there a way to turn that off (even temporarily)?
Eric
___
Flashcoders mailing list
Now, how can I build a switch statement to determine which page?
Did you read my reply? I didn't see a response to it.
Jason Merrill
Bank of America Global Learning
Learning Performance Solutions
Join the Bank of America Flash Platform Community and visit our
Instructional Technology
My interpretation of the question was we want the depth of the added object
to be lower than the object that is already on the stage. So I don't think
the x coordinate is the answer.
So the first answer where Robert re-addChilds mc1 technically works in the
simple situation, but if you have other
If I understood you correctly, you want to filter the XML data according
to a variable passed to the SWF. If so you'd do something like:
var pageDetails:String = xmlData.PAGE.(@pg_name ==
loaderInfo.parameters.page).DETAILS;
// page is the name of the var passed to the SWF here
But I
Thank you very much! That is exactly what I need.
2010/5/5 jonathan howe jonathangh...@gmail.com:
My interpretation of the question was we want the depth of the added object
to be lower than the object that is already on the stage. So I don't think
the x coordinate is the answer.
So the
Eric E. Dolecki wrote:
Quick question... my document class is in FB4 and it's linked with my FLA in
Flash CS5. Every time I save the document class, it publishes the FLA in the
IDE. Is there a way to turn that off (even temporarily)?
Eric
Turn off automatic building.
natalia Vikhtinskaya wrote:
Hi
Is it possible to have mc1 manually placed on stage be over mc2
created dynamically
mc2=new MovieClip();
addChild(mc2)
My recommendation: create a holder mc on the timeline and add stuff to
the holder instead. The holder can be given a proper layer in the IDE
Ok, I'll bite - where is that setting? Poking around in prefs right now.
On Wed, May 5, 2010 at 3:16 PM, Henrik Andersson he...@henke37.cjb.netwrote:
Eric E. Dolecki wrote:
Quick question... my document class is in FB4 and it's linked with my FLA
in
Flash CS5. Every time I save the document
Ok, I'll bite - where is that setting? Poking around in prefs right now.
Project ... Build Automatically.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest
Found it Under Build - sorry for the noise :)
On Wed, May 5, 2010 at 3:35 PM, Eric E. Dolecki edole...@gmail.com wrote:
Ok, I'll bite - where is that setting? Poking around in prefs right now.
On Wed, May 5, 2010 at 3:16 PM, Henrik Andersson he...@henke37.cjb.netwrote:
Eric E. Dolecki
Please explain. Do you mean to create empty holder manually? How to
add stuff to it?
My first try was to add mc from the library with linkage class name.
This is simple navigation bar with back next arrows. So in the library
I have mc nav. Nav has two mcs (arrows). Each mc has two frames
inside.
natalia Vikhtinskaya wrote:
Please explain. Do you mean to create empty holder manually? How to
add stuff to it?
Create a new empty movielclip symbol. Do not give it any class. Do not
put any content in it.
Now place an instance of this symbol on the timeline. Give this instance
an
I would like to point out that use of empty clips is a polarizing technique
in terms of public opinion. Some people find that they make projects
difficult to maintain.
-jonathan
On Wed, May 5, 2010 at 4:12 PM, Henrik Andersson he...@henke37.cjb.netwrote:
natalia Vikhtinskaya wrote:
Please
Go me! What about just saying
nav.btnBack.gotoAndStop(1);
nav.btnNext.gotoAndStop(1);
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
Weber Shandwick
Advocacy starts here.
PRWeek Global Agency Report Card 2009 – Gold Medal Winner
The Holmes Report Global
I have an AS3 fla file with a mc and stop() on frame 1 and different content on
additional frames.
When the swf is launched, I would like to have a MouseEvent.ROLL_OVER with a
function to gotoAnd Play frame 2. Also I would like to have a
MouseEvent.ROLL_OUT with a function to gotoAndSop on
Please post your code if you can.
It may be a problem with the way you have written it.
Karl
On May 5, 2010, at 4:35 PM, Donald Talcott wrote:
I have an AS3 fla file with a mc and stop() on frame 1 and
different content on additional frames.
When the swf is launched, I would like to have a
Instead of using a MC the size of the stage, you may want to try listening like
-
this.root.addEventListener(MouseEvent.ROLL_OVER, overHandler) and
this.stage.addEventListener(Event.MOUSE_LEAVE, offHandler);
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
My file has two scenes. See code below. Originally the Mouse Events
were MouseEvent.CLICK and they worked fine.
Scene 1
Frame 1
stop();
playScene2_btn.addEventListener(MouseEvent.MOUSE_OVER, playScene2);
function playScene2(evt:Event)
{
gotoAndPlay(1, Scene 2);
}
Scene 2
Frame 1
Anyone know of a working SIP library in AS3 for player 10.1?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I am working in ActionScript 2. I want to create a quiz in which 10 questions
are randomly selected from a block of 40 questions. I found the following code,
but I can't work out how to stop it doubling up the questions.
function randRange(min:Number, max:Number):Number {
var
It's probably best just to create an Array or Vector containing numbers 1 to
40. (Vectors are only available in AS3, not sure about Array). Shuffle the
array, then choose the first 10 elements. A reasonably effective way to shuffle
an array is to step through the array, and for each element
Hi Allen,
Just a thought, but maybe have the quiz numbers set in an array that
the var n:Number is retrieved and have the min and max that the
random code calls match the amount of items in the array.
After selecting a question, remove it from the array, thus the array
length (max) reduces
A simple way:
Put all the candidate numbers in a list (in this case, 1 to 40). Then pick
randomly from that array, one at the time, and make sure you remove that
number from the candidates list, so you can't have duplicates.
In code (untested):
function getRandomList():Array {
var
49 matches
Mail list logo