Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Remoting result string to variables

Remoting result string to variables

2004-02-13       - By Christopher Boehman

 Back
Reply:     1     2     3     4     5     6     7     8  

I've got a call in Flash remoting giving me a result that is a string like
so:

score_1=22&initial_1=kjh&score_2=20&initial_2=MSB&score_3=13

Is there an easy way to split this into variables and their respective
values?  I literally want to turn it into a list of items like this:

Score_1=22;
Initial_1=kjh;
Score_2=20;
Initisl_2=MSB;
Score_3=13;

Etc, etc.

I've looked at things like string split but it seems there must be a better
way to do this.


Here is my reason for the getting a string result instead of an array:  I
have a quiz which can be anywhere from 1-20 questions, each question can
have 1-4 answers, and each time the correct answer may be different.  Our
client wants to be able to edit these at their discretion, and have it
automatically show up in Flash.  So it isn't like a result array returned
would even have the answers or questions in consistent spots in the array.

Any recommendations?


Christopher Boehman
Media Developer
Email: chris@(protected)

Immersion Active
16 East Patrick Street, 3rd floor
Frederick, MD 21701
Phone: (301) 631-9277
Fax: (301) 631-9276
Web: http://www.immersionactive.com
Email: info@(protected)
-- ---- ---- ---- ---- ---- ---- ---- --

> From: "Barry Hayden" <b.hayden@(protected)>
> Organization: Virtual Vector
> Reply-To: flashnewbie@(protected)
> Date: Tue, 20 Jan 2004 12:09:11 -0500
> To: <flashnewbie@(protected)>
> Subject: RE: [Flashnewbie] ScrollPane.contentPath?
>
> Jesse,
> Nope.
>
> Barry
>
>> -- --Original Message-- --
>> From: Jesse Warden [mailto:warden@(protected)]
>> Sent: Tuesday, January 20, 2004 10:31 AM
>> To: 'flashnewbie@(protected)'
>> Subject: RE: [Flashnewbie] ScrollPane.contentPath?
>>
>>
>> Does it work when you test in the IDE?
>>
>>
>> -- --Original Message-- --
>> From: Barry Hayden [mailto:b.hayden@(protected)]
>> Sent: Tuesday, January 20, 2004 10:30 AM
>> To: flashnewbie@(protected)
>> Subject: RE: [Flashnewbie] ScrollPane.contentPath?
>>
>>
>> Jesse,
>> The jpg isn't progressive. And I'm using AS2 with
>> Player 6 and no luck.
>>
>> //on a button
>> on(release){
>> _root.myScrollPane._visible = true;
>> _root.myScrollPane.contentPath = "largePics/large03.jpg"; }
>> // but no luck
>>
>> Barry
>>
>>> -- --Original Message-- --
>>> From: Jesse Warden [mailto:warden@(protected)]
>>> Sent: Tuesday, January 20, 2004 10:17 AM
>>> To: 'flashnewbie@(protected)'
>>> Subject: RE: [Flashnewbie] ScrollPane.contentPath?
>>>
>>>
>>> If your using Flash MX 2004's ScrollPane, it'll work with Flash
>>> 6.0.79.0 exported as AS2.
>>>
>>> Your jpeg file could possibly be progressive; open in an
>> image editing
>>> program and export it again, and see if "progressive" is checked.
>>>
>>>
>>> -- --Original Message-- --
>>> From: Barry Hayden [mailto:b.hayden@(protected)]
>>> Sent: Tuesday, January 20, 2004 10:15 AM
>>> To: flashnewbie@(protected)
>>> Subject: RE: [Flashnewbie] ScrollPane.contentPath?
>>>
>>>
>>> Thanks Darron and Jesse,
>>>
>>> But for some reason this isn't working. Does this have
>>> to be done in Player 7? If so, I need to find a way to make
>>> it work in version 6. I have too many files that would have
>>> to be changed otherwise. Ultimately I'd like to do it in AS1
>>> Player 6. Any ideas along these lines? I've even tried
>>> loading an mc from the library which then loads the jpg...
>>>
>>> _root.myScrollPane.content = "holder";
>>>
>>> But no luck. And the mc is linked also.
>>>
>>> Barry
>>>> -- --Original Message-- --
>>>> From: Darron J. Schall [mailto:darron@(protected)]
>>>> Sent: Tuesday, January 20, 2004 9:46 AM
>>>> To: flashnewbie@(protected)
>>>> Subject: Re: [Flashnewbie] ScrollPane.contentPath?
>>>>
>>>>
>>>> You're on the right track, just wrong syntax.
>>>>
>>>> contentPath is a property, not a function, and therefore does not
>>>> require the function-call operator() to work..  Rather, a
>>> property can
>>>> be treated just like a variable in that you set content path by
>>>> assigning it a value via the = operation, like this:
>>>>
>>>> mySP.contentPath = "fle location";
>>>>
>>>> Hope that helps..
>>>>
>>>> -d
>>>>
>>>>
>>>>
>>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>>> Supported by Fig Leaf Software
>>>>
>>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>>> Lower Prices for Certified Training! Check out new lower
>> prices for
>>>> Certified Macromedia Training from Fig Leaf Software. Expand your
>>>> skill set with courses in ColdFusion, Flash, Rich Internet
>>>> Applications and .NET in the new year. Fig Leaf Software provides
>>>> the highest caliber instruction at our training centers in
>>>> Washington  
>>>> D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or
>>>> on-site at your location.
>>>>
>>>> Get the details at http://training.figleaf.com/
>>>>
>>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>>>> To unsubscribe, e-mail:
>>> flashnewbie-unsubscribe@(protected)
>>>> For additional commands, e-mail:
>>>> flashnewbie-help@(protected)
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>> Supported by Fig Leaf Software
>>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>> Lower Prices for Certified Training! Check out new lower prices for
>>> Certified Macromedia Training from Fig Leaf Software. Expand your
>>> skill set with courses in ColdFusion, Flash, Rich Internet
>>> Applications and .NET in the new year.
>>> Fig Leaf Software provides
>>> the highest caliber instruction at our training centers in
>>> Washington  
>>> D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or
>>> on-site at your location.
>>>
>>> Get the details at http://training.figleaf.com/
>>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>>> To unsubscribe, e-mail:
>> flashnewbie-unsubscribe@(protected)
>>> For additional commands, e-mail:
>>> flashnewbie-help@(protected)
>>>
>>>
>>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>> Supported by Fig Leaf Software
>>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>> Lower Prices for Certified Training! Check out new lower prices for
>>> Certified Macromedia Training from Fig Leaf Software. Expand your
>>> skill set with courses in ColdFusion, Flash, Rich Internet
>>> Applications and .NET in the new year.
>>> Fig Leaf Software provides
>>> the highest caliber instruction at our training centers in
>>> Washington  
>>> D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or
>>> on-site at your location.
>>>
>>> Get the details at http://training.figleaf.com/
>>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>>> To unsubscribe, e-mail:
>> flashnewbie-unsubscribe@(protected)
>>> For additional commands, e-mail:
>>> flashnewbie-help@(protected)
>>>
>>>
>>>
>>
>>
>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> Supported by Fig Leaf Software
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> Lower Prices for Certified Training! Check out new lower
>> prices for Certified Macromedia Training from Fig Leaf
>> Software. Expand your skill set with courses in ColdFusion,
>> Flash, Rich Internet Applications and .NET in the new year.
>> Fig Leaf Software provides
>> the highest caliber instruction at our training centers in
>> Washington  
>> D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or
>> on-site at your location.
>>
>> Get the details at http://training.figleaf.com/
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
>> For additional commands, e-mail:
>> flashnewbie-help@(protected)
>>
>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> Supported by Fig Leaf Software
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> Lower Prices for Certified Training! Check out new lower
>> prices for Certified Macromedia Training from Fig Leaf
>> Software. Expand your skill set with courses in ColdFusion,
>> Flash, Rich Internet Applications and .NET in the new year.
>> Fig Leaf Software provides
>> the highest caliber instruction at our training centers in
>> Washington  
>> D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or
>> on-site at your location.
>>
>> Get the details at http://training.figleaf.com/
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
>> For additional commands, e-mail:
>> flashnewbie-help@(protected)
>>
>>
>>
>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> Supported by Fig Leaf Software
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> Lower Prices for Certified Training! Check out new lower prices for
> Certified Macromedia Training from Fig Leaf Software. Expand your
> skill set with courses in ColdFusion, Flash, Rich Internet
> Applications and .NET in the new year.  Fig Leaf Software provides
> the highest caliber instruction at our training centers in Washington
> D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
> your location.
>
> Get the details at http://training.figleaf.com/
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
> For additional commands, e-mail: flashnewbie-help@(protected)
>
>
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington  
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)





Earn $52 per hosting referral at Lunarpages.