[Flashcoders] Flash IDE localhost problem

2010-02-25 Thread Dav
Hi, I'm just wondering if anybody can help me with my simple but frustrating
problem.

 

I have created an SWF that loads an XML file from
http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml, but I get
this error when running the movie using Test Movie in the Flash IDE.

 

Error #2044: Unhandled ioError:. text=Error #2032: Stream
Error. URL: http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml

at
Main/loadConfig()[D:\www\webroot\flash\Projects\MEL\Quiz\Quiz\src\Main.as:12
6]

at
Main/configLoadError()[D:\www\webroot\flash\Projects\MEL\Quiz\Quiz\src\Main.
as:143]

at
flash.events::EventDispatcher/dispatchEventFunction()

at
flash.events::EventDispatcher/dispatchEvent()

at flash.net::URLLoader/onComplete()

 

Trouble is running the SWF in a browser locally does work, it only throws
these errors in the Flash IDE.

 

I have tried a adding wildcard crossdomain.xml file in my root web directory
and setting the SWF publish properties to Allow network only, but neither of
these have solved my problem.

 

I know Windows 7 handles localhost name resolution differently compared to
previous versions of Windows but I have even added 127.0.0.1 localhost to
my hosts file to no avail.

 

Can anyone shed any light on this issue?

 

Thanks,

Dav

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash MouseWheel Listener Problem

2009-06-26 Thread Dav
Hi Guys,

I'm having a problem with attaching the mouse wheel listener to the stage in
AS3.

For some strange reason, when flash is focused and I scroll my mouse wheel,
the entire browser scrolls along with flash itself!

Any ideas how to prevent this?

I believe Google is not my friend on this one!

Cheers,
Dav

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash MouseWheel Listener Problem

2009-06-26 Thread Dav
THANK YOU!!!

I can't believe you found it so easily, I spent 30 minutes on Google.
Obviously it's too early in the morning for me, thanks mate!

Dav

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: 26 June 2009 10:15
To: Flash Coders List
Subject: Re: [Flashcoders] Flash MouseWheel Listener Problem

Hey there Dav,
I did a google for mouse wheel listener in flash and found this:

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/ 
wwhelp.htm?context=LiveDocs_Partsfile=1887.html

You may need to make your stage a movieClip itself and then attach  
the mouse listener to it.
Or put whatever your scrolling into a scroller box of sorts and  
attach the mouse listener to that.
HTH

Karl DeSaulniers
Design Drumm
http://designdrumm.com


On Jun 26, 2009, at 3:50 AM, Dav wrote:

 Hi Guys,

 I'm having a problem with attaching the mouse wheel listener to the  
 stage in
 AS3.

 For some strange reason, when flash is focused and I scroll my  
 mouse wheel,
 the entire browser scrolls along with flash itself!

 Any ideas how to prevent this?

 I believe Google is not my friend on this one!

 Cheers,
 Dav

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Embed Fonts in Main SWF

2009-05-07 Thread Dav
Hi guys, simple question for you!

If I have a main swf file that has font's embedded via AS3.
I load a child swf into a movieclip on the main swf.
Can the child swf use the embedded fonts from the main swf?

I've tried and so far I haven't managed to get this working, obviously if I
embed the fonts into the child swf the fonts appear as expected.

Cheers!
Dav

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] SWF Child - Parent Comunication

2009-04-24 Thread Dav
Hi all!

I have a problem with sending data between two SWF's.

Basically I have the parent SWF that loads in a child SWF. On the child SWF
there are several pictures that are clickable.

Now let's say the user clicks picture 2. I need the child SWF to tell the
main SWF that a picture was clicked, and also what picture it was from say
picture 1 to 10. The main SWF will then do something with that information.

So far all I have been able to find is something like this, in the child SWF
create add a dispatchEvent(new Event(jumpToImage, true)); to each
picture on click. Then in the main SWF add an event listener to the child
SWF.

Now the problem is, when I click on a picture the main SWF's listener
event.target equals the child SWF's document class ([object Child]), not the
image Movieclip instance name.

I don't really want to add a different dispatchEvent to every image:

dispatchEvent(new Event(jumpToImage1, true));
dispatchEvent(new Event(jumpToImage2, true));

dispatchEvent(new Event(jumpToImage10, true));

cause this seems wasteful, instead I would rather do this:

Child:
dispatchEvent(new Event(jumpToImage, true));

Main:
private function jumpToImage(event:Event):void
{
switch (event.target.name)
{
case picture1:
// do something with picture 1
break;
case picture2:
// do something with picture 2
break;
...
case picture10:
// do something with picture 10
break;
}
}

Any ideas?

Thanks,
Dav

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Access objects in embedded swf

2009-04-15 Thread Dav
Hi guys!

I'm having a problem accessing movieclips within an embedded SWF.

Here is some code:

...
[Embed(source = 'portfolio.swf')]
public var Portfolio:Class;

public function Main()
{
var portfolio:* = new Portfolio();
addChild(portfolio);
portfolio.x = 0;
portfolio.y = 0;
portfolio.a1.x = 150; // Fails
}
...

portfolio.a1.x fails, even though there is a movieclip inside portfolio.swf
called a1.

ReferenceError: Error #1069: Property a1 not found on Main_Portfolio and
there is no default value. at Main()[D:\Flash\NewProject\Main.as:19]

Any ideas?

Thanks in advance!
Dav

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] How to test in Flash Player 6

2009-04-15 Thread Dav
Hi, it's still available for testing purposes here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266

Dav

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven
Sent: 15 April 2009 13:11
To: 'Flash Coders List'
Subject: [Flashcoders] How to test in Flash Player 6

I am making a game for a large organisation where the most common Flash
player is version 6. I would appreciate any advice on how best I can test on
this player version. Is this player version still available for download and
if so where? Is there any clever apps/websites that allow me test on various
flash versions?

Thanks

Paul

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Access objects in embedded swf

2009-04-15 Thread Dav
No luck :(

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas
Sent: 15 April 2009 13:36
To: Flash Coders List
Subject: Re: [Flashcoders] Access objects in embedded swf

Dave,
   Try:

portfolio.x = 0;
portfolio.y = 0;
var child:DisplayObject=portfolio.getChildByName(a1);
child.x=150;

HTH,
   Ian

On Wed, Apr 15, 2009 at 1:14 PM, Dav d...@funkdaweb.com wrote:
 Hi guys!

 I'm having a problem accessing movieclips within an embedded SWF.

 Here is some code:

 ...
        [Embed(source = 'portfolio.swf')]
        public var Portfolio:Class;

        public function Main()
        {
                var portfolio:* = new Portfolio();
                addChild(portfolio);
                portfolio.x = 0;
                portfolio.y = 0;
                portfolio.a1.x = 150; // Fails
        }
 ...

 portfolio.a1.x fails, even though there is a movieclip inside
portfolio.swf
 called a1.

 ReferenceError: Error #1069: Property a1 not found on Main_Portfolio and
 there is no default value. at Main()[D:\Flash\NewProject\Main.as:19]

 Any ideas?

 Thanks in advance!
 Dav

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] MovieClip inside MoveClip. Path confusion.

2009-04-09 Thread Dav
Cheers works perfectly!

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Hans Wichman
Sent: 09 April 2009 12:09
To: Flash Coders List
Subject: Re: [Flashcoders] MovieClip inside MoveClip. Path confusion.

pages.page1.width :)

On Thu, Apr 9, 2009 at 12:35 PM, Dav d...@funkdaweb.com wrote:

 Hi all,



 Wondering if anyone can help me with a problem that's left me scratching
my
 head!



 Basically I have a main movieclip (group) and then several other
movieclips
 inside it (page[1-6]).



 I was thinking I could access them like this group.page1, group.page2 and
 so
 on. However it is not working for me.



 Here is some stripped down sample code, obviously the moviclips have
 content
 rather than just being blank:



 ///

 var group:MovieClip   = new MovieClip();

 addChild(group);



 var pages:Object  = new Object();

 pages[page1]= new MovieClip();

 pages[page2]= new MovieClip();

 pages[page3]= new MovieClip();

 pages[page4]= new MovieClip();

 pages[page5]= new MovieClip();

 pages[page6]= new MovieClip();



 for each (var page:MovieClip in pages)

 {

group.addChild(page);

 }



 group.page1.width = 200;// [Fault] exception,
 information=TypeError: Error #1010: A term is undefined and has no
 properties. Fault, initScene() at Main.as:103

 



 So I get this error when trying to access the width of page1 inside group:
 [Fault] exception, information=TypeError: Error #1010: A term is undefined
 and has no properties. Fault, initScene() at Main.as:103



 Any ideas how I can access the page movieclips within the group movieclip?



 Thanks!

 Dav

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] MovieClip inside MoveClip. Path confusion.

2009-04-09 Thread Dav
Hi all,

 

Wondering if anyone can help me with a problem that's left me scratching my
head!

 

Basically I have a main movieclip (group) and then several other movieclips
inside it (page[1-6]).

 

I was thinking I could access them like this group.page1, group.page2 and so
on. However it is not working for me.

 

Here is some stripped down sample code, obviously the moviclips have content
rather than just being blank:

 

///

var group:MovieClip   = new MovieClip(); 

addChild(group);

 

var pages:Object  = new Object();

pages[page1]= new MovieClip();

pages[page2]= new MovieClip();

pages[page3]= new MovieClip();

pages[page4]= new MovieClip();

pages[page5]= new MovieClip();

pages[page6]= new MovieClip();

 

for each (var page:MovieClip in pages)

{

group.addChild(page);

}

 

group.page1.width = 200;// [Fault] exception,
information=TypeError: Error #1010: A term is undefined and has no
properties. Fault, initScene() at Main.as:103



 

So I get this error when trying to access the width of page1 inside group:
[Fault] exception, information=TypeError: Error #1010: A term is undefined
and has no properties. Fault, initScene() at Main.as:103

 

Any ideas how I can access the page movieclips within the group movieclip?

 

Thanks!

Dav

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Any ideas / thoughts on this?

2009-04-09 Thread Dav
I'm trying to create a flash website where 6 pages are placed on the stage
with different rotations. The active page fills the viewport and a menu sits
just below the active page.

Now when you click on the menu for say page 2, the viewport will appear to
move and rotate to the correct angle to display page 2.

I have worked up a site to better explain what I mean.

http://79.170.40.163/flashdev.com/

For the sake of keeping things simple each of the three buttons just move
you to the next page.

I believe the best way to achieve the effect is to put each page into a
group movieclip, that will hold all 6 pages.

Then when a menu item is clicked, just rotate the group movieclip and move
it to a pre-defined x and y.

I'm hoping to code it in FlashDevelop, so it will be dynamic and not static
content.

Does anyone think there is a better way to achieve the end result?

Thanks in advance,
Dav

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders