flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Cloning rectangles
Date Fri, 24 Mar 2017 16:07:53 GMT
I'm not sure I understand all of the pieces.

cloneInternal looks like it is recursive.

Do you really need to use flash.rect.Rectangle?  Can you create your own
Rectangle class?

I would think a straight monkey-patch should have worked instead of having
to rename mx.utils.Object util in your app.

Thanks,
-Alex

On 3/24/17, 8:09 AM, "Dev LFM" <developerlfm@gmail.com> wrote:

>I'm sorry, my last post is buggy...
>
>I need a recursive "expensive" way to validate.. the code I posted only
>goes in the first level of the object, but it needs to go to all "leafs"
>of
>all "branches", so this is a no go....
>
>I'm not sure yet if I completely switch Rectangle to another thing, or If
>I
>just consume more CPU on this sanity checks until FP 25.0.0.143 goes
>public..
>
>2017-03-24 14:45 GMT+00:00 Dev LFM <developerlfm@gmail.com>:
>
>> Using a message saying that flashplayer 25.0.0.127 is unstable, and
>>asking
>> to update did not work...we are receiving tons of phone call saying our
>> software don't work.. a disaster..
>>
>> On windows what I verified is that Firefox chrome 32 bits works fine,
>>but
>> on all official chrome (64 bit) versions do not. Also all OSX 64bit do
>>not
>> work.
>>
>> I copied the ObjectUtil.clone to a new ObjectUtil with this change:
>>
>> private static function cloneInternal(result:Object, value:Object):void
>> {
>> if (value && value.hasOwnProperty("uid"))
>> result.uid = value.uid;
>> if(value && value is Rectangle)
>> result.height = value.height;
>> var classInfo:Object = mx.utils.ObjectUtil.getClassInfo(value);
>> var v:Object;
>> for each (var p:* in classInfo.properties)
>> {
>> v = value[p];
>> if (v && (v.hasOwnProperty("uid") || v is Rectangle))
>> cloneInternal(result[p], v);
>> }
>> }
>>
>>
>> and replaced over 300 places in my source "mx.utils.ObjectUtil" to my
>> "utils.ObjectUtil", hope this temporary fix helps someone.
>>
>> Thank you
>>
>>
>>
>> 2017-03-23 18:14 GMT+00:00 Harbs <harbs.lists@gmail.com>:
>>
>>> I’m sure you realize this, but you can probably use serialized object
>>> literals instead of Rectangles as a work-around.
>>>
>>> > On Mar 23, 2017, at 8:05 PM, Dev LFM <developerlfm@gmail.com> wrote:
>>> >
>>> > I was being ironic Josh xD
>>> >
>>> > But thank you for detailed answer,  actually the support team is on
>>>last
>>> > resource advising to try canary.. it sucks, but worst is that after
>>>user
>>> > save the projects, there's nothing to do.. I try to manually fix
>>>some of
>>> > them.. I hope that adobe releases an update soon, so I don't have to
>>> > workaround with a replace of Rectangle, this would be huge amount of
>>> work...
>>> >
>>> > Thank you all for helping me
>>> >
>>> > 2017-03-23 17:45 GMT+00:00 Josh Tynjala <joshtynjala@gmail.com>:
>>> >
>>> >> Definitely not. Performance in the debugger version is slower, and
>>> they'll
>>> >> have no idea why errors suddenly start popping up for random SWFs on
>>> the
>>> >> web that have bugs.
>>> >>
>>> >> - Josh
>>> >>
>>> >> On Thu, Mar 23, 2017 at 10:29 AM, DevLFM <developerlfm@gmail.com>
>>> wrote:
>>> >>
>>> >>> Thank you Harbs, Should I advise our customers to install debugger
>>> >> version?
>>> >>> hehehe
>>> >>>
>>> >>> 2017-03-23 17:26 GMT+00:00 Harbs [via Apache Flex Development] <
>>> >>> ml-node+s2333347n60705h90@n4.nabble.com>:
>>> >>>
>>> >>>> I have Debug installed (for Firefox).
>>> >>>>
>>> >>>> I am seeing the problem in Chrome, but I don’t have Canary
>>>installed.
>>> >>>>
>>> >>>>> On Mar 23, 2017, at 7:14 PM, DevLFM <[hidden email]
>>> >>>> <http:///user/SendEmail.jtp?type=node&node=60705&i=0>>
wrote:
>>> >>>>>
>>> >>>>> Normal or Debugger?
>>> >>>>>
>>> >>>>> 2017-03-23 17:02 GMT+00:00 Harbs [via Apache Flex Development]
<
>>> >>>>> [hidden email] <http:///user/SendEmail.jtp?ty
>>> pe=node&node=60705&i=1>
>>> >>>> <mailto:[hidden email]
>>> >>>> <http:///user/SendEmail.jtp?type=node&node=60705&i=2>>>:
>>> >>>>>
>>> >>>>>> I tried and it was working for me using Yosemite.
>>> >>>>>>
>>> >>>>>>> On Mar 23, 2017, at 5:55 PM, DevLFM <[hidden
email]
>>> >>>>>> <http:///user/SendEmail.jtp?type=node&node=60698&i=0
<http
>>> >>>> ://user/SendEmail.jtp?type=node&node=60698&i=0>>>
wrote:
>>> >>>>>>>
>>> >>>>>>> Yes on chrome canary windows/osx its fixed.
>>> >>>>>>>
>>> >>>>>>> But on OSX is happening on all browsers! (at least
in my
>>> company..)
>>> >>>> with
>>> >>>>>>> 25.0.0.127, and the bug I posted haven't yet a single
response
>>> from
>>> >>>>>> adobe :\
>>> >>>>>>>
>>> >>>>>>> "Status: Needs Review"
>>> >>>>>>>
>>> >>>>>>>
>>> >>>>>>> Thank you
>>> >>>>>>>
>>> >>>>>>> 2017-03-23 15:25 GMT+00:00 piotrz [via Apache Flex
>>>Development] <
>>> >>>>>>> [hidden email] <http:///user/SendEmail.jtp?
>>> >> type=node&node=60698&i=1
>>> >>> <
>>> >>>> http://user/SendEmail.jtp?type=node&node=60698&i=1>>>:
>>> >>>>>>>
>>> >>>>>>>> Hi,
>>> >>>>>>>>
>>> >>>>>>>> But you have commented that it is fixed in newest
version of
>>> >> Chrome.
>>> >>>> Am
>>> >>>>>> I
>>> >>>>>>>> understand correctly ?
>>> >>>>>>>>
>>> >>>>>>>> "Google chrome Canary has released PPAPI 25.0.0.143
this
>>>issue is
>>> >>>>>> solved!"
>>> >>>>>>>>
>>> >>>>>>>> Piotr
>>> >>>>>>>> Apache Flex PMC
>>> >>>>>>>> [hidden email] <http:///user/SendEmail.jtp?
>>> >> type=node&node=60698&i=2
>>> >>> <
>>> >>>> http://user/SendEmail.jtp?type=node&node=60698&i=2>>
>>> >>>>>>>>
>>> >>>>>>>>
>>> >>>>>>>> ------------------------------
>>> >>>>>>>> If you reply to this email, your message will
be added to the
>>> >>>>>> discussion
>>> >>>>>>>> below:
>>> >>>>>>>> 
>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-f
>>>lex-development.2333347.n4.nabble&data=02%7C01%7C%7Ca312a0b388314d92da62
>>>08d472c7de50%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63625965013021
>>>2137&sdata=nBlIpcpMrsyqi7kEhuDo45ib5gmqkj2Xd2Uilv0atOk%3D&reserved=0 <
>>> >>> http://apache-flex-
>>> >>>> development.2333347.n4.nabble/>.
>>> >>>>>> com/Cloning-rectangles-
>>> >>>>>>>> tp60691p60694.html
>>> >>>>>>>> To unsubscribe from Cloning rectangles, click
here
>>> >>>>>>>> <
>>> >>>>>>>> .
>>> >>>>>>>> NAML
>>> >>>>>>>> 
>>><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>>>flex-development.2333347.n4.nabble&data=02%7C01%7C%7Ca312a0b388314d92da6
>>>208d472c7de50%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362596501302
>>>12137&sdata=nBlIpcpMrsyqi7kEhuDo45ib5gmqkj2Xd2Uilv0atOk%3D&reserved=0.
>>> >>>>>> com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_
>>> >>>>>> html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.
>>> >>>>>> BasicNamespace-nabble.view.web.template.NabbleNamespace-
>>> >>>>>> nabble.view.web.template.NodeNamespace&breadcrumbs=
>>> >>>>>> notify_subscribers%21nabble%3Aemail.naml-instant_emails%
>>> >>>>>> 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>> >>>>>>>>
>>> >>>>>>>
>>> >>>>>>>
>>> >>>>>>>
>>> >>>>>>>
>>> >>>>>>> --
>>> >>>>>>> View this message in context: http://apache-flex-
>>> >>>>>> development.2333347.n4.nabble.com/Cloning-rectangles-
>>> >>> tp60691p60696.html
>>> >>>>>>> Sent from the Apache Flex Development mailing list
archive at
>>> >>>>>> Nabble.com.
>>> >>>>>>
>>> >>>>>>
>>> >>>>>>
>>> >>>>>> ------------------------------
>>> >>>>>> If you reply to this email, your message will be added
to the
>>> >>>> discussion
>>> >>>>>> below:
>>> >>>>>> 
>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-f
>>>lex-development.2333347.n4.nabble&data=02%7C01%7C%7Ca312a0b388314d92da62
>>>08d472c7de50%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63625965013021
>>>2137&sdata=nBlIpcpMrsyqi7kEhuDo45ib5gmqkj2Xd2Uilv0atOk%3D&reserved=0.
>>> >>>> com/Cloning-rectangles- <http://apache-flex-development.
>>> >>>> 2333347.n4.nabble.com/Cloning-rectangles->
>>> >>>>>> tp60691p60698.html
>>> >>>>>> To unsubscribe from Cloning rectangles, click here
>>> >>>>>> < href="" target="_top" rel="nofollow" link="external">
>>> >>>>>> .
>>> >>>>>> NAML
>>> >>>>>> 
>>><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>>>flex-development.2333347.n4.nabble&data=02%7C01%7C%7Ca312a0b388314d92da6
>>>208d472c7de50%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362596501302
>>>12137&sdata=nBlIpcpMrsyqi7kEhuDo45ib5gmqkj2Xd2Uilv0atOk%3D&reserved=0.
>>> >>>> com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_
>>> >>>> html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.
>>> >>>> BasicNamespace-nabble.view.web.template.NabbleNamespace-
>>> >>>> nabble.view.web.template.NodeNamespace&breadcrumbs=
>>> >>>> notify_subscribers%21nabble%3Aemail.naml-instant_emails%
>>> >>>> 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
<
>>> >>>> 
>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-f
>>>lex-development.2333347.n4.nabble.com%2Ftemplate%2F&data=02%7C01%7C%7Ca3
>>>12a0b388314d92da6208d472c7de50%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>>>0%7C636259650130212137&sdata=8USgZtTwiHArQ8vH7NlgXheEXRQk17eTKJqHs9PNwUo
>>>%3D&reserved=0
>>> >>>> NamlServlet.jtp?macro=macro_viewer&id=instant_html%
>>> >>>> 21nabble%3Aemail.naml&base=nabble.naml.namespaces.
>>> >>>> BasicNamespace-nabble.view.web.template.NabbleNamespace-
>>> >>>> nabble.view.web.template.NodeNamespace&breadcrumbs=
>>> >>>> notify_subscribers%21nabble%3Aemail.naml-instant_emails%
>>> >>>> 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>>
>>> >>>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>> --
>>> >>>>> View this message in context: http://apache-flex-
>>> >>>> development.2333347.n4.nabble.com/Cloning-rectangles-
>>> >> tp60691p60702.html
>>> >>> <
>>> >>>> 
>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-f
>>>lex-development.2333347.n4.nabble.com%2FCloning-&data=02%7C01%7C%7Ca312a
>>>0b388314d92da6208d472c7de50%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7
>>>C636259650130212137&sdata=kpolxCHdwK6fqgOCU5UxIisY%2FyroIk0Krfy2%2Bln%2F
>>>5pM%3D&reserved=0
>>> >>>> rectangles-tp60691p60702.html>
>>> >>>>> Sent from the Apache Flex Development mailing list archive
at
>>> >>> Nabble.com
>>> >>>> 
>>><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnabble.
>>>com%2F&data=02%7C01%7C%7Ca312a0b388314d92da6208d472c7de50%7Cfa7b1b5a7b34
>>>438794aed2c178decee1%7C0%7C0%7C636259650130212137&sdata=uKvzpTTXw9N50O%2
>>>BHU3WbmSQG35YX0VDAZUdtco41PxA%3D&reserved=0>.
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> ------------------------------
>>> >>>> If you reply to this email, your message will be added to the
>>> >> discussion
>>> >>>> below:
>>> >>>> 
>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-f
>>>lex-development.2333347.n4.nabble&data=02%7C01%7C%7Ca312a0b388314d92da62
>>>08d472c7de50%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63625965013021
>>>2137&sdata=nBlIpcpMrsyqi7kEhuDo45ib5gmqkj2Xd2Uilv0atOk%3D&reserved=0.
>>> >> com/Cloning-rectangles-
>>> >>>> tp60691p60705.html
>>> >>>> To unsubscribe from Cloning rectangles, click here
>>> >>>> 
>>><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>>>flex-development.2333347.n4.nabble&data=02%7C01%7C%7Ca312a0b388314d92da6
>>>208d472c7de50%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362596501302
>>>12137&sdata=nBlIpcpMrsyqi7kEhuDo45ib5gmqkj2Xd2Uilv0atOk%3D&reserved=0.
>>> >>> com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=
>>> 60691&code=
>>> >>> ZGV2ZWxvcGVybGZtQGdtYWlsLmNvbXw2MDY5MXw1OTAzODg2NDI=>
>>> >>>> .
>>> >>>> NAML
>>> >>>> 
>>><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>>>flex-development.2333347.n4.nabble&data=02%7C01%7C%7Ca312a0b388314d92da6
>>>208d472c7de50%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362596501302
>>>12137&sdata=nBlIpcpMrsyqi7kEhuDo45ib5gmqkj2Xd2Uilv0atOk%3D&reserved=0.
>>> >>> com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_
>>> >>> html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.
>>> >>> BasicNamespace-nabble.view.web.template.NabbleNamespace-
>>> >>> nabble.view.web.template.NodeNamespace&breadcrumbs=
>>> >>> notify_subscribers%21nabble%3Aemail.naml-instant_emails%
>>> >>> 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>> >>>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>> View this message in context: http://apache-flex-
>>> >>> development.2333347.n4.nabble.com/Cloning-rectangles-tp60691
>>> p60706.html
>>> >>> Sent from the Apache Flex Development mailing list archive at
>>> Nabble.com.
>>> >>>
>>> >>
>>>
>>>
>>

Mime
View raw message